委托流程异常bug修复

limingyu-20240401-app登录曹实业判断修改
liujun 2024-03-21 13:23:51 +08:00
parent 5a4ee4ce7c
commit 5c2fa16618
7 changed files with 20 additions and 19 deletions

View File

@ -31,7 +31,6 @@ public class GuFenCharge extends NodeSwitchComponent {
@Override @Override
public boolean isAccess() { public boolean isAccess() {
XgfFlowDto info = this.getRequestData(); XgfFlowDto info = this.getRequestData();
// 如果指针没有数据,赋值后自动结束 // 如果指针没有数据,赋值后自动结束
if (StringUtils.isBlank(info.getIterator())) { if (StringUtils.isBlank(info.getIterator())) {
PageData condition = new PageData(); PageData condition = new PageData();
@ -65,12 +64,12 @@ public class GuFenCharge extends NodeSwitchComponent {
PageData entity = xgfUserMapper.findById(condition); PageData entity = xgfUserMapper.findById(condition);
// 如果不是当前流程,进入下一流程判断 // 如果不是当前流程,进入下一流程判断
if (!"1".equals(info.getIterator())) { if (!"0".equals(info.getIterator())) {
// 根据是否有委托书判断是否走委托流程 // 根据是否有委托书判断是否走委托流程
if (entity.get("ATTORNEY") != null && StringUtils.isNotBlank(entity.getString("ATTORNEY"))) { if (entity.get("ATTORNEY") != null && StringUtils.isNotBlank(entity.getString("ATTORNEY"))) {
return "WeiTuo"; return "GuFenWeiTuo";
} }
return "JiTuanSupervise"; return "GuFenSupervise";
} }
flows.put("APPOINT_ZERO_CORP_ID", "1"); flows.put("APPOINT_ZERO_CORP_ID", "1");
@ -117,7 +116,7 @@ public class GuFenCharge extends NodeSwitchComponent {
@Override @Override
public boolean isEnd() { public boolean isEnd() {
XgfFlowDto info = this.getRequestData(); XgfFlowDto info = this.getRequestData();
if ("0".equals(info.getSTATUS())) { if ("0".equals(info.getSTATUS()) && "0".equals(info.getIterator())) {
return true; return true;
} }
return super.isEnd(); return super.isEnd();

View File

@ -31,7 +31,6 @@ public class JiTuanCharge extends NodeSwitchComponent {
@Override @Override
public boolean isAccess() { public boolean isAccess() {
XgfFlowDto info = this.getRequestData(); XgfFlowDto info = this.getRequestData();
// 如果指针没有数据,赋值后自动结束 // 如果指针没有数据,赋值后自动结束
if (StringUtils.isBlank(info.getIterator())) { if (StringUtils.isBlank(info.getIterator())) {
PageData condition = new PageData(); PageData condition = new PageData();
@ -47,7 +46,6 @@ public class JiTuanCharge extends NodeSwitchComponent {
xgfFlowsMapper.edit(flows); xgfFlowsMapper.edit(flows);
return false; return false;
} }
return super.isAccess(); return super.isAccess();
} }
@ -66,9 +64,13 @@ public class JiTuanCharge extends NodeSwitchComponent {
condition.put("XGF_USER_ID", flows.getString("FLOWS_ID")); condition.put("XGF_USER_ID", flows.getString("FLOWS_ID"));
PageData entity = xgfUserMapper.findById(condition); PageData entity = xgfUserMapper.findById(condition);
condition.clear();
condition.put("XGF_USER_DETAILS_ID",flows.getString("FLOWS_ID"));
PageData userInfo = xgfUserDetailsMapper.findById(condition);
// 如果不是当前流程,进入下一流程判断 // 如果不是当前流程,进入下一流程判断
if (!"1".equals(info.getIterator())) { if (!"1".equals(info.getIterator())) {
if (entity.get("ATTORNEY") == null || StringUtils.isNotBlank(entity.getString("ATTORNEY"))){ if (userInfo.get("ATTORNEY") != null && StringUtils.isNotBlank(userInfo.getString("ATTORNEY"))){
return "WeiTuo"; return "WeiTuo";
} }
return "JiTuanSupervise"; return "JiTuanSupervise";
@ -95,9 +97,6 @@ public class JiTuanCharge extends NodeSwitchComponent {
} }
// created by liu jun 2024-02-04 如果有委托书则保存委托书 // created by liu jun 2024-02-04 如果有委托书则保存委托书
if (StringUtils.isNotBlank(info.getATTORNEY())) { if (StringUtils.isNotBlank(info.getATTORNEY())) {
condition.clear();
condition.put("XGF_USER_DETAILS_ID", flows.getString("FLOWS_ID"));
PageData userInfo = xgfUserDetailsMapper.findById(condition);
userInfo.put("ATTORNEY", info.getAPPOINT_ANNEX()); userInfo.put("ATTORNEY", info.getAPPOINT_ANNEX());
xgfUserDetailsMapper.edit(userInfo); xgfUserDetailsMapper.edit(userInfo);
} }
@ -109,7 +108,7 @@ public class JiTuanCharge extends NodeSwitchComponent {
// 保存操作记录 // 保存操作记录
xgfUserService.saveLog(info, info.getSTATUS(), "0"); xgfUserService.saveLog(info, info.getSTATUS(), "0");
if (entity.get("ATTORNEY") != null && StringUtils.isNotBlank(entity.getString("ATTORNEY"))){ if (StringUtils.isNotBlank(info.getATTORNEY())){
return "WeiTuo"; return "WeiTuo";
} }
return "JiTuanSupervise"; return "JiTuanSupervise";
@ -118,7 +117,7 @@ public class JiTuanCharge extends NodeSwitchComponent {
@Override @Override
public boolean isEnd() { public boolean isEnd() {
XgfFlowDto info = this.getRequestData(); XgfFlowDto info = this.getRequestData();
if ("0".equals(info.getSTATUS())) { if ("0".equals(info.getSTATUS()) && "1".equals(info.getIterator())) {
return true; return true;
} }
return super.isEnd(); return super.isEnd();

View File

@ -98,7 +98,7 @@ public class JiTuanWeiTuoCharge extends NodeComponent {
@Override @Override
public boolean isEnd() { public boolean isEnd() {
XgfFlowDto info = this.getRequestData(); XgfFlowDto info = this.getRequestData();
if ("0".equals(info.getSTATUS())) { if ("0".equals(info.getSTATUS()) && "2".equals(info.getIterator())) {
return true; return true;
} }
return super.isEnd(); return super.isEnd();

View File

@ -32,8 +32,6 @@ public class JiTuanWeiTuoSupervise extends NodeComponent {
@Override @Override
public boolean isAccess() { public boolean isAccess() {
XgfFlowDto info = this.getRequestData(); XgfFlowDto info = this.getRequestData();
// 如果指针没有数据,赋值后自动结束 // 如果指针没有数据,赋值后自动结束
if (StringUtils.isBlank(info.getIterator())) { if (StringUtils.isBlank(info.getIterator())) {
PageData condition = new PageData(); PageData condition = new PageData();
@ -97,7 +95,7 @@ public class JiTuanWeiTuoSupervise extends NodeComponent {
@Override @Override
public boolean isEnd() { public boolean isEnd() {
XgfFlowDto info = this.getRequestData(); XgfFlowDto info = this.getRequestData();
if ("0".equals(info.getSTATUS())) { if ("0".equals(info.getSTATUS()) && "3".equals(info.getIterator())) {
return true; return true;
} }
return super.isEnd(); return super.isEnd();

View File

@ -98,7 +98,7 @@ public class YiBanCharge extends NodeComponent {
@Override @Override
public boolean isEnd() { public boolean isEnd() {
XgfFlowDto info = this.getRequestData(); XgfFlowDto info = this.getRequestData();
if ("0".equals(info.getSTATUS())) { if ("0".equals(info.getSTATUS()) && "0".equals(info.getIterator())) {
return true; return true;
} }
return super.isEnd(); return super.isEnd();

View File

@ -2,6 +2,8 @@ package com.zcloud.flow.xgf.util;
import lombok.Data; import lombok.Data;
import java.util.Map;
@Data @Data
public class XgfFlowDto { public class XgfFlowDto {
@ -41,4 +43,7 @@ public class XgfFlowDto {
//委托书 //委托书
private String ATTORNEY; private String ATTORNEY;
// 获取节点需要填写的信息
private Map<String,String> map;
} }

View File

@ -380,7 +380,7 @@
or (c.APPOINT_SIX_USER_ID = #{USER_ID} and c.FLOWS_STEP = '6') 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') or (c.APPOINT_SEVEN_USER_ID = #{USER_ID} and c.FLOWS_STEP = '7')
) )
and a.VALID_FLAG = '1' and (a.VALID_FLAG = '1' or a.VALID_FLAG = '2')
</select> </select>
</mapper> </mapper>