diff --git a/base-service/src/main/java/com/hzya/frame/sysnew/sendMessageLog/entity/SysSendMessageLogEntity.xml b/base-service/src/main/java/com/hzya/frame/sysnew/sendMessageLog/entity/SysSendMessageLogEntity.xml index b0e9b621..01decd67 100644 --- a/base-service/src/main/java/com/hzya/frame/sysnew/sendMessageLog/entity/SysSendMessageLogEntity.xml +++ b/base-service/src/main/java/com/hzya/frame/sysnew/sendMessageLog/entity/SysSendMessageLogEntity.xml @@ -94,14 +94,15 @@ <if test="sourceModelName != null and sourceModelName != ''"> and log.source_model_name = #{sourceModelName} </if> <if test="state != null"> and log.state = #{state} </if> <if test="resultMessage != null and resultMessage != ''"> and log.result_message = #{resultMessage} </if> - <if test="appId != null and appId != ''" > and app_id = #{appId} </if> + <if test="appId != null and appId != ''" > and i.app_id = #{appId} </if> and log.sts='Y' and p1.sts='Y' and p2.sts='Y' and i.sts='Y' </trim> - <if test=" sort == null or sort == ''.toString() "> order by log.sorts asc</if> - <if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if> +<!-- <if test=" sort == null or sort == ''.toString() "> order by log.sorts asc</if>--> +<!-- <if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>--> + order by log.send_datetime desc </select> <!-- 查询符合条件的数量 --> @@ -178,8 +179,9 @@ and p2.sts='Y' and app.sts='Y' </trim> - <if test=" sort == null or sort == ''.toString() "> order by log.sorts asc</if> - <if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if> +<!-- <if test=" sort == null or sort == ''.toString() "> order by log.sorts asc</if>--> +<!-- <if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>--> + order by log.send_datetime desc </select> <!-- 查询列表 字段采用or格式 -->