Commit 5999cf23 authored by fangxinjiang's avatar fangxinjiang

合同派单排序按申请编号 倒序

parent 1676528f
...@@ -431,7 +431,7 @@ ...@@ -431,7 +431,7 @@
${tEmployeeContractInfo.authSql} ${tEmployeeContractInfo.authSql}
</if> </if>
</where> </where>
order by a.CREATE_TIME desc order by a.APPLY_NO desc
</select> </select>
<!--list--> <!--list-->
...@@ -443,7 +443,7 @@ ...@@ -443,7 +443,7 @@
a.DELETE_FLAG = 0 a.DELETE_FLAG = 0
<include refid="tEmployeeContractInfo_where"/> <include refid="tEmployeeContractInfo_where"/>
</where> </where>
order by a.CREATE_TIME desc order by a.APPLY_NO desc
</select> </select>
<!--导出--> <!--导出-->
...@@ -459,7 +459,7 @@ ...@@ -459,7 +459,7 @@
</if> </if>
</where> </where>
GROUP BY a.id GROUP BY a.id
order by a.CREATE_TIME desc order by a.APPLY_NO desc
</select> </select>
<!--导出历史合并--> <!--导出历史合并-->
...@@ -479,7 +479,7 @@ ...@@ -479,7 +479,7 @@
</if> </if>
</where> </where>
GROUP BY a.EMP_IDCARD,a.SETTLE_DOMAIN GROUP BY a.EMP_IDCARD,a.SETTLE_DOMAIN
order by a.CREATE_TIME desc order by a.APPLY_NO desc
</select> </select>
<!--tEmployeeContractInfo简单分页查询--> <!--tEmployeeContractInfo简单分页查询-->
...@@ -537,7 +537,7 @@ ...@@ -537,7 +537,7 @@
${tEmployeeContractInfo.authSql} ${tEmployeeContractInfo.authSql}
</if> </if>
</where> </where>
order by a.CREATE_TIME desc order by a.APPLY_NO desc
<if test="tEmployeeContractInfo != null"> <if test="tEmployeeContractInfo != null">
<if test="tEmployeeContractInfo.limitStart != null"> <if test="tEmployeeContractInfo.limitStart != null">
limit #{tEmployeeContractInfo.limitStart},#{tEmployeeContractInfo.limitEnd} limit #{tEmployeeContractInfo.limitStart},#{tEmployeeContractInfo.limitEnd}
......
...@@ -547,7 +547,7 @@ ...@@ -547,7 +547,7 @@
<include refid="tDispatchInfo_where"/> <include refid="tDispatchInfo_where"/>
</where> </where>
order by a.CREATE_TIME desc order by a.APPLY_NO desc
</select> </select>
<!--tDispatchInfo简单分页查询--> <!--tDispatchInfo简单分页查询-->
...@@ -562,7 +562,7 @@ ...@@ -562,7 +562,7 @@
<include refid="tDispatchInfo_where"/> <include refid="tDispatchInfo_where"/>
</where> </where>
order by a.CREATE_TIME desc order by a.APPLY_NO desc
</select> </select>
<!-- 派单导出 --> <!-- 派单导出 -->
...@@ -600,7 +600,7 @@ ...@@ -600,7 +600,7 @@
a.DELETE_FLAG = '0' a.DELETE_FLAG = '0'
<include refid="tDispatchInfo_where"/> <include refid="tDispatchInfo_where"/>
</where> </where>
order by a.CREATE_TIME desc order by a.APPLY_NO desc
<if test="tDispatchInfo.limitStart != null"> <if test="tDispatchInfo.limitStart != null">
limit #{tDispatchInfo.limitStart},#{tDispatchInfo.limitEnd} limit #{tDispatchInfo.limitStart},#{tDispatchInfo.limitEnd}
</if> </if>
...@@ -652,7 +652,7 @@ ...@@ -652,7 +652,7 @@
a.DELETE_FLAG = '0' and a.STATUS = '1' a.DELETE_FLAG = '0' and a.STATUS = '1'
<include refid="tDispatchInfoAudit_where"/> <include refid="tDispatchInfoAudit_where"/>
</where> </where>
order by a.CREATE_TIME desc order by a.APPLY_NO desc
<if test="tDispatchInfo.limitStart != null"> <if test="tDispatchInfo.limitStart != null">
limit #{tDispatchInfo.limitStart},#{tDispatchInfo.limitEnd} limit #{tDispatchInfo.limitStart},#{tDispatchInfo.limitEnd}
</if> </if>
...@@ -967,7 +967,7 @@ ...@@ -967,7 +967,7 @@
</if> </if>
</if> </if>
group by a.id group by a.id
order by a.CREATE_TIME desc order by a.APPLY_NO desc
</where> </where>
</sql> </sql>
...@@ -1077,7 +1077,7 @@ ...@@ -1077,7 +1077,7 @@
</if> </if>
</if> </if>
group by a.id group by a.id
order by a.CREATE_TIME desc order by a.APPLY_NO desc
</where> </where>
</sql> </sql>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment