|
|
@@ -1497,7 +1497,7 @@ public class AdminCustomerApiController extends BaseApiController{
|
|
|
Result res = new Result();
|
|
|
if (in.getOrgCode()!=null){
|
|
|
in.setOrgCode(in.getOrgCode().trim());
|
|
|
- if (customerService.checkOrgCode(in.getOrgCode())){
|
|
|
+ if (customerService.checkOrgCode(in.getOrgCode(),in.getUid())){
|
|
|
res.getError().add(buildError("","统一信用代码已存在"));
|
|
|
return res;
|
|
|
}
|
|
|
@@ -1708,7 +1708,7 @@ public class AdminCustomerApiController extends BaseApiController{
|
|
|
Result res = new Result();
|
|
|
if (in.getOrgCode()!=null){
|
|
|
in.setOrgCode(in.getOrgCode().trim());
|
|
|
- if (customerService.checkOrgCode(in.getOrgCode())){
|
|
|
+ if (customerService.checkOrgCode(in.getOrgCode(),in.getId())){
|
|
|
res.getError().add(buildError("","统一信用代码已存在"));
|
|
|
return res;
|
|
|
}
|