|
|
|
@ -4,11 +4,13 @@ |
|
|
|
<mapper namespace="com.gaotao.modules.print.dao.OutBoxPrintMapper"> |
|
|
|
|
|
|
|
<select id="getBoxLabelSO" resultType="com.gaotao.modules.print.entity.vo.OutBoxPrintVo"> |
|
|
|
Select 客户编码 as customer_id,数量 as sum_qty,每箱数量 as box_qty from view_Print_Box_Label_SO |
|
|
|
Select 客户编码 as customer_id, 数量 as sum_qty, 每箱数量 as box_qty |
|
|
|
from view_Print_Box_Label_SO |
|
|
|
where 订单号 = #{orderNo} |
|
|
|
</select> |
|
|
|
<select id="getBoxLabelSOByRollNo" resultType="com.gaotao.modules.print.entity.vo.OutBoxPrintVo"> |
|
|
|
Select 客户编码 as customer_id,数量 as sum_qty,每箱数量 as box_qty from view_Print_Box_Label |
|
|
|
Select 客户编码 as customer_id, 数量 as sum_qty, 每箱数量 as box_qty |
|
|
|
from view_Print_Box_Label |
|
|
|
where 卷号 = #{rollNo} |
|
|
|
</select> |
|
|
|
<select id="getReportFileByCustomer" resultType="java.util.Map"> |
|
|
|
@ -19,18 +21,14 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getBoxLabelPrintData" resultType="java.util.Map"> |
|
|
|
Select top 1 * from view_Print_Box_Label |
|
|
|
<where> |
|
|
|
<if test="orderNo != '' and orderNo != null"> |
|
|
|
生产单号=#{orderNo} |
|
|
|
</if> |
|
|
|
<if test="rollNo != '' and rollNo != null"> |
|
|
|
and 卷号=#{rollNo} |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
Select top 1 * |
|
|
|
from view_Print_Box_Label_SO |
|
|
|
where 生产单号 = #{orderNo} |
|
|
|
|
|
|
|
</select> |
|
|
|
<select id="getBoxLabelPrintRollData" resultType="java.util.Map"> |
|
|
|
Select top 1 * from dbo.view_Print_Box_Label_SO |
|
|
|
Select top 1 * |
|
|
|
from dbo.view_Print_Box_Label |
|
|
|
where 卷号 = #{rollNo} |
|
|
|
</select> |
|
|
|
|
|
|
|
|