1、相关方端新增打回打回信息

2、修改审批流程bug
limingyu-20240401-app登录曹实业判断修改
liujun 2024-03-19 17:37:37 +08:00
parent 7c9e441b84
commit a7d4a94372
17 changed files with 71 additions and 4 deletions

View File

@ -143,6 +143,17 @@ public class XgfUserController extends BaseController {
return response; return response;
} }
@RequestMapping(value = "/getWorkTask")
@ResponseBody
public Object getWorkTask() throws Exception{
PageData request = this.getPageData();
PageData response = new PageData();
response.put("result", "success");
response.put("list",xgfUserService.getWorkTask(request));
return response;
}
/** /**
* *
*/ */

View File

@ -70,6 +70,7 @@ public class GuFenCharge extends NodeSwitchComponent {
flows.put("APPOINT_ZERO_TIME", DateUtil.getTime()); flows.put("APPOINT_ZERO_TIME", DateUtil.getTime());
flows.put("APPOINT_ZERO_STATUS", info.getSTATUS()); flows.put("APPOINT_ZERO_STATUS", info.getSTATUS());
flows.put("APPOINT_ZERO_OPINION", info.getOPINION()); flows.put("APPOINT_ZERO_OPINION", info.getOPINION());
flows.put("OPINION",info.getOPINION());
if ("0".equals(info.getSTATUS())) { if ("0".equals(info.getSTATUS())) {
// 打回至相关方端 // 打回至相关方端
xgfUserService.repulse(flows); xgfUserService.repulse(flows);

View File

@ -61,6 +61,7 @@ public class GuFenSupervise extends NodeComponent {
flows.put("APPOINT_ONE_TIME", DateUtil.getTime()); flows.put("APPOINT_ONE_TIME", DateUtil.getTime());
flows.put("APPOINT_ONE_STATUS", info.getSTATUS()); flows.put("APPOINT_ONE_STATUS", info.getSTATUS());
flows.put("APPOINT_ONE_OPINION", info.getOPINION()); flows.put("APPOINT_ONE_OPINION", info.getOPINION());
flows.put("OPINION",info.getOPINION());
if ("0".equals(info.getSTATUS())) { if ("0".equals(info.getSTATUS())) {
// 打回至相关方端 // 打回至相关方端
xgfUserService.repulse(flows); xgfUserService.repulse(flows);

View File

@ -67,6 +67,7 @@ public class GuFenWeiTuoCharge extends NodeComponent {
flows.put("APPOINT_ONE_TIME", DateUtil.getTime()); flows.put("APPOINT_ONE_TIME", DateUtil.getTime());
flows.put("APPOINT_ONE_STATUS", info.getSTATUS()); flows.put("APPOINT_ONE_STATUS", info.getSTATUS());
flows.put("APPOINT_ONE_OPINION", info.getOPINION()); flows.put("APPOINT_ONE_OPINION", info.getOPINION());
flows.put("OPINION",info.getOPINION());
if ("0".equals(info.getSTATUS())) { if ("0".equals(info.getSTATUS())) {
// 打回至相关方端 // 打回至相关方端

View File

@ -66,6 +66,7 @@ public class GuFenWeiTuoSupervise extends NodeComponent {
flows.put("APPOINT_TWO_TIME", DateUtil.getTime()); flows.put("APPOINT_TWO_TIME", DateUtil.getTime());
flows.put("APPOINT_TWO_STATUS", info.getSTATUS()); flows.put("APPOINT_TWO_STATUS", info.getSTATUS());
flows.put("APPOINT_TWO_OPINION", info.getOPINION()); flows.put("APPOINT_TWO_OPINION", info.getOPINION());
flows.put("OPINION",info.getOPINION());
if ("0".equals(info.getSTATUS())) { if ("0".equals(info.getSTATUS())) {
// 打回至相关方端 // 打回至相关方端
xgfUserService.repulse(flows); xgfUserService.repulse(flows);

View File

@ -15,13 +15,13 @@ public class InitCompany extends NodeSwitchComponent {
// 0-一般单位处理流程 // 0-一般单位处理流程
// 1-集团单位处理流程 // 1-集团单位处理流程
// 2-股份端单位处理流程 // 2-股份端单位处理流程
if ("0".equals(info.getFLOWS_STEP())) { if ("0".equals(info.getFLOWS_TYPE())) {
return "YiBan"; return "YiBan";
} }
if ("1".equals(info.getFLOWS_STEP())){ if ("1".equals(info.getFLOWS_TYPE())){
return "JiTuan"; return "JiTuan";
} }
if ("2".equals(info.getFLOWS_STEP())){ if ("2".equals(info.getFLOWS_TYPE())){
return "GuFen"; return "GuFen";
} }
throw new RuntimeException("系统异常,请联系管理员"); throw new RuntimeException("系统异常,请联系管理员");

View File

@ -73,6 +73,7 @@ public class JiTuanCharge extends NodeSwitchComponent {
flows.put("APPOINT_ONE_TIME", DateUtil.getTime()); flows.put("APPOINT_ONE_TIME", DateUtil.getTime());
flows.put("APPOINT_ONE_STATUS", info.getSTATUS()); flows.put("APPOINT_ONE_STATUS", info.getSTATUS());
flows.put("APPOINT_ONE_OPINION", info.getOPINION()); flows.put("APPOINT_ONE_OPINION", info.getOPINION());
flows.put("OPINION",info.getOPINION());
if ("0".equals(info.getSTATUS())) { if ("0".equals(info.getSTATUS())) {
// 打回至相关方端 // 打回至相关方端
xgfUserService.repulse(flows); xgfUserService.repulse(flows);

View File

@ -60,6 +60,7 @@ public class JiTuanSupervise extends NodeComponent {
flows.put("APPOINT_TWO_TIME", DateUtil.getTime()); flows.put("APPOINT_TWO_TIME", DateUtil.getTime());
flows.put("APPOINT_TWO_STATUS", info.getSTATUS()); flows.put("APPOINT_TWO_STATUS", info.getSTATUS());
flows.put("APPOINT_TWO_OPINION", info.getOPINION()); flows.put("APPOINT_TWO_OPINION", info.getOPINION());
flows.put("OPINION",info.getOPINION());
if ("0".equals(info.getSTATUS())) { if ("0".equals(info.getSTATUS())) {
// 打回至相关方端 // 打回至相关方端
xgfUserService.repulse(flows); xgfUserService.repulse(flows);

View File

@ -65,6 +65,7 @@ public class JiTuanWeiTuoCharge extends NodeComponent {
flows.put("APPOINT_TWO_TIME", DateUtil.getTime()); flows.put("APPOINT_TWO_TIME", DateUtil.getTime());
flows.put("APPOINT_TWO_STATUS", info.getSTATUS()); flows.put("APPOINT_TWO_STATUS", info.getSTATUS());
flows.put("APPOINT_TWO_OPINION", info.getOPINION()); flows.put("APPOINT_TWO_OPINION", info.getOPINION());
flows.put("OPINION",info.getOPINION());
if ("0".equals(info.getSTATUS())) { if ("0".equals(info.getSTATUS())) {
// 打回至相关方端 // 打回至相关方端

View File

@ -65,6 +65,7 @@ public class JiTuanWeiTuoSupervise extends NodeComponent {
flows.put("APPOINT_THREE_TIME", DateUtil.getTime()); flows.put("APPOINT_THREE_TIME", DateUtil.getTime());
flows.put("APPOINT_THREE_STATUS", info.getSTATUS()); flows.put("APPOINT_THREE_STATUS", info.getSTATUS());
flows.put("APPOINT_THREE_OPINION", info.getOPINION()); flows.put("APPOINT_THREE_OPINION", info.getOPINION());
flows.put("OPINION",info.getOPINION());
if ("0".equals(info.getSTATUS())) { if ("0".equals(info.getSTATUS())) {
// 打回至相关方端 // 打回至相关方端
xgfUserService.repulse(flows); xgfUserService.repulse(flows);

View File

@ -60,6 +60,7 @@ public class YiBanCharge extends NodeComponent {
flows.put("APPOINT_ZERO_TIME", DateUtil.getTime()); flows.put("APPOINT_ZERO_TIME", DateUtil.getTime());
flows.put("APPOINT_ZERO_STATUS", info.getSTATUS()); flows.put("APPOINT_ZERO_STATUS", info.getSTATUS());
flows.put("APPOINT_ZERO_OPINION", info.getOPINION()); flows.put("APPOINT_ZERO_OPINION", info.getOPINION());
flows.put("OPINION",info.getOPINION());
if ("0".equals(info.getSTATUS())) { if ("0".equals(info.getSTATUS())) {
// 打回至相关方端 // 打回至相关方端
xgfUserService.repulse(flows); xgfUserService.repulse(flows);

View File

@ -33,8 +33,18 @@ public class YiBanSupervise extends NodeComponent {
@Override @Override
public void process() throws Exception { public void process() throws Exception {
System.out.println("YiBanSupervise节点"); System.out.println("YiBanSupervise节点");
XgfFlowDto info = this.getRequestData(); XgfFlowDto info = this.getRequestData();
// 如果指针没有数据,赋值后自动结束
if (StringUtils.isBlank(info.getIterator())) {
info.setIterator("1");
return;
}
// 如果不是当前流程,进入下一流程判断
if (!"1".equals(info.getIterator())) {
return;
}
PageData condition = new PageData(); PageData condition = new PageData();
condition.put("FLOWS_ID", info.getFLOWS_ID()); condition.put("FLOWS_ID", info.getFLOWS_ID());
@ -62,6 +72,7 @@ public class YiBanSupervise extends NodeComponent {
flows.put("APPOINT_ONE_TIME", DateUtil.getTime()); flows.put("APPOINT_ONE_TIME", DateUtil.getTime());
flows.put("APPOINT_ONE_STATUS", info.getSTATUS()); flows.put("APPOINT_ONE_STATUS", info.getSTATUS());
flows.put("APPOINT_ONE_OPINION", info.getOPINION()); flows.put("APPOINT_ONE_OPINION", info.getOPINION());
flows.put("OPINION",info.getOPINION());
if ("0".equals(info.getSTATUS())) { if ("0".equals(info.getSTATUS())) {
// 打回至相关方端 // 打回至相关方端
xgfUserService.repulse(flows); xgfUserService.repulse(flows);

View File

@ -14,6 +14,8 @@ public class XgfFlowDto {
// 步骤编码 // 步骤编码
public String FLOWS_STEP; public String FLOWS_STEP;
public String FLOWS_TYPE;
// 审批结果0-不通过1-通过 // 审批结果0-不通过1-通过
private String STATUS; private String STATUS;

View File

@ -72,4 +72,6 @@ public interface XgfUserMapper {
List<PageData> findRecordList(PageData condition); List<PageData> findRecordList(PageData condition);
List<PageData> appointlistPage(Page page); List<PageData> appointlistPage(Page page);
List<PageData> getWorkTask(PageData condition);
} }

View File

@ -42,4 +42,6 @@ public interface XgfUserService {
void repulse(PageData flows) throws Exception; void repulse(PageData flows) throws Exception;
void approveMax(PageData request, MultipartFile[] chengNuoShu) throws Exception; void approveMax(PageData request, MultipartFile[] chengNuoShu) throws Exception;
List<PageData> getWorkTask(PageData condition) throws Exception;
} }

View File

@ -959,6 +959,7 @@ public class XgfUserServiceImpl implements XgfUserService {
key.putAll(entity); key.putAll(entity);
key.put("USER_ID", condition.get("XGF_USER_ID")); key.put("USER_ID", condition.get("XGF_USER_ID"));
key.put("STATUS", "1"); key.put("STATUS", "1");
key.put("OPINION",flows.get("OPINION"));
Map result = HttpClientService.doPost(prevention_xgf_url + "openApi/user/approve", key); Map result = HttpClientService.doPost(prevention_xgf_url + "openApi/user/approve", key);
if (result == null || !"succeed".equals(result.get("result"))) { if (result == null || !"succeed".equals(result.get("result"))) {
throw new RuntimeException("请求失败"); throw new RuntimeException("请求失败");
@ -990,6 +991,7 @@ public class XgfUserServiceImpl implements XgfUserService {
XgfFlowDto info = new XgfFlowDto(); XgfFlowDto info = new XgfFlowDto();
info.setFLOWS_STEP(flows.getString("FLOWS_STEP")); info.setFLOWS_STEP(flows.getString("FLOWS_STEP"));
info.setIterator(flows.getString("FLOWS_STEP")); info.setIterator(flows.getString("FLOWS_STEP"));
info.setFLOWS_TYPE(flows.getString("FLOWS_TYPE"));
info.setFLOWS_ID(x); info.setFLOWS_ID(x);
info.setSTATUS(request.getString("STATUS")); info.setSTATUS(request.getString("STATUS"));
info.setOPINION(request.getString("OPINION")); info.setOPINION(request.getString("OPINION"));
@ -1007,6 +1009,8 @@ public class XgfUserServiceImpl implements XgfUserService {
// 进行数据审核 // 进行数据审核
LiteflowResponse response = flowExecutor.execute2Resp("chain1", info); LiteflowResponse response = flowExecutor.execute2Resp("chain1", info);
if (!response.isSuccess()){ if (!response.isSuccess()){
Exception e = response.getCause();
e.printStackTrace();
System.out.println(response.getMessage()); System.out.println(response.getMessage());
throw new RuntimeException("系统异常"); throw new RuntimeException("系统异常");
} }
@ -1014,6 +1018,11 @@ public class XgfUserServiceImpl implements XgfUserService {
} }
@Override
public List<PageData> getWorkTask(PageData condition) throws Exception {
return xgfUserMapper.getWorkTask(condition);
}
private String getType(String corpInfoId) { private String getType(String corpInfoId) {
// 集团单位id // 集团单位id
// (河港机械 jtdw002 1e6dbbe16004402f8d2c0e52afd9a676 // (河港机械 jtdw002 1e6dbbe16004402f8d2c0e52afd9a676

View File

@ -360,5 +360,26 @@
and a.CHECK_STEP = #{pd.CHECK_STEP} and a.CHECK_STEP = #{pd.CHECK_STEP}
</if> </if>
</select> </select>
<select id="getWorkTask" resultType="com.zcloud.entity.PageData">
select a.XGF_USER_ID,
a.BELONG_TO_CORP,
a.BELONG_TO_CORP_NAME,
a.USERNAME,
a.NAME,
a.CHECK_STEP,
c.*
from xgf_user a
left join xgf_flows c on a.XGF_USER_ID = c.FLOWS_ID
where a.IS_DELETE = '0'
and ((c.APPOINT_ZERO_USER_ID = #{USER_ID} and c.FLOWS_STEP = '0')
or (c.APPOINT_ONE_USER_ID = #{USER_ID} and c.FLOWS_STEP = '1')
or (c.APPOINT_TWO_USER_ID = #{USER_ID} and c.FLOWS_STEP = '2')
or (c.APPOINT_THREE_USER_ID = #{USER_ID} and c.FLOWS_STEP = '3')
or (c.APPOINT_FOUR_USER_ID = #{USER_ID} and c.FLOWS_STEP = '4')
or (c.APPOINT_FIVE_USER_ID = #{USER_ID} and c.FLOWS_STEP = '5')
or (c.APPOINT_SIX_USER_ID = #{USER_ID} and c.FLOWS_STEP = '6')
or (c.APPOINT_SEVEN_USER_ID = #{USER_ID} and c.FLOWS_STEP = '7')
)
</select>
</mapper> </mapper>