Browse Source

短信日志

dev
wanggongfeng 6 years ago
parent
commit
4590e734d4
  1. 5
      esua-epdc/epdc-module/epdc-message/epdc-message-client/src/main/java/com/elink/esua/epdc/dto/SmsLogDTO.java
  2. 7
      esua-epdc/epdc-module/epdc-message/epdc-message-server/src/main/java/com/elink/esua/epdc/entity/SmsLogEntity.java
  3. 49
      esua-epdc/epdc-module/epdc-message/epdc-message-server/src/main/resources/mapper/SmsLogDao.xml

5
esua-epdc/epdc-module/epdc-message/epdc-message-client/src/main/java/com/elink/esua/epdc/dto/SmsLogDTO.java

@ -109,4 +109,9 @@ public class SmsLogDTO implements Serializable {
*/
private String delFlag;
/**
* 模板类型名称
*/
private String templateTypeName;
}

7
esua-epdc/epdc-module/epdc-message/epdc-message-server/src/main/java/com/elink/esua/epdc/entity/SmsLogEntity.java

@ -17,6 +17,7 @@
package com.elink.esua.epdc.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity;
import lombok.Data;
@ -75,4 +76,10 @@ public class SmsLogEntity extends BaseEpdcEntity {
*/
private Integer platform;
/**
* 模板类型名称
*/
@TableField(exist = false)
private String templateTypeName;
}

49
esua-epdc/epdc-module/epdc-message/epdc-message-server/src/main/resources/mapper/SmsLogDao.xml

@ -22,36 +22,41 @@
<select id="getPage" resultType="com.elink.esua.epdc.dto.SmsLogDTO">
select
ID,
SMS_TEMPLATE_ID,
MOBILE,
PARAMS1,
PARAMS2,
PARAMS3,
PARAMS4,
STATUS,
PLATFORM,
REVISION,
CREATED_BY,
CREATED_TIME,
UPDATED_BY,
UPDATED_TIME,
DEL_FLAG
from epdc_sms_log
where DEL_FLAG = '0'
sl.ID,
sl.SMS_TEMPLATE_ID,
sl.MOBILE,
sl.PARAMS1,
sl.PARAMS2,
sl.PARAMS3,
sl.PARAMS4,
sl.STATUS,
sl.PLATFORM,
sl.REVISION,
sl.CREATED_BY,
sl.CREATED_TIME,
sl.UPDATED_BY,
sl.UPDATED_TIME,
sl.DEL_FLAG,
st.TEMPLATE_TYPE_NAME
from epdc_sms_log sl
left join epdc_sms_template st on sl.SMS_TEMPLATE_ID = st.ID
where sl.DEL_FLAG = '0' and st.DEL_FLAG = '0'
<if test="id != null and id != ''">
and ID like '%' #{id} '%'
and sl.ID like '%' #{id} '%'
</if>
<if test="mobile != null and mobile != ''">
and MOBILE like '%' #{mobile} '%'
and sl.MOBILE like '%' #{mobile} '%'
</if>
<if test="status != null and status != ''">
and STATUS = #{status}
and sl.STATUS = #{status}
</if>
<if test="platform != null and platform != ''">
and PLATFORM = #{platform}
and sl.PLATFORM = #{platform}
</if>
order by UPDATED_TIME desc
<if test="templateType != null and templateType != ''">
and st.TEMPLATE_TYPE = #{templateType}
</if>
order by sl.CREATED_TIME desc
</select>

Loading…
Cancel
Save