单据排序

pro
wangwei 2 years ago
parent a14c66d2c8
commit 320b8f0487

@ -188,5 +188,6 @@ public class FilterOrderRequest extends ListPageRequest {
private String supInoivceSearch; private String supInoivceSearch;
private List<String> invoiceActions1; private List<String> invoiceActions1;
private List<String> invoiceActions2; private List<String> invoiceActions2;
private String orderBy;
} }

@ -36,6 +36,7 @@ public class FilterReceiveRequest extends ListPageRequest {
private String targetInvCode; private String targetInvCode;
private Integer type; private Integer type;
private String orderBy;
} }

@ -107,4 +107,5 @@ public class PurApplyRequest extends ListPageRequest {
private Date arrivalTime; private Date arrivalTime;
private String startAuditDate; private String startAuditDate;
private String endAuditDate; private String endAuditDate;
private String orderBy;
} }

@ -95,6 +95,7 @@ public class PurOrderRequest extends ListPageRequest {
private Date arrivalTime; private Date arrivalTime;
private String startAuditDate; private String startAuditDate;
private String endAuditDate; private String endAuditDate;
private String orderBy;

@ -95,6 +95,7 @@ public class PurPlanRequest extends ListPageRequest {
private Date arrivalTime; private Date arrivalTime;
private String startAuditDate; private String startAuditDate;
private String endAuditDate; private String endAuditDate;
private String orderBy;

@ -722,6 +722,7 @@ public class IoOrderServiceImpl implements IoOrderService {
@Override @Override
public List<IoOrderEntity> filterOrderTrace(String billNo) { public List<IoOrderEntity> filterOrderTrace(String billNo) {
IoOrderEntity order = orderDao.selectOne(new QueryWrapper<IoOrderEntity>().eq("billNo", billNo)); IoOrderEntity order = orderDao.selectOne(new QueryWrapper<IoOrderEntity>().eq("billNo", billNo));
if (null == order) { if (null == order) {
return Collections.emptyList(); return Collections.emptyList();
} }

@ -135,7 +135,14 @@
</if> </if>
</if> </if>
</where> </where>
order by createTime desc <choose>
<when test="(orderBy!=null ) and (sort=='desc' or sort=='asc')">
order by ${orderBy} ${sort}
</when>
<otherwise>
order by updateTime desc
</otherwise>
</choose>
</select> </select>
@ -283,7 +290,14 @@
</if> </if>
</if> </if>
</where> </where>
order by createTime desc <choose>
<when test="(orderBy!=null ) and (sort=='desc' or sort=='asc')">
order by ${orderBy} ${sort}
</when>
<otherwise>
order by updateTime desc
</otherwise>
</choose>
</select> </select>
<select id="filterOrderList" resultType="com.glxp.api.entity.inout.IoOrderEntity"> <select id="filterOrderList" resultType="com.glxp.api.entity.inout.IoOrderEntity">

@ -56,5 +56,15 @@
AND (status=3 or status=4) AND (status=3 or status=4)
</if> </if>
</where> </where>
<choose>
<when test="(orderBy!=null ) and (sort=='desc' or sort=='asc')">
order by ${orderBy} ${sort}
</when>
<otherwise>
ORDER BY updateTime DESC
</otherwise>
</choose>
</select> </select>
</mapper> </mapper>

@ -68,7 +68,14 @@
AND emergency = #{emergency} AND emergency = #{emergency}
</if> </if>
</where> </where>
order by pur_apply.updateTime desc <choose>
<when test="(orderBy!=null ) and (sort=='desc' or sort=='asc')">
order by ${orderBy} ${sort}
</when>
<otherwise>
ORDER BY updateTime DESC
</otherwise>
</choose>
</select> </select>
<insert id="insert" keyProperty="id" keyColumn="id" <insert id="insert" keyProperty="id" keyColumn="id"

@ -97,6 +97,13 @@
AND emergency = #{emergency} AND emergency = #{emergency}
</if> </if>
</where> </where>
order by pur_order.updateTime desc <choose>
<when test="(orderBy!=null ) and (sort=='desc' or sort=='asc')">
order by ${orderBy} ${sort}
</when>
<otherwise>
order by pur_order.updateTime desc
</otherwise>
</choose>
</select> </select>
</mapper> </mapper>

@ -62,7 +62,14 @@
AND emergency = #{emergency} AND emergency = #{emergency}
</if> </if>
</where> </where>
order by pur_plan.updateTime desc <choose>
<when test="(orderBy!=null ) and (sort=='desc' or sort=='asc')">
order by ${orderBy} ${sort}
</when>
<otherwise>
ORDER BY pur_plan.updateTime DESC
</otherwise>
</choose>
</select> </select>
<insert id="insert" keyProperty="id" <insert id="insert" keyProperty="id"

Loading…
Cancel
Save