修改记录查询时间

This commit is contained in:
zhangheng 2026-09-23 10:36:06 +08:00
parent 1605462870
commit 79d1cf9c31
4 changed files with 8 additions and 2 deletions

View File

@ -45,6 +45,9 @@ public class PhoneDialRecordServiceImpl implements IPhoneDialRecordService {
*/ */
@Override @Override
public List<BillPhoneDialVo> selectPhoneDialRecordList(BillPhoneDialVo phoneDialRecord) { public List<BillPhoneDialVo> selectPhoneDialRecordList(BillPhoneDialVo phoneDialRecord) {
if (Objects.nonNull(phoneDialRecord.getDialTimeEnd())){
phoneDialRecord.setDialTimeEnd(phoneDialRecord.getDialTimeEnd().plusDays(1));
}
return phoneDialRecordMapper.selectPhoneDialRecords(phoneDialRecord); return phoneDialRecordMapper.selectPhoneDialRecords(phoneDialRecord);
} }

View File

@ -45,6 +45,9 @@ public class ShortMessageSendRecordServiceImpl implements IShortMessageSendRecor
*/ */
@Override @Override
public List<ShortMessageSendRecordVo> selectShortMessageSendRecordList(ShortMessageSendRecordVo shortMessageSendRecord) { public List<ShortMessageSendRecordVo> selectShortMessageSendRecordList(ShortMessageSendRecordVo shortMessageSendRecord) {
if (Objects.nonNull(shortMessageSendRecord.getSendTimeEnd())){
shortMessageSendRecord.setSendTimeEnd(shortMessageSendRecord.getSendTimeEnd().plusDays(1));
}
return shortMessageSendRecordMapper.selectShortMessageSendRecords(shortMessageSendRecord); return shortMessageSendRecordMapper.selectShortMessageSendRecords(shortMessageSendRecord);
} }

View File

@ -136,7 +136,7 @@
</if> </if>
<if test="dialTimeStart != null and dialTimeEnd != null"> <if test="dialTimeStart != null and dialTimeEnd != null">
and record.dial_time &gt;= #{dialTimeStart} and record.dial_time &gt;= #{dialTimeStart}
and record.dial_time &lt;= #{dialTimeEnd} and record.dial_time &lt; #{dialTimeEnd}
</if> </if>
<if test="phoneTemplateId != null and phoneTemplateId != ''"> <if test="phoneTemplateId != null and phoneTemplateId != ''">
and record.phone_template_id = #{phoneTemplateId} and record.phone_template_id = #{phoneTemplateId}

View File

@ -130,7 +130,7 @@
</if> </if>
<if test="sendTimeStart != null and sendTimeEnd != null"> <if test="sendTimeStart != null and sendTimeEnd != null">
and record.send_time &gt;= #{sendTimeStart} and record.send_time &gt;= #{sendTimeStart}
and record.send_time &lt;= #{sendTimeEnd} and record.send_time &lt; #{sendTimeEnd}
</if> </if>
<if test="messageTemplateId != null"> <if test="messageTemplateId != null">
and record.message_template_id = #{messageTemplateId} and record.message_template_id = #{messageTemplateId}