|
|
|
@ -6,6 +6,7 @@ import com.alibaba.fastjson.JSON; |
|
|
|
|
import com.alibaba.fastjson.JSONArray; |
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
|
import com.dxhy.order.baseservice.module.thirdservice.user.model.DeptEntity; |
|
|
|
|
import com.dxhy.order.baseservice.module.thirdservice.user.model.TaxPlayerCodeDept; |
|
|
|
|
import com.dxhy.order.baseservice.module.thirdservice.user.service.UserInfoService; |
|
|
|
|
import com.dxhy.order.constant.ConfigureConstant; |
|
|
|
|
import com.dxhy.order.constant.OrderInfoContentEnum; |
|
|
|
@ -178,6 +179,7 @@ public class BuyerServiceImpl implements BuyerService { |
|
|
|
|
checkResultMapList.add(checkResultMap1); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//查找根据销方税号 deptid
|
|
|
|
|
if (StringUtils.isNotEmpty(buyerEntity.getPurchaseName())) { |
|
|
|
|
param.put("purchaseName", buyerEntity.getPurchaseName()); |
|
|
|
|
int i = buyerMapper.selectBuyerByName(param, shList); |
|
|
|
@ -187,6 +189,27 @@ public class BuyerServiceImpl implements BuyerService { |
|
|
|
|
checkResultMap1.put(OrderManagementConstant.ERRORMESSAGE, preStr + "购方名称:" + buyerEntity.getPurchaseName() + ",已经存在"); |
|
|
|
|
checkResultMapList.add(checkResultMap1); |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
Map<String, String> checkResultMap1 = new HashMap<>(2); |
|
|
|
|
checkResultMap1.put(OrderManagementConstant.ERRORCODE, ConfigureConstant.STRING_9999); |
|
|
|
|
checkResultMap1.put(OrderManagementConstant.ERRORMESSAGE, preStr + "购方名称不允许为空"); |
|
|
|
|
checkResultMapList.add(checkResultMap1); |
|
|
|
|
} |
|
|
|
|
if (StringUtils.isNotEmpty(buyerEntity.getEntId())&&StringUtils.isNotEmpty(buyerEntity.getBuyerCode())) { |
|
|
|
|
param.put("ent_id", buyerEntity.getEntId()); |
|
|
|
|
param.put("buyerCode", buyerEntity.getBuyerCode()); |
|
|
|
|
int i = buyerMapper.selectBuyerByName(param, shList); |
|
|
|
|
if (i > 0) { |
|
|
|
|
Map<String, String> checkResultMap1 = new HashMap<>(2); |
|
|
|
|
checkResultMap1.put(OrderManagementConstant.ERRORCODE, ConfigureConstant.STRING_9999); |
|
|
|
|
checkResultMap1.put(OrderManagementConstant.ERRORMESSAGE, preStr + "销方组织:" + buyerEntity.getXhfMc() + ",购方编码:" + buyerEntity.getBuyerCode() + ",已经存在"); |
|
|
|
|
checkResultMapList.add(checkResultMap1); |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
Map<String, String> checkResultMap1 = new HashMap<>(2); |
|
|
|
|
checkResultMap1.put(OrderManagementConstant.ERRORCODE, ConfigureConstant.STRING_9999); |
|
|
|
|
checkResultMap1.put(OrderManagementConstant.ERRORMESSAGE, preStr + "销方组织或购方编码不允许为空"); |
|
|
|
|
checkResultMapList.add(checkResultMap1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|