Browse Source

基础资料查询按ID倒序排序

chenw 7 years ago
parent
commit
8325ce4713

+ 1 - 1
applications/document/document-server/src/main/resources/mapper/BomMapper.xml

@@ -267,6 +267,6 @@
         AND companyId = #{companyId}
         AND companyId = #{companyId}
       </if>
       </if>
     </where>
     </where>
-    ORDER BY BO_ID
+    ORDER BY BO_ID DESC
   </select>
   </select>
 </mapper>
 </mapper>

+ 2 - 2
applications/document/document-server/src/main/resources/mapper/CustomerListMapper.xml

@@ -49,7 +49,7 @@
       <if test="companyId != null">
       <if test="companyId != null">
         and   customer.companyid = #{companyId}
         and   customer.companyid = #{companyId}
       </if>
       </if>
-    </where>  order by cu_id
+    </where>  order by cu_id DESC
   </select>
   </select>
 
 
   <select id="selectDbFind" resultMap="BaseResultMap">
   <select id="selectDbFind" resultMap="BaseResultMap">
@@ -75,7 +75,7 @@
         and  companyid = #{companyId}
         and  companyid = #{companyId}
       </if>
       </if>
     </where>
     </where>
-    order by cu_id
+    order by cu_id DESC
   </select>
   </select>
 
 
 
 

+ 1 - 0
applications/document/document-server/src/main/resources/mapper/ProductMapper.xml

@@ -70,6 +70,7 @@
                 and  PRODUCT.companyid = #{companyId}
                 and  PRODUCT.companyid = #{companyId}
             </if>
             </if>
         </where>
         </where>
+        ORDER BY PR_ID DESC
     </select>
     </select>
 
 
     <select id="getProdUnit" resultType="com.usoftchina.saas.commons.dto.ComboDTO">
     <select id="getProdUnit" resultType="com.usoftchina.saas.commons.dto.ComboDTO">

+ 1 - 1
applications/document/document-server/src/main/resources/mapper/VendorMapper.xml

@@ -50,7 +50,7 @@
                 AND companyId = #{companyId}
                 AND companyId = #{companyId}
             </if>
             </if>
         </where>
         </where>
-        ORDER BY VE_ID
+        ORDER BY VE_ID DESC
     </select>
     </select>
 
 
     <resultMap id="VendorListResultMapper" type="com.usoftchina.saas.document.entities.VendorList">
     <resultMap id="VendorListResultMapper" type="com.usoftchina.saas.document.entities.VendorList">

+ 1 - 1
applications/document/document-server/src/main/resources/mapper/WarehouseMapper.xml

@@ -326,7 +326,7 @@
                 and  companyid = #{companyId}
                 and  companyid = #{companyId}
             </if>
             </if>
         </where>
         </where>
-        order by wh_id
+        order by wh_id DESC
     </select>
     </select>
 
 
     <select id="selectCountByName" resultType="int">
     <select id="selectCountByName" resultType="int">