sql="select b.id,fieldname,detailtable from workflow_billfield b ,workflow_base a where b.billid=-"+formid+" and a.formid=b.billid and (detailtable='' or detailtable is null)";
}else{
sql="select b.id,fieldname,detailtable from workflow_billfield b ,workflow_base a where b.billid=-"+formid+" and a.formid=b.billid and detailtable='formtable_main_"+formid+"_dt"+num+"'";
// sql = "select b.id,fieldname,detailtable from workflow_billfield b ,workflow_base a where b.billid=-" + formid + " and a.formid=b.billid and (detailtable='' or detailtable is null)";
// } else {
// sql = "select b.id,fieldname,detailtable from workflow_billfield b ,workflow_base a where b.billid=-" + formid + " and a.formid=b.billid and detailtable='formtable_main_" + formid + "_dt" + num + "'";
sql="select id,fieldname,detailtable from workflow_billfield where billid=-"+formid+" and (detailtable='' or detailtable is null) and lower(fieldname)='"+name+"'";
}else{
sql="select id,fieldname,detailtable from workflow_billfield where billid=-"+formid+" and detailtable='formtable_main_"+formid+"_dt"+num+"' and lower(fieldname)='"+name+"'";
// sql = "select id,fieldname,detailtable from workflow_billfield where billid=-" + formid + " and (detailtable='' or detailtable is null) and lower(fieldname)='" + name + "'";
// } else {
// sql = "select id,fieldname,detailtable from workflow_billfield where billid=-" + formid + " and detailtable='formtable_main_" + formid + "_dt" + num + "' and lower(fieldname)='" + name + "'";
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
Stringsql="select name,field_id from field_option as workflow_selectItem where field_id ="+Util.getIntValue(id,0)+" and selectvalue = "+Util.getIntValue(val,0);
//TODO custom 已处理 int类型转string
Stringsql="select name,field_id from e10_core_business.dbo.field_option as workflow_selectItem where field_id ='"+id+"' and value_key= '"+val+"'";
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
recordSet.executeSql("select name,field_id,value_key from field_option as workflow_selectItem where field_id = "+Util.getIntValue(id,0)+" order by value_key",poolname_fi);
// // TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
// //TODO custom 已处理 int类型转string
// recordSet.executeSql("select name,field_id,value_key from e10_core_business.dbo.field_option as workflow_selectItem where field_id = '" + id + "' order by value_key", poolname_fi);
// while (recordSet.next()) {
// String name = Util.null2String(recordSet.getString("name"));
// String value = Util.null2String(recordSet.getString("value_key"));
// if (value.equals(val)) {
// str += "<option value='" + value + "' selected>" + name + "</option>";
// } else {
// str += "<option value='" + value + "'>" + name + "</option>";
@ -87,7 +87,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 requestId = ").append(requestid).toString();
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="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
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
" and nodeid = 29618";
Stringpoolname=CONN_TYPE.workflow.getType();
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
@ -100,7 +100,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 requestid = " +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 id = " +requestId+// 受理部门一级人员 测试环境-19916 正式环境-29619
" and nodeid = 29619";
Stringpoolname_dk=CONN_TYPE.workflow.getType();
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
@ -166,7 +166,7 @@ public class HTGD_MES_SC03Action extends BaseBean implements Action, EsbServerle
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
booleanb=rs.executeSql("update e10_core_business.dbo."+tablename+" set jbdtzzdksj='"+swdkjl+"',jbdtzwdksj='"+xwdkjl+"' where requestId=" +requestid,poolname_ux);
booleanb=rs.executeSql("update e10_core_business.dbo."+tablename+" set jbdtzzdksj='"+swdkjl+"',jbdtzwdksj='"+xwdkjl+"' where id=" +requestid,poolname_ux);
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
booleanb=rs.executeSql("update e10_core_business.dbo."+tablename+" set status='"+result[0]+"',message='"+result[1]+"' where requestId=" +requestid,poolname_9l);
booleanb=rs.executeSql("update e10_core_business.dbo."+tablename+" set status='"+result[0]+"',message='"+result[1]+"' where id=" +requestid,poolname_9l);
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
booleanb=recordSet.executeSql("select c.name from e10_common.dbo.wfp_base a "+"INNER JOIN e10_common.dbo.form_field b on a.formid=b.form_id "+"INNER JOIN field_option c on b.id=c.field_id "+"where b.fieldname='"+fieldname+"' and a.id="+workflowid+" and c.selectvalue="+selectvalue,poolname_p2);
@ -91,7 +91,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(seclevel) from employee as HrmResource where id in ("+sqr+") or id in ("+ccsxry+") ) where requestId = " +reid;
logsql="update e10_core_business.dbo."+tablename+" set aqjb = (select max(seclevel) from employee as HrmResource where id in ("+sqr+") or id in ("+ccsxry+") ) where id = " +reid;
@ -504,7 +504,7 @@ public class ZOA_SL_GWCC_Action extends BaseBean implements Action, EsbServerles
logUtil.setJkzt("1");
logUtil.insertLog();
str=Message;
Stringsql1="update e10_core_business.dbo."+tablename+" set message = isnull(cast(message as varchar(8000)),'') + '"+Message+"' where requestId = " +reid;
Stringsql1="update e10_core_business.dbo."+tablename+" set 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 requestId = " +reid;
Stringlogsql2="update e10_core_business.dbo."+tablename+" set status ='"+status+"', 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 requestId = " +reid;
Stringlogsql4="update e10_core_business.dbo."+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 requestId = " +reid;
Stringlogsql4="update "+tablename+" set status ='"+dTtrip[0]+"', message = isnull(cast(message as varchar(8000)),'') + '"+message+"' where id = " +reid;
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
Stringsql="select c.name from e10_common.dbo.wfp_base a "+"INNER JOIN e10_common.dbo.form_field b on a.formid=b.form_id "+"INNER JOIN e10_common.dbo.field_option c on b.id=c.field_id "+"where b.fieldname='"+fieldname+"' and a.id="+workflowid+" and c.selectvalue="+selectvalue;
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
Stringsql="select c.name from e10_common.dbo.wfp_base a "+"INNER JOIN e10_common.dbo.form_field b on a.formid=b.form_id "+"INNER JOIN e10_common.dbo.field_option c on b.id=c.field_id "+"where b.fieldname='"+fieldname+"' and a.id="+workflowid+" and c.selectvalue="+selectvalue;