|
@@ -77,7 +77,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="timeBegin != null and timeBegin != ''"> and DATE_FORMAT(create_time, '%Y-%m-%d') >= #{timeBegin}</if>
|
|
<if test="timeBegin != null and timeBegin != ''"> and DATE_FORMAT(create_time, '%Y-%m-%d') >= #{timeBegin}</if>
|
|
<if test="timeEnd != null and timeEnd != ''"> and DATE_FORMAT(create_time, '%Y-%m-%d') <= #{timeEnd}</if>
|
|
<if test="timeEnd != null and timeEnd != ''"> and DATE_FORMAT(create_time, '%Y-%m-%d') <= #{timeEnd}</if>
|
|
</where>
|
|
</where>
|
|
- and del_flag = 0 order by id desc
|
|
|
|
|
|
+ and del_flag = 0 order by create_time desc, id desc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectTXinyiWarningRecordById" parameterType="Long" resultMap="TXinyiWarningRecordResult">
|
|
<select id="selectTXinyiWarningRecordById" parameterType="Long" resultMap="TXinyiWarningRecordResult">
|