浏览代码

fix 排序

Administrator 1 年之前
父节点
当前提交
01030a1b1b

+ 1 - 0
ruoyi-system/src/main/resources/mapper/system/BomanMaterialMapper.xml

@@ -28,6 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="releaseTime != null "> and release_time = #{releaseTime}</if>
             <if test="type != null "> and type = #{type}</if>
         </where>
+        order by create_time DESC
     </select>
     
     <select id="selectBomanMaterialByMaterialId" parameterType="Long" resultMap="BomanMaterialResult">

+ 1 - 0
ruoyi-system/src/main/resources/mapper/system/BomanNewsMapper.xml

@@ -54,6 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="orders != null "> and orders = #{orders}</if>
             <if test="releaseTime != null "> and DATE_FORMAT(release_time,'%Y%m') = DATE_FORMAT(#{releaseTime},'%Y%m');</if>
         </where>
+        order by create_time DESC
     </select>
     
     <select id="selectBomanNewsByNewsId" parameterType="Long" resultMap="BomanNewsResult">

+ 1 - 0
ruoyi-system/src/main/resources/mapper/system/BomanReservatConfigMapper.xml

@@ -27,6 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="reservatConfigHoliday != null  and reservatConfigHoliday != ''"> and reservat_config_holiday = #{reservatConfigHoliday}</if>
             <if test="createDept != null "> and create_dept = #{createDept}</if>
         </where>
+        order by create_time DESC
     </select>
     
     <select id="selectBomanReservatConfigByReservatConfigId" parameterType="Long" resultMap="BomanReservatConfigResult">

+ 1 - 0
ruoyi-system/src/main/resources/mapper/system/BomanReservatConfigTimeMapper.xml

@@ -33,6 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="reservatConfigType != null  and reservatConfigType != ''"> and reservat_config_type = #{reservatConfigType}</if>
             <if test="reservatConfigStatus != null  and reservatConfigStatus != ''"> and reservat_config_status = #{reservatConfigStatus}</if>
         </where>
+        order by create_time DESC
     </select>
     
     <select id="selectBomanReservatConfigTimeByReservatConfigTimeId" parameterType="Long" resultMap="BomanReservatConfigTimeResult">

+ 1 - 0
ruoyi-system/src/main/resources/mapper/system/BomanReservatMapper.xml

@@ -60,6 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="dataType != null and dataType == '3'"> and  visit_date &gt;= DATE_SUB(NOW(), INTERVAL 7 DAY)</if>
             <if test="dataType != null and dataType == '4'"> and visit_date &gt;= DATE_SUB(NOW(), INTERVAL 30 DAY))</if>
         </where>
+        order by create_time DESC
     </select>
     
     <select id="selectBomanReservatByReservatId" parameterType="Long" resultMap="BomanReservatResult">

+ 1 - 0
ruoyi-system/src/main/resources/mapper/system/ReceptionPersonnelMapper.xml

@@ -31,6 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="avatar != null  and avatar != ''"> and avatar = #{avatar}</if>
             <if test="status != null  and status != ''"> and status = #{status}</if>
         </where>
+        order by create_time DESC
     </select>
     
     <select id="selectReceptionPersonnelByReceptionId" parameterType="Long" resultMap="ReceptionPersonnelResult">