@@ -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">
@@ -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>
<select id="selectBomanNewsByNewsId" parameterType="Long" resultMap="BomanNewsResult">
@@ -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>
<select id="selectBomanReservatConfigByReservatConfigId" parameterType="Long" resultMap="BomanReservatConfigResult">
@@ -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>
<select id="selectBomanReservatConfigTimeByReservatConfigTimeId" parameterType="Long" resultMap="BomanReservatConfigTimeResult">
@@ -60,6 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="dataType != null and dataType == '3'"> and visit_date >= DATE_SUB(NOW(), INTERVAL 7 DAY)</if>
<if test="dataType != null and dataType == '4'"> and visit_date >= DATE_SUB(NOW(), INTERVAL 30 DAY))</if>
<select id="selectBomanReservatByReservatId" parameterType="Long" resultMap="BomanReservatResult">
@@ -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>
<select id="selectReceptionPersonnelByReceptionId" parameterType="Long" resultMap="ReceptionPersonnelResult">