催办文案优化

This commit is contained in:
wulin 2020-12-02 11:49:00 +08:00
parent 34524d4680
commit 2ff0b3fb92
3 changed files with 9 additions and 3 deletions

View File

@ -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 ## @,你的绩效需要输入结果"),

View File

@ -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) {

View File

@ -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);
}