添加单据排序

This commit is contained in:
yinjinlu-pc\尹金路 2023-06-19 13:07:48 +08:00
parent 03b2635b90
commit 3065ba2101
22 changed files with 22 additions and 0 deletions

View File

@ -83,6 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="recordNick != null "> and record_nick = #{recordNick}</if> <if test="recordNick != null "> and record_nick = #{recordNick}</if>
<if test="status != null "> and status = #{status}</if> <if test="status != null "> and status = #{status}</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectProFeedbackByRecordId" parameterType="Long" resultMap="ProFeedbackResult"> <select id="selectProFeedbackByRecordId" parameterType="Long" resultMap="ProFeedbackResult">

View File

@ -33,6 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="attention != null and attention != ''"> and attention = #{attention}</if> <if test="attention != null and attention != ''"> and attention = #{attention}</if>
<if test="enableFlag != null and enableFlag != ''"> and enable_flag = #{enableFlag}</if> <if test="enableFlag != null and enableFlag != ''"> and enable_flag = #{enableFlag}</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectProProcessByProcessId" parameterType="Long" resultMap="ProProcessResult"> <select id="selectProProcessByProcessId" parameterType="Long" resultMap="ProProcessResult">

View File

@ -33,6 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="routeDesc != null and routeDesc != ''"> and route_desc = #{routeDesc}</if> <if test="routeDesc != null and routeDesc != ''"> and route_desc = #{routeDesc}</if>
<if test="enableFlag != null and enableFlag != ''"> and enable_flag = #{enableFlag}</if> <if test="enableFlag != null and enableFlag != ''"> and enable_flag = #{enableFlag}</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectProRouteByRouteId" parameterType="Long" resultMap="ProRouteResult"> <select id="selectProRouteByRouteId" parameterType="Long" resultMap="ProRouteResult">

View File

@ -67,6 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="quantityTransfered != null "> and quantity_transfered = #{quantityTransfered}</if> <if test="quantityTransfered != null "> and quantity_transfered = #{quantityTransfered}</if>
<if test="produceDate != null "> and produce_date = #{produceDate}</if> <if test="produceDate != null "> and produce_date = #{produceDate}</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectProTransOrderByTransOrderId" parameterType="Long" resultMap="ProTransOrderResult"> <select id="selectProTransOrderByTransOrderId" parameterType="Long" resultMap="ProTransOrderResult">

View File

@ -67,6 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="ancestors != null and ancestors != ''"> and ancestors = #{ancestors}</if> <if test="ancestors != null and ancestors != ''"> and ancestors = #{ancestors}</if>
<if test="status != null and status != ''"> and status = #{status}</if> <if test="status != null and status != ''"> and status = #{status}</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectProWorkorderByWorkorderId" parameterType="Long" resultMap="ProWorkorderResult"> <select id="selectProWorkorderByWorkorderId" parameterType="Long" resultMap="ProWorkorderResult">

View File

@ -93,6 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="inspector != null and inspector != ''"> and inspector = #{inspector}</if> <if test="inspector != null and inspector != ''"> and inspector = #{inspector}</if>
<if test="status != null and status != ''"> and status = #{status}</if> <if test="status != null and status != ''"> and status = #{status}</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectQcIpqcByIpqcId" parameterType="Long" resultMap="QcIpqcResult"> <select id="selectQcIpqcByIpqcId" parameterType="Long" resultMap="QcIpqcResult">

View File

@ -84,6 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="inspector != null and inspector != ''"> and inspector = #{inspector}</if> <if test="inspector != null and inspector != ''"> and inspector = #{inspector}</if>
<if test="status != null and status != ''"> and status = #{status}</if> <if test="status != null and status != ''"> and status = #{status}</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectQcIqcByIqcId" parameterType="Long" resultMap="QcIqcResult"> <select id="selectQcIqcByIqcId" parameterType="Long" resultMap="QcIqcResult">

View File

