소스 검색

排序修改

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,