Stringsql="SELECt (SELECT min(AttendanceDateTime) FROM `view_attendance` where AttendanceDate='"+mSJJB_ksrq_X+"' and UserNo='"+gh+"') as time1, "+" (SELECT max(AttendanceDateTime) FROM `view_attendance` where AttendanceDate='"+mSJJB_ksrq_X+"' and UserNo='"+gh+"') as time2";
Stringsql="SELECt (SELECT max(AttendanceDateTime) FROM `view_attendance` where AttendanceDate='"+mSJJB_ksrq_X+"' and UserNo='"+gh+"') as time1, "+" (SELECT min(AttendanceDateTime) FROM `view_attendance` where AttendanceDate='"+mSJJB_jsrq_x+"' and UserNo='"+gh+"') as time2";
// RecordSetDataSource rsds = new RecordSetDataSource("onecard");
Stringsql="SELECt (SELECT min(AttendanceDateTime) FROM `view_attendance` where AttendanceDate='"+jbrqx+"' and UserNo='"+gh+"' and AttendanceDateTime<'"+jbrq+" 12:00:00"+"') as time1, "+" (SELECT max(AttendanceDateTime) FROM `view_attendance` where AttendanceDate='"+jbrqx+"' and UserNo='"+gh+"' and AttendanceDateTime>'"+jbrq+" 12:00:00"+"') as time2";
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
rs1.executeSql(sql1,poolname);
booleanb=rs1.executeSql(sql1,poolname);
logger_f5224b91.info("b -----"+b);
}else{
str="SUCCESS";
hrstate="S";
@ -510,11 +517,13 @@ public class ZOA_SL_GWCC_Action extends BaseBean implements Action, EsbServerles
str=str.substring(0,150);
}
Stringsql="insert into chuchai_qingjia_log(requestId,gh,lbbh,kssj,jssj,message,state,qjss) values('"+reid+"','','A11','"+beginDateTime+"','"+endDateTime+"','"+str+"','"+hrstate+"','"+qjss+"')";
@ -759,20 +771,24 @@ public class ZOA_SL_GWCC_Action extends BaseBean implements Action, EsbServerles
sta=result[0];
message=result[1];
Stringsql_log="insert into sync_eas_log(requestId,lcbh,kssj,jssj,sqrq,ccmdd,gh,name,sxrgh,sxrxm,reason,title,sqbm,sqdw,status,message) "+"values('"+reid+"','"+sourceKey+"','"+kssj+"','"+jssj+"','"+sqrq+"','"+attribute8+"','"+applyEmpNum+"','"+applyerName+"','"+synergeticNumbers+"'"+",'"+synergeticNames+"','"+reason+"','"+title+"','"+attribute4+"','"+attribute5+"','"+sta+"','"+message+"')";
Stringsql_log="insert into sync_eas_log(requestId,lcbh,kssj,jssj,sqrq,ccmdd,gh,name,sxrgh,sxrxm,reason,title,sqbm,sqdw,status,message) "+"values('"+reid+"','"+sourceKey+"','"+kssj+"','"+jssj+"','"+sqrq+"','"+attribute8+"','"+applyEmpNum+"','"+applyerName+"','"+synergeticNumbers+"'"+",'"+synergeticNames+"','"+reason+"','"+title+"','"+attribute4+"','"+attribute5+"','"+sta+"','"+message+"')";
@ -63,11 +67,13 @@ public class ZSR_PUR_INFO_OEM_Action extends BaseBean implements Action, EsbServ
Stringstate="";
intmxcount=0;
Stringsql="select count(b.id) as mxcount from "+tablename+" a,"+tablename+"_dt1 b where a.id = b.mainid and a.requestId ="+requestid+" and isnull(sfbjsc,1)<>0";
logger_adc1e038.info("sql -----"+sql);
Stringpoolname=CONN_TYPE.workflow.getType();
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
rs.executeSql(sql,poolname);
if(rs.next()){
mxcount=rs.getInt("mxcount");
logger_adc1e038.info("mxcount -----"+mxcount);
}
if(mxcount>0){
intj=0;
@ -138,9 +144,11 @@ public class ZSR_PUR_INFO_OEM_Action extends BaseBean implements Action, EsbServ
}
BillFieldUtilutil=newBillFieldUtil();
sql="update "+tablename+" set state='"+state+"',message='"+sb.toString()+"' where requestid="+requestid;
logger_adc1e038.info("update sql -----"+sql);
Stringpoolname_d9=CONN_TYPE.workflow.getType();
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
@ -143,7 +147,7 @@ public class ZWZX_CG_FileUploadAction extends BaseBean implements Action, EsbSer
String[]docs=fileIds.split(",");
for(inti=0;i<docs.length;i++){
Stringdocid=docs[i];
Stringsql=" select b.filerealpath,b.iszip,b.name,b.imagefileid from "+" fileobj b where b.imagefileid in(select max(imagefileid) " +"from document_main_access as docimagefile where docid in(" +docid+") group by docid)";
Stringsql=" select b.filerealpath,b.iszip,b.name,b.imagefileid from "+" e10_common.dbo.fileobj b where b.imagefileid in(select max(imagefileid) " +"from e10_core_business.dbo.document_main_access as docimagefile where docid in(" +docid+") group by docid)";
Stringpoolname=CONN_TYPE.workflow.getType();
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
rs.executeSql(sql,poolname);
@ -167,6 +171,8 @@ public class ZWZX_CG_FileUploadAction extends BaseBean implements Action, EsbSer
@ -143,7 +147,8 @@ public class ZZ_GDFileUploadAction extends BaseBean implements Action, EsbServer
String[]docs=fileIds.split(",");
for(inti=0;i<docs.length;i++){
Stringdocid=docs[i];
Stringsql=" select b.filerealpath,b.iszip,b.name,b.imagefileid from "+" fileobj b where b.imagefileid in(select max(imagefileid) "+"from document_main_access as docimagefile where docid in("+docid+") group by docid)";
Stringsql=" select b.filerealpath,b.iszip,b.name,b.imagefileid from "+" e10_core_business.dbo.fileobj b where b.imagefileid in(select max(imagefileid) "+"from e10_core_business.dbo.document_main_access as docimagefile where docid in("+docid+") group by docid)";
logger_b14cb5d0.info("sql -----"+sql);
Stringpoolname=CONN_TYPE.workflow.getType();
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
rs.executeSql(sql,poolname);
@ -167,6 +172,8 @@ public class ZZ_GDFileUploadAction extends BaseBean implements Action, EsbServer
fileItem.put("fileName",imagefilename);
fileItem.put("fileContent",uploadBuffer);
fileItem.put("invoiceNo","");
logger_b14cb5d0.info("fileItem -----"+fileItem);
fileVOListArr.add(fileItem);
baos.close();
fi.close();
@ -289,9 +296,12 @@ public class ZZ_GDFileUploadAction extends BaseBean implements Action, EsbServer
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
recordSet.executeSql("select c.name from wfp_base a "+"INNER JOIN 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_48);
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;
@ -154,11 +157,13 @@ public class ZZ_Ten_GDFileUploadAction extends BaseBean implements Action, EsbSe
String[]docs=fileIds.split(",");
for(inti=0;i<docs.length;i++){
Stringdocid=docs[i];
Stringsql=" select b.filerealpath,b.iszip,b.name,b.imagefileid from "+" fileobj b where b.imagefileid in(select max(imagefileid) "+"from document_main_access as docimagefile where docid in("+docid+") group by docid)";
Stringsql=" select b.filerealpath,b.iszip,b.name,b.imagefileid from "+" e10_core_business.dbo.fileobj b where b.imagefileid in(select max(imagefileid) "+"from document_main_access as docimagefile where docid in("+docid+") group by docid)";
logger_8ab26152.info("sql -----"+sql);
Stringpoolname=CONN_TYPE.workflow.getType();
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
// TODO E10执行sql方法第二参数必须指定源,默认使用流程源,单体客户无需修改,微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源
recordSet.executeSql("select c.name from wfp_base a "+"INNER JOIN 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_w2);
Stringsql="select c.name from 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;