|
|
@ -1,16 +1,20 @@
|
|
|
|
package com.weaver.seconddev.njwebservice;
|
|
|
|
package com.weaver.seconddev.njwebservice;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.weaver.common.hrm.util.StringUtils;
|
|
|
|
import com.weaver.common.i18n.tool.util.I18nContextUtil;
|
|
|
|
import com.weaver.common.i18n.tool.util.I18nContextUtil;
|
|
|
|
import com.weaver.seconddev.njwebservice.entity.EasSpzfResponseInfo;
|
|
|
|
import com.weaver.seconddev.njwebservice.entity.EasSpzfResponseInfo;
|
|
|
|
import com.weaver.seconddev.njwebservice.entity.EasTzlhtSpzfRes;
|
|
|
|
import com.weaver.seconddev.njwebservice.entity.EasTzlhtSpzfRes;
|
|
|
|
import com.weaver.seconddev.njwebservice.entity.EasTzlhtSpzfResData;
|
|
|
|
import com.weaver.seconddev.njwebservice.entity.EasTzlhtSpzfResData;
|
|
|
|
import com.weaver.seconddev.njwebservice.util.SecondUtil;
|
|
|
|
import com.weaver.seconddev.njwebservice.util.SecondUtil;
|
|
|
|
|
|
|
|
import com.weaver.seconddev.njwebservice.util.WfUtil;
|
|
|
|
import com.weaver.verupgrade.conn.CONN_TYPE;
|
|
|
|
import com.weaver.verupgrade.conn.CONN_TYPE;
|
|
|
|
import com.weaver.verupgrade.conn.RecordSet;
|
|
|
|
import com.weaver.verupgrade.conn.RecordSet;
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @Author liang.cheng
|
|
|
|
* @Author liang.cheng
|
|
|
|
* @Date 2025/1/20 17:37
|
|
|
|
* @Date 2025/1/20 17:37
|
|
|
@ -52,6 +56,27 @@ public class EasTzlhtSpzfApplicationService {
|
|
|
|
res.setMessage("请求id为空!");
|
|
|
|
res.setMessage("请求id为空!");
|
|
|
|
return res;
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WfUtil wfUtil = new WfUtil();
|
|
|
|
|
|
|
|
Map<String, String> zhWfMap = wfUtil.getZhWfMapNoUser("t6kj9c07jr", workflowId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
workflowId = zhWfMap.get("workflowid");
|
|
|
|
|
|
|
|
log.error("转换后的流程ID:"+workflowId);
|
|
|
|
|
|
|
|
if(StringUtils.isEmpty(workflowId)) {
|
|
|
|
|
|
|
|
res.setIsTat("F");
|
|
|
|
|
|
|
|
res.setMessage("E10流程ID转换失败,请假查e10_common.dbo.uf_zhwfid_mt配置信息");
|
|
|
|
|
|
|
|
return res ;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String createTenantKey = zhWfMap.get("tenantKey");
|
|
|
|
|
|
|
|
if(StringUtils.isEmpty(createTenantKey)) {
|
|
|
|
|
|
|
|
res.setIsTat("F");
|
|
|
|
|
|
|
|
res.setMessage("E10获取流程对应租户失败,请假查e10_common.dbo.uf_zhwfid_mt配置信息");
|
|
|
|
|
|
|
|
return res;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String tablename = SecondUtil.getTableName(workflowId);
|
|
|
|
String tablename = SecondUtil.getTableName(workflowId);
|
|
|
|
log.error("tablename:"+tablename);
|
|
|
|
log.error("tablename:"+tablename);
|
|
|
|
String isYX = "0";
|
|
|
|
String isYX = "0";
|
|
|
|