+去除transit
This commit is contained in:
parent
1b3aee5e4e
commit
c39b4036d6
@ -170,7 +170,7 @@ public class PendingMessageDTO implements Serializable {
|
||||
.updateTime(DateFormatUtil.toLocalDateTime(pendingMessageRecord.getUpdateAt()))
|
||||
.routerParam(pendingMessageRecord.getRouterParams())
|
||||
.bizFinalState(pendingMessageRecord.getBizFinalState())
|
||||
.isOld(pendingMessageRecord.getIsOld())
|
||||
// .isOld(pendingMessageRecord.getIsOld())
|
||||
.build();
|
||||
}
|
||||
|
||||
|
||||
@ -4,22 +4,22 @@
|
||||
|
||||
<select id="queryByTemplateCodes" resultType="cn.axzo.msg.center.domain.entity.PendingMessageRecord">
|
||||
select * from (
|
||||
SELECT * from (SELECT *,TRUE AS isOld FROM pending_message_record WHERE DATE(create_at) <![CDATA[<]]> DATE(#{selectDate}) AND state IN('HAS_BEEN_SENT')
|
||||
SELECT * from (SELECT * FROM pending_message_record WHERE DATE(create_at) <![CDATA[<]]> DATE(#{selectDate}) AND state IN('HAS_BEEN_SENT')
|
||||
AND executor_person_id=#{personId} AND template_code IN<foreach collection="pendingCalendarCodeDTO.allCodes" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach> ORDER BY create_at ASC) old_pending_message
|
||||
union ALL
|
||||
select * from (SELECT *,FALSE AS isOld FROM pending_message_record WHERE DATE(create_at) = DATE(#{selectDate}) AND state IN('HAS_BEEN_SENT','COMPLETED')
|
||||
select * from (SELECT * FROM pending_message_record WHERE DATE(create_at) = DATE(#{selectDate}) AND state IN('HAS_BEEN_SENT','COMPLETED')
|
||||
AND executor_person_id=#{personId} AND template_code IN<foreach collection="pendingCalendarCodeDTO.constructionCodes" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach> ORDER BY state,create_at DESC) new_pending_message
|
||||
union all
|
||||
SELECT * FROM (SELECT *,FALSE AS isOld FROM pending_message_record WHERE DATE(create_at) = DATE(#{selectDate}) AND state IN('HAS_BEEN_SENT','COMPLETED')
|
||||
SELECT * FROM (SELECT * FROM pending_message_record WHERE DATE(create_at) = DATE(#{selectDate}) AND state IN('HAS_BEEN_SENT','COMPLETED')
|
||||
AND executor_person_id=#{personId} AND template_code IN<foreach collection="pendingCalendarCodeDTO.punchInCodes" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach> ORDER BY state,create_at DESC) new_pending_message1
|
||||
union all
|
||||
SELECT * FROM(SELECT *,FALSE AS isOld FROM pending_message_record WHERE DATE(create_at) = DATE(#{selectDate}) AND state IN('HAS_BEEN_SENT','COMPLETED')
|
||||
SELECT * FROM(SELECT * FROM pending_message_record WHERE DATE(create_at) = DATE(#{selectDate}) AND state IN('HAS_BEEN_SENT','COMPLETED')
|
||||
AND executor_person_id=#{personId} AND template_code IN<foreach collection="pendingCalendarCodeDTO.clockInCodes" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach> ORDER BY state,create_at DESC) new_pending_message2
|
||||
|
||||
@ -146,12 +146,6 @@ public class PendingMessageRecord extends BaseEntityExt<PendingMessageRecord> im
|
||||
*/
|
||||
private String failCause;
|
||||
|
||||
/**
|
||||
* 是否历史待办
|
||||
*/
|
||||
@Transient
|
||||
private Boolean isOld;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return JSON.toJSONString(this);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user