@ -87,7 +91,7 @@ public class DeleteSapGuidAction extends BaseBean implements Action, EsbServerle
Stringstate=result[0];
Stringmessage=result[1];
// 把返回的值存到流程中
Stringsql=(newStringBuilder()).append("update e10_core_business.dbo.").append(tablename).append(" set sta ='").append(state).append("', meg = '").append(message).append("' where id = ").append(requestid).toString();
Stringsql=(newStringBuilder()).append("update e10_core_business.dbo.").append(tablename).append(" set sta ='").append(state).append("', meg = '").append(message).append("' where FORM_DATA_ID = ").append(dataid).toString();
Stringsql="select operatedatetime,operatetime,b.username from e10_core_business.dbo.wfc_requestlog a "+"INNER JOIN employee b on a.creator = b.id "+"where id = " +requestId+// 申请部门一级人员 测试环境-19915 正式环境-29618
Stringsql="select operatedatetime,operatetime,b.username from e10_core_business.dbo.wfc_requestlog a "+"INNER JOIN employee b on a.creator = b.id "+"where requestid = " +requestId+// 申请部门一级人员 测试环境-19915 正式环境-29618
" and nodeid = 29618";
Stringpoolname=CONN_TYPE.workflow.getType();
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
@ -100,7 +103,7 @@ public class HTGD_MES_SC03Action extends BaseBean implements Action, EsbServerle
mjson.put("sqbmyj",sqbmyj);
}
// 获取受理部门审核记录
Stringsql_slbm="select operatedatetime,operatetime,b.username from e10_core_business.dbo.wfc_requestlog a "+"INNER JOIN employee b on a.creator = b.id "+"where id = " +requestId+// 受理部门一级人员 测试环境-19916 正式环境-29619
Stringsql_slbm="select operatedatetime,operatetime,b.username from e10_core_business.dbo.wfc_requestlog a "+"INNER JOIN employee b on a.creator = b.id "+"where requestid = " +requestId+// 受理部门一级人员 测试环境-19916 正式环境-29619
" and nodeid = 29619";
Stringpoolname_dk=CONN_TYPE.workflow.getType();
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
@ -166,7 +169,7 @@ public class HTGD_MES_SC03Action extends BaseBean implements Action, EsbServerle
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
booleanb=rs.executeSql("update e10_core_business.dbo."+tablename+" set state='"+ret[0]+"',message='"+ret[1]+"' where id=" +requestId,poolname);
booleanb=rs.executeSql("update e10_core_business.dbo."+tablename+" set state='"+ret[0]+"',message='"+ret[1]+"' where FORM_DATA_ID = " +dataid,poolname);
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
booleanb=rs.executeSql("update e10_core_business.dbo."+tablename+" set status='"+result[0]+"',message='"+result[1]+"' where id=" +requestid,poolname_9l);
booleanb=rs.executeSql("update e10_core_business.dbo."+tablename+" set status='"+result[0]+"',message='"+result[1]+"' where FORM_DATA_ID = " +dataid,poolname_9l);
Stringsql="select b.* from e10_core_business.dbo."+tablename+" a,e10_core_business.dbo."+detailTablename3+" b where a.form_data_id=b.form_data_id and a.id=" +requestid;
Stringsql="select b.* from e10_core_business.dbo."+tablename+" a,e10_core_business.dbo."+detailTablename3+" b where a.form_data_id=b.form_data_id and a.FORM_DATA_ID = " +dataid;
@ -191,7 +192,7 @@ public class OaSrmVendorCheckAction extends BaseBean implements Action, EsbServe
dlvapplyin.setInspectFlag(xcsh);
dlvapplyin.setVendorType(gyslxmc);
intdtcount=0;
Stringsql="select b.* from e10_core_business.dbo."+tablename+" a,e10_core_business.dbo."+detailTablename3+" b where a.form_data_id=b.form_data_id and a.id=" +requestid;
Stringsql="select b.* from e10_core_business.dbo."+tablename+" a,e10_core_business.dbo."+detailTablename3+" b where a.form_data_id=b.form_data_id and a.FORM_DATA_ID = " +dataid;
Stringpoolname_6g=CONN_TYPE.workflow.getType();
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
booleanb=rs.executeSql(sql,poolname_6g);
@ -249,7 +250,7 @@ public class OaSrmVendorCheckAction extends BaseBean implements Action, EsbServe
oainputvendor.setShzt("1");
if(val.equals("0")){
intdtcount=0;
Stringsql="select b.* from e10_core_business.dbo."+tablename+" a,e10_core_business.dbo."+detailTablename3+" b where a.form_data_id=b.form_data_id and a.id=" +requestid;
Stringsql="select b.* from e10_core_business.dbo."+tablename+" a,e10_core_business.dbo."+detailTablename3+" b where a.form_data_id=b.form_data_id and a.FORM_DATA_ID = " +dataid;
Stringpoolname=CONN_TYPE.workflow.getType();
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
booleanb=rs.executeSql(sql,poolname);
@ -302,7 +303,7 @@ public class OaSrmVendorCheckAction extends BaseBean implements Action, EsbServe
List<String>list=newArrayList<String>();
StringBuildersb=newStringBuilder();
intdtcount=0;
Stringsql="select distinct wlh from e10_core_business.dbo."+tablename+" a,e10_core_business.dbo."+detailTablename2+" b where a.form_data_id=b.form_data_id and a.id=" +requestid;
Stringsql="select distinct wlh from e10_core_business.dbo."+tablename+" a,e10_core_business.dbo."+detailTablename2+" b where a.form_data_id=b.form_data_id and a.FORM_DATA_ID = " +dataid;
logger_a864d799.error("sql-->"+sql);
Stringpoolname_4c=CONN_TYPE.workflow.getType();
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
Stringsql="select b.* from e10_core_business.dbo."+tablename+" a,e10_core_business.dbo."+detailTablename3+" b where a.form_data_id=b.form_data_id and a.id=" +requestid;
Stringsql="select b.* from e10_core_business.dbo."+tablename+" a,e10_core_business.dbo."+detailTablename3+" b where a.form_data_id=b.form_data_id and a.FORM_DATA_ID = " +dataid;
logger_a5e612ac.error("sql-->"+sql);
Stringpoolname=CONN_TYPE.workflow.getType();
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
@ -242,7 +243,7 @@ public class OaSrmVendorReapplyAction extends BaseBean implements Action, EsbSer
// 当前明细表的所有数据,按行存储
Row[]sq=dtq.getRow();
intdtcount=0;
Stringsql="select distinct wlh from e10_core_business.dbo."+tablename+" a,e10_core_business.dbo."+detailTablename2+" b where a.form_data_id=b.form_data_id and a.id=" +requestid;
Stringsql="select distinct wlh from e10_core_business.dbo."+tablename+" a,e10_core_business.dbo."+detailTablename2+" b where a.form_data_id=b.form_data_id and a.FORM_DATA_ID = " +dataid;
logger_a5e612ac.error("sql-->"+sql);
Stringpoolname_uh=CONN_TYPE.workflow.getType();
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
Stringsql="select b.* from e10_core_business.dbo."+tablename+" a,e10_core_business.dbo."+detailTablename3+" b where a.form_data_id=b.form_data_id and a.id=" +requestid;
Stringsql="select b.* from e10_core_business.dbo."+tablename+" a,e10_core_business.dbo."+detailTablename3+" b where a.form_data_id=b.form_data_id and a.FORM_DATA_ID = " +dataid;
Stringsql="select distinct wlh from e10_core_business.dbo."+tablename+" a,e10_core_business.dbo."+detailTablename+" b where a.form_data_id=b.form_data_id and a.id =" +requestid;
Stringsql="select distinct wlh from e10_core_business.dbo."+tablename+" a,e10_core_business.dbo."+detailTablename+" b where a.form_data_id=b.form_data_id and a.FORM_DATA_ID = " +dataid;
logger_41a64316.error("sql-->"+sql);
Stringpoolname_wk=CONN_TYPE.workflow.getType();
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
sql="update e10_core_business.dbo."+detailTablename+" set tbzt=1 where ckbm in ("+str[3].substring(0,str[3].length()-1)+") and form_data_id =(select form_data_id from e10_core_business.dbo." +tablename+" where id="+requestid+")";
sql="update e10_core_business.dbo."+detailTablename+" set tbzt=1 where ckbm in ("+str[3].substring(0,str[3].length()-1)+") and form_data_id =" +dataid;
logger_1a36f94a.error("sql--"+sql);
Stringpoolname=CONN_TYPE.workflow.getType();
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
@ -163,7 +164,7 @@ public class TransferBillToK3Action extends BaseBean implements Action, EsbServe
sql="update e10_core_business.dbo."+detailTablename+" set tbzt=0 where ckbm in ("+str[2].substring(0,str[2].length()-1)+") and form_data_id =(select form_data_id from e10_core_business.dbo." +tablename+" where id="+requestid+")";
sql="update e10_core_business.dbo."+detailTablename+" set tbzt=0 where ckbm in ("+str[2].substring(0,str[2].length()-1)+") and form_data_id =" +dataid;
logger_1a36f94a.error("sql--"+sql);
Stringpoolname_ji=CONN_TYPE.workflow.getType();
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
@ -172,7 +173,7 @@ public class TransferBillToK3Action extends BaseBean implements Action, EsbServe
sql="update e10_core_business.dbo."+detailTablename+" set tbzt=0 where (tbzt is null or tbzt !=1) and form_data_id =(select form_data_id from e10_core_business.dbo." +tablename+" where id="+requestid+")";
sql="update e10_core_business.dbo."+detailTablename+" set tbzt=0 where (tbzt is null or tbzt !=1) and form_data_id =" +dataid;
logger_1a36f94a.error("sql--"+sql);
Stringpoolname_19=CONN_TYPE.workflow.getType();
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
@ -190,7 +191,7 @@ public class TransferBillToK3Action extends BaseBean implements Action, EsbServe
}
Stringpoolname_sn=CONN_TYPE.workflow.getType();
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
booleanb=rs.executeSql("update e10_core_business.dbo."+tablename+" set message=isnull(message,'')+'"+message+"' where id =" +requestid,poolname_sn);
booleanb=rs.executeSql("update e10_core_business.dbo."+tablename+" set message=isnull(message,'')+'"+message+"' where FORM_DATA_ID = " +dataid,poolname_sn);
Stringsql2=(newStringBuilder()).append("update e10_core_business.dbo.").append(tablename).append(" set sta ='").append(state).append("', meg = '").append(message).append("' where id = ").append(requestid).toString();
Stringsql2=(newStringBuilder()).append("update e10_core_business.dbo.").append(tablename).append(" set sta ='").append(state).append("', meg = '").append(message).append("' where FORM_DATA_ID = ").append(dataid).toString();
@ -91,7 +95,7 @@ public class ZOA_CCSQ_AQJB_Action extends BaseBean implements Action, EsbServerl
sqr="0";
}
if(!tablename.equals("")){
logsql="update e10_core_business.dbo."+tablename+" set aqjb = (select max(sec_level) from eteams.dbo.employee as HrmResource where id in ("+sqr+") or id in ("+ccsxry+") ) where id = " +reid;
logsql="update e10_core_business.dbo."+tablename+" set aqjb = (select max(sec_level) from eteams.dbo.employee as HrmResource where id in ("+sqr+") or id in ("+ccsxry+") ) where FORM_DATA_ID = " +dataid;
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
Stringsql="update e10_core_business.dbo."+tablename+" set state='"+ret[0][0]+"',message='"+ret[0][1]+"',nbddh=isnull('"+ret[0][2]+"','') where id=" +requestid;
Stringsql="update e10_core_business.dbo."+tablename+" set state='"+ret[0][0]+"',message='"+ret[0][1]+"',nbddh=isnull('"+ret[0][2]+"','') where FORM_DATA_ID = " +dataid;
Stringlogsql2="update e10_core_business.dbo."+tablename+" set status ='"+status+"', message = isnull(cast(message as varchar(8000)),'') + '"+message+"' where id = " +reid;
Stringlogsql2="update e10_core_business.dbo."+tablename+" set status ='"+status+"', message = isnull(cast(message as varchar(8000)),'') + '"+message+"' where FORM_DATA_ID = " +dataid;
Stringlogsql2="update e10_core_business.dbo."+tablename+" set status ='"+status+"', message = isnull(cast(message as varchar(8000)),'') + '"+message+"' where id = " +reid;
Stringlogsql2="update e10_core_business.dbo."+tablename+" set status ='"+status+"', message = isnull(cast(message as varchar(8000)),'') + '"+message+"' where FORM_DATA_ID = " +dataid;
Stringlogsql4="update e10_core_business.dbo."+tablename+" set status ='"+dTtrip[0]+"', message = isnull(cast(message as varchar(8000)),'') + '"+message+"' where id = " +reid;
Stringlogsql4="update e10_core_business.dbo."+tablename+" set status ='"+dTtrip[0]+"', message = isnull(cast(message as varchar(8000)),'') + '"+message+"' where FORM_DATA_ID = " +dataid;
Stringlogsql2="update e10_core_business.dbo."+tablename+" set status ='"+status+"', message = isnull(cast(message as varchar(8000)),'') + '"+message+"' where id = " +reid;
Stringlogsql2="update e10_core_business.dbo."+tablename+" set status ='"+status+"', message = isnull(cast(message as varchar(8000)),'') + '"+message+"' where FORM_DATA_ID = " +dataid;
Stringlogsql4="update e10_core_business.dbo."+tablename+" set status ='"+dTtrip[0]+"', message = isnull(cast(message as varchar(8000)),'') + '"+message+"' where id = " +reid;
Stringlogsql4="update e10_core_business.dbo."+tablename+" set status ='"+dTtrip[0]+"', message = isnull(cast(message as varchar(8000)),'') + '"+message+"' where FORM_DATA_ID = " +dataid;
Stringsql1="update e10_core_business.dbo."+tablename+" set message = isnull(cast(message as varchar(8000)),'') + '"+Message+"' where id = " +reid;
Stringsql1="update e10_core_business.dbo."+tablename+" set message = isnull(cast(message as varchar(8000)),'') + '"+Message+"' where FORM_DATA_ID = " +dataid;
Stringlogsql2="update e10_core_business.dbo."+tablename+" set status ='"+status+"', message = isnull(cast(message as varchar(8000)),'') + '"+message+"' where id = " +reid;
Stringlogsql2="update e10_core_business.dbo."+tablename+" set status ='"+status+"', message = isnull(cast(message as varchar(8000)),'') + '"+message+"' where FORM_DATA_ID = " +dataid;
Stringlogsql4="update e10_core_business.dbo."+tablename+" set status ='"+dTtrip[0]+"', message = isnull(cast(message as varchar(8000)),'') + '"+message+"' where id = " +reid;
Stringlogsql4="update e10_core_business.dbo."+tablename+" set status ='"+dTtrip[0]+"', message = isnull(cast(message as varchar(8000)),'') + '"+message+"' where FORM_DATA_ID = " +dataid;
Stringlogsql2="update e10_core_business.dbo."+tablename+" set status ='"+status+"', message = isnull(cast(message as varchar(8000)),'') + '"+message+"' where id = " +reid;
Stringlogsql2="update e10_core_business.dbo."+tablename+" set status ='"+status+"', message = isnull(cast(message as varchar(8000)),'') + '"+message+"' where FORM_DATA_ID = " +dataid;
Stringlogsql4="update "+tablename+" set status ='"+dTtrip[0]+"', message = isnull(cast(message as varchar(8000)),'') + '"+message+"' where id = " +reid;
Stringlogsql4="update "+tablename+" set status ='"+dTtrip[0]+"', message = isnull(cast(message as varchar(8000)),'') + '"+message+"' where FORM_DATA_ID = " +dataid;
Stringsql="select count(b.id) as mxcount from e10_core_business.dbo."+tablename+" a,e10_core_business.dbo."+detailTablename+" b where a.form_data_id = b.form_data_id and a.id =" +requestid +" and isnull(sfbjsc,1)<>0";
Stringsql="select count(b.id) as mxcount from e10_core_business.dbo."+tablename+" a,e10_core_business.dbo."+detailTablename+" b where a.form_data_id = b.form_data_id and a.FORM_DATA_ID =" +dataid +" and isnull(sfbjsc,1)<>0";
logger_adc1e038.error("sql -----"+sql);
Stringpoolname=CONN_TYPE.workflow.getType();
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
@ -150,7 +152,7 @@ public class ZSR_PUR_INFO_OEM_Action extends BaseBean implements Action, EsbServ
sb.append("信息记录新增结果:"+ret[1]);
}
BillFieldUtilutil=newBillFieldUtil();
sql="update e10_core_business.dbo."+tablename+" set state='"+state+"',message='"+sb.toString()+"' where id =" +requestid;
sql="update e10_core_business.dbo."+tablename+" set state='"+state+"',message='"+sb.toString()+"' where FORM_DATA_ID = " +dataid;
logger_adc1e038.error("update sql -----"+sql);
Stringpoolname_d9=CONN_TYPE.workflow.getType();
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源