模组信息查询

This commit is contained in:
2023-03-07 10:27:24 +08:00
parent 7aa7e382a8
commit f3f08353ae
7 changed files with 39 additions and 2 deletions

View File

@@ -118,5 +118,19 @@
group by twpbs.ORDER_NAME
</select>
<select id="substrateList" resultType="com.cnbm.packing.dto.WoPackagingBoxSubstrateDTO">
select
twpb.CREATE_TIME as boxCreateTime,twpbs.*,twpb.PRINT_TIME as printTime
from t_wo_packaging_box_substrate twpbs
left join t_wo_packaging_box twpb on twpbs.PACKAGING_BOX_ID = twpb.BOX_NO
<where>
<if test="woSubstrateId != null and woSubstrateId != ''">
and twpbs.WO_SUBSTRATE_ID like CONCAT(CONCAT('%',#{woSubstrateId}),'%')
</if>
AND twpbs.valid = 1
</where>
order by twpb.CREATE_TIME desc
</select>
</mapper>