优化基地区级审核

This commit is contained in:
sk1551
2020-08-29 15:48:42 +08:00
parent 81ac18fd95
commit 940d11a8f3
17 changed files with 2345 additions and 145 deletions

View File

@ -0,0 +1,158 @@
package com.ruoyi.jxzxkhgl.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 见习之星考核方案对象 tsbz_jxzxkhfa
*
* @author ruoyi
* @date 2020-08-29
*/
public class TsbzJxzxkhfa extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Long id;
/** 考核方案名称 */
@Excel(name = "考核方案名称")
private String name;
/** 考核方案状态
0:未启动
1:启动
9:已结束 */
@Excel(name = "考核方案状态")
private String status;
/** 考核开始时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "考核开始时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date starttime;
/** 考核结束时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "考核结束时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date endtime;
/** 考核文件名称 */
@Excel(name = "考核文件名称")
private String filename;
/** 文件路径 */
@Excel(name = "文件路径")
private String filepath;
/** 考核年份 */
@JsonFormat(pattern = "yyyy")
@Excel(name = "考核年份", width = 30, dateFormat = "yyyy")
private Date khnf;
/** 创建人 */
@Excel(name = "创建人")
private Long createuserid;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setStarttime(Date starttime)
{
this.starttime = starttime;
}
public Date getStarttime()
{
return starttime;
}
public void setEndtime(Date endtime)
{
this.endtime = endtime;
}
public Date getEndtime()
{
return endtime;
}
public void setFilename(String filename)
{
this.filename = filename;
}
public String getFilename()
{
return filename;
}
public void setFilepath(String filepath)
{
this.filepath = filepath;
}
public String getFilepath()
{
return filepath;
}
public void setKhnf(Date khnf)
{
this.khnf = khnf;
}
public Date getKhnf()
{
return khnf;
}
public void setCreateuserid(Long createuserid)
{
this.createuserid = createuserid;
}
public Long getCreateuserid()
{
return createuserid;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("status", getStatus())
.append("starttime", getStarttime())
.append("endtime", getEndtime())
.append("filename", getFilename())
.append("filepath", getFilepath())
.append("khnf", getKhnf())
.append("createuserid", getCreateuserid())
.append("createTime", getCreateTime())
.toString();
}
}

View File

@ -0,0 +1,226 @@
package com.ruoyi.jxzxkhgl.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 考核指标项对象 tsbz_jxzxkhzbx
*
* @author ruoyi
* @date 2020-08-29
*/
public class TsbzJxzxkhzbx extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Long id;
/** 所属考核方案 */
@Excel(name = "所属考核方案")
private Long faid;
/** 考核模块
字典项 */
@Excel(name = "考核模块")
private String khmk;
/** 考核内容 */
@Excel(name = "考核内容")
private String khnr;
/** 提交数量 */
@Excel(name = "提交数量")
private Long tjsl;
/** 关键字段 */
@Excel(name = "关键字段")
private String gjzd;
/** 同步来源
字典项所属系统 */
@Excel(name = "同步来源")
private String tbly;
/** 接口标记预留 */
@Excel(name = "接口标记预留")
private String jkbj;
/** 执行开始时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "执行开始时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date starttime;
/** 执行截止时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "执行截止时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date endtime;
/** 执行任务预留 */
@Excel(name = "执行任务预留")
private String zxrw;
/** 创建人 */
@Excel(name = "创建人")
private Long createuserid;
/** 预留1 */
@Excel(name = "预留1")
private String yly;
/** 预留2 */
@Excel(name = "预留2")
private String yle;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setFaid(Long faid)
{
this.faid = faid;
}
public Long getFaid()
{
return faid;
}
public void setKhmk(String khmk)
{
this.khmk = khmk;
}
public String getKhmk()
{
return khmk;
}
public void setKhnr(String khnr)
{
this.khnr = khnr;
}
public String getKhnr()
{
return khnr;
}
public void setTjsl(Long tjsl)
{
this.tjsl = tjsl;
}
public Long getTjsl()
{
return tjsl;
}
public void setGjzd(String gjzd)
{
this.gjzd = gjzd;
}
public String getGjzd()
{
return gjzd;
}
public void setTbly(String tbly)
{
this.tbly = tbly;
}
public String getTbly()
{
return tbly;
}
public void setJkbj(String jkbj)
{
this.jkbj = jkbj;
}
public String getJkbj()
{
return jkbj;
}
public void setStarttime(Date starttime)
{
this.starttime = starttime;
}
public Date getStarttime()
{
return starttime;
}
public void setEndtime(Date endtime)
{
this.endtime = endtime;
}
public Date getEndtime()
{
return endtime;
}
public void setZxrw(String zxrw)
{
this.zxrw = zxrw;
}
public String getZxrw()
{
return zxrw;
}
public void setCreateuserid(Long createuserid)
{
this.createuserid = createuserid;
}
public Long getCreateuserid()
{
return createuserid;
}
public void setYly(String yly)
{
this.yly = yly;
}
public String getYly()
{
return yly;
}
public void setYle(String yle)
{
this.yle = yle;
}
public String getYle()
{
return yle;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("faid", getFaid())
.append("khmk", getKhmk())
.append("khnr", getKhnr())
.append("tjsl", getTjsl())
.append("gjzd", getGjzd())
.append("tbly", getTbly())
.append("jkbj", getJkbj())
.append("starttime", getStarttime())
.append("endtime", getEndtime())
.append("zxrw", getZxrw())
.append("createuserid", getCreateuserid())
.append("createTime", getCreateTime())
.append("yly", getYly())
.append("yle", getYle())
.toString();
}
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.jxzxkhgl.mapper;
import java.util.List;
import com.ruoyi.jxzxkhgl.domain.TsbzJxzxkhfa;
/**
* 见习之星考核方案Mapper接口
*
* @author ruoyi
* @date 2020-08-29
*/
public interface TsbzJxzxkhfaMapper
{
/**
* 查询见习之星考核方案
*
* @param id 见习之星考核方案ID
* @return 见习之星考核方案
*/
public TsbzJxzxkhfa selectTsbzJxzxkhfaById(Long id);
/**
* 查询见习之星考核方案列表
*
* @param tsbzJxzxkhfa 见习之星考核方案
* @return 见习之星考核方案集合
*/
public List<TsbzJxzxkhfa> selectTsbzJxzxkhfaList(TsbzJxzxkhfa tsbzJxzxkhfa);
/**
* 新增见习之星考核方案
*
* @param tsbzJxzxkhfa 见习之星考核方案
* @return 结果
*/
public int insertTsbzJxzxkhfa(TsbzJxzxkhfa tsbzJxzxkhfa);
/**
* 修改见习之星考核方案
*
* @param tsbzJxzxkhfa 见习之星考核方案
* @return 结果
*/
public int updateTsbzJxzxkhfa(TsbzJxzxkhfa tsbzJxzxkhfa);
/**
* 删除见习之星考核方案
*
* @param id 见习之星考核方案ID
* @return 结果
*/
public int deleteTsbzJxzxkhfaById(Long id);
/**
* 批量删除见习之星考核方案
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteTsbzJxzxkhfaByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.jxzxkhgl.mapper;
import java.util.List;
import com.ruoyi.jxzxkhgl.domain.TsbzJxzxkhzbx;
/**
* 考核指标项Mapper接口
*
* @author ruoyi
* @date 2020-08-29
*/
public interface TsbzJxzxkhzbxMapper
{
/**
* 查询考核指标项
*
* @param id 考核指标项ID
* @return 考核指标项
*/
public TsbzJxzxkhzbx selectTsbzJxzxkhzbxById(Long id);
/**
* 查询考核指标项列表
*
* @param tsbzJxzxkhzbx 考核指标项
* @return 考核指标项集合
*/
public List<TsbzJxzxkhzbx> selectTsbzJxzxkhzbxList(TsbzJxzxkhzbx tsbzJxzxkhzbx);
/**
* 新增考核指标项
*
* @param tsbzJxzxkhzbx 考核指标项
* @return 结果
*/
public int insertTsbzJxzxkhzbx(TsbzJxzxkhzbx tsbzJxzxkhzbx);
/**
* 修改考核指标项
*
* @param tsbzJxzxkhzbx 考核指标项
* @return 结果
*/
public int updateTsbzJxzxkhzbx(TsbzJxzxkhzbx tsbzJxzxkhzbx);
/**
* 删除考核指标项
*
* @param id 考核指标项ID
* @return 结果
*/
public int deleteTsbzJxzxkhzbxById(Long id);
/**
* 批量删除考核指标项
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteTsbzJxzxkhzbxByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.jxzxkhgl.service;
import java.util.List;
import com.ruoyi.jxzxkhgl.domain.TsbzJxzxkhfa;
/**
* 见习之星考核方案Service接口
*
* @author ruoyi
* @date 2020-08-29
*/
public interface ITsbzJxzxkhfaService
{
/**
* 查询见习之星考核方案
*
* @param id 见习之星考核方案ID
* @return 见习之星考核方案
*/
public TsbzJxzxkhfa selectTsbzJxzxkhfaById(Long id);
/**
* 查询见习之星考核方案列表
*
* @param tsbzJxzxkhfa 见习之星考核方案
* @return 见习之星考核方案集合
*/
public List<TsbzJxzxkhfa> selectTsbzJxzxkhfaList(TsbzJxzxkhfa tsbzJxzxkhfa);
/**
* 新增见习之星考核方案
*
* @param tsbzJxzxkhfa 见习之星考核方案
* @return 结果
*/
public int insertTsbzJxzxkhfa(TsbzJxzxkhfa tsbzJxzxkhfa);
/**
* 修改见习之星考核方案
*
* @param tsbzJxzxkhfa 见习之星考核方案
* @return 结果
*/
public int updateTsbzJxzxkhfa(TsbzJxzxkhfa tsbzJxzxkhfa);
/**
* 批量删除见习之星考核方案
*
* @param ids 需要删除的见习之星考核方案ID
* @return 结果
*/
public int deleteTsbzJxzxkhfaByIds(Long[] ids);
/**
* 删除见习之星考核方案信息
*
* @param id 见习之星考核方案ID
* @return 结果
*/
public int deleteTsbzJxzxkhfaById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.jxzxkhgl.service;
import java.util.List;
import com.ruoyi.jxzxkhgl.domain.TsbzJxzxkhzbx;
/**
* 考核指标项Service接口
*
* @author ruoyi
* @date 2020-08-29
*/
public interface ITsbzJxzxkhzbxService
{
/**
* 查询考核指标项
*
* @param id 考核指标项ID
* @return 考核指标项
*/
public TsbzJxzxkhzbx selectTsbzJxzxkhzbxById(Long id);
/**
* 查询考核指标项列表
*
* @param tsbzJxzxkhzbx 考核指标项
* @return 考核指标项集合
*/
public List<TsbzJxzxkhzbx> selectTsbzJxzxkhzbxList(TsbzJxzxkhzbx tsbzJxzxkhzbx);
/**
* 新增考核指标项
*
* @param tsbzJxzxkhzbx 考核指标项
* @return 结果
*/
public int insertTsbzJxzxkhzbx(TsbzJxzxkhzbx tsbzJxzxkhzbx);
/**
* 修改考核指标项
*
* @param tsbzJxzxkhzbx 考核指标项
* @return 结果
*/
public int updateTsbzJxzxkhzbx(TsbzJxzxkhzbx tsbzJxzxkhzbx);
/**
* 批量删除考核指标项
*
* @param ids 需要删除的考核指标项ID
* @return 结果
*/
public int deleteTsbzJxzxkhzbxByIds(Long[] ids);
/**
* 删除考核指标项信息
*
* @param id 考核指标项ID
* @return 结果
*/
public int deleteTsbzJxzxkhzbxById(Long id);
}

View File

@ -0,0 +1,95 @@
package com.ruoyi.jxzxkhgl.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jxzxkhgl.mapper.TsbzJxzxkhfaMapper;
import com.ruoyi.jxzxkhgl.domain.TsbzJxzxkhfa;
import com.ruoyi.jxzxkhgl.service.ITsbzJxzxkhfaService;
/**
* 见习之星考核方案Service业务层处理
*
* @author ruoyi
* @date 2020-08-29
*/
@Service
public class TsbzJxzxkhfaServiceImpl implements ITsbzJxzxkhfaService
{
@Autowired
private TsbzJxzxkhfaMapper tsbzJxzxkhfaMapper;
/**
* 查询见习之星考核方案
*
* @param id 见习之星考核方案ID
* @return 见习之星考核方案
*/
@Override
public TsbzJxzxkhfa selectTsbzJxzxkhfaById(Long id)
{
return tsbzJxzxkhfaMapper.selectTsbzJxzxkhfaById(id);
}
/**
* 查询见习之星考核方案列表
*
* @param tsbzJxzxkhfa 见习之星考核方案
* @return 见习之星考核方案
*/
@Override
public List<TsbzJxzxkhfa> selectTsbzJxzxkhfaList(TsbzJxzxkhfa tsbzJxzxkhfa)
{
return tsbzJxzxkhfaMapper.selectTsbzJxzxkhfaList(tsbzJxzxkhfa);
}
/**
* 新增见习之星考核方案
*
* @param tsbzJxzxkhfa 见习之星考核方案
* @return 结果
*/
@Override
public int insertTsbzJxzxkhfa(TsbzJxzxkhfa tsbzJxzxkhfa)
{
tsbzJxzxkhfa.setCreateTime(DateUtils.getNowDate());
return tsbzJxzxkhfaMapper.insertTsbzJxzxkhfa(tsbzJxzxkhfa);
}
/**
* 修改见习之星考核方案
*
* @param tsbzJxzxkhfa 见习之星考核方案
* @return 结果
*/
@Override
public int updateTsbzJxzxkhfa(TsbzJxzxkhfa tsbzJxzxkhfa)
{
return tsbzJxzxkhfaMapper.updateTsbzJxzxkhfa(tsbzJxzxkhfa);
}
/**
* 批量删除见习之星考核方案
*
* @param ids 需要删除的见习之星考核方案ID
* @return 结果
*/
@Override
public int deleteTsbzJxzxkhfaByIds(Long[] ids)
{
return tsbzJxzxkhfaMapper.deleteTsbzJxzxkhfaByIds(ids);
}
/**
* 删除见习之星考核方案信息
*
* @param id 见习之星考核方案ID
* @return 结果
*/
@Override
public int deleteTsbzJxzxkhfaById(Long id)
{
return tsbzJxzxkhfaMapper.deleteTsbzJxzxkhfaById(id);
}
}

View File

@ -0,0 +1,95 @@
package com.ruoyi.jxzxkhgl.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jxzxkhgl.mapper.TsbzJxzxkhzbxMapper;
import com.ruoyi.jxzxkhgl.domain.TsbzJxzxkhzbx;
import com.ruoyi.jxzxkhgl.service.ITsbzJxzxkhzbxService;
/**
* 考核指标项Service业务层处理
*
* @author ruoyi
* @date 2020-08-29
*/
@Service
public class TsbzJxzxkhzbxServiceImpl implements ITsbzJxzxkhzbxService
{
@Autowired
private TsbzJxzxkhzbxMapper tsbzJxzxkhzbxMapper;
/**
* 查询考核指标项
*
* @param id 考核指标项ID
* @return 考核指标项
*/
@Override
public TsbzJxzxkhzbx selectTsbzJxzxkhzbxById(Long id)
{
return tsbzJxzxkhzbxMapper.selectTsbzJxzxkhzbxById(id);
}
/**
* 查询考核指标项列表
*
* @param tsbzJxzxkhzbx 考核指标项
* @return 考核指标项
*/
@Override
public List<TsbzJxzxkhzbx> selectTsbzJxzxkhzbxList(TsbzJxzxkhzbx tsbzJxzxkhzbx)
{
return tsbzJxzxkhzbxMapper.selectTsbzJxzxkhzbxList(tsbzJxzxkhzbx);
}
/**
* 新增考核指标项
*
* @param tsbzJxzxkhzbx 考核指标项
* @return 结果
*/
@Override
public int insertTsbzJxzxkhzbx(TsbzJxzxkhzbx tsbzJxzxkhzbx)
{
tsbzJxzxkhzbx.setCreateTime(DateUtils.getNowDate());
return tsbzJxzxkhzbxMapper.insertTsbzJxzxkhzbx(tsbzJxzxkhzbx);
}
/**
* 修改考核指标项
*
* @param tsbzJxzxkhzbx 考核指标项
* @return 结果
*/
@Override
public int updateTsbzJxzxkhzbx(TsbzJxzxkhzbx tsbzJxzxkhzbx)
{
return tsbzJxzxkhzbxMapper.updateTsbzJxzxkhzbx(tsbzJxzxkhzbx);
}
/**
* 批量删除考核指标项
*
* @param ids 需要删除的考核指标项ID
* @return 结果
*/
@Override
public int deleteTsbzJxzxkhzbxByIds(Long[] ids)
{
return tsbzJxzxkhzbxMapper.deleteTsbzJxzxkhzbxByIds(ids);
}
/**
* 删除考核指标项信息
*
* @param id 考核指标项ID
* @return 结果
*/
@Override
public int deleteTsbzJxzxkhzbxById(Long id)
{
return tsbzJxzxkhzbxMapper.deleteTsbzJxzxkhzbxById(id);
}
}

View File

@ -0,0 +1,96 @@
<?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.ruoyi.jxzxkhgl.mapper.TsbzJxzxkhfaMapper">
<resultMap type="TsbzJxzxkhfa" id="TsbzJxzxkhfaResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="status" column="status" />
<result property="starttime" column="starttime" />
<result property="endtime" column="endtime" />
<result property="filename" column="filename" />
<result property="filepath" column="filepath" />
<result property="khnf" column="khnf" />
<result property="createuserid" column="createuserid" />
<result property="createTime" column="create_time" />
</resultMap>
<sql id="selectTsbzJxzxkhfaVo">
select id, name, status, starttime, endtime, filename, filepath, khnf, createuserid, create_time from tsbz_jxzxkhfa
</sql>
<select id="selectTsbzJxzxkhfaList" parameterType="TsbzJxzxkhfa" resultMap="TsbzJxzxkhfaResult">
<include refid="selectTsbzJxzxkhfaVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="starttime != null "> and starttime = #{starttime}</if>
<if test="endtime != null "> and endtime = #{endtime}</if>
<if test="filename != null and filename != ''"> and filename like concat('%', #{filename}, '%')</if>
<if test="filepath != null and filepath != ''"> and filepath = #{filepath}</if>
<if test="khnf != null "> and khnf = #{khnf}</if>
<if test="createuserid != null "> and createuserid = #{createuserid}</if>
</where>
</select>
<select id="selectTsbzJxzxkhfaById" parameterType="Long" resultMap="TsbzJxzxkhfaResult">
<include refid="selectTsbzJxzxkhfaVo"/>
where id = #{id}
</select>
<insert id="insertTsbzJxzxkhfa" parameterType="TsbzJxzxkhfa" useGeneratedKeys="true" keyProperty="id">
insert into tsbz_jxzxkhfa
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">name,</if>
<if test="status != null">status,</if>
<if test="starttime != null">starttime,</if>
<if test="endtime != null">endtime,</if>
<if test="filename != null">filename,</if>
<if test="filepath != null">filepath,</if>
<if test="khnf != null">khnf,</if>
<if test="createuserid != null">createuserid,</if>
<if test="createTime != null">create_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">#{name},</if>
<if test="status != null">#{status},</if>
<if test="starttime != null">#{starttime},</if>
<if test="endtime != null">#{endtime},</if>
<if test="filename != null">#{filename},</if>
<if test="filepath != null">#{filepath},</if>
<if test="khnf != null">#{khnf},</if>
<if test="createuserid != null">#{createuserid},</if>
<if test="createTime != null">#{createTime},</if>
</trim>
</insert>
<update id="updateTsbzJxzxkhfa" parameterType="TsbzJxzxkhfa">
update tsbz_jxzxkhfa
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="status != null">status = #{status},</if>
<if test="starttime != null">starttime = #{starttime},</if>
<if test="endtime != null">endtime = #{endtime},</if>
<if test="filename != null">filename = #{filename},</if>
<if test="filepath != null">filepath = #{filepath},</if>
<if test="khnf != null">khnf = #{khnf},</if>
<if test="createuserid != null">createuserid = #{createuserid},</if>
<if test="createTime != null">create_time = #{createTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteTsbzJxzxkhfaById" parameterType="Long">
delete from tsbz_jxzxkhfa where id = #{id}
</delete>
<delete id="deleteTsbzJxzxkhfaByIds" parameterType="String">
delete from tsbz_jxzxkhfa where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,121 @@
<?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.ruoyi.jxzxkhgl.mapper.TsbzJxzxkhzbxMapper">
<resultMap type="TsbzJxzxkhzbx" id="TsbzJxzxkhzbxResult">
<result property="id" column="id" />
<result property="faid" column="faid" />
<result property="khmk" column="khmk" />
<result property="khnr" column="khnr" />
<result property="tjsl" column="tjsl" />
<result property="gjzd" column="gjzd" />
<result property="tbly" column="tbly" />
<result property="jkbj" column="jkbj" />
<result property="starttime" column="starttime" />
<result property="endtime" column="endtime" />
<result property="zxrw" column="zxrw" />
<result property="createuserid" column="createuserid" />
<result property="createTime" column="create_time" />
<result property="yly" column="yly" />
<result property="yle" column="yle" />
</resultMap>
<sql id="selectTsbzJxzxkhzbxVo">
select id, faid, khmk, khnr, tjsl, gjzd, tbly, jkbj, starttime, endtime, zxrw, createuserid, create_time, yly, yle from tsbz_jxzxkhzbx
</sql>
<select id="selectTsbzJxzxkhzbxList" parameterType="TsbzJxzxkhzbx" resultMap="TsbzJxzxkhzbxResult">
<include refid="selectTsbzJxzxkhzbxVo"/>
<where>
<if test="faid != null "> and faid = #{faid}</if>
<if test="khmk != null and khmk != ''"> and khmk = #{khmk}</if>
<if test="khnr != null and khnr != ''"> and khnr = #{khnr}</if>
<if test="tjsl != null "> and tjsl = #{tjsl}</if>
<if test="gjzd != null and gjzd != ''"> and gjzd = #{gjzd}</if>
<if test="tbly != null and tbly != ''"> and tbly = #{tbly}</if>
<if test="jkbj != null and jkbj != ''"> and jkbj = #{jkbj}</if>
<if test="starttime != null "> and starttime = #{starttime}</if>
<if test="endtime != null "> and endtime = #{endtime}</if>
<if test="zxrw != null and zxrw != ''"> and zxrw = #{zxrw}</if>
<if test="createuserid != null "> and createuserid = #{createuserid}</if>
<if test="yly != null and yly != ''"> and yly = #{yly}</if>
<if test="yle != null and yle != ''"> and yle = #{yle}</if>
</where>
</select>
<select id="selectTsbzJxzxkhzbxById" parameterType="Long" resultMap="TsbzJxzxkhzbxResult">
<include refid="selectTsbzJxzxkhzbxVo"/>
where id = #{id}
</select>
<insert id="insertTsbzJxzxkhzbx" parameterType="TsbzJxzxkhzbx" useGeneratedKeys="true" keyProperty="id">
insert into tsbz_jxzxkhzbx
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="faid != null">faid,</if>
<if test="khmk != null">khmk,</if>
<if test="khnr != null">khnr,</if>
<if test="tjsl != null">tjsl,</if>
<if test="gjzd != null">gjzd,</if>
<if test="tbly != null">tbly,</if>
<if test="jkbj != null">jkbj,</if>
<if test="starttime != null">starttime,</if>
<if test="endtime != null">endtime,</if>
<if test="zxrw != null">zxrw,</if>
<if test="createuserid != null">createuserid,</if>
<if test="createTime != null">create_time,</if>
<if test="yly != null">yly,</if>
<if test="yle != null">yle,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="faid != null">#{faid},</if>
<if test="khmk != null">#{khmk},</if>
<if test="khnr != null">#{khnr},</if>
<if test="tjsl != null">#{tjsl},</if>
<if test="gjzd != null">#{gjzd},</if>
<if test="tbly != null">#{tbly},</if>
<if test="jkbj != null">#{jkbj},</if>
<if test="starttime != null">#{starttime},</if>
<if test="endtime != null">#{endtime},</if>
<if test="zxrw != null">#{zxrw},</if>
<if test="createuserid != null">#{createuserid},</if>
<if test="createTime != null">#{createTime},</if>
<if test="yly != null">#{yly},</if>
<if test="yle != null">#{yle},</if>
</trim>
</insert>
<update id="updateTsbzJxzxkhzbx" parameterType="TsbzJxzxkhzbx">
update tsbz_jxzxkhzbx
<trim prefix="SET" suffixOverrides=",">
<if test="faid != null">faid = #{faid},</if>
<if test="khmk != null">khmk = #{khmk},</if>
<if test="khnr != null">khnr = #{khnr},</if>
<if test="tjsl != null">tjsl = #{tjsl},</if>
<if test="gjzd != null">gjzd = #{gjzd},</if>
<if test="tbly != null">tbly = #{tbly},</if>
<if test="jkbj != null">jkbj = #{jkbj},</if>
<if test="starttime != null">starttime = #{starttime},</if>
<if test="endtime != null">endtime = #{endtime},</if>
<if test="zxrw != null">zxrw = #{zxrw},</if>
<if test="createuserid != null">createuserid = #{createuserid},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="yly != null">yly = #{yly},</if>
<if test="yle != null">yle = #{yle},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteTsbzJxzxkhzbxById" parameterType="Long">
delete from tsbz_jxzxkhzbx where id = #{id}
</delete>
<delete id="deleteTsbzJxzxkhzbxByIds" parameterType="String">
delete from tsbz_jxzxkhzbx where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>