@@ -24,6 +24,8 @@
<if test="bound != null and bound != ''">
and a.bound = #{bound}
</if>
+
<if test="enable != null">
<choose>
<when test="enable">
@@ -35,6 +37,6 @@
</choose>
</where>
- order by a.device_code desc
+ order by a.create_time desc
</select>
</mapper>
@@ -245,9 +245,11 @@
]]>
- ORDER BY a.crm_no DESC
- </select>
+ ORDER BY
+ a.create_time DESC
+ </select>
<select id="findCrmProjectBySopNo" resultType="com.qmth.sop.business.bean.result.CrmProjectResult">
SELECT
tbc.crm_no AS crmNo,