|
|
|
@ -14,10 +14,7 @@ import weaver.formmode.IgnoreCaseHashMap;
|
|
|
|
|
import weaver.formmode.mzg.modeexpand.disc.AddDiscExpand;
|
|
|
|
|
import weaver.general.Util;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.UUID;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
import java.util.regex.Matcher;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -100,9 +97,9 @@ public class RecruitMobileServiceImpl extends Service implements RecruitMobileSe
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 根据职位,设置部门的值
|
|
|
|
|
rs.executeQuery("select sqbm from uf_recruit_zpxqglb where id = ?",buildDataMap.get("sqzw"));
|
|
|
|
|
if(rs.next()){
|
|
|
|
|
buildDataMap.put("bm",rs.getString("sqbm"));
|
|
|
|
|
rs.executeQuery("select sqbm from uf_recruit_zpxqglb where id = ?", buildDataMap.get("sqzw"));
|
|
|
|
|
if (rs.next()) {
|
|
|
|
|
buildDataMap.put("bm", rs.getString("sqbm"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (isAdd) {
|
|
|
|
@ -112,12 +109,12 @@ public class RecruitMobileServiceImpl extends Service implements RecruitMobileSe
|
|
|
|
|
int formModeId = RecruitCommon.getModeIdByTableName(targetTable);
|
|
|
|
|
buildDataMap.put("formmodeid", formModeId);
|
|
|
|
|
// 构建建模表基本数据
|
|
|
|
|
buildDataMap.put("ypdjid",billId);
|
|
|
|
|
buildDataMap.put("mslx","0");
|
|
|
|
|
buildDataMap.put("mszt","0");
|
|
|
|
|
buildDataMap.put("ypdjid", billId);
|
|
|
|
|
buildDataMap.put("mslx", "0");
|
|
|
|
|
buildDataMap.put("mszt", "0");
|
|
|
|
|
RecruitRecordSet.buildModeInsertFields(buildDataMap, 1);
|
|
|
|
|
RecruitRecordSet.insertData(buildDataMap, targetTable);
|
|
|
|
|
msId = String.valueOf(RecruitRecordSet.refreshRight(uuid, targetTable, formModeId,1));
|
|
|
|
|
msId = String.valueOf(RecruitRecordSet.refreshRight(uuid, targetTable, formModeId, 1));
|
|
|
|
|
} else {
|
|
|
|
|
// 更新
|
|
|
|
|
buildDataMap.put("id", msId);
|
|
|
|
@ -157,6 +154,50 @@ public class RecruitMobileServiceImpl extends Service implements RecruitMobileSe
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Map<String, Object> updateOfferStatus(Map<String, Object> params) {
|
|
|
|
|
Map<String, Object> returnMap = new HashMap<>(3);
|
|
|
|
|
String status = Util.null2String(params.get("status"));
|
|
|
|
|
String uuid = Util.null2String(params.get("uuid"));
|
|
|
|
|
returnMap.put("type", "error");
|
|
|
|
|
returnMap.put("message", "反馈失败");
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isBlank(status) || StringUtils.isBlank(uuid)) {
|
|
|
|
|
returnMap.put("description", "反馈失败,请直接点击邮件中的链接地址访问,请勿修改链接内容。");
|
|
|
|
|
return returnMap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
RecordSet rs = new RecordSet();
|
|
|
|
|
rs.executeQuery("select fkjg from uf_recruit_lytzs where modeuuid = ? ", uuid);
|
|
|
|
|
String fkjg = "";
|
|
|
|
|
if (rs.next()) {
|
|
|
|
|
fkjg = rs.getString("fkjg");
|
|
|
|
|
} else {
|
|
|
|
|
returnMap.put("description", "反馈失败,offer信息有误,请联系相应HR确认");
|
|
|
|
|
return returnMap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(fkjg) && !"0".equals(fkjg)) {
|
|
|
|
|
returnMap.put("description", "您已成功反馈,请勿重复反馈。");
|
|
|
|
|
return returnMap;
|
|
|
|
|
}
|
|
|
|
|
if ("1".equals(status)) {
|
|
|
|
|
returnMap.put("type", "success");
|
|
|
|
|
returnMap.put("message", "已接受offer");
|
|
|
|
|
returnMap.put("description", "您已接受offer,期待您的加入,请按期准备报道,如有问题可以联系相应HR");
|
|
|
|
|
rs.executeUpdate("update uf_recruit_lytzs set fkjg = ? where modeuuid = ? ", status, uuid);
|
|
|
|
|
|
|
|
|
|
} else if ("2".equals(status)) {
|
|
|
|
|
returnMap.put("type", "info");
|
|
|
|
|
returnMap.put("message", "已拒绝offer");
|
|
|
|
|
returnMap.put("description", "您已拒绝offer,感谢您的应聘。希望您能够找到真正适合自己的工作。");
|
|
|
|
|
rs.executeUpdate("update uf_recruit_lytzs set fkjg = ? where modeuuid = ? ", status, uuid);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return returnMap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取配置的需要同步的字段集合
|
|
|
|
|
*
|
|
|
|
|