ソースを参照

广电报备排序默认倒序

mac 2 年 前
コミット
f8c9ae8daa

+ 1 - 0
kxs-product/kxs-product-biz/src/main/java/com/kxs/product/biz/controller/admin/SysGdController.java

@@ -41,6 +41,7 @@ public class SysGdController {
                         .eq(StrUtil.isNotBlank(param.getGdMobile()),KxsGdReport::getGdMobile, param.getGdMobile())
                         .eq(StrUtil.isNotBlank(param.getUserCode()),KxsGdReport::getUserCode, param.getUserCode())
                         .eq(param.getIsCheck() != null, KxsGdReport::getIsCheck, param.getIsCheck())
+                        .orderByDesc(KxsGdReport::getId)
                 ));
     }
 

+ 1 - 0
kxs-product/kxs-product-biz/src/main/resources/mapper/KxsGdReportMapper.xml

@@ -33,6 +33,7 @@
                 and (put_name = #{keyword} or put_mobile = #{keyword})
             </if>
         </where>
+        order by id desc
     </select>
 
 </mapper>