20200726-入园申请
This commit is contained in:
@ -0,0 +1,97 @@
|
||||
package com.ruoyi.project.benyi.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
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.ruoyi.framework.aspectj.lang.annotation.Log;
|
||||
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
|
||||
import com.ruoyi.project.benyi.domain.ByExperience;
|
||||
import com.ruoyi.project.benyi.service.IByExperienceService;
|
||||
import com.ruoyi.framework.web.controller.BaseController;
|
||||
import com.ruoyi.framework.web.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.framework.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 入班体验申请Controller
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-07-26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/benyi/experience")
|
||||
public class ByExperienceController extends BaseController {
|
||||
@Autowired
|
||||
private IByExperienceService byExperienceService;
|
||||
|
||||
/**
|
||||
* 查询入班体验申请列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:experience:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ByExperience byExperience) {
|
||||
startPage();
|
||||
List<ByExperience> list = byExperienceService.selectByExperienceList(byExperience);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出入班体验申请列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:experience:export')")
|
||||
@Log(title = "入班体验申请", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(ByExperience byExperience) {
|
||||
List<ByExperience> list = byExperienceService.selectByExperienceList(byExperience);
|
||||
ExcelUtil<ByExperience> util = new ExcelUtil<ByExperience>(ByExperience.class);
|
||||
return util.exportExcel(list, "experience");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取入班体验申请详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:experience:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(byExperienceService.selectByExperienceById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增入班体验申请
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:experience:add')")
|
||||
@Log(title = "入班体验申请", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ByExperience byExperience) {
|
||||
return toAjax(byExperienceService.insertByExperience(byExperience));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改入班体验申请
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:experience:edit')")
|
||||
@Log(title = "入班体验申请", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ByExperience byExperience) {
|
||||
return toAjax(byExperienceService.updateByExperience(byExperience));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除入班体验申请
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:experience:remove')")
|
||||
@Log(title = "入班体验申请", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(byExperienceService.deleteByExperienceByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,272 @@
|
||||
package com.ruoyi.project.benyi.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.framework.aspectj.lang.annotation.Excel;
|
||||
import com.ruoyi.framework.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 入班体验申请对象 by_experience
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-07-26
|
||||
*/
|
||||
public class ByExperience extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 家长姓名
|
||||
*/
|
||||
@Excel(name = "家长姓名")
|
||||
private String jzxm;
|
||||
|
||||
/**
|
||||
* 幼儿姓名
|
||||
*/
|
||||
@Excel(name = "幼儿姓名")
|
||||
private String yexm;
|
||||
|
||||
/**
|
||||
* 幼儿出生日期
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "幼儿出生日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date csrq;
|
||||
|
||||
/**
|
||||
* 联系方式
|
||||
*/
|
||||
@Excel(name = "联系方式")
|
||||
private String lxfs;
|
||||
|
||||
/**
|
||||
* 拟入园时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "拟入园时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date nrysj;
|
||||
|
||||
/**
|
||||
* 申请体验时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "申请体验时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date sqtysj;
|
||||
|
||||
/**
|
||||
* 上午或下午
|
||||
*/
|
||||
@Excel(name = "上午或下午")
|
||||
private String swxw;
|
||||
|
||||
/**
|
||||
* 体验学校
|
||||
*/
|
||||
@Excel(name = "体验学校")
|
||||
private Long schoolid;
|
||||
|
||||
/**
|
||||
* 是否回复
|
||||
*/
|
||||
@Excel(name = "是否回复")
|
||||
private String sfhf;
|
||||
|
||||
/**
|
||||
* 回复内容
|
||||
*/
|
||||
@Excel(name = "回复内容")
|
||||
private String hfrn;
|
||||
|
||||
/**
|
||||
* 回复人
|
||||
*/
|
||||
@Excel(name = "回复人")
|
||||
private Long hfuserid;
|
||||
|
||||
/**
|
||||
* 回复时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "回复时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date fhsj;
|
||||
|
||||
/**
|
||||
* 园长指示
|
||||
*/
|
||||
@Excel(name = "园长指示")
|
||||
private String yzzs;
|
||||
|
||||
/**
|
||||
* 体验结果
|
||||
* 0不入园
|
||||
* 1入园
|
||||
*/
|
||||
@Excel(name = "体验结果 0不入园 1入园")
|
||||
private String tyjg;
|
||||
|
||||
/**
|
||||
* 入园时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "入园时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date rysj;
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setJzxm(String jzxm) {
|
||||
this.jzxm = jzxm;
|
||||
}
|
||||
|
||||
public String getJzxm() {
|
||||
return jzxm;
|
||||
}
|
||||
|
||||
public void setYexm(String yexm) {
|
||||
this.yexm = yexm;
|
||||
}
|
||||
|
||||
public String getYexm() {
|
||||
return yexm;
|
||||
}
|
||||
|
||||
public void setCsrq(Date csrq) {
|
||||
this.csrq = csrq;
|
||||
}
|
||||
|
||||
public Date getCsrq() {
|
||||
return csrq;
|
||||
}
|
||||
|
||||
public void setLxfs(String lxfs) {
|
||||
this.lxfs = lxfs;
|
||||
}
|
||||
|
||||
public String getLxfs() {
|
||||
return lxfs;
|
||||
}
|
||||
|
||||
public void setNrysj(Date nrysj) {
|
||||
this.nrysj = nrysj;
|
||||
}
|
||||
|
||||
public Date getNrysj() {
|
||||
return nrysj;
|
||||
}
|
||||
|
||||
public void setSqtysj(Date sqtysj) {
|
||||
this.sqtysj = sqtysj;
|
||||
}
|
||||
|
||||
public Date getSqtysj() {
|
||||
return sqtysj;
|
||||
}
|
||||
|
||||
public void setSwxw(String swxw) {
|
||||
this.swxw = swxw;
|
||||
}
|
||||
|
||||
public String getSwxw() {
|
||||
return swxw;
|
||||
}
|
||||
|
||||
public void setSchoolid(Long schoolid) {
|
||||
this.schoolid = schoolid;
|
||||
}
|
||||
|
||||
public Long getSchoolid() {
|
||||
return schoolid;
|
||||
}
|
||||
|
||||
public void setSfhf(String sfhf) {
|
||||
this.sfhf = sfhf;
|
||||
}
|
||||
|
||||
public String getSfhf() {
|
||||
return sfhf;
|
||||
}
|
||||
|
||||
public void setHfrn(String hfrn) {
|
||||
this.hfrn = hfrn;
|
||||
}
|
||||
|
||||
public String getHfrn() {
|
||||
return hfrn;
|
||||
}
|
||||
|
||||
public void setHfuserid(Long hfuserid) {
|
||||
this.hfuserid = hfuserid;
|
||||
}
|
||||
|
||||
public Long getHfuserid() {
|
||||
return hfuserid;
|
||||
}
|
||||
|
||||
public void setFhsj(Date fhsj) {
|
||||
this.fhsj = fhsj;
|
||||
}
|
||||
|
||||
public Date getFhsj() {
|
||||
return fhsj;
|
||||
}
|
||||
|
||||
public void setYzzs(String yzzs) {
|
||||
this.yzzs = yzzs;
|
||||
}
|
||||
|
||||
public String getYzzs() {
|
||||
return yzzs;
|
||||
}
|
||||
|
||||
public void setTyjg(String tyjg) {
|
||||
this.tyjg = tyjg;
|
||||
}
|
||||
|
||||
public String getTyjg() {
|
||||
return tyjg;
|
||||
}
|
||||
|
||||
public void setRysj(Date rysj) {
|
||||
this.rysj = rysj;
|
||||
}
|
||||
|
||||
public Date getRysj() {
|
||||
return rysj;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("jzxm", getJzxm())
|
||||
.append("yexm", getYexm())
|
||||
.append("csrq", getCsrq())
|
||||
.append("lxfs", getLxfs())
|
||||
.append("nrysj", getNrysj())
|
||||
.append("sqtysj", getSqtysj())
|
||||
.append("swxw", getSwxw())
|
||||
.append("schoolid", getSchoolid())
|
||||
.append("sfhf", getSfhf())
|
||||
.append("hfrn", getHfrn())
|
||||
.append("hfuserid", getHfuserid())
|
||||
.append("fhsj", getFhsj())
|
||||
.append("yzzs", getYzzs())
|
||||
.append("tyjg", getTyjg())
|
||||
.append("rysj", getRysj())
|
||||
.append("createTime", getCreateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.project.benyi.domain.ByExperience;
|
||||
|
||||
/**
|
||||
* 入班体验申请Mapper接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-07-26
|
||||
*/
|
||||
public interface ByExperienceMapper {
|
||||
/**
|
||||
* 查询入班体验申请
|
||||
*
|
||||
* @param id 入班体验申请ID
|
||||
* @return 入班体验申请
|
||||
*/
|
||||
public ByExperience selectByExperienceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询入班体验申请列表
|
||||
*
|
||||
* @param byExperience 入班体验申请
|
||||
* @return 入班体验申请集合
|
||||
*/
|
||||
public List<ByExperience> selectByExperienceList(ByExperience byExperience);
|
||||
|
||||
/**
|
||||
* 新增入班体验申请
|
||||
*
|
||||
* @param byExperience 入班体验申请
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByExperience(ByExperience byExperience);
|
||||
|
||||
/**
|
||||
* 修改入班体验申请
|
||||
*
|
||||
* @param byExperience 入班体验申请
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByExperience(ByExperience byExperience);
|
||||
|
||||
/**
|
||||
* 删除入班体验申请
|
||||
*
|
||||
* @param id 入班体验申请ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByExperienceById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除入班体验申请
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByExperienceByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.project.benyi.domain.ByExperience;
|
||||
|
||||
/**
|
||||
* 入班体验申请Service接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-07-26
|
||||
*/
|
||||
public interface IByExperienceService {
|
||||
/**
|
||||
* 查询入班体验申请
|
||||
*
|
||||
* @param id 入班体验申请ID
|
||||
* @return 入班体验申请
|
||||
*/
|
||||
public ByExperience selectByExperienceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询入班体验申请列表
|
||||
*
|
||||
* @param byExperience 入班体验申请
|
||||
* @return 入班体验申请集合
|
||||
*/
|
||||
public List<ByExperience> selectByExperienceList(ByExperience byExperience);
|
||||
|
||||
/**
|
||||
* 新增入班体验申请
|
||||
*
|
||||
* @param byExperience 入班体验申请
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByExperience(ByExperience byExperience);
|
||||
|
||||
/**
|
||||
* 修改入班体验申请
|
||||
*
|
||||
* @param byExperience 入班体验申请
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByExperience(ByExperience byExperience);
|
||||
|
||||
/**
|
||||
* 批量删除入班体验申请
|
||||
*
|
||||
* @param ids 需要删除的入班体验申请ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByExperienceByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除入班体验申请信息
|
||||
*
|
||||
* @param id 入班体验申请ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByExperienceById(Long id);
|
||||
}
|
@ -0,0 +1,89 @@
|
||||
package com.ruoyi.project.benyi.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.project.benyi.mapper.ByExperienceMapper;
|
||||
import com.ruoyi.project.benyi.domain.ByExperience;
|
||||
import com.ruoyi.project.benyi.service.IByExperienceService;
|
||||
|
||||
/**
|
||||
* 入班体验申请Service业务层处理
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-07-26
|
||||
*/
|
||||
@Service
|
||||
public class ByExperienceServiceImpl implements IByExperienceService {
|
||||
@Autowired
|
||||
private ByExperienceMapper byExperienceMapper;
|
||||
|
||||
/**
|
||||
* 查询入班体验申请
|
||||
*
|
||||
* @param id 入班体验申请ID
|
||||
* @return 入班体验申请
|
||||
*/
|
||||
@Override
|
||||
public ByExperience selectByExperienceById(Long id) {
|
||||
return byExperienceMapper.selectByExperienceById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询入班体验申请列表
|
||||
*
|
||||
* @param byExperience 入班体验申请
|
||||
* @return 入班体验申请
|
||||
*/
|
||||
@Override
|
||||
public List<ByExperience> selectByExperienceList(ByExperience byExperience) {
|
||||
return byExperienceMapper.selectByExperienceList(byExperience);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增入班体验申请
|
||||
*
|
||||
* @param byExperience 入班体验申请
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertByExperience(ByExperience byExperience) {
|
||||
byExperience.setCreateTime(DateUtils.getNowDate());
|
||||
return byExperienceMapper.insertByExperience(byExperience);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改入班体验申请
|
||||
*
|
||||
* @param byExperience 入班体验申请
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateByExperience(ByExperience byExperience) {
|
||||
return byExperienceMapper.updateByExperience(byExperience);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除入班体验申请
|
||||
*
|
||||
* @param ids 需要删除的入班体验申请ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByExperienceByIds(Long[] ids) {
|
||||
return byExperienceMapper.deleteByExperienceByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除入班体验申请信息
|
||||
*
|
||||
* @param id 入班体验申请ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByExperienceById(Long id) {
|
||||
return byExperienceMapper.deleteByExperienceById(id);
|
||||
}
|
||||
}
|
131
ruoyi/src/main/resources/mybatis/benyi/ByExperienceMapper.xml
Normal file
131
ruoyi/src/main/resources/mybatis/benyi/ByExperienceMapper.xml
Normal file
@ -0,0 +1,131 @@
|
||||
<?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.project.benyi.mapper.ByExperienceMapper">
|
||||
|
||||
<resultMap type="ByExperience" id="ByExperienceResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="jzxm" column="jzxm" />
|
||||
<result property="yexm" column="yexm" />
|
||||
<result property="csrq" column="csrq" />
|
||||
<result property="lxfs" column="lxfs" />
|
||||
<result property="nrysj" column="nrysj" />
|
||||
<result property="sqtysj" column="sqtysj" />
|
||||
<result property="swxw" column="swxw" />
|
||||
<result property="schoolid" column="schoolid" />
|
||||
<result property="sfhf" column="sfhf" />
|
||||
<result property="hfrn" column="hfrn" />
|
||||
<result property="hfuserid" column="hfuserid" />
|
||||
<result property="fhsj" column="fhsj" />
|
||||
<result property="yzzs" column="yzzs" />
|
||||
<result property="tyjg" column="tyjg" />
|
||||
<result property="rysj" column="rysj" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectByExperienceVo">
|
||||
select id, jzxm, yexm, csrq, lxfs, nrysj, sqtysj, swxw, schoolid, sfhf, hfrn, hfuserid, fhsj, yzzs, tyjg, rysj, create_time from by_experience
|
||||
</sql>
|
||||
|
||||
<select id="selectByExperienceList" parameterType="ByExperience" resultMap="ByExperienceResult">
|
||||
<include refid="selectByExperienceVo"/>
|
||||
<where>
|
||||
<if test="jzxm != null and jzxm != ''"> and jzxm = #{jzxm}</if>
|
||||
<if test="yexm != null and yexm != ''"> and yexm = #{yexm}</if>
|
||||
<if test="csrq != null "> and csrq = #{csrq}</if>
|
||||
<if test="lxfs != null and lxfs != ''"> and lxfs = #{lxfs}</if>
|
||||
<if test="nrysj != null "> and nrysj = #{nrysj}</if>
|
||||
<if test="sqtysj != null "> and sqtysj = #{sqtysj}</if>
|
||||
<if test="swxw != null and swxw != ''"> and swxw = #{swxw}</if>
|
||||
<if test="schoolid != null "> and schoolid = #{schoolid}</if>
|
||||
<if test="sfhf != null and sfhf != ''"> and sfhf = #{sfhf}</if>
|
||||
<if test="hfrn != null and hfrn != ''"> and hfrn = #{hfrn}</if>
|
||||
<if test="hfuserid != null "> and hfuserid = #{hfuserid}</if>
|
||||
<if test="fhsj != null "> and fhsj = #{fhsj}</if>
|
||||
<if test="yzzs != null and yzzs != ''"> and yzzs = #{yzzs}</if>
|
||||
<if test="tyjg != null and tyjg != ''"> and tyjg = #{tyjg}</if>
|
||||
<if test="rysj != null "> and rysj = #{rysj}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectByExperienceById" parameterType="Long" resultMap="ByExperienceResult">
|
||||
<include refid="selectByExperienceVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertByExperience" parameterType="ByExperience" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into by_experience
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="jzxm != null and jzxm != ''">jzxm,</if>
|
||||
<if test="yexm != null and yexm != ''">yexm,</if>
|
||||
<if test="csrq != null ">csrq,</if>
|
||||
<if test="lxfs != null and lxfs != ''">lxfs,</if>
|
||||
<if test="nrysj != null ">nrysj,</if>
|
||||
<if test="sqtysj != null ">sqtysj,</if>
|
||||
<if test="swxw != null and swxw != ''">swxw,</if>
|
||||
<if test="schoolid != null ">schoolid,</if>
|
||||
<if test="sfhf != null and sfhf != ''">sfhf,</if>
|
||||
<if test="hfrn != null and hfrn != ''">hfrn,</if>
|
||||
<if test="hfuserid != null ">hfuserid,</if>
|
||||
<if test="fhsj != null ">fhsj,</if>
|
||||
<if test="yzzs != null and yzzs != ''">yzzs,</if>
|
||||
<if test="tyjg != null and tyjg != ''">tyjg,</if>
|
||||
<if test="rysj != null ">rysj,</if>
|
||||
<if test="createTime != null ">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="jzxm != null and jzxm != ''">#{jzxm},</if>
|
||||
<if test="yexm != null and yexm != ''">#{yexm},</if>
|
||||
<if test="csrq != null ">#{csrq},</if>
|
||||
<if test="lxfs != null and lxfs != ''">#{lxfs},</if>
|
||||
<if test="nrysj != null ">#{nrysj},</if>
|
||||
<if test="sqtysj != null ">#{sqtysj},</if>
|
||||
<if test="swxw != null and swxw != ''">#{swxw},</if>
|
||||
<if test="schoolid != null ">#{schoolid},</if>
|
||||
<if test="sfhf != null and sfhf != ''">#{sfhf},</if>
|
||||
<if test="hfrn != null and hfrn != ''">#{hfrn},</if>
|
||||
<if test="hfuserid != null ">#{hfuserid},</if>
|
||||
<if test="fhsj != null ">#{fhsj},</if>
|
||||
<if test="yzzs != null and yzzs != ''">#{yzzs},</if>
|
||||
<if test="tyjg != null and tyjg != ''">#{tyjg},</if>
|
||||
<if test="rysj != null ">#{rysj},</if>
|
||||
<if test="createTime != null ">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateByExperience" parameterType="ByExperience">
|
||||
update by_experience
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="jzxm != null and jzxm != ''">jzxm = #{jzxm},</if>
|
||||
<if test="yexm != null and yexm != ''">yexm = #{yexm},</if>
|
||||
<if test="csrq != null ">csrq = #{csrq},</if>
|
||||
<if test="lxfs != null and lxfs != ''">lxfs = #{lxfs},</if>
|
||||
<if test="nrysj != null ">nrysj = #{nrysj},</if>
|
||||
<if test="sqtysj != null ">sqtysj = #{sqtysj},</if>
|
||||
<if test="swxw != null and swxw != ''">swxw = #{swxw},</if>
|
||||
<if test="schoolid != null ">schoolid = #{schoolid},</if>
|
||||
<if test="sfhf != null and sfhf != ''">sfhf = #{sfhf},</if>
|
||||
<if test="hfrn != null and hfrn != ''">hfrn = #{hfrn},</if>
|
||||
<if test="hfuserid != null ">hfuserid = #{hfuserid},</if>
|
||||
<if test="fhsj != null ">fhsj = #{fhsj},</if>
|
||||
<if test="yzzs != null and yzzs != ''">yzzs = #{yzzs},</if>
|
||||
<if test="tyjg != null and tyjg != ''">tyjg = #{tyjg},</if>
|
||||
<if test="rysj != null ">rysj = #{rysj},</if>
|
||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteByExperienceById" parameterType="Long">
|
||||
delete from by_experience where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByExperienceByIds" parameterType="String">
|
||||
delete from by_experience where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
Reference in New Issue
Block a user