催办放到DingTalkbusiness
This commit is contained in:
parent
4c3f95bab8
commit
00104e3cfb
@ -342,7 +342,7 @@ public class ResultRecordController extends AbstractController {
|
|||||||
@ApiOperation("绩效催办-吴林")
|
@ApiOperation("绩效催办-吴林")
|
||||||
@ApiImplicitParams({@ApiImplicitParam(name = "id", value = "绩效id")})
|
@ApiImplicitParams({@ApiImplicitParam(name = "id", value = "绩效id")})
|
||||||
@ApiResponses({@ApiResponse(code = 200, message = "成功", response = R.class)})
|
@ApiResponses({@ApiResponse(code = 200, message = "成功", response = R.class)})
|
||||||
public R getDetail(@RequestParam Long id) {
|
public R urging(@RequestParam Long id) {
|
||||||
ResultRecord lzResultRecord = lzResultRecordService.selectResultRecordById(id);
|
ResultRecord lzResultRecord = lzResultRecordService.selectResultRecordById(id);
|
||||||
//获取当前节点,谁在处理
|
//获取当前节点,谁在处理
|
||||||
List<FlowRecord> flowRecords = flowRecordService.selectFlowRecordsByRecordIdAndStatus(id, 2);
|
List<FlowRecord> flowRecords = flowRecordService.selectFlowRecordsByRecordIdAndStatus(id, 2);
|
||||||
|
|||||||
@ -46,6 +46,7 @@ import org.springframework.beans.BeanUtils;
|
|||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.net.URLEncoder;
|
import java.net.URLEncoder;
|
||||||
@ -626,6 +627,24 @@ public class DingtalkBusiness {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String urging(Long recordId) {
|
||||||
|
ResultRecord lzResultRecord = resultRecordService.selectResultRecordById(recordId);
|
||||||
|
//获取当前节点,谁在处理
|
||||||
|
List<FlowRecord> flowRecords = flowRecordService.selectFlowRecordsByRecordIdAndStatus(recordId, 2);
|
||||||
|
if(flowRecords.size() > 0){
|
||||||
|
List<Long> ids = flowRecords.stream().map(new Function<FlowRecord, Long>() {
|
||||||
|
@Override
|
||||||
|
public Long apply(FlowRecord flowRecord) {
|
||||||
|
return flowRecord.getApprovalStaffId();
|
||||||
|
}
|
||||||
|
}).collect(Collectors.toList());
|
||||||
|
List<StaffEntity> staffs = staffService.selectNamesByIds(ids);
|
||||||
|
sendNoticeMsg(lzResultRecord, staffs);
|
||||||
|
return "OK";
|
||||||
|
}
|
||||||
|
return "error";
|
||||||
|
}
|
||||||
|
|
||||||
public String sendNoticeMsg(ResultRecord lzResultRecord, List<StaffEntity> staffs) {
|
public String sendNoticeMsg(ResultRecord lzResultRecord, List<StaffEntity> staffs) {
|
||||||
|
|
||||||
ThirdAppConfig thirdAppConfig = thirdAppConfigService.getByAppId(appid);
|
ThirdAppConfig thirdAppConfig = thirdAppConfigService.getByAppId(appid);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user