领料申请和审核页排序
This commit is contained in:
parent
aa6234f8ca
commit
aec62975ba
|
|
@ -270,4 +270,7 @@ public class TmTask implements Serializable {
|
||||||
private Integer souceByRefuse;
|
private Integer souceByRefuse;
|
||||||
private int souceBy;
|
private int souceBy;
|
||||||
|
|
||||||
|
/**0:update_time ASC 1:update_time DESC 2:task_status ASC 3:task_status DESC*/
|
||||||
|
private int orderStatus;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -532,7 +532,15 @@
|
||||||
tt.code like concat('%', #{record.keyWord}, '%'))
|
tt.code like concat('%', #{record.keyWord}, '%'))
|
||||||
</if>
|
</if>
|
||||||
GROUP BY tt.task_id
|
GROUP BY tt.task_id
|
||||||
ORDER BY tt.update_time DESC
|
order by
|
||||||
|
case when #{record.orderStatus} = 0 then tt.update_time
|
||||||
|
when #{record.orderStatus} = 1 then tt.update_time
|
||||||
|
when #{record.orderStatus} = 2 then tt.task_status
|
||||||
|
when #{record.orderStatus} = 3 then tt.task_status
|
||||||
|
end
|
||||||
|
<if test="record.orderStatus == 1 or record.orderStatus == 3">
|
||||||
|
desc
|
||||||
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getAuditManageListByLeaseTmTask" resultType="com.bonus.sgzb.app.domain.TmTask">
|
<select id="getAuditManageListByLeaseTmTask" resultType="com.bonus.sgzb.app.domain.TmTask">
|
||||||
|
|
@ -593,7 +601,15 @@
|
||||||
AND (bai.agreement_code like concat('%', #{record.keyWord}, '%') or tt.code like concat('%', #{record.keyWord}, '%'))
|
AND (bai.agreement_code like concat('%', #{record.keyWord}, '%') or tt.code like concat('%', #{record.keyWord}, '%'))
|
||||||
</if>
|
</if>
|
||||||
GROUP BY tt.task_id
|
GROUP BY tt.task_id
|
||||||
ORDER BY tt.task_status,tt.update_time DESC
|
order by
|
||||||
|
case when #{record.orderStatus} = 0 then tt.update_time
|
||||||
|
when #{record.orderStatus} = 1 then tt.update_time
|
||||||
|
when #{record.orderStatus} = 2 then tt.task_status
|
||||||
|
when #{record.orderStatus} = 3 then tt.task_status
|
||||||
|
end
|
||||||
|
<if test="record.orderStatus == 1 or record.orderStatus == 3">
|
||||||
|
desc
|
||||||
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getAuditListByLeaseInfo" resultType="com.bonus.sgzb.app.domain.LeaseApplyInfo">
|
<select id="getAuditListByLeaseInfo" resultType="com.bonus.sgzb.app.domain.LeaseApplyInfo">
|
||||||
|
|
@ -1001,7 +1017,15 @@
|
||||||
tt.code like concat('%', #{record.keyWord}, '%'))
|
tt.code like concat('%', #{record.keyWord}, '%'))
|
||||||
</if>
|
</if>
|
||||||
GROUP BY tt.task_id
|
GROUP BY tt.task_id
|
||||||
ORDER BY tt.update_time DESC
|
order by
|
||||||
|
case when #{record.orderStatus} = 0 then tt.update_time
|
||||||
|
when #{record.orderStatus} = 1 then tt.update_time
|
||||||
|
when #{record.orderStatus} = 2 then tt.task_status
|
||||||
|
when #{record.orderStatus} = 3 then tt.task_status
|
||||||
|
end
|
||||||
|
<if test="record.orderStatus == 1 or record.orderStatus == 3">
|
||||||
|
desc
|
||||||
|
</if>
|
||||||
</select>
|
</select>
|
||||||
<select id="getLeaseApplyDetailsByApply" resultType="com.bonus.sgzb.app.domain.LeaseApplyDetails">
|
<select id="getLeaseApplyDetailsByApply" resultType="com.bonus.sgzb.app.domain.LeaseApplyDetails">
|
||||||
SELECT
|
SELECT
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue