催办文案优化
This commit is contained in:
parent
34524d4680
commit
2ff0b3fb92
@ -14,7 +14,7 @@ public enum WorkMsgTypeEnum {
|
||||
LEADER_PASS(2, "绩效已打分", "去提交给人事", "# 绩效已打分\n ## 你的绩效已经打分"),
|
||||
//绩效通过人事,老板审核的最终审核通知
|
||||
PASS(3, "绩效通过", "去查看", "# 绩效通过\n ## 你的绩效已经通过"),
|
||||
URGING(4, "绩效催办", "去审批", "# 绩效催办\n ## @的绩效需您处理"),
|
||||
URGING(4, "绩效催办", "去处理", "# 绩效催办\n ## @的绩效需您处理"),
|
||||
END(5, "绩效终止", "去查看", "# 绩效终止\n ## @,你的绩效终止"),
|
||||
START_WORK(6, "绩效考评待办事项", "去查看", "# 绩效目标制定\n ## @,你的绩效需要制定目标"),
|
||||
START_SCORE(7, "绩效考评待办事项", "去查看", "# 绩效结果输入\n ## @,你的绩效需要输入结果"),
|
||||
|
||||
@ -339,7 +339,7 @@ public class ResultRecordController extends AbstractController {
|
||||
* 信息
|
||||
*/
|
||||
@GetMapping("/urging")
|
||||
@ApiOperation("绩效意见催办-吴林")
|
||||
@ApiOperation("绩效催办-吴林")
|
||||
@ApiImplicitParams({@ApiImplicitParam(name = "id", value = "绩效id")})
|
||||
@ApiResponses({@ApiResponse(code = 200, message = "成功", response = R.class)})
|
||||
public R getDetail(@RequestParam Long id) {
|
||||
|
||||
@ -608,7 +608,13 @@ public class DingtalkBusiness {
|
||||
for (StaffEntity info:
|
||||
staffs) {
|
||||
logger.info("发送消息给{},url:{}", info, url);
|
||||
String content = WorkMsgTypeEnum.URGING.getContent().replace("@", lzResultRecord.getStaffName());
|
||||
String content = null;
|
||||
if(!lzResultRecord.getStaffName().equals(info.getName())){
|
||||
content = WorkMsgTypeEnum.URGING.getContent().replace("@", lzResultRecord.getStaffName());
|
||||
}else{
|
||||
content = WorkMsgTypeEnum.URGING.getContent().replace("@", "您");
|
||||
}
|
||||
|
||||
dingTalkUtil.sendSingleActionCardMSG(appid, info, WorkMsgTypeEnum.URGING.getTitle(),
|
||||
content, WorkMsgTypeEnum.URGING.getBtnText(), url, token);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user