装箱单信息查询分页
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
<id column="UOC_FL1" property="uocFl1" />
|
||||
<id column="UOC_FL2" property="uocFl2" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<resultMap id="ResultMapPowerRe" type="com.cnbm.packing.dto.PowerReportDTO">
|
||||
<result column="sub_num" property="subNum" />
|
||||
<result column="sub_level" property="subLevel" />
|
||||
@@ -143,6 +143,27 @@
|
||||
order by twpb.CREATE_TIME desc
|
||||
</select>
|
||||
|
||||
<select id="substratePage" 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>
|
||||
twpb.model = #{param.model}
|
||||
<if test="param.woSubstrateId != null and param.woSubstrateId != ''">
|
||||
and twpbs.WO_SUBSTRATE_ID like CONCAT(CONCAT('%',#{param.woSubstrateId}),'%')
|
||||
</if>
|
||||
<if test="param.packagingBoxId != null and param.packagingBoxId != ''">
|
||||
and twpbs.PACKAGING_BOX_ID like CONCAT(CONCAT('%',#{param.packagingBoxId}),'%')
|
||||
</if>
|
||||
<if test="param.startTime != null and param.endTime != null">
|
||||
and twpb.CREATE_TIME between #{param.startTime} AND #{param.endTime}
|
||||
</if>
|
||||
AND twpbs.valid = 1
|
||||
</where>
|
||||
order by twpb.CREATE_TIME desc
|
||||
</select>
|
||||
|
||||
<select id="subIdPage" resultMap="ResultMap">
|
||||
SELECT
|
||||
twpb.BOX_NO ,twpbs.WO_SUBSTRATE_ID as SUB_ID ,twpb.CREATE_TIME
|
||||
|
||||
Reference in New Issue
Block a user