|
|
|
@ -4,34 +4,32 @@ |
|
|
|
<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 |
|
|
|
where 订单号=#{orderNo} |
|
|
|
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 |
|
|
|
where 卷号=#{rollNo} |
|
|
|
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"> |
|
|
|
exec dbo.Get_Report_FileList #{customerId},#{reportFamily} |
|
|
|
exec dbo.Get_Report_FileList #{customerId}, #{reportFamily} |
|
|
|
</select> |
|
|
|
<select id="getReportSubFileList" resultType="java.util.Map"> |
|
|
|
exec Get_Report_SubFileList #{reportId},#{customerId},#{reportFamily},#{defaultFlag} |
|
|
|
exec Get_Report_SubFileList #{reportId}, #{customerId}, #{reportFamily}, #{defaultFlag} |
|
|
|
</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 |
|
|
|
where 卷号=#{rollNo} |
|
|
|
Select top 1 * |
|
|
|
from dbo.view_Print_Box_Label |
|
|
|
where 卷号 = #{rollNo} |
|
|
|
</select> |
|
|
|
|
|
|
|
|