@ -83,6 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="inspector != null and inspector != ''"> and inspector = #{inspector}</if> <if test="inspector != null and inspector != ''"> and inspector = #{inspector}</if>
<if test="status != null and status != ''"> and status = #{status}</if> <if test="status != null and status != ''"> and status = #{status}</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectQcOqcByOqcId" parameterType="Long" resultMap="QcOqcResult"> <select id="selectQcOqcByOqcId" parameterType="Long" resultMap="QcOqcResult">

View File

@ -45,6 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="attr3 != null "> and attr3 = #{attr3}</if> <if test="attr3 != null "> and attr3 = #{attr3}</if>
<if test="attr4 != null "> and attr4 = #{attr4}</if> <if test="attr4 != null "> and attr4 = #{attr4}</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectWmBarcodeByBarcodeId" parameterType="Long" resultMap="WmBarcodeResult"> <select id="selectWmBarcodeByBarcodeId" parameterType="Long" resultMap="WmBarcodeResult">

View File

@ -107,6 +107,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="issueDate != null "> and issue_date = #{issueDate}</if> <if test="issueDate != null "> and issue_date = #{issueDate}</if>
<if test="status != null and status != ''"> and status = #{status}</if> <if test="status != null and status != ''"> and status = #{status}</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectWmIssueHeaderByIssueId" parameterType="Long" resultMap="WmIssueHeaderResult"> <select id="selectWmIssueHeaderByIssueId" parameterType="Long" resultMap="WmIssueHeaderResult">

View File

@ -61,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="areaCode != null and areaCode != ''"> and area_code = #{areaCode}</if> <if test="areaCode != null and areaCode != ''"> and area_code = #{areaCode}</if>
<if test="areaName != null and areaName != ''"> and area_name like concat('%', #{areaName}, '%')</if> <if test="areaName != null and areaName != ''"> and area_name like concat('%', #{areaName}, '%')</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectWmIssueLineByLineId" parameterType="Long" resultMap="WmIssueLineResult"> <select id="selectWmIssueLineByLineId" parameterType="Long" resultMap="WmIssueLineResult">

View File

@ -61,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="areaName != null and areaName != ''"> and area_name like concat('%', #{areaName}, '%')</if> <if test="areaName != null and areaName != ''"> and area_name like concat('%', #{areaName}, '%')</if>
<if test="expireDate != null "> and expire_date = #{expireDate}</if> <if test="expireDate != null "> and expire_date = #{expireDate}</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectWmItemRecptLineByLineId" parameterType="Long" resultMap="WmItemRecptLineResult"> <select id="selectWmItemRecptLineByLineId" parameterType="Long" resultMap="WmItemRecptLineResult">

View File

@ -99,6 +99,7 @@
<if test="recptDate != null "> and recpt_date = #{recptDate}</if> <if test="recptDate != null "> and recpt_date = #{recptDate}</if>
<if test="status != null and status != ''"> and status = #{status}</if> <if test="status != null and status != ''"> and status = #{status}</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectWmItemRecptByRecptId" parameterType="Long" resultMap="WmItemRecptResult"> <select id="selectWmItemRecptByRecptId" parameterType="Long" resultMap="WmItemRecptResult">

View File

@ -61,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="areaCode != null and areaCode != ''"> and area_code = #{areaCode}</if> <if test="areaCode != null and areaCode != ''"> and area_code = #{areaCode}</if>
<if test="areaName != null and areaName != ''"> and area_name like concat('%', #{areaName}, '%')</if> <if test="areaName != null and areaName != ''"> and area_name like concat('%', #{areaName}, '%')</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectWmProductSalseLineByLineId" parameterType="Long" resultMap="WmProductSalseLineResult"> <select id="selectWmProductSalseLineByLineId" parameterType="Long" resultMap="WmProductSalseLineResult">

View File

@ -100,6 +100,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="salseDate != null "> and salse_date = #{salseDate}</if> <if test="salseDate != null "> and salse_date = #{salseDate}</if>
<if test="status != null and status != ''"> and status = #{status}</if> <if test="status != null and status != ''"> and status = #{status}</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectWmProductSalseBySalseId" parameterType="Long" resultMap="WmProductSalseResult"> <select id="selectWmProductSalseBySalseId" parameterType="Long" resultMap="WmProductSalseResult">

View File

@ -61,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="areaCode != null and areaCode != ''"> and area_code = #{areaCode}</if> <if test="areaCode != null and areaCode != ''"> and area_code = #{areaCode}</if>
<if test="areaName != null and areaName != ''"> and area_name like concat('%', #{areaName}, '%')</if> <if test="areaName != null and areaName != ''"> and area_name like concat('%', #{areaName}, '%')</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectWmRtIssueLineByLineId" parameterType="Long" resultMap="WmRtIssueLineResult"> <select id="selectWmRtIssueLineByLineId" parameterType="Long" resultMap="WmRtIssueLineResult">

View File

@ -80,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="rtDate != null "> and rt_date = #{rtDate}</if> <if test="rtDate != null "> and rt_date = #{rtDate}</if>
<if test="status != null and status != ''"> and status = #{status}</if> <if test="status != null and status != ''"> and status = #{status}</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectWmRtIssueByRtId" parameterType="Long" resultMap="WmRtIssueResult"> <select id="selectWmRtIssueByRtId" parameterType="Long" resultMap="WmRtIssueResult">

View File

@ -112,6 +112,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="attr3 != null "> and attr3 = #{attr3}</if> <if test="attr3 != null "> and attr3 = #{attr3}</if>
<if test="attr4 != null "> and attr4 = #{attr4}</if> <if test="attr4 != null "> and attr4 = #{attr4}</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectWmRtSalseByRtId" parameterType="Long" resultMap="WmRtSalseResult"> <select id="selectWmRtSalseByRtId" parameterType="Long" resultMap="WmRtSalseResult">

View File

@ -61,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="areaCode != null and areaCode != ''"> and area_code = #{areaCode}</if> <if test="areaCode != null and areaCode != ''"> and area_code = #{areaCode}</if>
<if test="areaName != null and areaName != ''"> and area_name like concat('%', #{areaName}, '%')</if> <if test="areaName != null and areaName != ''"> and area_name like concat('%', #{areaName}, '%')</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectWmRtVendorLineByLineId" parameterType="Long" resultMap="WmRtVendorLineResult"> <select id="selectWmRtVendorLineByLineId" parameterType="Long" resultMap="WmRtVendorLineResult">

View File

@ -77,6 +77,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="rtDate != null "> and rt_date = #{rtDate}</if> <if test="rtDate != null "> and rt_date = #{rtDate}</if>
<if test="status != null and status != ''"> and status = #{status}</if> <if test="status != null and status != ''"> and status = #{status}</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectWmRtVendorByRtId" parameterType="Long" resultMap="WmRtVendorResult"> <select id="selectWmRtVendorByRtId" parameterType="Long" resultMap="WmRtVendorResult">

View File

@ -93,6 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="vendorName != null and vendorName != ''"> and vendor_name like concat('%', #{vendorName}, '%')</if> <if test="vendorName != null and vendorName != ''"> and vendor_name like concat('%', #{vendorName}, '%')</if>
<if test="vendorNick != null and vendorNick != ''"> and vendor_nick = #{vendorNick}</if> <if test="vendorNick != null and vendorNick != ''"> and vendor_nick = #{vendorNick}</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectWmTransferLineByLineId" parameterType="Long" resultMap="WmTransferLineResult"> <select id="selectWmTransferLineByLineId" parameterType="Long" resultMap="WmTransferLineResult">

View File

@ -105,6 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="transferDate != null "> and transfer_date = #{transferDate}</if> <if test="transferDate != null "> and transfer_date = #{transferDate}</if>
<if test="status != null and status != ''"> and status = #{status}</if> <if test="status != null and status != ''"> and status = #{status}</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectWmTransferByTransferId" parameterType="Long" resultMap="WmTransferResult"> <select id="selectWmTransferByTransferId" parameterType="Long" resultMap="WmTransferResult">