bug修改,物料编辑、客商加税号、公司查询
This commit is contained in:
@@ -31,10 +31,10 @@
|
|||||||
where d.DELETED = 0
|
where d.DELETED = 0
|
||||||
and d.IS_COMPANY = 1
|
and d.IS_COMPANY = 1
|
||||||
<if test="erpNumber != null">
|
<if test="erpNumber != null">
|
||||||
and c.NUM = #{erpNumber}
|
and c.NUM like concat('%', #{erpNumber}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="number != null">
|
<if test="number != null">
|
||||||
and d.CODE = #{number}
|
and d.CODE like concat('%', #{number}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="name != null">
|
<if test="name != null">
|
||||||
and d.NAME like concat('%', #{name}, '%')
|
and d.NAME like concat('%', #{name}, '%')
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.zt.plat.module.erp.controller.admin.erp.vo;
|
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 com.zt.plat.framework.common.pojo.PageParam;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@@ -42,4 +43,7 @@ public class ErpCustomerPageReqVO extends PageParam {
|
|||||||
@Schema(description = "冻结标识")
|
@Schema(description = "冻结标识")
|
||||||
private String isProvisional;
|
private String isProvisional;
|
||||||
|
|
||||||
|
@Schema(description = "税号/社会信用代码")
|
||||||
|
private String taxNumber;
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -52,4 +52,8 @@ public class ErpCustomerRespVO {
|
|||||||
@ExcelProperty("冻结标识")
|
@ExcelProperty("冻结标识")
|
||||||
private String isProvisional;
|
private String isProvisional;
|
||||||
|
|
||||||
|
@Schema(description = "税号/社会信用代码")
|
||||||
|
@ExcelProperty("税号")
|
||||||
|
private String taxNumber;
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -46,4 +46,6 @@ public class ErpCustomerSaveReqVO {
|
|||||||
@Schema(description = "冻结标识")
|
@Schema(description = "冻结标识")
|
||||||
private String isProvisional;
|
private String isProvisional;
|
||||||
|
|
||||||
|
@Schema(description = "税号/社会信用代码")
|
||||||
|
private String taxNumber;
|
||||||
}
|
}
|
||||||
@@ -77,7 +77,12 @@ public class ErpCustomerDO{
|
|||||||
@TableField("IS_PRVS")
|
@TableField("IS_PRVS")
|
||||||
private String isProvisional;
|
private String isProvisional;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField("IS_ENB")
|
||||||
private Integer TENANT_ID;
|
private String isEnable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 税号/社会信用代码
|
||||||
|
*/
|
||||||
|
@TableField("TAX_NUM")
|
||||||
|
private String taxNumber;
|
||||||
}
|
}
|
||||||
@@ -183,7 +183,7 @@ public class ErpCustomerServiceImpl implements ErpCustomerService {
|
|||||||
}
|
}
|
||||||
DO.setIsGiveback(dataJson.getString("XDELE"));
|
DO.setIsGiveback(dataJson.getString("XDELE"));
|
||||||
DO.setIsProvisional(dataJson.getString("XBLCK"));
|
DO.setIsProvisional(dataJson.getString("XBLCK"));
|
||||||
// DO.setType(type.modetype);
|
DO.setTaxNumber(dataJson.getString("TAXNO"));
|
||||||
|
|
||||||
// 使用 Map 优化查找效率,避免每次遍历 comnumbers 列表
|
// 使用 Map 优化查找效率,避免每次遍历 comnumbers 列表
|
||||||
if (number != null && numbers.get(number) != null) {
|
if (number != null && numbers.get(number) != null) {
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ public class ErpMaterialServiceImpl implements ErpMaterialService {
|
|||||||
public void updateErpMaterial(ErpMaterialSaveReqVO updateReqVO) {
|
public void updateErpMaterial(ErpMaterialSaveReqVO updateReqVO) {
|
||||||
// 校验存在
|
// 校验存在
|
||||||
validateErpMaterialExists(updateReqVO.getId());
|
validateErpMaterialExists(updateReqVO.getId());
|
||||||
|
validateErpFactoryExistsNumber(updateReqVO.getDownCenterNumber());
|
||||||
// 更新
|
// 更新
|
||||||
ErpMaterialDO updateObj = BeanUtils.toBean(updateReqVO, ErpMaterialDO.class);
|
ErpMaterialDO updateObj = BeanUtils.toBean(updateReqVO, ErpMaterialDO.class);
|
||||||
if (updateObj.getType().equals("SPLY")) {
|
if (updateObj.getType().equals("SPLY")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user