入职管理 更新应聘者应聘阶段信息

This commit is contained in:
dxfeng 2023-10-07 10:26:59 +08:00
parent 36874763eb
commit b7c5156d0c
1 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,41 @@
package weaver.formmode.recruit.modeexpand.entrymanager;
import weaver.conn.RecordSet;
import weaver.formmode.customjavacode.AbstractModeExpandJavaCodeNew;
import weaver.general.Util;
import weaver.soa.workflow.request.RequestInfo;
import java.util.HashMap;
import java.util.Map;
/**
* @author:dxfeng
* @createTime: 2023/10/07
* @version: 1.0
*/
public class AddEntryModeExpand 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) {
String dqypjd = Util.null2String(param.get("dqypjd"));
String pcid = Util.null2String(param.get("pcid"));
RecordSet rs = new RecordSet();
// 更新应聘者当前应聘阶段
rs.executeUpdate("update uf_jcl_yppc set dqypjd = ? where id = ?", dqypjd, pcid);
}
}
} catch (Exception e) {
result.put("errmsg", "自定义出错信息");
result.put("flag", "false");
}
return result;
}
}