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