This commit is contained in:
linfso 2024-06-16 17:41:52 +08:00
parent 63afcdc56e
commit bfc2d7e108
6 changed files with 694 additions and 0 deletions

View File

@ -0,0 +1,134 @@
/**
* @Project: emis
* @Title: EmisSmsSendRecordController.java
* @author linfso
* @date 2024-06-16 09:33:47
* @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0
* @Description: <p> 短信发送记录表 控制器 </p>
*/
package com.xdadan.erp.web.emis;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.xdadan.erp.common.annotation.Log;
import com.xdadan.erp.common.core.controller.BaseController;
import com.xdadan.erp.common.core.domain.AjaxResult;
import com.xdadan.erp.common.core.page.TableDataInfo;
import com.xdadan.erp.common.enums.BusinessType;
import com.xdadan.erp.common.utils.StringUtils;
import com.xdadan.erp.common.utils.poi.ExcelUtil;
import com.xdadan.erp.emis.domain.EmisSmsSendRecord;
import com.xdadan.erp.emis.service.IEmisSmsSendRecordService;
/**
* 短信发送记录表Controller
*
* @author linfso
* @date 2024-06-16 09:33:47
*/
@RestController
@RequestMapping("/emis/emisSmsSendRecord")
public class EmisSmsSendRecordController extends BaseController
{
@Autowired
private IEmisSmsSendRecordService emisSmsSendRecordService;
/**
* 查询短信发送记录表列表
*/
@PreAuthorize("@ss.hasPermi('emis:emisSmsSendRecord:list')")
@GetMapping("/list")
public TableDataInfo list(EmisSmsSendRecord emisSmsSendRecord)
{
startPage();
List<EmisSmsSendRecord> list = emisSmsSendRecordService.selectEmisSmsSendRecordList(emisSmsSendRecord);
return getDataTable(list);
}
/**
* 检查是否重复
*
* @param emisSmsSendRecord
* @return 数量
*/
@PreAuthorize("@ss.hasPermi('emis:emisSmsSendRecord:list')")
@GetMapping("/checkUnique")
public AjaxResult checkUnique(EmisSmsSendRecord emisSmsSendRecord)
{
int cnt=emisSmsSendRecordService.checkUnique(emisSmsSendRecord);
return AjaxResult.success("检查成功",cnt);
}
/**
* 导出短信发送记录表列表
*/
@PreAuthorize("@ss.hasPermi('emis:emisSmsSendRecord:export')")
@Log(title = "短信发送记录表", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, EmisSmsSendRecord emisSmsSendRecord)
{
List<EmisSmsSendRecord> list = emisSmsSendRecordService.selectEmisSmsSendRecordList(emisSmsSendRecord);
ExcelUtil<EmisSmsSendRecord> util = new ExcelUtil<EmisSmsSendRecord>(EmisSmsSendRecord.class);
util.exportExcel(response, list, "短信发送记录表数据");
}
/**
* 获取短信发送记录表详细信息
*/
@PreAuthorize("@ss.hasPermi('emis:emisSmsSendRecord:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(emisSmsSendRecordService.selectEmisSmsSendRecordById(id));
}
/**
* 新增短信发送记录表
*/
@PreAuthorize("@ss.hasPermi('emis:emisSmsSendRecord:add')")
@Log(title = "短信发送记录表", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody EmisSmsSendRecord emisSmsSendRecord)
{
return toAjax(emisSmsSendRecordService.insertEmisSmsSendRecord(emisSmsSendRecord));
}
/**
* 修改短信发送记录表
*/
@PreAuthorize("@ss.hasPermi('emis:emisSmsSendRecord:edit')")
@Log(title = "短信发送记录表", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody EmisSmsSendRecord emisSmsSendRecord)
{
return toAjax(emisSmsSendRecordService.updateEmisSmsSendRecord(emisSmsSendRecord));
}
/**
* 删除短信发送记录表
*/
@PreAuthorize("@ss.hasPermi('emis:emisSmsSendRecord:remove')")
@Log(title = "短信发送记录表", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(emisSmsSendRecordService.deleteEmisSmsSendRecordByIds(ids));
}
}

View File

