bug修改,物料编辑、客商加税号、公司查询

This commit is contained in:
liss
2025-11-13 18:39:42 +08:00
parent 0ef0b5f060
commit 5cf61ee5d2
7 changed files with 21 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.baomidou.mybatisplus.annotation.TableField;
import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@@ -42,4 +43,7 @@ public class ErpCustomerPageReqVO extends PageParam {
@Schema(description = "冻结标识")
private String isProvisional;
@Schema(description = "税号/社会信用代码")
private String taxNumber;
}

View File

@@ -52,4 +52,8 @@ public class ErpCustomerRespVO {
@ExcelProperty("冻结标识")
private String isProvisional;
@Schema(description = "税号/社会信用代码")
@ExcelProperty("税号")
private String taxNumber;
}

View File

@@ -46,4 +46,6 @@ public class ErpCustomerSaveReqVO {
@Schema(description = "冻结标识")
private String isProvisional;
@Schema(description = "税号/社会信用代码")
private String taxNumber;
}

View File

@@ -77,7 +77,12 @@ public class ErpCustomerDO{
@TableField("IS_PRVS")
private String isProvisional;
@TableField(exist = false)
private Integer TENANT_ID;
@TableField("IS_ENB")
private String isEnable;
/**
* 税号/社会信用代码
*/
@TableField("TAX_NUM")
private String taxNumber;
}

View File

@@ -183,7 +183,7 @@ public class ErpCustomerServiceImpl implements ErpCustomerService {
}
DO.setIsGiveback(dataJson.getString("XDELE"));
DO.setIsProvisional(dataJson.getString("XBLCK"));
// DO.setType(type.modetype);
DO.setTaxNumber(dataJson.getString("TAXNO"));
// 使用 Map 优化查找效率,避免每次遍历 comnumbers 列表
if (number != null && numbers.get(number) != null) {

View File

@@ -83,6 +83,7 @@ public class ErpMaterialServiceImpl implements ErpMaterialService {
public void updateErpMaterial(ErpMaterialSaveReqVO updateReqVO) {
// 校验存在
validateErpMaterialExists(updateReqVO.getId());
validateErpFactoryExistsNumber(updateReqVO.getDownCenterNumber());
// 更新
ErpMaterialDO updateObj = BeanUtils.toBean(updateReqVO, ErpMaterialDO.class);
if (updateObj.getType().equals("SPLY")) {