日志按創建時間排序

This commit is contained in:
username 2024-08-08 11:59:25 +08:00
parent b5f679d45c
commit 86193cadba
1 changed files with 11 additions and 10 deletions

View File

@ -112,7 +112,7 @@
</select> </select>
<!-- 分页查询列表 采用like格式 --> <!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-MdmModuleSendLogEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleSendLog.entity.MdmModuleSendLogEntity"> <select id="entity_list_like" resultMap="get-MdmModuleSendLogEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleSendLog.entity.MdmModuleSendLogEntity">
select select
<include refid="MdmModuleSendLogEntity_Base_Column_List" /> <include refid="MdmModuleSendLogEntity_Base_Column_List" />
from ${tableName} from ${tableName}
@ -138,9 +138,10 @@
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if> <if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
and sts='Y' and sts='Y'
</trim> </trim>
<if test=" sort == null or sort == ''.toString() "> order by sorts desc</if> <!-- <if test=" sort == null or sort == ''.toString() "> order by sorts desc</if>-->
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if> <!-- <if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>-->
</select> <if test="create_time == null">order by create_time desc</if>
</select>
<!-- 查询列表 字段采用or格式 --> <!-- 查询列表 字段采用or格式 -->
<select id="MdmModuleSendLogentity_list_or" resultMap="get-MdmModuleSendLogEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleSendLog.entity.MdmModuleSendLogEntity"> <select id="MdmModuleSendLogentity_list_or" resultMap="get-MdmModuleSendLogEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleSendLog.entity.MdmModuleSendLogEntity">