Forráskód Böngészése

查询通话记录的时候 按照日期筛选,都是通过通话开始时间,经确到年月日

王苗苗 2 hónapja
szülő
commit
eb8daf705a

+ 7 - 0
slibra-system/src/main/java/com/slibra/business/domain/TCallRecord.java

@@ -111,5 +111,12 @@ public class TCallRecord extends BaseEntity
 
     private List<TCutOffWater> cutOffWaters;//正在进行的停水信息
 
+    //2025年01月06日13:42:28 新增的请求参数
+    //通话开始时间-开始
+    private String timeBeginReq;
+
+    //通话开始时间-截止
+    private String timeEndReq;
+
 
 }

+ 2 - 0
slibra-system/src/main/resources/mapper/business/TCallRecordMapper.xml

@@ -155,6 +155,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="hasParsed != null "> and has_parsed = #{hasParsed}</if>
             <if test="parsedVoiceContent != null  and parsedVoiceContent != ''"> and parsed_voice_content = #{parsedVoiceContent}</if>
             <if test="revision != null "> and revision = #{revision}</if>
+            <if test="timeBeginReq != null  and timeBeginReq != ''"> and DATE_FORMAT(time_begin, '%Y-%m-%d') &gt;= #{timeBeginReq}</if>
+            <if test="timeEndReq != null  and timeEndReq != ''"> and DATE_FORMAT(time_begin, '%Y-%m-%d') &lt;= #{timeEndReq}</if>
         </where>
         and del_flag = 0 order by id desc
     </select>