erp物料增加字段

This commit is contained in:
liss
2025-10-28 16:53:05 +08:00
parent ee3b372557
commit 1585b5611a
6 changed files with 87 additions and 2 deletions

View File

@@ -30,11 +30,17 @@
left join SPLY_ERP_CPN c on r.ERP_NUM = c.NUM
where d.DELETED = 0
and d.IS_COMPANY = 1
<if test="erpNumber != null">
and c.NUM = #{erpNumber}
</if>
<if test="number != null">
and d.CODE = #{number}
</if>
<if test="name != null">
and d.NAME = #{name}
and d.NAME like concat('%', #{name}, '%')
</if>
<if test="erpName != null">
and c.NAME = #{erpName}
and c.NAME like concat('%', #{erpName}, '%')
</if>
<if test="manager != null">
and d.LEADER_USER_ID = #{manager}

View File

@@ -8,6 +8,8 @@ import com.zt.plat.module.erp.api.dto.ErpSubmitReqDTO;
import com.zt.plat.module.erp.service.erp.ErpProductiveVersionService;
import com.zt.plat.module.erp.utils.ErpConfig;
import jakarta.annotation.Resource;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@@ -25,6 +27,7 @@ import static com.zt.plat.framework.common.pojo.CommonResult.success;
*/
@RestController
@Validated
@Component
public class ErpExternalApiImpl implements ErpExternalApi {
@Resource

View File

@@ -58,4 +58,20 @@ public class ErpMaterialPageReqVO extends PageParam {
@Schema(description = "类型")
private String type;
@Schema(description = "金属元素缩写")
private String abbreviation;
@Schema(description = "金属元素名称", example = "赵六")
private String name;
@Schema(description = "金属元素编码")
private String coding;
@Schema(description = "品位单位")
private String gradeUnit;
@Schema(description = "小数位数")
private Long decimalValue;
}

View File

@@ -77,6 +77,26 @@ public class ErpMaterialRespVO {
@ExcelProperty("类型")
private String type;
@Schema(description = "金属元素缩写")
@ExcelProperty("金属元素缩写")
private String abbreviation;
@Schema(description = "金属元素名称", example = "赵六")
@ExcelProperty("金属元素名称")
private String name;
@Schema(description = "金属元素编码")
@ExcelProperty("金属元素编码")
private String coding;
@Schema(description = "品位单位")
@ExcelProperty("品位单位")
private String gradeUnit;
@Schema(description = "小数位数")
@ExcelProperty("小数位数")
private Long decimalValue;
private List<MaterialOtherDTO> materialOtherDTOS;
}

View File

@@ -69,4 +69,19 @@ public class ErpMaterialSaveReqVO {
@Schema(description = "类型")
private String type;
@Schema(description = "金属元素缩写")
private String abbreviation;
@Schema(description = "金属元素名称", example = "赵六")
private String name;
@Schema(description = "金属元素编码")
private String coding;
@Schema(description = "品位单位")
private String gradeUnit;
@Schema(description = "小数位数")
private Long decimalValue;
}

View File

@@ -100,5 +100,30 @@ public class ErpMaterialDO extends BusinessBaseDO {
@TableField("TP")
private String type;
/**
* 金属元素缩写
*/
@TableField("ABBR")
private String abbreviation;
/**
* 金属元素名称
*/
@TableField("NAME")
private String name;
/**
* 金属元素编码
*/
@TableField("CDG")
private String coding;
/**
* 品位单位
*/
@TableField("GRD_UNT")
private String gradeUnit;
/**
* 小数位数
*/
@TableField("DEC")
private Long decimalValue;
}