diff --git a/src/weaver/formmode/recruit/modeexpand/interview/UrgeInterviewEvaluationExpand.java b/src/weaver/formmode/recruit/modeexpand/interview/UrgeInterviewEvaluationExpand.java index 203d204..b67b4e5 100644 --- a/src/weaver/formmode/recruit/modeexpand/interview/UrgeInterviewEvaluationExpand.java +++ b/src/weaver/formmode/recruit/modeexpand/interview/UrgeInterviewEvaluationExpand.java @@ -1,8 +1,8 @@ package weaver.formmode.recruit.modeexpand.interview; +import com.engine.recruit.conn.ApplicantCommonInfo; import com.engine.recruit.constant.RecruitConstant; import com.weaver.formmodel.data.model.Formfield; -import org.apache.commons.collections.CollectionUtils; import weaver.conn.RecordSet; import weaver.formmode.customjavacode.AbstractModeExpandJavaCodeNew; import weaver.formmode.recruit.modeexpand.util.RecruitModeUtil; @@ -49,19 +49,25 @@ public class UrgeInterviewEvaluationExpand extends AbstractModeExpandJavaCodeNew String msgContent = "您有一个面试还未评价,请尽快填写评价
" + "应聘者:$ypz$ ;应聘职位:$ypzw$;面试时间:$msrq$"; - Set userIdSet = new HashSet<>(); + Map remindMap = new HashMap<>(); // 查询未反馈面试评价的面试官 - rs.executeQuery("select msg from uf_jcl_mspjfk where zt = 0 and msid = ?", billId); + rs.executeQuery("select msg,id from uf_jcl_mspjfk where zt = 0 and msid = ?", billId); while (rs.next()) { - userIdSet.add(rs.getString("msg")); + //userIdSet.add(rs.getString("msg")); + remindMap.put(rs.getString("msg"), rs.getString("id")); } - if (CollectionUtils.isNotEmpty(userIdSet)) { + if (remindMap.size() > 0) { // 消息发送 List fieldList = RecruitModeUtil.getFieldList(MODE_TABLE_NAME); Map fieldMap = fieldList.stream().collect(Collectors.toMap(Formfield::getFieldname, item -> item, (k1, k2) -> k1)); String msgStr = RecruitModeUtil.getMsgReplaceStr(msgContent, fieldMap, mainDataMap); - RecruitModeUtil.messagePush(RecruitConstant.INTERVIEW_MESSAGE_TYPE, RecruitConstant.INTERVIEW_EVALUATE_MESSAGE_TITLE, msgStr, userIdSet, user.getUID()); + int formModeId = ApplicantCommonInfo.getModeIdByTableName("uf_jcl_mspjfk"); + int formId = ApplicantCommonInfo.getFormIdByTableName("uf_jcl_mspjfk"); + for (String userId : remindMap.keySet()) { + String linkUrl = "/spa/cube/index.html#/main/cube/card?billid=" + remindMap.get(userId) + "&type=2&modeId=" + formModeId + "&formId=" + formId + "&operateType=evaluate&recordType=updateInterviewResult"; + RecruitModeUtil.messagePush(RecruitConstant.INTERVIEW_MESSAGE_TYPE, RecruitConstant.INTERVIEW_EVALUATE_MESSAGE_TITLE, msgStr, Collections.singleton(userId), user.getUID(), linkUrl, ""); + } } }