@ -4,7 +4,12 @@ import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray ;
import com.alibaba.fastjson.JSONObject ;
import com.weaver.common.distribution.genid.IdGenerator ;
import com.weaver.common.hrm.util.HrmContextUtil ;
import com.weaver.ebuilder.form.client.ebform.data.EbFormDataDubboService ;
import com.weaver.framework.rpc.annotation.RpcReference ;
import com.weaver.seconddev.interfaces.prop.ConfigProp ;
import com.weaver.seconddev.interfaces.workflow.util.CommonDevUtil ;
import com.weaver.teams.domain.user.SimpleEmployee ;
import corp.openapicalls.contract.setapproval.request.PassengerDetail ;
import com.weaver.seconddev.interfaces.htjt.util.LogUtil ;
import com.weaver.seconddev.interfaces.htjt.util.WebApi ;
@ -65,6 +70,13 @@ public class ZOA_SL_GWCC_Action extends BaseBean implements Action, EsbServerles
@Autowired
private CallDTtripService dTtripService ;
@RpcReference ( group = "ebuilderform" )
private EbFormDataDubboService ebFormDataDubboService ;
@Autowired
private CommonDevUtil commonDevUtil ;
// @Autowired
// private CallSLServices callServices;
private static final Logger logger_f5224b91 = LoggerFactory . getLogger ( ZOA_SL_GWCC_Action . class ) ;
@ -74,7 +86,7 @@ public class ZOA_SL_GWCC_Action extends BaseBean implements Action, EsbServerles
Long requestIdTemp = Long . parseLong ( String . valueOf ( requestInfoMap . getOrDefault ( "requestid" , - 1 ) ) ) ;
Long userIdTemp = Long . parseLong ( String . valueOf ( requestInfoMap . getOrDefault ( "userid" , - 1 ) ) ) ;
RequestInfo request = requestInfoTemp . getRequestInfo ( requestIdTemp , userIdTemp ) ;
SimpleEmployee currentEmployee = HrmContextUtil . getCurrentUser ( ) ;
logger_f5224b91 . info ( "----- workflow_action_ZOA_SL_GWCC_Action new -----" ) ;
logger_f5224b91 . info ( "requestIdTemp -----" + requestIdTemp ) ;
@ -768,26 +780,31 @@ public class ZOA_SL_GWCC_Action extends BaseBean implements Action, EsbServerles
String [ ] result = callTravelApply . call ( ) ;
sta = result [ 0 ] ;
message = result [ 1 ] ;
String sql_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 + "')" ;
logger_f5224b91 . info ( String . valueOf ( "sql_log===" + sql_log ) ) ;
String poolname_05 = CONN_TYPE . workflow . getType ( ) ;
/ * * TODO 检 测 到 insert 语 句 - > E9 插 入 sql 迁 移 到 E10 需 要 特 殊 处 理 请 参 考 文 档 进 行 调 整 https : //www.e-cology.com.cn/sp/doc/docShare/1027709301045985331?tenantKey=t7akvdnf84
TODO E10 执 行 sql 方 法 第 二 参 数 必 须 指 定 源 , 默 认 使 用 流 程 源 , 单 体 客 户 无 需 修 改 , 微 服 务 / 组 合 客 户 需 根 据 查 询 表 所 属 服 务 切 换 源 , 或 使 用 外 部 数 据 源 * /
generate = IdGenerator . generate ( ) ;
boolean b1 = rs1 . executeSql ( sql_log , poolname_05 , generate ) ;
logger_f5224b91 . info ( String . valueOf ( "b1===" + b1 ) ) ;
// String sql_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 + "')";
// logger_f5224b91.info(String.valueOf( "sql_log===" + sql_log));
// String poolname_05 = CONN_TYPE.workflow.getType();
// /* *TODO 检测到insert语句 -> E9插入sql迁移到E10需要特殊处理请参考文档进行调整 https://www.e-cology.com.cn/sp/doc/docShare/1027709301045985331?tenantKey=t7akvdnf84
// TODO E10执行sql方法第二参数必须指定源, 默认使用流程源, 单体客户无需修改, 微服务/组合客户需根据查询表所属服务切换源,或使用外部数据源*/
// generate = IdGenerator.generate();
// boolean b1 = rs1.executeSql(sql_log, poolname_05, generate);
// Long uf_CustomFlow_formId = commonDevUtil.getObjId("sync_eas_log");
// logger_f5224b91.info("uf_CustomFlow_formId = " + uf_CustomFlow_formId);
// Long recodId = ebFormDataDubboService.addEmptyData(uf_CustomFlow_formId, currentEmployee);// 获取插入的空的建模id
// String sql_log = "update e10_common.dbo.sync_eas_log set requestId = '"+reid+"',lcbh='"+sourceKey+"',kssj='"+kssj+"',jssj='"+jssj+"',sqrq='"+sqrq+"',ccmdd='"+attribute8+"',gh='"+applyEmpNum+"',name='"+applyerName+"',sxrgh='"+synergeticNumbers+"',sxrxm='"+synergeticNames+"',reason='"+reason+"',title='"+title+"',sqbm='"+attribute4+"',sqdw='"+attribute5+"',status='"+sta+"',message='"+message+"' where id = " + recodId + " and delete_type = 0 ";
// String poolname_05 = CONN_TYPE.workflow.getType();
// boolean b1 = rs.executeSql(sql_log, poolname_05);
// logger_f5224b91.info(String.valueOf( "b1===" + b1));
logger_f5224b91 . info ( String . valueOf ( reid + "同步数据到EAS完成" ) ) ;
} catch ( Exception e ) {
message = e . getMessage ( ) ;
String sql_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 + "')" ;
logger_f5224b91 . info ( String . valueOf ( "sql_log===" + sql_log ) ) ;
String poolname_ni = CONN_TYPE . workflow . getType ( ) ;
/ * * TODO 检 测 到 insert 语 句 - > E9 插 入 sql 迁 移 到 E10 需 要 特 殊 处 理 请 参 考 文 档 进 行 调 整 https : //www.e-cology.com.cn/sp/doc/docShare/1027709301045985331?tenantKey=t7akvdnf84
TODO E10 执 行 sql 方 法 第 二 参 数 必 须 指 定 源 , 默 认 使 用 流 程 源 , 单 体 客 户 无 需 修 改 , 微 服 务 / 组 合 客 户 需 根 据 查 询 表 所 属 服 务 切 换 源 , 或 使 用 外 部 数 据 源 * /
generate = IdGenerator . generate ( ) ;
boolean b1 = rs1 . executeSql ( sql_log , poolname_ni , generate ) ;
logger_f5224b91 . info ( String . valueOf ( "b1===" + b1 ) ) ;
logger_f5224b91 . info ( String . valueOf ( reid + "同步数据到EAS异常:" + e . toString ( ) ) ) ;
// Long uf_CustomFlow_formId = commonDevUtil.getObjId("sync_eas_log");
// logger_f5224b91.info("uf_CustomFlow_formId = " + uf_CustomFlow_formId);
// Long recodId = ebFormDataDubboService.addEmptyData(uf_CustomFlow_formId, currentEmployee);// 获取插入的空的建模id
// String sql_log = "update e10_common.dbo.sync_eas_log set requestId = '"+reid+"',lcbh='"+sourceKey+"',kssj='"+kssj+"',jssj='"+jssj+"',sqrq='"+sqrq+"',ccmdd='"+attribute8+"',gh='"+applyEmpNum+"',name='"+applyerName+"',sxrgh='"+synergeticNumbers+"',sxrxm='"+synergeticNames+"',reason='"+reason+"',title='"+title+"',sqbm='"+attribute4+"',sqdw='"+attribute5+"',status='"+sta+"',message='"+message+"' where id = " + recodId + " and delete_type = 0 ";
// String poolname_05 = CONN_TYPE.workflow.getType();
// boolean b1 = rs.executeSql(sql_log, poolname_05);
// logger_f5224b91.info(String.valueOf( "b1===" + b1));
logger_f5224b91 . info ( reid + "同步数据到EAS异常:" , e ) ;
}
} catch ( Exception e ) {
logger_f5224b91 . info ( String . valueOf ( reid + "Exception:" + e . toString ( ) ) ) ;