wangliang преди 1 година
родител
ревизия
227173c6fe
променени са 2 файла, в които са добавени 7 реда и са изтрити 3 реда
  1. 3 1
      sop-business/src/main/resources/mapper/SysDeviceMapper.xml
  2. 4 2
      sop-business/src/main/resources/mapper/TBCrmMapper.xml

+ 3 - 1
sop-business/src/main/resources/mapper/SysDeviceMapper.xml

@@ -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>
             </if>
         </where>
-        order by a.device_code desc
+        order by a.create_time desc
     </select>
 </mapper>

+ 4 - 2
sop-business/src/main/resources/mapper/TBCrmMapper.xml

@@ -245,9 +245,11 @@
                 ]]>
             </if>
         </where>
-        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,