一日流程评估
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.ByDayflowassessment;
|
||||
import com.ruoyi.project.benyi.service.IByDayflowassessmentService;
|
||||
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 2021-02-05
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/benyi/dayflowassessment")
|
||||
public class ByDayflowassessmentController extends BaseController {
|
||||
@Autowired
|
||||
private IByDayflowassessmentService byDayflowassessmentService;
|
||||
|
||||
/**
|
||||
* 查询幼儿园一日流程评估列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:dayflowassessment:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ByDayflowassessment byDayflowassessment) {
|
||||
startPage();
|
||||
List<ByDayflowassessment> list = byDayflowassessmentService.selectByDayflowassessmentList(byDayflowassessment);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出幼儿园一日流程评估列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:dayflowassessment:export')")
|
||||
@Log(title = "幼儿园一日流程评估", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(ByDayflowassessment byDayflowassessment) {
|
||||
List<ByDayflowassessment> list = byDayflowassessmentService.selectByDayflowassessmentList(byDayflowassessment);
|
||||
ExcelUtil<ByDayflowassessment> util = new ExcelUtil<ByDayflowassessment>(ByDayflowassessment.class);
|
||||
return util.exportExcel(list, "dayflowassessment");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取幼儿园一日流程评估详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:dayflowassessment:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(byDayflowassessmentService.selectByDayflowassessmentById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增幼儿园一日流程评估
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:dayflowassessment:add')")
|
||||
@Log(title = "幼儿园一日流程评估", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ByDayflowassessment byDayflowassessment) {
|
||||
return toAjax(byDayflowassessmentService.insertByDayflowassessment(byDayflowassessment));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改幼儿园一日流程评估
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:dayflowassessment:edit')")
|
||||
@Log(title = "幼儿园一日流程评估", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ByDayflowassessment byDayflowassessment) {
|
||||
return toAjax(byDayflowassessmentService.updateByDayflowassessment(byDayflowassessment));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除幼儿园一日流程评估
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:dayflowassessment:remove')")
|
||||
@Log(title = "幼儿园一日流程评估", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(byDayflowassessmentService.deleteByDayflowassessmentByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,262 @@
|
||||
package com.ruoyi.project.benyi.domain;
|
||||
|
||||
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_dayflowassessment
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2021-02-05
|
||||
*/
|
||||
public class ByDayflowassessment extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 所属计划
|
||||
*/
|
||||
@Excel(name = "所属计划")
|
||||
private Long planid;
|
||||
|
||||
/**
|
||||
* 学校编号
|
||||
*/
|
||||
@Excel(name = "学校编号")
|
||||
private Long deptId;
|
||||
|
||||
/**
|
||||
* 班级编号
|
||||
*/
|
||||
@Excel(name = "班级编号")
|
||||
private String classid;
|
||||
|
||||
/**
|
||||
* 班长编号
|
||||
*/
|
||||
@Excel(name = "班长编号")
|
||||
private Long bzbh;
|
||||
|
||||
/**
|
||||
* 班长姓名
|
||||
*/
|
||||
@Excel(name = "班长姓名")
|
||||
private String bzxm;
|
||||
|
||||
/**
|
||||
* 配班教师
|
||||
*/
|
||||
@Excel(name = "配班教师")
|
||||
private Long pbbh;
|
||||
|
||||
/**
|
||||
* 配班教师姓名
|
||||
*/
|
||||
@Excel(name = "配班教师姓名")
|
||||
private String pbxm;
|
||||
|
||||
/**
|
||||
* 助理教师
|
||||
*/
|
||||
@Excel(name = "助理教师")
|
||||
private Long zlbh;
|
||||
|
||||
/**
|
||||
* 助理教师姓名
|
||||
*/
|
||||
@Excel(name = "助理教师姓名")
|
||||
private String zlxm;
|
||||
|
||||
/**
|
||||
* 评估学年学期
|
||||
*/
|
||||
@Excel(name = "评估学年学期")
|
||||
private String xnxq;
|
||||
|
||||
/**
|
||||
* 评估标准编号
|
||||
*/
|
||||
@Excel(name = "评估标准编号")
|
||||
private Long bzid;
|
||||
|
||||
/**
|
||||
* 扣分值
|
||||
*/
|
||||
@Excel(name = "扣分值")
|
||||
private Double kfz;
|
||||
|
||||
/**
|
||||
* 扣分次数
|
||||
*/
|
||||
@Excel(name = "扣分次数")
|
||||
private Long kfcs;
|
||||
|
||||
/**
|
||||
* 评估对象
|
||||
*/
|
||||
@Excel(name = "评估对象")
|
||||
private Long pgdx;
|
||||
|
||||
/**
|
||||
* 执行人
|
||||
*/
|
||||
@Excel(name = "执行人")
|
||||
private Long createUserid;
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setPlanid(Long planid) {
|
||||
this.planid = planid;
|
||||
}
|
||||
|
||||
public Long getPlanid() {
|
||||
return planid;
|
||||
}
|
||||
|
||||
public void setDeptId(Long deptId) {
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public Long getDeptId() {
|
||||
return deptId;
|
||||
}
|
||||
|
||||
public void setClassid(String classid) {
|
||||
this.classid = classid;
|
||||
}
|
||||
|
||||
public String getClassid() {
|
||||
return classid;
|
||||
}
|
||||
|
||||
public void setBzbh(Long bzbh) {
|
||||
this.bzbh = bzbh;
|
||||
}
|
||||
|
||||
public Long getBzbh() {
|
||||
return bzbh;
|
||||
}
|
||||
|
||||
public void setBzxm(String bzxm) {
|
||||
this.bzxm = bzxm;
|
||||
}
|
||||
|
||||
public String getBzxm() {
|
||||
return bzxm;
|
||||
}
|
||||
|
||||
public void setPbbh(Long pbbh) {
|
||||
this.pbbh = pbbh;
|
||||
}
|
||||
|
||||
public Long getPbbh() {
|
||||
return pbbh;
|
||||
}
|
||||
|
||||
public void setPbxm(String pbxm) {
|
||||
this.pbxm = pbxm;
|
||||
}
|
||||
|
||||
public String getPbxm() {
|
||||
return pbxm;
|
||||
}
|
||||
|
||||
public void setZlbh(Long zlbh) {
|
||||
this.zlbh = zlbh;
|
||||
}
|
||||
|
||||
public Long getZlbh() {
|
||||
return zlbh;
|
||||
}
|
||||
|
||||
public void setZlxm(String zlxm) {
|
||||
this.zlxm = zlxm;
|
||||
}
|
||||
|
||||
public String getZlxm() {
|
||||
return zlxm;
|
||||
}
|
||||
|
||||
public void setXnxq(String xnxq) {
|
||||
this.xnxq = xnxq;
|
||||
}
|
||||
|
||||
public String getXnxq() {
|
||||
return xnxq;
|
||||
}
|
||||
|
||||
public void setBzid(Long bzid) {
|
||||
this.bzid = bzid;
|
||||
}
|
||||
|
||||
public Long getBzid() {
|
||||
return bzid;
|
||||
}
|
||||
|
||||
public void setKfz(Double kfz) {
|
||||
this.kfz = kfz;
|
||||
}
|
||||
|
||||
public Double getKfz() {
|
||||
return kfz;
|
||||
}
|
||||
|
||||
public void setKfcs(Long kfcs) {
|
||||
this.kfcs = kfcs;
|
||||
}
|
||||
|
||||
public Long getKfcs() {
|
||||
return kfcs;
|
||||
}
|
||||
|
||||
public void setPgdx(Long pgdx) {
|
||||
this.pgdx = pgdx;
|
||||
}
|
||||
|
||||
public Long getPgdx() {
|
||||
return pgdx;
|
||||
}
|
||||
|
||||
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("planid", getPlanid())
|
||||
.append("deptId", getDeptId())
|
||||
.append("classid", getClassid())
|
||||
.append("bzbh", getBzbh())
|
||||
.append("bzxm", getBzxm())
|
||||
.append("pbbh", getPbbh())
|
||||
.append("pbxm", getPbxm())
|
||||
.append("zlbh", getZlbh())
|
||||
.append("zlxm", getZlxm())
|
||||
.append("xnxq", getXnxq())
|
||||
.append("bzid", getBzid())
|
||||
.append("kfz", getKfz())
|
||||
.append("kfcs", getKfcs())
|
||||
.append("pgdx", getPgdx())
|
||||
.append("createUserid", getCreateUserid())
|
||||
.append("createTime", getCreateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.project.benyi.domain.ByDayflowassessment;
|
||||
|
||||
/**
|
||||
* 幼儿园一日流程评估Mapper接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2021-02-05
|
||||
*/
|
||||
public interface ByDayflowassessmentMapper {
|
||||
/**
|
||||
* 查询幼儿园一日流程评估
|
||||
*
|
||||
* @param id 幼儿园一日流程评估ID
|
||||
* @return 幼儿园一日流程评估
|
||||
*/
|
||||
public ByDayflowassessment selectByDayflowassessmentById(Long id);
|
||||
|
||||
/**
|
||||
* 查询幼儿园一日流程评估列表
|
||||
*
|
||||
* @param byDayflowassessment 幼儿园一日流程评估
|
||||
* @return 幼儿园一日流程评估集合
|
||||
*/
|
||||
public List<ByDayflowassessment> selectByDayflowassessmentList(ByDayflowassessment byDayflowassessment);
|
||||
|
||||
/**
|
||||
* 新增幼儿园一日流程评估
|
||||
*
|
||||
* @param byDayflowassessment 幼儿园一日流程评估
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByDayflowassessment(ByDayflowassessment byDayflowassessment);
|
||||
|
||||
/**
|
||||
* 修改幼儿园一日流程评估
|
||||
*
|
||||
* @param byDayflowassessment 幼儿园一日流程评估
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByDayflowassessment(ByDayflowassessment byDayflowassessment);
|
||||
|
||||
/**
|
||||
* 删除幼儿园一日流程评估
|
||||
*
|
||||
* @param id 幼儿园一日流程评估ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByDayflowassessmentById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除幼儿园一日流程评估
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByDayflowassessmentByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.project.benyi.domain.ByDayflowassessment;
|
||||
|
||||
/**
|
||||
* 幼儿园一日流程评估Service接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2021-02-05
|
||||
*/
|
||||
public interface IByDayflowassessmentService {
|
||||
/**
|
||||
* 查询幼儿园一日流程评估
|
||||
*
|
||||
* @param id 幼儿园一日流程评估ID
|
||||
* @return 幼儿园一日流程评估
|
||||
*/
|
||||
public ByDayflowassessment selectByDayflowassessmentById(Long id);
|
||||
|
||||
/**
|
||||
* 查询幼儿园一日流程评估列表
|
||||
*
|
||||
* @param byDayflowassessment 幼儿园一日流程评估
|
||||
* @return 幼儿园一日流程评估集合
|
||||
*/
|
||||
public List<ByDayflowassessment> selectByDayflowassessmentList(ByDayflowassessment byDayflowassessment);
|
||||
|
||||
/**
|
||||
* 新增幼儿园一日流程评估
|
||||
*
|
||||
* @param byDayflowassessment 幼儿园一日流程评估
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByDayflowassessment(ByDayflowassessment byDayflowassessment);
|
||||
|
||||
/**
|
||||
* 修改幼儿园一日流程评估
|
||||
*
|
||||
* @param byDayflowassessment 幼儿园一日流程评估
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByDayflowassessment(ByDayflowassessment byDayflowassessment);
|
||||
|
||||
/**
|
||||
* 批量删除幼儿园一日流程评估
|
||||
*
|
||||
* @param ids 需要删除的幼儿园一日流程评估ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByDayflowassessmentByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除幼儿园一日流程评估信息
|
||||
*
|
||||
* @param id 幼儿园一日流程评估ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByDayflowassessmentById(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.ByDayflowassessmentMapper;
|
||||
import com.ruoyi.project.benyi.domain.ByDayflowassessment;
|
||||
import com.ruoyi.project.benyi.service.IByDayflowassessmentService;
|
||||
|
||||
/**
|
||||
* 幼儿园一日流程评估Service业务层处理
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2021-02-05
|
||||
*/
|
||||
@Service
|
||||
public class ByDayflowassessmentServiceImpl implements IByDayflowassessmentService {
|
||||
@Autowired
|
||||
private ByDayflowassessmentMapper byDayflowassessmentMapper;
|
||||
|
||||
/**
|
||||
* 查询幼儿园一日流程评估
|
||||
*
|
||||
* @param id 幼儿园一日流程评估ID
|
||||
* @return 幼儿园一日流程评估
|
||||
*/
|
||||
@Override
|
||||
public ByDayflowassessment selectByDayflowassessmentById(Long id) {
|
||||
return byDayflowassessmentMapper.selectByDayflowassessmentById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询幼儿园一日流程评估列表
|
||||
*
|
||||
* @param byDayflowassessment 幼儿园一日流程评估
|
||||
* @return 幼儿园一日流程评估
|
||||
*/
|
||||
@Override
|
||||
public List<ByDayflowassessment> selectByDayflowassessmentList(ByDayflowassessment byDayflowassessment) {
|
||||
return byDayflowassessmentMapper.selectByDayflowassessmentList(byDayflowassessment);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增幼儿园一日流程评估
|
||||
*
|
||||
* @param byDayflowassessment 幼儿园一日流程评估
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertByDayflowassessment(ByDayflowassessment byDayflowassessment) {
|
||||
byDayflowassessment.setCreateTime(DateUtils.getNowDate());
|
||||
return byDayflowassessmentMapper.insertByDayflowassessment(byDayflowassessment);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改幼儿园一日流程评估
|
||||
*
|
||||
* @param byDayflowassessment 幼儿园一日流程评估
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateByDayflowassessment(ByDayflowassessment byDayflowassessment) {
|
||||
return byDayflowassessmentMapper.updateByDayflowassessment(byDayflowassessment);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除幼儿园一日流程评估
|
||||
*
|
||||
* @param ids 需要删除的幼儿园一日流程评估ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByDayflowassessmentByIds(Long[] ids) {
|
||||
return byDayflowassessmentMapper.deleteByDayflowassessmentByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除幼儿园一日流程评估信息
|
||||
*
|
||||
* @param id 幼儿园一日流程评估ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByDayflowassessmentById(Long id) {
|
||||
return byDayflowassessmentMapper.deleteByDayflowassessmentById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,132 @@
|
||||
<?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.ByDayflowassessmentMapper">
|
||||
|
||||
<resultMap type="ByDayflowassessment" id="ByDayflowassessmentResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="planid" column="planid"/>
|
||||
<result property="deptId" column="dept_id"/>
|
||||
<result property="classid" column="classid"/>
|
||||
<result property="bzbh" column="bzbh"/>
|
||||
<result property="bzxm" column="bzxm"/>
|
||||
<result property="pbbh" column="pbbh"/>
|
||||
<result property="pbxm" column="pbxm"/>
|
||||
<result property="zlbh" column="zlbh"/>
|
||||
<result property="zlxm" column="zlxm"/>
|
||||
<result property="xnxq" column="xnxq"/>
|
||||
<result property="bzid" column="bzid"/>
|
||||
<result property="kfz" column="kfz"/>
|
||||
<result property="kfcs" column="kfcs"/>
|
||||
<result property="pgdx" column="pgdx"/>
|
||||
<result property="createUserid" column="create_userid"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectByDayflowassessmentVo">
|
||||
select id, planid, dept_id, classid, bzbh, bzxm, pbbh, pbxm, zlbh, zlxm, xnxq, bzid, kfz, kfcs, pgdx, create_userid, create_time from by_dayflowassessment
|
||||
</sql>
|
||||
|
||||
<select id="selectByDayflowassessmentList" parameterType="ByDayflowassessment"
|
||||
resultMap="ByDayflowassessmentResult">
|
||||
<include refid="selectByDayflowassessmentVo"/>
|
||||
<where>
|
||||
<if test="planid != null ">and planid = #{planid}</if>
|
||||
<if test="deptId != null ">and dept_id = #{deptId}</if>
|
||||
<if test="classid != null and classid != ''">and classid = #{classid}</if>
|
||||
<if test="bzbh != null ">and bzbh = #{bzbh}</if>
|
||||
<if test="bzxm != null and bzxm != ''">and bzxm = #{bzxm}</if>
|
||||
<if test="pbbh != null ">and pbbh = #{pbbh}</if>
|
||||
<if test="pbxm != null and pbxm != ''">and pbxm = #{pbxm}</if>
|
||||
<if test="zlbh != null ">and zlbh = #{zlbh}</if>
|
||||
<if test="zlxm != null and zlxm != ''">and zlxm = #{zlxm}</if>
|
||||
<if test="xnxq != null and xnxq != ''">and xnxq = #{xnxq}</if>
|
||||
<if test="bzid != null ">and bzid = #{bzid}</if>
|
||||
<if test="kfz != null ">and kfz = #{kfz}</if>
|
||||
<if test="kfcs != null ">and kfcs = #{kfcs}</if>
|
||||
<if test="pgdx != null ">and pgdx = #{pgdx}</if>
|
||||
<if test="createUserid != null ">and create_userid = #{createUserid}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectByDayflowassessmentById" parameterType="Long" resultMap="ByDayflowassessmentResult">
|
||||
<include refid="selectByDayflowassessmentVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertByDayflowassessment" parameterType="ByDayflowassessment" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into by_dayflowassessment
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="planid != null ">planid,</if>
|
||||
<if test="deptId != null ">dept_id,</if>
|
||||
<if test="classid != null and classid != ''">classid,</if>
|
||||
<if test="bzbh != null ">bzbh,</if>
|
||||
<if test="bzxm != null and bzxm != ''">bzxm,</if>
|
||||
<if test="pbbh != null ">pbbh,</if>
|
||||
<if test="pbxm != null and pbxm != ''">pbxm,</if>
|
||||
<if test="zlbh != null ">zlbh,</if>
|
||||
<if test="zlxm != null and zlxm != ''">zlxm,</if>
|
||||
<if test="xnxq != null and xnxq != ''">xnxq,</if>
|
||||
<if test="bzid != null ">bzid,</if>
|
||||
<if test="kfz != null ">kfz,</if>
|
||||
<if test="kfcs != null ">kfcs,</if>
|
||||
<if test="pgdx != null ">pgdx,</if>
|
||||
<if test="createUserid != null ">create_userid,</if>
|
||||
<if test="createTime != null ">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="planid != null ">#{planid},</if>
|
||||
<if test="deptId != null ">#{deptId},</if>
|
||||
<if test="classid != null and classid != ''">#{classid},</if>
|
||||
<if test="bzbh != null ">#{bzbh},</if>
|
||||
<if test="bzxm != null and bzxm != ''">#{bzxm},</if>
|
||||
<if test="pbbh != null ">#{pbbh},</if>
|
||||
<if test="pbxm != null and pbxm != ''">#{pbxm},</if>
|
||||
<if test="zlbh != null ">#{zlbh},</if>
|
||||
<if test="zlxm != null and zlxm != ''">#{zlxm},</if>
|
||||
<if test="xnxq != null and xnxq != ''">#{xnxq},</if>
|
||||
<if test="bzid != null ">#{bzid},</if>
|
||||
<if test="kfz != null ">#{kfz},</if>
|
||||
<if test="kfcs != null ">#{kfcs},</if>
|
||||
<if test="pgdx != null ">#{pgdx},</if>
|
||||
<if test="createUserid != null ">#{createUserid},</if>
|
||||
<if test="createTime != null ">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateByDayflowassessment" parameterType="ByDayflowassessment">
|
||||
update by_dayflowassessment
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="planid != null ">planid = #{planid},</if>
|
||||
<if test="deptId != null ">dept_id = #{deptId},</if>
|
||||
<if test="classid != null and classid != ''">classid = #{classid},</if>
|
||||
<if test="bzbh != null ">bzbh = #{bzbh},</if>
|
||||
<if test="bzxm != null and bzxm != ''">bzxm = #{bzxm},</if>
|
||||
<if test="pbbh != null ">pbbh = #{pbbh},</if>
|
||||
<if test="pbxm != null and pbxm != ''">pbxm = #{pbxm},</if>
|
||||
<if test="zlbh != null ">zlbh = #{zlbh},</if>
|
||||
<if test="zlxm != null and zlxm != ''">zlxm = #{zlxm},</if>
|
||||
<if test="xnxq != null and xnxq != ''">xnxq = #{xnxq},</if>
|
||||
<if test="bzid != null ">bzid = #{bzid},</if>
|
||||
<if test="kfz != null ">kfz = #{kfz},</if>
|
||||
<if test="kfcs != null ">kfcs = #{kfcs},</if>
|
||||
<if test="pgdx != null ">pgdx = #{pgdx},</if>
|
||||
<if test="createUserid != null ">create_userid = #{createUserid},</if>
|
||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteByDayflowassessmentById" parameterType="Long">
|
||||
delete from by_dayflowassessment where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByDayflowassessmentByIds" parameterType="String">
|
||||
delete from by_dayflowassessment where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
Reference in New Issue
Block a user