#xinfengYin-08# SY-hr05-用工需求申请流程-03

ht
xinfengYin 2 months ago
parent f6649e7234
commit f22ad3263d

@ -121,7 +121,9 @@ public class OaSrmVendorAdmitAction extends BaseBean implements Action, EsbServe
// 现有合格供应商 // 现有合格供应商
String xyhggys = String.valueOf(map.get("XYHGGYSMC")); String xyhggys = String.valueOf(map.get("XYHGGYSMC"));
VdDlvApplyHandlerServiceServiceStub.DlvApplyIn dlvapplyin = new VdDlvApplyHandlerServiceServiceStub.DlvApplyIn(); VdDlvApplyHandlerServiceServiceStub.DlvApplyIn dlvapplyin = new VdDlvApplyHandlerServiceServiceStub.DlvApplyIn();
logger_9af84826.error("setRequestId ========start=============");
dlvapplyin.setRequestId(Integer.parseInt(getFormno(requestid))); dlvapplyin.setRequestId(Integer.parseInt(getFormno(requestid)));
logger_9af84826.error("setRequestId =========end============");
dlvapplyin.setApplyNo(lcbh); dlvapplyin.setApplyNo(lcbh);
dlvapplyin.setCompanyCode(sqdwbm); dlvapplyin.setCompanyCode(sqdwbm);
dlvapplyin.setCompanyName(sqdw); dlvapplyin.setCompanyName(sqdw);
@ -143,11 +145,11 @@ public class OaSrmVendorAdmitAction extends BaseBean implements Action, EsbServe
dlvapplyin.setVendorType(gyslxmc); dlvapplyin.setVendorType(gyslxmc);
int dtcount = 0; int dtcount = 0;
String sql = "select b.* from e10_core_business.dbo." + tablename + " a,e10_core_business.dbo." + tablename + "_dt3 b where a.form_data_id=b.form_data_id and a.id=" + requestid; String sql = "select b.* from e10_core_business.dbo." + tablename + " a,e10_core_business.dbo." + tablename + "_dt3 b where a.form_data_id=b.form_data_id and a.id=" + requestid;
logger_9af84826.error("sql-->" + sql); logger_9af84826.error("OaSrmVendorAdmitAction sql-->" + sql);
String poolname = CONN_TYPE.workflow.getType(); String poolname = CONN_TYPE.workflow.getType();
// TODO E10执行sql方法第二参数必须指定源默认使用流程源单体客户无需修改微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源 // TODO E10执行sql方法第二参数必须指定源默认使用流程源单体客户无需修改微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
boolean b = rs.executeSql(sql, poolname); boolean b = rs.executeSql(sql, poolname);
logger_9af84826.error("b-->" + b); logger_9af84826.error("OaSrmVendorAdmitAction b-->" + b);
dtcount = rs.getCounts(); dtcount = rs.getCounts();
if (dtcount > 0) { if (dtcount > 0) {
int index = 0; int index = 0;
@ -193,7 +195,7 @@ public class OaSrmVendorAdmitAction extends BaseBean implements Action, EsbServe
} }
} }
public String getFormno(String requestid){ public String getFormno(String requestid){
String formno = ""; String formno = "";
if(requestid.length()>8){ if(requestid.length()>8){
formno = "1"+requestid.substring(requestid.length()-8); formno = "1"+requestid.substring(requestid.length()-8);
@ -217,4 +219,9 @@ public class OaSrmVendorAdmitAction extends BaseBean implements Action, EsbServe
} }
return map; return map;
} }
// public static void main(String[] args) {
// String cs = "1104617940341235715";
// System.out.println(Integer.parseInt(getFormno(cs)));
// }
} }

Loading…
Cancel
Save