@ -0,0 +1,71 @@
/**
* @Project: emis
* @Title: EmisSmsSendRecord.java
* @author linfso
* @date 2024-06-16 09:33:47
* @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0
* @Description: <p> 短信发送记录表 实体类 </p>
*/
package com.xdadan.erp.emis.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xdadan.erp.common.annotation.Excel;
import com.xdadan.erp.common.core.domain.BaseEntity;
import com.xdadan.erp.common.core.domain.TreeEntity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
/**
* @ClassName EmisSmsSendRecord
* @Description 短信发送记录表
* @author linfso
* @date 2024-06-16 09:33:47
*/
@Data
public class EmisSmsSendRecord extends BaseEntity
{
private static final long serialVersionUID = 1L;
/* id */
private Long id;
/* 运单号 */
private String billCode;
/* 发送站点编码 */
private String sendSiteCode;
/* 站点名称 */
private String sendSiteName;
/* 发件人名称 */
private String sendManName;
/* 发送人编码 */
private String sendManCode;
/* 短信类型 1-发件 2-签收 */
private String smsType;
/* 目标号码 */
private String phone;
/* 短信内容 */
private String content;
/* 单条发送费用 */
private String fee;
/* 发送渠道 */
private String smsChannel;
/* 发送时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date sendDate;
/* 渠道发送状态 0-未发送 1-已发送 -1 发送错误 */
private String sendStatus;
/* 渠道错误代码 */
private String errCode;
/* 渠道错误信息 */
private String errMsg;
/* 任务处理时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date taskDate;
}

View File

@ -0,0 +1,80 @@
/**
* @Project: emis
* @Title: EmisSmsSendRecordMapper.java
* @author linfso
* @date 2024-06-16 09:33:47
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
* @version v1.0
* @Description: <p> 短信发送记录表 Mapper 接口 </p>
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
*/
package com.xdadan.erp.emis.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xdadan.erp.emis.domain.EmisSmsSendRecord;
/**
* @ClassName EmisSmsSendRecordMapper
* @Description <p> 短信发送记录表 Mapper 接口 </p>
* @author linfso
* @date 2024-06-16 09:33:47
*/
public interface EmisSmsSendRecordMapper extends BaseMapper<EmisSmsSendRecord>
{
/**
* 主键查询
* @param id
* @return
*/
public EmisSmsSendRecord selectEmisSmsSendRecordById(Long id);
/**
* 查询列表
*
* @param emisSmsSendRecord
* @return 集合
*/
public List<EmisSmsSendRecord> selectEmisSmsSendRecordList(EmisSmsSendRecord emisSmsSendRecord);
/**
* 检查是否重复
*
* @param emisSmsSendRecord
* @return 数量
*/
public int checkUnique(EmisSmsSendRecord emisSmsSendRecord);
/**
* 新增
*
* @param emisSmsSendRecord
* @return
*/
public int insertEmisSmsSendRecord(EmisSmsSendRecord emisSmsSendRecord);
/**
* 修改
*
* @param emisSmsSendRecord
* @return
*/
public int updateEmisSmsSendRecord(EmisSmsSendRecord emisSmsSendRecord);
/**
* 删除
*
* @param id 主键
* @return 结果
*/
public int deleteEmisSmsSendRecordById(Long id);
/**
* 批量删除
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteEmisSmsSendRecordByIds(Long[] ids);
}

View File

@ -0,0 +1,78 @@
/**
* @Project: emis
* @Title: EmisSmsSendRecordService.java
* @author linfso
* @date 2024-06-16 09:33:47
* @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0
* @Description: <p> 短信发送记录表 服务类接口 </p>
*/
package com.xdadan.erp.emis.service;
import java.util.List;
import com.xdadan.erp.emis.domain.EmisSmsSendRecord;
/**
* @ClassName EmisSmsSendRecordService
* @Description 短信发送记录表
* @author linfso
* @date 2024-06-16 09:33:47
*/
public interface IEmisSmsSendRecordService
{
/**
* 主键查询
* @param id
* @return
*/
public EmisSmsSendRecord selectEmisSmsSendRecordById(Long id);
/**
* 查询短信发送记录表列表
*
* @param emisSmsSendRecord 短信发送记录表
* @return 短信发送记录表集合
*/
public List<EmisSmsSendRecord> selectEmisSmsSendRecordList(EmisSmsSendRecord emisSmsSendRecord);
/**
* 检查是否重复
*
* @param emisSmsSendRecord
* @return 数量
*/
public int checkUnique(EmisSmsSendRecord emisSmsSendRecord);
/**
* 新增短信发送记录表
*
* @param emisSmsSendRecord 短信发送记录表
* @return 结果
*/
public int insertEmisSmsSendRecord(EmisSmsSendRecord emisSmsSendRecord);
/**
* 修改短信发送记录表
*
* @param emisSmsSendRecord 短信发送记录表
* @return 结果
*/
public int updateEmisSmsSendRecord(EmisSmsSendRecord emisSmsSendRecord);
/**
* 批量删除短信发送记录表
*
* @param ids 需要删除的短信发送记录表主键集合
* @return 结果
*/
public int deleteEmisSmsSendRecordByIds(Long[] ids);
/**
* 删除短信发送记录表信息
*
* @param id 短信发送记录表主键
* @return 结果
*/
public int deleteEmisSmsSendRecordById(Long id);
}

View File

@ -0,0 +1,117 @@
/**
* @Project: emis
* @Title: EmisSmsSendRecordServiceImpl.java
* @author linfso
* @date 2024-06-16 09:33:47
* @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0
* @Description: <p> 短信发送记录表 实体类 </p>
*/
package com.xdadan.erp.emis.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xdadan.erp.emis.domain.EmisSmsSendRecord;
import com.xdadan.erp.emis.mapper.EmisSmsSendRecordMapper;
import com.xdadan.erp.emis.service.IEmisSmsSendRecordService;
/**
* 短信发送记录表Service业务层处理
*
* @author linfso
* @date 2024-06-16 09:33:47
*/
@Service
public class EmisSmsSendRecordServiceImpl implements IEmisSmsSendRecordService
{
@Autowired
private EmisSmsSendRecordMapper emisSmsSendRecordMapper;
/**
* 查询短信发送记录表
*
* @param id 短信发送记录表主键
* @return 短信发送记录表
*/
@Override
public EmisSmsSendRecord selectEmisSmsSendRecordById(Long id)
{
return emisSmsSendRecordMapper.selectEmisSmsSendRecordById(id);
}
/**
* 查询短信发送记录表列表
*
* @param emisSmsSendRecord 短信发送记录表
* @return 短信发送记录表
*/
@Override
public List<EmisSmsSendRecord> selectEmisSmsSendRecordList(EmisSmsSendRecord emisSmsSendRecord)
{
return emisSmsSendRecordMapper.selectEmisSmsSendRecordList(emisSmsSendRecord);
}
/**
* 检查是否重复
*
* @param emisSmsSendRecord
* @return 数量
*/
@Override
public int checkUnique(EmisSmsSendRecord emisSmsSendRecord)
{
return emisSmsSendRecordMapper.checkUnique(emisSmsSendRecord);
}
/**
* 新增短信发送记录表
*
* @param emisSmsSendRecord 短信发送记录表
* @return 结果
*/
@Override
public int insertEmisSmsSendRecord(EmisSmsSendRecord emisSmsSendRecord)
{
return emisSmsSendRecordMapper.insertEmisSmsSendRecord(emisSmsSendRecord);
}
/**
* 修改短信发送记录表
*
* @param emisSmsSendRecord 短信发送记录表
* @return 结果
*/
@Override
public int updateEmisSmsSendRecord(EmisSmsSendRecord emisSmsSendRecord)
{
return emisSmsSendRecordMapper.updateEmisSmsSendRecord(emisSmsSendRecord);
}
/**
* 批量删除短信发送记录表
*
* @param ids 需要删除的短信发送记录表主键
* @return 结果
*/
@Override
public int deleteEmisSmsSendRecordByIds(Long[] ids)
{
return emisSmsSendRecordMapper.deleteEmisSmsSendRecordByIds(ids);
}
/**
* 删除短信发送记录表信息
*
* @param id 短信发送记录表主键
* @return 结果
*/
@Override
public int deleteEmisSmsSendRecordById(Long id)
{
return emisSmsSendRecordMapper.deleteEmisSmsSendRecordById(id);
}
}

View File

@ -0,0 +1,214 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.xdadan.erp.emis.mapper.EmisSmsSendRecordMapper">
<resultMap type="EmisSmsSendRecord" id="EmisSmsSendRecordResult" extends="com.xdadan.erp.emis.mapper.EmisBaseMapper.EmisBaseResult">
<result property="id" column="id" />
<result property="billCode" column="bill_code" />
<result property="sendSiteCode" column="send_site_code" />
<result property="sendSiteName" column="send_site_name" />
<result property="sendManName" column="send_man_name" />
<result property="sendManCode" column="send_man_code" />
<result property="smsType" column="sms_type" />
<result property="phone" column="phone" />
<result property="content" column="content" />
<result property="fee" column="fee" />
<result property="smsChannel" column="sms_channel" />
<result property="sendDate" column="send_date" />
<result property="sendStatus" column="send_status" />
<result property="errCode" column="err_code" />
<result property="errMsg" column="err_msg" />
<result property="taskDate" column="task_date" />
</resultMap>
<sql id="selectEmisSmsSendRecordVo">
select id, bill_code, send_site_code, send_site_name, send_man_name, send_man_code, sms_type, phone, content, fee, sms_channel, send_date, send_status, err_code, err_msg, task_date, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_sms_send_record
</sql>
<select id="selectEmisSmsSendRecordList" parameterType="EmisSmsSendRecord" resultMap="EmisSmsSendRecordResult">
<include refid="selectEmisSmsSendRecordVo"/>
<where>
del_flag='0'
<if test="id != null "> and id = #{id}</if>
<if test="billCode != null and billCode != ''"> and ( FIND_IN_SET(`bill_code`,#{billCode}) or bill_code like concat('%', #{billCode}, '%') ) </if>
<if test="sendSiteCode != null and sendSiteCode != ''"> and send_site_code= #{sendSiteCode}</if>
<if test="sendSiteName != null and sendSiteName != ''"> and send_site_name like concat('%', #{sendSiteName}, '%')</if>
<if test="sendManName != null and sendManName != ''"> and send_man_name like concat('%', #{sendManName}, '%')</if>
<if test="sendManCode != null and sendManCode != ''"> and send_man_code=#{sendManCode}</if>
<if test="smsType != null and smsType != ''"> and sms_type like concat('%', #{smsType}, '%')</if>
<if test="phone != null and phone != ''"> and ( FIND_IN_SET(`phone`,#{phone}) or phone like concat('%', #{phone}, '%') ) </if>
<if test="content != null and content != ''"> and content like concat('%', #{content}, '%')</if>
<if test="fee != null and fee != ''"> and fee like concat('%', #{fee}, '%')</if>
<if test="smsChannel != null and smsChannel != ''"> and sms_channel=#{smsChannel}</if>
<if test="sendDate != null "> and send_date = #{sendDate}</if>
<if test="sendStatus != null and sendStatus != ''"> and send_status=#{sendStatus}</if>
<if test="errCode != null and errCode != ''"> and err_code=#{errCode}</if>
<if test="errMsg != null and errMsg != ''"> and err_msg like concat('%', #{errMsg}, '%')</if>
<if test="taskDate != null "> and task_date = #{taskDate}</if>
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
<if test="tenantId != null and tenantId != ''"> and tenant_id like concat('%', #{tenantId}, '%')</if>
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
<if test="createTime != null "> and create_time = #{createTime}</if>
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
<if test="updateTime != null "> and update_time = #{updateTime}</if>
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
<if test="params.beginSendDate != null and params.beginSendDate != ''">
and send_date <![CDATA[ >= ]]> #{params.beginSendDate}
</if>
<if test="params.endSendDate != null and params.endSendDate != ''">
and send_date <![CDATA[ <= ]]> #{params.endSendDate}
</if>
<if test="params.beginCreateTime != null and params.beginCreateTime != ''">
and create_time <![CDATA[ >= ]]> #{params.beginCreateTime}
</if>
<if test="params.endCreateTime != null and params.endCreateTime != ''">
and create_time <![CDATA[ <= ]]> #{params.endCreateTime}
</if>
</where>
order by create_time desc
</select>
<select id="checkUnique" parameterType="EmisSmsSendRecord" resultType="int">
select count(1) from emis_sms_send_record
where del_flag='0'
and id = #{id}
and bill_code = #{billCode}
and send_site_code = #{sendSiteCode}
and send_site_name = #{sendSiteName}
and send_man_name = #{sendManName}
and send_man_code = #{sendManCode}
and sms_type = #{smsType}
and phone = #{phone}
and content = #{content}
and fee = #{fee}
and sms_channel = #{smsChannel}
and send_date = #{sendDate}
and send_status = #{sendStatus}
and err_code = #{errCode}
and err_msg = #{errMsg}
and task_date = #{taskDate}
and remark = #{remark}
and tenant_id = #{tenantId}
and del_flag = #{delFlag}
and create_by = #{createBy}
and create_time = #{createTime}
and update_by = #{updateBy}
and update_time = #{updateTime}
and create_site = #{createSite}
and update_site = #{updateSite}
limit 1
</select>
<select id="selectEmisSmsSendRecordById" parameterType="Long" resultMap="EmisSmsSendRecordResult">
select id, bill_code, send_site_code, send_site_name, send_man_name, send_man_code, sms_type, phone, content, fee, sms_channel, send_date, send_status, err_code, err_msg, task_date, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
from emis_sms_send_record a
where a.id = #{id}
</select>
<insert id="insertEmisSmsSendRecord" parameterType="EmisSmsSendRecord" useGeneratedKeys="true" keyProperty="id">
insert into emis_sms_send_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="billCode != null and billCode != ''">bill_code,</if>
<if test="sendSiteCode != null and sendSiteCode != ''">send_site_code,</if>
<if test="sendSiteName != null and sendSiteName != ''">send_site_name,</if>
<if test="sendManName != null and sendManName != ''">send_man_name,</if>
<if test="sendManCode != null and sendManCode != ''">send_man_code,</if>
<if test="smsType != null and smsType != ''">sms_type,</if>
<if test="phone != null and phone != ''">phone,</if>
<if test="content != null and content != ''">content,</if>
<if test="fee != null and fee != ''">fee,</if>
<if test="smsChannel != null and smsChannel != ''">sms_channel,</if>
<if test="sendDate != null">send_date,</if>
<if test="sendStatus != null and sendStatus != ''">send_status,</if>
<if test="errCode != null and errCode != ''">err_code,</if>
<if test="errMsg != null and errMsg != ''">err_msg,</if>
<if test="taskDate != null">task_date,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="tenantId != null and tenantId != ''">tenant_id,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="createSite != null and createSite != ''">create_site,</if>
<if test="updateSite != null and updateSite != ''">update_site,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="billCode != null and billCode != ''">#{billCode},</if>
<if test="sendSiteCode != null and sendSiteCode != ''">#{sendSiteCode},</if>
<if test="sendSiteName != null and sendSiteName != ''">#{sendSiteName},</if>
<if test="sendManName != null and sendManName != ''">#{sendManName},</if>
<if test="sendManCode != null and sendManCode != ''">#{sendManCode},</if>
<if test="smsType != null and smsType != ''">#{smsType},</if>
<if test="phone != null and phone != ''">#{phone},</if>
<if test="content != null and content != ''">#{content},</if>
<if test="fee != null and fee != ''">#{fee},</if>
<if test="smsChannel != null and smsChannel != ''">#{smsChannel},</if>
<if test="sendDate != null">#{sendDate},</if>
<if test="sendStatus != null and sendStatus != ''">#{sendStatus},</if>
<if test="errCode != null and errCode != ''">#{errCode},</if>
<if test="errMsg != null and errMsg != ''">#{errMsg},</if>
<if test="taskDate != null">#{taskDate},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="tenantId != null and tenantId != ''">#{tenantId},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="createSite != null and createSite != ''">#{createSite},</if>
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
</trim>
</insert>
<update id="updateEmisSmsSendRecord" parameterType="EmisSmsSendRecord">
update emis_sms_send_record
<trim prefix="SET" suffixOverrides=",">
<if test="billCode != null and billCode != ''">bill_code = #{billCode},</if>
<if test="sendSiteCode != null and sendSiteCode != ''">send_site_code = #{sendSiteCode},</if>
<if test="sendSiteName != null and sendSiteName != ''">send_site_name = #{sendSiteName},</if>
<if test="sendManName != null and sendManName != ''">send_man_name = #{sendManName},</if>
<if test="sendManCode != null and sendManCode != ''">send_man_code = #{sendManCode},</if>
<if test="smsType != null and smsType != ''">sms_type = #{smsType},</if>
<if test="phone != null and phone != ''">phone = #{phone},</if>
<if test="content != null and content != ''">content = #{content},</if>
<if test="fee != null and fee != ''">fee = #{fee},</if>
<if test="smsChannel != null and smsChannel != ''">sms_channel = #{smsChannel},</if>
<if test="sendDate != null">send_date = #{sendDate},</if>
<if test="sendStatus != null and sendStatus != ''">send_status = #{sendStatus},</if>
<if test="errCode != null and errCode != ''">err_code = #{errCode},</if>
<if test="errMsg != null and errMsg != ''">err_msg = #{errMsg},</if>
<if test="taskDate != null">task_date = #{taskDate},</if>
<if test="remark != null and remark != ''">remark = #{remark},</if>
<if test="tenantId != null and tenantId != ''">tenant_id = #{tenantId},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteEmisSmsSendRecordById" parameterType="Long">
delete from emis_sms_send_record where id = #{id}
</delete>
<delete id="deleteEmisSmsSendRecordByIds" parameterType="String">
delete from emis_sms_send_record where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>