报表查询
This commit is contained in:
@@ -124,9 +124,16 @@
|
||||
from t_wo_packaging_box_substrate twpbs
|
||||
left join t_wo_packaging_box twpb on twpbs.PACKAGING_BOX_ID = twpb.BOX_NO
|
||||
<where>
|
||||
twpb.model = #{model}
|
||||
<if test="woSubstrateId != null and woSubstrateId != ''">
|
||||
and twpbs.WO_SUBSTRATE_ID like CONCAT(CONCAT('%',#{woSubstrateId}),'%')
|
||||
</if>
|
||||
<if test="packagingBoxId != null and packagingBoxId != ''">
|
||||
and twpbs.PACKAGING_BOX_ID like CONCAT(CONCAT('%',#{packagingBoxId}),'%')
|
||||
</if>
|
||||
<if test="startTime != null and endTime != null">
|
||||
and twpb.CREATE_TIME between #{startTime} AND #{endTime}
|
||||
</if>
|
||||
AND twpbs.valid = 1
|
||||
</where>
|
||||
order by twpb.CREATE_TIME desc
|
||||
|
||||
Reference in New Issue
Block a user