Commit 5a7a3b9e by duanhq

技工库存列表排序 v 1.2.0

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@22324 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 4e6024e2
......@@ -386,6 +386,7 @@
<select id="getMechanicRepertoryList" parameterType="java.util.Map"
resultType="com.glsx.ordercenter.dto.MechanicRepertoryReq">
SELECT * FROM (
SELECT
su.id id,
su.name name,
......@@ -408,12 +409,13 @@
and sdr.device_type = #{deviceType}
</if>
GROUP BY sdr.user_id
) tb
<choose>
<when test="sortType == 1">
ORDER BY sdr.device_num DESC
ORDER BY tb.deviceNum DESC
</when>
<otherwise>
ORDER BY sdr.device_num ASC
ORDER BY tb.deviceNum ASC
</otherwise>
</choose>
</select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!