机构加盟、信息变更流程代码判断逻辑调整
This commit is contained in:
parent
ea4e4401d1
commit
7aacf62c13
|
|
@ -356,5 +356,9 @@ public class OrgAllInfoApiEntity implements Serializable {
|
||||||
*/
|
*/
|
||||||
private java.lang.String handleBy;
|
private java.lang.String handleBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否跳过重复校验
|
||||||
|
*/
|
||||||
|
private String izSkipRepetVali;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,13 +36,13 @@ public class OrgApplyInfoApi {
|
||||||
}
|
}
|
||||||
|
|
||||||
//验证入驻申请信息是否有变更
|
//验证入驻申请信息是否有变更
|
||||||
if ("1".equals(orgApplyInfoApiEntity.getStatus()) && StringUtils.isNotBlank(orgApplyInfoApiEntity.getPkId())) {
|
if (!"Y".equals(orgApplyInfoApiEntity.getIzSkipRepetVali()) && "1".equals(orgApplyInfoApiEntity.getStatus()) && StringUtils.isNotBlank(orgApplyInfoApiEntity.getPkId())) {
|
||||||
if (!orgApplyInfoApi.validateApplyChanged(orgApplyInfoApiEntity)) {
|
if (!orgApplyInfoApi.validateApplyChanged(orgApplyInfoApiEntity)) {
|
||||||
return Result.error("未做变更");
|
return Result.error("未做变更");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//验证机构变更信息是否有变更
|
//验证机构变更信息是否有变更
|
||||||
if ("4".equals(orgApplyInfoApiEntity.getStatus())) {
|
if (!"Y".equals(orgApplyInfoApiEntity.getIzSkipRepetVali()) && "4".equals(orgApplyInfoApiEntity.getStatus())) {
|
||||||
if (!orgApplyInfoApi.validateUpInfoChanged(orgApplyInfoApiEntity)) {
|
if (!orgApplyInfoApi.validateUpInfoChanged(orgApplyInfoApiEntity)) {
|
||||||
return Result.error("未做变更");
|
return Result.error("未做变更");
|
||||||
}
|
}
|
||||||
|
|
@ -53,17 +53,12 @@ public class OrgApplyInfoApi {
|
||||||
}
|
}
|
||||||
|
|
||||||
System.out.println("-----------新增/编辑机构加盟申请信息--------tel------------" + orgApplyInfoApiEntity.getTel());
|
System.out.println("-----------新增/编辑机构加盟申请信息--------tel------------" + orgApplyInfoApiEntity.getTel());
|
||||||
if (StringUtils.isNotBlank(orgApplyInfoApiEntity.getId()) && !"rz".equals(orgApplyInfoApiEntity.getOptType())) {
|
//入驻申请
|
||||||
orgApplyInfoApi.updateById(orgApplyInfoApiEntity);
|
if ("1".equals(orgApplyInfoApiEntity.getStatus())) {
|
||||||
return Result.ok("保存成功!");
|
return Result.ok(orgApplyInfoApi.insertApply(orgApplyInfoApiEntity));
|
||||||
} else {
|
} else {
|
||||||
//入驻申请
|
//变更申请
|
||||||
if ("1".equals(orgApplyInfoApiEntity.getStatus())) {
|
return Result.ok(orgApplyInfoApi.insertUpInfo(orgApplyInfoApiEntity));
|
||||||
return Result.ok(orgApplyInfoApi.insertApply(orgApplyInfoApiEntity));
|
|
||||||
} else {
|
|
||||||
//变更申请
|
|
||||||
return Result.ok(orgApplyInfoApi.insertUpInfo(orgApplyInfoApiEntity));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue