导粉记录
This commit is contained in:
@ -0,0 +1,36 @@
|
||||
package com.stdiet.custom.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.stdiet.common.annotation.Excel;
|
||||
import com.stdiet.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 导粉管理对象 sys_import_fan_record
|
||||
*
|
||||
* @author xzj
|
||||
* @date 2021-05-17
|
||||
*/
|
||||
public class SysImportFanRecord extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 导粉日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "导粉日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date importFanDate;
|
||||
|
||||
/** 导粉渠道 */
|
||||
@Excel(name = "导粉渠道")
|
||||
private Long importFanChannel;
|
||||
|
||||
/** 进粉直播间 */
|
||||
@Excel(name = "进粉直播间")
|
||||
private Long importFanLive;
|
||||
|
||||
/** 删除标识,0未删除 1已删除 */
|
||||
private Long delFlag;
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
package com.stdiet.custom.domain;
|
||||
|
||||
import lombok.Data;
|
||||
import com.stdiet.common.annotation.Excel;
|
||||
import com.stdiet.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 导粉记录中对应微信记录对象 sys_import_fan_wx_account
|
||||
*
|
||||
* @author xzj
|
||||
* @date 2021-05-17
|
||||
*/
|
||||
@Data
|
||||
public class SysImportFanWxAccount extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 导粉记录ID */
|
||||
@Excel(name = "导粉记录ID")
|
||||
private Long importFanRecordId;
|
||||
|
||||
/** 导粉微信ID */
|
||||
@Excel(name = "导粉微信ID")
|
||||
private Long importWxAccountId;
|
||||
|
||||
/** 导粉数量 */
|
||||
@Excel(name = "导粉数量")
|
||||
private Long importFanNum;
|
||||
|
||||
/** 删除标识 0未删除 1已删除 */
|
||||
private Long delFlag;
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.stdiet.custom.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.stdiet.custom.domain.SysImportFanRecord;
|
||||
|
||||
/**
|
||||
* 导粉管理Mapper接口
|
||||
*
|
||||
* @author xzj
|
||||
* @date 2021-05-17
|
||||
*/
|
||||
public interface SysImportFanRecordMapper
|
||||
{
|
||||
/**
|
||||
* 查询导粉管理
|
||||
*
|
||||
* @param id 导粉管理ID
|
||||
* @return 导粉管理
|
||||
*/
|
||||
public SysImportFanRecord selectSysImportFanRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询导粉管理列表
|
||||
*
|
||||
* @param sysImportFanRecord 导粉管理
|
||||
* @return 导粉管理集合
|
||||
*/
|
||||
public List<SysImportFanRecord> selectSysImportFanRecordList(SysImportFanRecord sysImportFanRecord);
|
||||
|
||||
/**
|
||||
* 新增导粉管理
|
||||
*
|
||||
* @param sysImportFanRecord 导粉管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSysImportFanRecord(SysImportFanRecord sysImportFanRecord);
|
||||
|
||||
/**
|
||||
* 修改导粉管理
|
||||
*
|
||||
* @param sysImportFanRecord 导粉管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSysImportFanRecord(SysImportFanRecord sysImportFanRecord);
|
||||
|
||||
/**
|
||||
* 删除导粉管理
|
||||
*
|
||||
* @param id 导粉管理ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysImportFanRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除导粉管理
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysImportFanRecordByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.stdiet.custom.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.stdiet.custom.domain.SysImportFanWxAccount;
|
||||
|
||||
/**
|
||||
* 导粉记录中对应微信记录Mapper接口
|
||||
*
|
||||
* @author xzj
|
||||
* @date 2021-05-17
|
||||
*/
|
||||
public interface SysImportFanWxAccountMapper
|
||||
{
|
||||
/**
|
||||
* 查询导粉记录中对应微信记录
|
||||
*
|
||||
* @param id 导粉记录中对应微信记录ID
|
||||
* @return 导粉记录中对应微信记录
|
||||
*/
|
||||
public SysImportFanWxAccount selectSysImportFanWxAccountById(Long id);
|
||||
|
||||
/**
|
||||
* 查询导粉记录中对应微信记录列表
|
||||
*
|
||||
* @param sysImportFanWxAccount 导粉记录中对应微信记录
|
||||
* @return 导粉记录中对应微信记录集合
|
||||
*/
|
||||
public List<SysImportFanWxAccount> selectSysImportFanWxAccountList(SysImportFanWxAccount sysImportFanWxAccount);
|
||||
|
||||
/**
|
||||
* 新增导粉记录中对应微信记录
|
||||
*
|
||||
* @param sysImportFanWxAccount 导粉记录中对应微信记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSysImportFanWxAccount(SysImportFanWxAccount sysImportFanWxAccount);
|
||||
|
||||
/**
|
||||
* 修改导粉记录中对应微信记录
|
||||
*
|
||||
* @param sysImportFanWxAccount 导粉记录中对应微信记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSysImportFanWxAccount(SysImportFanWxAccount sysImportFanWxAccount);
|
||||
|
||||
/**
|
||||
* 删除导粉记录中对应微信记录
|
||||
*
|
||||
* @param id 导粉记录中对应微信记录ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysImportFanWxAccountById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除导粉记录中对应微信记录
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysImportFanWxAccountByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.stdiet.custom.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.stdiet.custom.domain.SysImportFanRecord;
|
||||
|
||||
/**
|
||||
* 导粉管理Service接口
|
||||
*
|
||||
* @author xzj
|
||||
* @date 2021-05-17
|
||||
*/
|
||||
public interface ISysImportFanRecordService
|
||||
{
|
||||
/**
|
||||
* 查询导粉管理
|
||||
*
|
||||
* @param id 导粉管理ID
|
||||
* @return 导粉管理
|
||||
*/
|
||||
public SysImportFanRecord selectSysImportFanRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询导粉管理列表
|
||||
*
|
||||
* @param sysImportFanRecord 导粉管理
|
||||
* @return 导粉管理集合
|
||||
*/
|
||||
public List<SysImportFanRecord> selectSysImportFanRecordList(SysImportFanRecord sysImportFanRecord);
|
||||
|
||||
/**
|
||||
* 新增导粉管理
|
||||
*
|
||||
* @param sysImportFanRecord 导粉管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSysImportFanRecord(SysImportFanRecord sysImportFanRecord);
|
||||
|
||||
/**
|
||||
* 修改导粉管理
|
||||
*
|
||||
* @param sysImportFanRecord 导粉管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSysImportFanRecord(SysImportFanRecord sysImportFanRecord);
|
||||
|
||||
/**
|
||||
* 批量删除导粉管理
|
||||
*
|
||||
* @param ids 需要删除的导粉管理ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysImportFanRecordByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除导粉管理信息
|
||||
*
|
||||
* @param id 导粉管理ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysImportFanRecordById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.stdiet.custom.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.stdiet.custom.domain.SysImportFanWxAccount;
|
||||
|
||||
/**
|
||||
* 导粉记录中对应微信记录Service接口
|
||||
*
|
||||
* @author xzj
|
||||
* @date 2021-05-17
|
||||
*/
|
||||
public interface ISysImportFanWxAccountService
|
||||
{
|
||||
/**
|
||||
* 查询导粉记录中对应微信记录
|
||||
*
|
||||
* @param id 导粉记录中对应微信记录ID
|
||||
* @return 导粉记录中对应微信记录
|
||||
*/
|
||||
public SysImportFanWxAccount selectSysImportFanWxAccountById(Long id);
|
||||
|
||||
/**
|
||||
* 查询导粉记录中对应微信记录列表
|
||||
*
|
||||
* @param sysImportFanWxAccount 导粉记录中对应微信记录
|
||||
* @return 导粉记录中对应微信记录集合
|
||||
*/
|
||||
public List<SysImportFanWxAccount> selectSysImportFanWxAccountList(SysImportFanWxAccount sysImportFanWxAccount);
|
||||
|
||||
/**
|
||||
* 新增导粉记录中对应微信记录
|
||||
*
|
||||
* @param sysImportFanWxAccount 导粉记录中对应微信记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSysImportFanWxAccount(SysImportFanWxAccount sysImportFanWxAccount);
|
||||
|
||||
/**
|
||||
* 修改导粉记录中对应微信记录
|
||||
*
|
||||
* @param sysImportFanWxAccount 导粉记录中对应微信记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSysImportFanWxAccount(SysImportFanWxAccount sysImportFanWxAccount);
|
||||
|
||||
/**
|
||||
* 批量删除导粉记录中对应微信记录
|
||||
*
|
||||
* @param ids 需要删除的导粉记录中对应微信记录ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysImportFanWxAccountByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除导粉记录中对应微信记录信息
|
||||
*
|
||||
* @param id 导粉记录中对应微信记录ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysImportFanWxAccountById(Long id);
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package com.stdiet.custom.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.stdiet.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.stdiet.custom.mapper.SysImportFanRecordMapper;
|
||||
import com.stdiet.custom.domain.SysImportFanRecord;
|
||||
import com.stdiet.custom.service.ISysImportFanRecordService;
|
||||
|
||||
/**
|
||||
* 导粉管理Service业务层处理
|
||||
*
|
||||
* @author xzj
|
||||
* @date 2021-05-17
|
||||
*/
|
||||
@Service
|
||||
public class SysImportFanRecordServiceImpl implements ISysImportFanRecordService
|
||||
{
|
||||
@Autowired
|
||||
private SysImportFanRecordMapper sysImportFanRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询导粉管理
|
||||
*
|
||||
* @param id 导粉管理ID
|
||||
* @return 导粉管理
|
||||
*/
|
||||
@Override
|
||||
public SysImportFanRecord selectSysImportFanRecordById(Long id)
|
||||
{
|
||||
return sysImportFanRecordMapper.selectSysImportFanRecordById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询导粉管理列表
|
||||
*
|
||||
* @param sysImportFanRecord 导粉管理
|
||||
* @return 导粉管理
|
||||
*/
|
||||
@Override
|
||||
public List<SysImportFanRecord> selectSysImportFanRecordList(SysImportFanRecord sysImportFanRecord)
|
||||
{
|
||||
return sysImportFanRecordMapper.selectSysImportFanRecordList(sysImportFanRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增导粉管理
|
||||
*
|
||||
* @param sysImportFanRecord 导粉管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSysImportFanRecord(SysImportFanRecord sysImportFanRecord)
|
||||
{
|
||||
sysImportFanRecord.setCreateTime(DateUtils.getNowDate());
|
||||
return sysImportFanRecordMapper.insertSysImportFanRecord(sysImportFanRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改导粉管理
|
||||
*
|
||||
* @param sysImportFanRecord 导粉管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSysImportFanRecord(SysImportFanRecord sysImportFanRecord)
|
||||
{
|
||||
sysImportFanRecord.setUpdateTime(DateUtils.getNowDate());
|
||||
return sysImportFanRecordMapper.updateSysImportFanRecord(sysImportFanRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除导粉管理
|
||||
*
|
||||
* @param ids 需要删除的导粉管理ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysImportFanRecordByIds(Long[] ids)
|
||||
{
|
||||
return sysImportFanRecordMapper.deleteSysImportFanRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除导粉管理信息
|
||||
*
|
||||
* @param id 导粉管理ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysImportFanRecordById(Long id)
|
||||
{
|
||||
return sysImportFanRecordMapper.deleteSysImportFanRecordById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package com.stdiet.custom.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.stdiet.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.stdiet.custom.mapper.SysImportFanWxAccountMapper;
|
||||
import com.stdiet.custom.domain.SysImportFanWxAccount;
|
||||
import com.stdiet.custom.service.ISysImportFanWxAccountService;
|
||||
|
||||
/**
|
||||
* 导粉记录中对应微信记录Service业务层处理
|
||||
*
|
||||
* @author xzj
|
||||
* @date 2021-05-17
|
||||
*/
|
||||
@Service
|
||||
public class SysImportFanWxAccountServiceImpl implements ISysImportFanWxAccountService
|
||||
{
|
||||
@Autowired
|
||||
private SysImportFanWxAccountMapper sysImportFanWxAccountMapper;
|
||||
|
||||
/**
|
||||
* 查询导粉记录中对应微信记录
|
||||
*
|
||||
* @param id 导粉记录中对应微信记录ID
|
||||
* @return 导粉记录中对应微信记录
|
||||
*/
|
||||
@Override
|
||||
public SysImportFanWxAccount selectSysImportFanWxAccountById(Long id)
|
||||
{
|
||||
return sysImportFanWxAccountMapper.selectSysImportFanWxAccountById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询导粉记录中对应微信记录列表
|
||||
*
|
||||
* @param sysImportFanWxAccount 导粉记录中对应微信记录
|
||||
* @return 导粉记录中对应微信记录
|
||||
*/
|
||||
@Override
|
||||
public List<SysImportFanWxAccount> selectSysImportFanWxAccountList(SysImportFanWxAccount sysImportFanWxAccount)
|
||||
{
|
||||
return sysImportFanWxAccountMapper.selectSysImportFanWxAccountList(sysImportFanWxAccount);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增导粉记录中对应微信记录
|
||||
*
|
||||
* @param sysImportFanWxAccount 导粉记录中对应微信记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSysImportFanWxAccount(SysImportFanWxAccount sysImportFanWxAccount)
|
||||
{
|
||||
sysImportFanWxAccount.setCreateTime(DateUtils.getNowDate());
|
||||
return sysImportFanWxAccountMapper.insertSysImportFanWxAccount(sysImportFanWxAccount);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改导粉记录中对应微信记录
|
||||
*
|
||||
* @param sysImportFanWxAccount 导粉记录中对应微信记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSysImportFanWxAccount(SysImportFanWxAccount sysImportFanWxAccount)
|
||||
{
|
||||
sysImportFanWxAccount.setUpdateTime(DateUtils.getNowDate());
|
||||
return sysImportFanWxAccountMapper.updateSysImportFanWxAccount(sysImportFanWxAccount);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除导粉记录中对应微信记录
|
||||
*
|
||||
* @param ids 需要删除的导粉记录中对应微信记录ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysImportFanWxAccountByIds(Long[] ids)
|
||||
{
|
||||
return sysImportFanWxAccountMapper.deleteSysImportFanWxAccountByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除导粉记录中对应微信记录信息
|
||||
*
|
||||
* @param id 导粉记录中对应微信记录ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysImportFanWxAccountById(Long id)
|
||||
{
|
||||
return sysImportFanWxAccountMapper.deleteSysImportFanWxAccountById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,87 @@
|
||||
<?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.stdiet.custom.mapper.SysImportFanRecordMapper">
|
||||
|
||||
<resultMap type="SysImportFanRecord" id="SysImportFanRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="importFanDate" column="import_fan_date" />
|
||||
<result property="importFanChannel" column="import_fan_channel" />
|
||||
<result property="importFanLive" column="import_fan_live" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSysImportFanRecordVo">
|
||||
select id, import_fan_date, import_fan_channel, import_fan_live, create_time, create_by, update_time, update_by, del_flag from sys_import_fan_record
|
||||
</sql>
|
||||
|
||||
<select id="selectSysImportFanRecordList" parameterType="SysImportFanRecord" resultMap="SysImportFanRecordResult">
|
||||
<include refid="selectSysImportFanRecordVo"/>
|
||||
<where>
|
||||
<if test="importFanDate != null "> and import_fan_date = #{importFanDate}</if>
|
||||
<if test="importFanChannel != null "> and import_fan_channel = #{importFanChannel}</if>
|
||||
<if test="importFanLive != null "> and import_fan_live = #{importFanLive}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSysImportFanRecordById" parameterType="Long" resultMap="SysImportFanRecordResult">
|
||||
<include refid="selectSysImportFanRecordVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSysImportFanRecord" parameterType="SysImportFanRecord" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into sys_import_fan_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="importFanDate != null">import_fan_date,</if>
|
||||
<if test="importFanChannel != null">import_fan_channel,</if>
|
||||
<if test="importFanLive != null">import_fan_live,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="importFanDate != null">#{importFanDate},</if>
|
||||
<if test="importFanChannel != null">#{importFanChannel},</if>
|
||||
<if test="importFanLive != null">#{importFanLive},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSysImportFanRecord" parameterType="SysImportFanRecord">
|
||||
update sys_import_fan_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="importFanDate != null">import_fan_date = #{importFanDate},</if>
|
||||
<if test="importFanChannel != null">import_fan_channel = #{importFanChannel},</if>
|
||||
<if test="importFanLive != null">import_fan_live = #{importFanLive},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSysImportFanRecordById" parameterType="Long">
|
||||
delete from sys_import_fan_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSysImportFanRecordByIds" parameterType="String">
|
||||
delete from sys_import_fan_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,87 @@
|
||||
<?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.stdiet.custom.mapper.SysImportFanRecordMapper">
|
||||
|
||||
<resultMap type="SysImportFanRecord" id="SysImportFanRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="importFanDate" column="import_fan_date" />
|
||||
<result property="importFanChannel" column="import_fan_channel" />
|
||||
<result property="importFanLive" column="import_fan_live" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSysImportFanRecordVo">
|
||||
select id, import_fan_date, import_fan_channel, import_fan_live, create_time, create_by, update_time, update_by, del_flag from sys_import_fan_record
|
||||
</sql>
|
||||
|
||||
<select id="selectSysImportFanRecordList" parameterType="SysImportFanRecord" resultMap="SysImportFanRecordResult">
|
||||
<include refid="selectSysImportFanRecordVo"/>
|
||||
<where>
|
||||
<if test="importFanDate != null "> and import_fan_date = #{importFanDate}</if>
|
||||
<if test="importFanChannel != null "> and import_fan_channel = #{importFanChannel}</if>
|
||||
<if test="importFanLive != null "> and import_fan_live = #{importFanLive}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSysImportFanRecordById" parameterType="Long" resultMap="SysImportFanRecordResult">
|
||||
<include refid="selectSysImportFanRecordVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSysImportFanRecord" parameterType="SysImportFanRecord" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into sys_import_fan_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="importFanDate != null">import_fan_date,</if>
|
||||
<if test="importFanChannel != null">import_fan_channel,</if>
|
||||
<if test="importFanLive != null">import_fan_live,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="importFanDate != null">#{importFanDate},</if>
|
||||
<if test="importFanChannel != null">#{importFanChannel},</if>
|
||||
<if test="importFanLive != null">#{importFanLive},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSysImportFanRecord" parameterType="SysImportFanRecord">
|
||||
update sys_import_fan_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="importFanDate != null">import_fan_date = #{importFanDate},</if>
|
||||
<if test="importFanChannel != null">import_fan_channel = #{importFanChannel},</if>
|
||||
<if test="importFanLive != null">import_fan_live = #{importFanLive},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSysImportFanRecordById" parameterType="Long">
|
||||
delete from sys_import_fan_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSysImportFanRecordByIds" parameterType="String">
|
||||
delete from sys_import_fan_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
Reference in New Issue
Block a user