Commit 8cf12310 authored by huyuchen's avatar huyuchen

户配置代码提交

parent 05bfa418
...@@ -227,24 +227,26 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap ...@@ -227,24 +227,26 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
@Override @Override
public R updateProject(TEmployeeProject tEmployeeProject) { public R updateProject(TEmployeeProject tEmployeeProject) {
TCheckBankNo check = new TCheckBankNo(); if (Common.isNotNull(tEmployeeProject.getBankNo())) {
check.setBankNo(tEmployeeProject.getBankNo()); TCheckBankNo check = new TCheckBankNo();
check.setIdNum(tEmployeeProject.getEmpIdcard()); check.setBankNo(tEmployeeProject.getBankNo());
check.setName(tEmployeeProject.getEmpName()); check.setIdNum(tEmployeeProject.getEmpIdcard());
R<CheckBankNoVo> checkListR = HttpDaprUtil.invokeMethodPost(daprCheckProperties.getAppUrl(), daprCheckProperties.getAppId() check.setName(tEmployeeProject.getEmpName());
, "/tcheckbankno/inner/checkBankNo", check, CheckBankNoVo.class, SecurityConstants.FROM_IN); R<CheckBankNoVo> checkListR = HttpDaprUtil.invokeMethodPost(daprCheckProperties.getAppUrl(), daprCheckProperties.getAppId()
if (checkListR != null && checkListR.getData() != null) { , "/tcheckbankno/inner/checkBankNo", check, CheckBankNoVo.class, SecurityConstants.FROM_IN);
CheckBankNoVo vo = checkListR.getData(); if (checkListR != null && checkListR.getData() != null) {
check = (null == vo.getRes()) ? null : vo.getRes().getData(); CheckBankNoVo vo = checkListR.getData();
if (Common.isEmpty(vo)) { check = (null == vo.getRes()) ? null : vo.getRes().getData();
if (Common.isEmpty(vo)) {
return R.failed(EmployeeConstants.CHECK_NO_RESPONSE);
} else if (!CommonConstants.SUCCESS.equals(vo.getRes().getCode())) {
return R.failed(vo.getRes().getMsg());
} else if (Common.isEmpty(check) && !check.getResult().equals(CommonConstants.ZERO_ONE)) {
return R.failed(check.getMessage());
}
} else {
return R.failed(EmployeeConstants.CHECK_NO_RESPONSE); return R.failed(EmployeeConstants.CHECK_NO_RESPONSE);
} else if (!CommonConstants.SUCCESS.equals(vo.getRes().getCode())) {
return R.failed(vo.getRes().getMsg());
} else if (Common.isEmpty(check) && !check.getResult().equals(CommonConstants.ZERO_ONE)) {
return R.failed(check.getMessage());
} }
} else {
return R.failed(EmployeeConstants.CHECK_NO_RESPONSE);
} }
TEmployeeProject compareProject = this.getById(tEmployeeProject.getId()); TEmployeeProject compareProject = this.getById(tEmployeeProject.getId());
boolean flag = this.updateById(tEmployeeProject); boolean flag = this.updateById(tEmployeeProject);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment