bug修改,物料编辑、客商加税号、公司查询
This commit is contained in:
@@ -31,10 +31,10 @@
|
||||
where d.DELETED = 0
|
||||
and d.IS_COMPANY = 1
|
||||
<if test="erpNumber != null">
|
||||
and c.NUM = #{erpNumber}
|
||||
and c.NUM like concat('%', #{erpNumber}, '%')
|
||||
</if>
|
||||
<if test="number != null">
|
||||
and d.CODE = #{number}
|
||||
and d.CODE like concat('%', #{number}, '%')
|
||||
</if>
|
||||
<if test="name != null">
|
||||
and d.NAME like concat('%', #{name}, '%')
|
||||
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
@@ -52,4 +52,8 @@ public class ErpCustomerRespVO {
|
||||
@ExcelProperty("冻结标识")
|
||||
private String isProvisional;
|
||||
|
||||
@Schema(description = "税号/社会信用代码")
|
||||
@ExcelProperty("税号")
|
||||
private String taxNumber;
|
||||
|
||||
}
|
||||
@@ -46,4 +46,6 @@ public class ErpCustomerSaveReqVO {
|
||||
@Schema(description = "冻结标识")
|
||||
private String isProvisional;
|
||||
|
||||
@Schema(description = "税号/社会信用代码")
|
||||
private String taxNumber;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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) {
|
||||
|
||||
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user