demand: tms/app运单录入、运单修改、运单批量录入、网点费用申请增加录入企业名称、企业税号的功能 tms/app运单录入、运单修改、运单批量录入、网点费用申请录入企业名称、企业税号后自动同步更新/新增到寄件人信息 tms-客户管理-寄件人地址-增加根据企业名称、企业税号模糊查询的功能,查询返回增加企业名称、企业税号,新增接口增加添加企业名称、企业税号的功能

committer: heyu
This commit is contained in:
aike 2025-08-25 15:48:56 +08:00
parent 6300291c93
commit 749a502276

View File

@ -3561,7 +3561,7 @@ public class EmisBaseService {
public int createCustomerAddressNew(EmisCustomerAddress emisCustomerAddressNew) throws EmisBizError {
if ("1".equals(emisCustomerAddressNew.getAddressType())) {
if ("0086".equals(emisCustomerAddressNew.getCounty())) {
if ("0086".equals(emisCustomerAddressNew.getCountry())) {
if (StringUtil.isBlank(emisCustomerAddressNew.getEnterpriseTaxId()) || StringUtil.isBlank(emisCustomerAddressNew.getEnterpriseName())) {
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1, "企业名称/企业税号不能为空");
}
@ -3587,7 +3587,7 @@ public class EmisBaseService {
// 不重复的情况则 创建地址
return emisCustomerAddressMapper.insertEmisCustomerAddress(emisCustomerAddressNew);
} else {
if ("1".equals(emisCustomerAddressNew.getAddressType()) && "0086".equals(emisCustomerAddressNew.getCounty())) {
if ("1".equals(emisCustomerAddressNew.getAddressType()) && "0086".equals(emisCustomerAddressNew.getCountry())) {
List<Long> emisCustomerAddressIds = emisCustomerAddressList.stream().filter(i -> (StringUtil.isBlank(i.getEnterpriseTaxId()) || StringUtil.isBlank(i.getEnterpriseName()))).map(EmisCustomerAddress::getId).collect(Collectors.toList());
if (CollectionUtil.isEmpty(emisCustomerAddressIds)) {
return 1;