ソースを参照

短信记录功能代码提交

jingyuanchao 1 年間 前
コミット
7251fdf57e

+ 3 - 2
soc-common/soc-common-core/src/main/java/com/xunmei/common/core/domain/sms/vo/SmsSendRecordPageVo.java

@@ -15,8 +15,9 @@ public class SmsSendRecordPageVo {
     @ApiModelProperty(value = "发送时间")
     private LocalDateTime time;
 
-    @ApiModelProperty(value = "交易类型")
-    private String tranType;
+
+    @ApiModelProperty(value = "提醒类型",notes = "字典:sms_notify_type")
+    private String type;
 
     @ApiModelProperty(value = "接收机构id")
     private Long orgId;

+ 2 - 2
soc-modules/soc-modules-sms/src/main/resources/mapper/SmsSendRecordMapper.xml

@@ -15,10 +15,10 @@
             and r.type=#{req.type}
         </if>
         <if test="req.mobile != null and req.mobile != ''">
-            and r.user_phone=#{req.mobile}
+            and r.user_phone like  concat('%',#{req.mobile},'%')
         </if>
         <if test="req.userName != null and req.userName != ''">
-            and r.user_name=#{req.userName}
+            and r.user_name like concat('%',#{req.userName},'%')
         </if>
         <if test="req.range != null and req.range.length==2 ">
             and r.time between #{req.range[0]} and #{req.range[1]}