Commit 6b683819 by zhiwj

去掉门店域

parent 3964753d
......@@ -50,10 +50,10 @@ public class StoreRegionApiServiceImpl implements StoreRegionApiService {
storeRegionDTO.setRegionCode(regionCode);
if (regionId == null) {
// 新增
int codeCount = storeRegionService.countByRegionCode(enterpriseId, regionCode);
if (codeCount > 0) {
return ServiceResponse.failure(ErrorCode.DATA_EXISTS.getCode(), "域code已存在");
}
// int codeCount = storeRegionService.countByRegionCode(enterpriseId, regionCode);
// if (codeCount > 0) {
// return ServiceResponse.failure(ErrorCode.DATA_EXISTS.getCode(), "域code已存在");
// }
int nameCount = storeRegionService.countByRegionName(enterpriseId, regionName, null);
if (nameCount > 0) {
return ServiceResponse.failure(ErrorCode.DATA_EXISTS.getCode(), "域名称已存在");
......
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