新增简历,重复简历校验

This commit is contained in:
dxfeng 2023-11-13 15:21:53 +08:00
parent c6998cf827
commit 70b3bad760
1 changed files with 0 additions and 52 deletions

View File

@ -1,52 +0,0 @@
package weaver.formmode.recruit.modeexpand.applicant;
import com.engine.recruit.conn.RecruitDataMap;
import com.engine.recruit.exception.CustomizeRunTimeException;
import weaver.formmode.customjavacode.AbstractModeExpandJavaCodeNew;
import weaver.general.Util;
import weaver.soa.workflow.request.MainTableInfo;
import weaver.soa.workflow.request.Property;
import weaver.soa.workflow.request.RequestInfo;
import java.util.HashMap;
import java.util.Map;
/**
* @author:dxfeng
* @createTime: 2023/11/13
* @version: 1.0
*/
public class AddApplicantModeExpand extends AbstractModeExpandJavaCodeNew {
@Override
public Map<String, String> doModeExpand(Map<String, Object> param) {
Map<String, String> result = new HashMap<>();
try {
int billId;
int modeId;
RequestInfo requestInfo = (RequestInfo) param.get("RequestInfo");
if (requestInfo != null) {
billId = Util.getIntValue(requestInfo.getRequestid());
modeId = Util.getIntValue(requestInfo.getWorkflowid());
if (billId > 0 && modeId > 0) {
Map<String, Object> dataMap = new RecruitDataMap<>();
MainTableInfo mainTableInfo = requestInfo.getMainTableInfo();
Property[] properties = mainTableInfo.getProperty();
for (Property property : properties) {
dataMap.put(property.getName(), property.getValue());
}
String name = Util.null2String(param.get("xm"));
String mobile = Util.null2String(param.get("sjhm"));
String status = Util.null2String(param.get("zt"));
String positionId = Util.null2String(param.get("ypzw"));
}else{
throw new CustomizeRunTimeException("新增失败");
}
}
} catch (Exception e) {
result.put("errmsg", "完成需求操作失败");
result.put("flag", "false");
}
return result;
}
}