fix: 修复

dev_unify
chenhc 8 months ago
parent 7204aac90e
commit 14baf9e1d5

@ -1,5 +1,7 @@
package com.glxp.api.res.collect;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
@ -84,4 +86,28 @@ public class RelCodeBatchResponse {
private Integer packLayer;
private String erpId;
private String parentCode;
/**
* curCode
*/
@TableField(value = "curCode")
@ApiModelProperty(value = "")
private String curCode;
@TableField(value = "oneLevelCount")
@ApiModelProperty(value = "")
private Integer oneLevelCount;
@TableField(value = "twoLevelCount")
@ApiModelProperty(value = "")
private Integer twoLevelCount;
@TableField(value = "threeLevelCount")
@ApiModelProperty(value = "")
private Integer threeLevelCount;
}

@ -42,7 +42,12 @@
bp.cpmctymc,
bp.bhxjsl,
bp.packLevel AS packLayer,
bp.packUnit
bp.packUnit,
a.parentCode,
a.curCode,
a.oneLevelCount,
a.twoLevelCount,
a.threeLevelCount
from rel_code_batch a
LEFT JOIN basic_products bp ON bp.nameCode = a.productCode
<where>
@ -59,7 +64,10 @@
and (
a.productCode LIKE concat('%', #{keyWords}, '%')
or a.subTypeNo LIKE concat('%', #{keyWords}, '%')
or a.packageSpec LIKE concat('%', #{keyWords}, '%'))
or a.packageSpec LIKE concat('%', #{keyWords}, '%')
or a.curCode LIKE concat('%', #{keyWords}, '%')
or a.parentCode LIKE concat('%', #{keyWords}, '%')
)
</if>
<if test="lineName != '' and lineName != null">
AND a.lineName LIKE concat('%', #{lineName}, '%')

Loading…
Cancel
Save