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 @@ ...@@ -386,6 +386,7 @@
<select id="getMechanicRepertoryList" parameterType="java.util.Map" <select id="getMechanicRepertoryList" parameterType="java.util.Map"
resultType="com.glsx.ordercenter.dto.MechanicRepertoryReq"> resultType="com.glsx.ordercenter.dto.MechanicRepertoryReq">
SELECT * FROM (
SELECT SELECT
su.id id, su.id id,
su.name name, su.name name,
...@@ -408,12 +409,13 @@ ...@@ -408,12 +409,13 @@
and sdr.device_type = #{deviceType} and sdr.device_type = #{deviceType}
</if> </if>
GROUP BY sdr.user_id GROUP BY sdr.user_id
) tb
<choose> <choose>
<when test="sortType == 1"> <when test="sortType == 1">
ORDER BY sdr.device_num DESC ORDER BY tb.deviceNum DESC
</when> </when>
<otherwise> <otherwise>
ORDER BY sdr.device_num ASC ORDER BY tb.deviceNum ASC
</otherwise> </otherwise>
</choose> </choose>
</select> </select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!