若干bug修改
parent
7f3007041e
commit
a52ccd1f50
|
@ -207,6 +207,7 @@ public class XgfUserServiceImpl implements XgfUserService {
|
||||||
} else {
|
} else {
|
||||||
condition.clear();
|
condition.clear();
|
||||||
condition.put("FLOW_ID", flow.getString("FLOW_ID"));
|
condition.put("FLOW_ID", flow.getString("FLOW_ID"));
|
||||||
|
condition.put("STEP_FLAG", "1");
|
||||||
PageData currentNode = flowDetailMapper.selectOne(condition);
|
PageData currentNode = flowDetailMapper.selectOne(condition);
|
||||||
PageData nextNode = new PageData();
|
PageData nextNode = new PageData();
|
||||||
nextNode.putAll(currentNode);
|
nextNode.putAll(currentNode);
|
||||||
|
@ -344,7 +345,25 @@ public class XgfUserServiceImpl implements XgfUserService {
|
||||||
private String handle(PageData info, PageData flows) throws Exception {
|
private String handle(PageData info, PageData flows) throws Exception {
|
||||||
PageData condition = new PageData();
|
PageData condition = new PageData();
|
||||||
switch (Integer.parseInt(flows.get("FLOWS_STEP").toString())) {
|
switch (Integer.parseInt(flows.get("FLOWS_STEP").toString())) {
|
||||||
case 0:// 相关方端推送数据至企业端
|
case 0: {// 相关方端推送数据至企业端
|
||||||
|
condition.clear();
|
||||||
|
condition.put("XGF_USER_ID", flows.getString("FLOWS_ID"));
|
||||||
|
PageData entity = xgfUserMapper.findById(condition);
|
||||||
|
if ("0".equals(info.getString("STATUS"))) {
|
||||||
|
entity.put("STATUS", "0");
|
||||||
|
entity.put("VALID_FLAG", "0");
|
||||||
|
entity.put("CHECK_STATUS", "-2");
|
||||||
|
PageData key = new PageData();
|
||||||
|
key.putAll(entity);
|
||||||
|
key.put("USER_ID", condition.get("XGF_USER_ID"));
|
||||||
|
key.put("STATUS", "1");
|
||||||
|
Map result = HttpClientService.doPost(prevention_xgf_url + "openApi/user/approve", key);
|
||||||
|
if (result == null || !"succeed".equals(result.get("result"))) {
|
||||||
|
throw new RuntimeException("请求失败");
|
||||||
|
}
|
||||||
|
xgfUserMapper.edit(entity);
|
||||||
|
return "0";
|
||||||
|
} else {
|
||||||
flows.put("APPOINT_ZERO_TIME", DateUtil.getTime());
|
flows.put("APPOINT_ZERO_TIME", DateUtil.getTime());
|
||||||
flows.put("APPOINT_ZERO_STATUS", info.getString("STATUS"));
|
flows.put("APPOINT_ZERO_STATUS", info.getString("STATUS"));
|
||||||
flows.put("APPOINT_ZERO_OPINION", info.getString("OPINION"));
|
flows.put("APPOINT_ZERO_OPINION", info.getString("OPINION"));
|
||||||
|
@ -364,7 +383,9 @@ public class XgfUserServiceImpl implements XgfUserService {
|
||||||
user.put("CHECK_STEP", 1);
|
user.put("CHECK_STEP", 1);
|
||||||
xgfUserMapper.edit(user);
|
xgfUserMapper.edit(user);
|
||||||
return "0";
|
return "0";
|
||||||
// 相关方选择的审批人审批,并指定下一位监管部门审批人,不过打回相关方端
|
}
|
||||||
|
|
||||||
|
} // 相关方选择的审批人审批,并指定下一位监管部门审批人,不过打回相关方端
|
||||||
case 1: {
|
case 1: {
|
||||||
condition.clear();
|
condition.clear();
|
||||||
condition.put("XGF_USER_ID", flows.getString("FLOWS_ID"));
|
condition.put("XGF_USER_ID", flows.getString("FLOWS_ID"));
|
||||||
|
@ -376,7 +397,7 @@ public class XgfUserServiceImpl implements XgfUserService {
|
||||||
PageData key = new PageData();
|
PageData key = new PageData();
|
||||||
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", info.getString("STATUS"));
|
key.put("STATUS", "1");
|
||||||
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("请求失败");
|
||||||
|
@ -432,7 +453,7 @@ public class XgfUserServiceImpl implements XgfUserService {
|
||||||
PageData key = new PageData();
|
PageData key = new PageData();
|
||||||
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", info.getString("STATUS"));
|
key.put("STATUS", "1");
|
||||||
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("请求失败");
|
||||||
|
@ -483,7 +504,7 @@ public class XgfUserServiceImpl implements XgfUserService {
|
||||||
PageData key = new PageData();
|
PageData key = new PageData();
|
||||||
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", info.getString("STATUS"));
|
key.put("STATUS", "1");
|
||||||
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("请求失败");
|
||||||
|
@ -534,7 +555,7 @@ public class XgfUserServiceImpl implements XgfUserService {
|
||||||
PageData key = new PageData();
|
PageData key = new PageData();
|
||||||
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", info.getString("STATUS"));
|
key.put("STATUS", "1");
|
||||||
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("请求失败");
|
||||||
|
@ -581,7 +602,7 @@ public class XgfUserServiceImpl implements XgfUserService {
|
||||||
PageData key = new PageData();
|
PageData key = new PageData();
|
||||||
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", info.getString("STATUS"));
|
key.put("STATUS", "1");
|
||||||
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("请求失败");
|
||||||
|
@ -678,7 +699,7 @@ public class XgfUserServiceImpl implements XgfUserService {
|
||||||
String jituandanwei = "1e6dbbe16004402f8d2c0e52afd9a676,3a854eefa7894e06aaa1a2611bca80f6,020578a4c1f04bc692ee25145c2efbe5,90966974de3c4b83aca6f8fd6432d5c2";
|
String jituandanwei = "1e6dbbe16004402f8d2c0e52afd9a676,3a854eefa7894e06aaa1a2611bca80f6,020578a4c1f04bc692ee25145c2efbe5,90966974de3c4b83aca6f8fd6432d5c2";
|
||||||
if (jituandanwei.contains(corpInfoId)) {
|
if (jituandanwei.contains(corpInfoId)) {
|
||||||
return "1";
|
return "1";
|
||||||
}else {
|
} else {
|
||||||
return "0";
|
return "0";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue