generated from dxfeng/secondev-chapanda-feishu
优化面试评价提醒功能,增加链接跳转支持
This commit is contained in:
parent
b8aa1e546d
commit
bc5516c5af
|
|
@ -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 = "您有一个面试还未评价,请尽快填写评价<br/>" +
|
||||
"应聘者:$ypz$ ;应聘职位:$ypzw$;面试时间:$msrq$";
|
||||
Set<String> userIdSet = new HashSet<>();
|
||||
Map<String, String> 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<Formfield> fieldList = RecruitModeUtil.getFieldList(MODE_TABLE_NAME);
|
||||
Map<String, Formfield> 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, "");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue