Commit 497ea688 authored by 董天德's avatar 董天德

评定机构去掉必录项

parent 6c8cc6cc
...@@ -105,10 +105,9 @@ public class AprOrganController { ...@@ -105,10 +105,9 @@ public class AprOrganController {
public Result addOrUpdateAprOrgan(AprOrganInfoVO chAprOrgan) { public Result addOrUpdateAprOrgan(AprOrganInfoVO chAprOrgan) {
if (chAprOrgan == null) { if (chAprOrgan == null) {
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
} }/*if (chAprOrgan.getFileDataList().size() < 3) {
if (chAprOrgan.getFileDataList().size() < 3) {
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
} }*/
if (chAprOrgan.getAprOrganId() == null) { if (chAprOrgan.getAprOrganId() == null) {
//新增 //新增
if (StringUtils.isBlank(chAprOrgan.getOrganId())) {//适用机构 if (StringUtils.isBlank(chAprOrgan.getOrganId())) {//适用机构
...@@ -120,9 +119,9 @@ public class AprOrganController { ...@@ -120,9 +119,9 @@ public class AprOrganController {
if (StringUtils.isBlank(chAprOrgan.getOrganName())) {//评定机构名称 if (StringUtils.isBlank(chAprOrgan.getOrganName())) {//评定机构名称
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
} }
if (StringUtils.isBlank(chAprOrgan.getUnifiedSocialCreditCode())) {//统一社会信用代码 /* if (StringUtils.isBlank(chAprOrgan.getUnifiedSocialCreditCode())) {//统一社会信用代码
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
} }*/
if (chAprOrgan.getOrganTypeId() == null) {//机构类型id if (chAprOrgan.getOrganTypeId() == null) {//机构类型id
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
} }
...@@ -138,7 +137,7 @@ public class AprOrganController { ...@@ -138,7 +137,7 @@ public class AprOrganController {
if (chAprOrgan.getGroupDetailName() == null) {//评定起点地址 if (chAprOrgan.getGroupDetailName() == null) {//评定起点地址
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
} }
if (StringUtils.isBlank(chAprOrgan.getAccName())) {//银行账户名称 /*if (StringUtils.isBlank(chAprOrgan.getAccName())) {//银行账户名称
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
} }
if (StringUtils.isBlank(chAprOrgan.getBankNo())) {//银行账号 if (StringUtils.isBlank(chAprOrgan.getBankNo())) {//银行账号
...@@ -152,10 +151,10 @@ public class AprOrganController { ...@@ -152,10 +151,10 @@ public class AprOrganController {
} }
if (chAprOrgan.getCardType() == null) {//卡类型 if (chAprOrgan.getCardType() == null) {//卡类型
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
} }*/
} else { } else {
//更新 //更新
if (StringUtils.isBlank(chAprOrgan.getAccName())) {//银行账户名称 /*if (StringUtils.isBlank(chAprOrgan.getAccName())) {//银行账户名称
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
} }
if (StringUtils.isBlank(chAprOrgan.getBankNo())) {//银行账号 if (StringUtils.isBlank(chAprOrgan.getBankNo())) {//银行账号
...@@ -169,13 +168,13 @@ public class AprOrganController { ...@@ -169,13 +168,13 @@ public class AprOrganController {
} }
if (chAprOrgan.getCardType() == null) {//卡类型 if (chAprOrgan.getCardType() == null) {//卡类型
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
} }*/
if (StringUtils.isBlank(chAprOrgan.getDistrictProvincial()) || StringUtils.isBlank(chAprOrgan.getDistrictArea()) || StringUtils.isBlank(chAprOrgan.getDistrictCity())) {//所在省市区 if (StringUtils.isBlank(chAprOrgan.getDistrictProvincial()) || StringUtils.isBlank(chAprOrgan.getDistrictArea()) || StringUtils.isBlank(chAprOrgan.getDistrictCity())) {//所在省市区
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
} }
if (StringUtils.isBlank(chAprOrgan.getUnifiedSocialCreditCode())) {//统一社会信用代码 /* if (StringUtils.isBlank(chAprOrgan.getUnifiedSocialCreditCode())) {//统一社会信用代码
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
} }*/
if (chAprOrgan.getOrganTypeId() == null) {//机构类型id if (chAprOrgan.getOrganTypeId() == null) {//机构类型id
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
} }
......
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