|
@@ -54,6 +54,26 @@
|
|
|
order by qbm.create_time
|
|
|
</select>
|
|
|
|
|
|
+ <select id="listQrBoxCodeMappingForExcel" resultType="com.abi.qms.platform.dao.vo.result.QrBoxMappingVO">
|
|
|
+ select
|
|
|
+ qbm.id,qbm.box_code,qbm.index_begin,qbm.index_end,qbm.qr_code_count,qbm.project_no,qbm.board_no,qbm.remark,
|
|
|
+ qbm.create_user_name,qbm.create_time,qbm.active_time,qbm.active_user_name,qbm.active_status,qbm.package_id,
|
|
|
+ qbm.invalid,bf.factory_name,qbm.begin_qr_code,qbm.end_qr_code
|
|
|
+ from qr_box_mapping qbm
|
|
|
+ inner join qr_package qp on qp.id=qbm.package_id
|
|
|
+ left join base_factory bf on bf.id=qp.factory_beer_id
|
|
|
+ <where>
|
|
|
+ <if test="activeStatus != null ">
|
|
|
+ AND qbm.active_status = #{activeStatus}
|
|
|
+ </if>
|
|
|
+ <if test="packageId !=null">
|
|
|
+ AND qbm.packageId = #{packageId}
|
|
|
+ </if>
|
|
|
+ and qbm.is_delete = 0
|
|
|
+ </where>
|
|
|
+ order by qbm.create_time
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="getPrintingDetail" resultType="com.abi.qms.platform.dao.vo.result.PrintingDetailVO">
|
|
|
select
|
|
|
qbm.begin_qr_code,qbm.end_qr_code,qbm.create_time,qbm.box_code,qbm.qr_code_count,
|