周计划
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.ByPlanweek;
|
||||
import com.ruoyi.project.benyi.service.IByPlanweekService;
|
||||
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-08-24
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/benyi/planweek")
|
||||
public class ByPlanweekController extends BaseController {
|
||||
@Autowired
|
||||
private IByPlanweekService byPlanweekService;
|
||||
|
||||
/**
|
||||
* 查询周计划(家长和教育部门)列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:planweek:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ByPlanweek byPlanweek) {
|
||||
startPage();
|
||||
List<ByPlanweek> list = byPlanweekService.selectByPlanweekList(byPlanweek);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出周计划(家长和教育部门)列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:planweek:export')")
|
||||
@Log(title = "周计划(家长和教育部门)", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(ByPlanweek byPlanweek) {
|
||||
List<ByPlanweek> list = byPlanweekService.selectByPlanweekList(byPlanweek);
|
||||
ExcelUtil<ByPlanweek> util = new ExcelUtil<ByPlanweek>(ByPlanweek.class);
|
||||
return util.exportExcel(list, "planweek");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取周计划(家长和教育部门)详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:planweek:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(byPlanweekService.selectByPlanweekById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增周计划(家长和教育部门)
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:planweek:add')")
|
||||
@Log(title = "周计划(家长和教育部门)", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ByPlanweek byPlanweek) {
|
||||
return toAjax(byPlanweekService.insertByPlanweek(byPlanweek));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改周计划(家长和教育部门)
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:planweek:edit')")
|
||||
@Log(title = "周计划(家长和教育部门)", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ByPlanweek byPlanweek) {
|
||||
return toAjax(byPlanweekService.updateByPlanweek(byPlanweek));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除周计划(家长和教育部门)
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:planweek:remove')")
|
||||
@Log(title = "周计划(家长和教育部门)", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(byPlanweekService.deleteByPlanweekByIds(ids));
|
||||
}
|
||||
}
|
@ -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.ByPlanweekitem;
|
||||
import com.ruoyi.project.benyi.service.IByPlanweekitemService;
|
||||
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-08-24
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/benyi/planweekitem")
|
||||
public class ByPlanweekitemController extends BaseController {
|
||||
@Autowired
|
||||
private IByPlanweekitemService byPlanweekitemService;
|
||||
|
||||
/**
|
||||
* 查询周计划(家长和教育部门细化)列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:planweek:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ByPlanweekitem byPlanweekitem) {
|
||||
startPage();
|
||||
List<ByPlanweekitem> list = byPlanweekitemService.selectByPlanweekitemList(byPlanweekitem);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出周计划(家长和教育部门细化)列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:planweek:export')")
|
||||
@Log(title = "周计划(家长和教育部门细化)", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(ByPlanweekitem byPlanweekitem) {
|
||||
List<ByPlanweekitem> list = byPlanweekitemService.selectByPlanweekitemList(byPlanweekitem);
|
||||
ExcelUtil<ByPlanweekitem> util = new ExcelUtil<ByPlanweekitem>(ByPlanweekitem.class);
|
||||
return util.exportExcel(list, "planweekitem");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取周计划(家长和教育部门细化)详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:planweek:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(byPlanweekitemService.selectByPlanweekitemById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增周计划(家长和教育部门细化)
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:planweek:add')")
|
||||
@Log(title = "周计划(家长和教育部门细化)", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ByPlanweekitem byPlanweekitem) {
|
||||
return toAjax(byPlanweekitemService.insertByPlanweekitem(byPlanweekitem));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改周计划(家长和教育部门细化)
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:planweek:edit')")
|
||||
@Log(title = "周计划(家长和教育部门细化)", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ByPlanweekitem byPlanweekitem) {
|
||||
return toAjax(byPlanweekitemService.updateByPlanweekitem(byPlanweekitem));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除周计划(家长和教育部门细化)
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:planweek:remove')")
|
||||
@Log(title = "周计划(家长和教育部门细化)", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(byPlanweekitemService.deleteByPlanweekitemByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,268 @@
|
||||
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_planweek
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-08-24
|
||||
*/
|
||||
public class ByPlanweek extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 学校id
|
||||
*/
|
||||
@Excel(name = "学校id")
|
||||
private Long schoolid;
|
||||
|
||||
/**
|
||||
* 班级id
|
||||
*/
|
||||
@Excel(name = "班级id")
|
||||
private String classid;
|
||||
|
||||
/**
|
||||
* 计划名称
|
||||
*/
|
||||
@Excel(name = "计划名称")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
@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 themeofweek;
|
||||
|
||||
/**
|
||||
* 教学目标(社会)
|
||||
*/
|
||||
@Excel(name = "教学目标(社会)")
|
||||
private String jxmbSh;
|
||||
|
||||
/**
|
||||
* 教学目标(语言)
|
||||
*/
|
||||
@Excel(name = "教学目标(语言)")
|
||||
private String jxmbYy;
|
||||
|
||||
/**
|
||||
* 教学目标(健康)
|
||||
*/
|
||||
@Excel(name = "教学目标(健康)")
|
||||
private String jxmbJk;
|
||||
|
||||
/**
|
||||
* 教学目标(科学)
|
||||
*/
|
||||
@Excel(name = "教学目标(科学)")
|
||||
private String jxmbKx;
|
||||
|
||||
/**
|
||||
* 教学目标(艺术)
|
||||
*/
|
||||
@Excel(name = "教学目标(艺术)")
|
||||
private String jxmbYs;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Excel(name = "创建人")
|
||||
private Long createuserid;
|
||||
|
||||
/**
|
||||
* 当前状态
|
||||
*/
|
||||
@Excel(name = "当前状态")
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 审核人
|
||||
*/
|
||||
@Excel(name = "审核人")
|
||||
private Long shrid;
|
||||
|
||||
/**
|
||||
* 审核时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date shtime;
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setSchoolid(Long schoolid) {
|
||||
this.schoolid = schoolid;
|
||||
}
|
||||
|
||||
public Long getSchoolid() {
|
||||
return schoolid;
|
||||
}
|
||||
|
||||
public void setClassid(String classid) {
|
||||
this.classid = classid;
|
||||
}
|
||||
|
||||
public String getClassid() {
|
||||
return classid;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
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 setThemeofweek(String themeofweek) {
|
||||
this.themeofweek = themeofweek;
|
||||
}
|
||||
|
||||
public String getThemeofweek() {
|
||||
return themeofweek;
|
||||
}
|
||||
|
||||
public void setJxmbSh(String jxmbSh) {
|
||||
this.jxmbSh = jxmbSh;
|
||||
}
|
||||
|
||||
public String getJxmbSh() {
|
||||
return jxmbSh;
|
||||
}
|
||||
|
||||
public void setJxmbYy(String jxmbYy) {
|
||||
this.jxmbYy = jxmbYy;
|
||||
}
|
||||
|
||||
public String getJxmbYy() {
|
||||
return jxmbYy;
|
||||
}
|
||||
|
||||
public void setJxmbJk(String jxmbJk) {
|
||||
this.jxmbJk = jxmbJk;
|
||||
}
|
||||
|
||||
public String getJxmbJk() {
|
||||
return jxmbJk;
|
||||
}
|
||||
|
||||
public void setJxmbKx(String jxmbKx) {
|
||||
this.jxmbKx = jxmbKx;
|
||||
}
|
||||
|
||||
public String getJxmbKx() {
|
||||
return jxmbKx;
|
||||
}
|
||||
|
||||
public void setJxmbYs(String jxmbYs) {
|
||||
this.jxmbYs = jxmbYs;
|
||||
}
|
||||
|
||||
public String getJxmbYs() {
|
||||
return jxmbYs;
|
||||
}
|
||||
|
||||
public void setCreateuserid(Long createuserid) {
|
||||
this.createuserid = createuserid;
|
||||
}
|
||||
|
||||
public Long getCreateuserid() {
|
||||
return createuserid;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setShrid(Long shrid) {
|
||||
this.shrid = shrid;
|
||||
}
|
||||
|
||||
public Long getShrid() {
|
||||
return shrid;
|
||||
}
|
||||
|
||||
public void setShtime(Date shtime) {
|
||||
this.shtime = shtime;
|
||||
}
|
||||
|
||||
public Date getShtime() {
|
||||
return shtime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("schoolid", getSchoolid())
|
||||
.append("classid", getClassid())
|
||||
.append("name", getName())
|
||||
.append("starttime", getStarttime())
|
||||
.append("endtime", getEndtime())
|
||||
.append("themeofweek", getThemeofweek())
|
||||
.append("jxmbSh", getJxmbSh())
|
||||
.append("jxmbYy", getJxmbYy())
|
||||
.append("jxmbJk", getJxmbJk())
|
||||
.append("jxmbKx", getJxmbKx())
|
||||
.append("jxmbYs", getJxmbYs())
|
||||
.append("createuserid", getCreateuserid())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("status", getStatus())
|
||||
.append("shrid", getShrid())
|
||||
.append("shtime", getShtime())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,132 @@
|
||||
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_planweekitem
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-08-24
|
||||
*/
|
||||
public class ByPlanweekitem extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 所属计划
|
||||
*/
|
||||
@Excel(name = "所属计划")
|
||||
private Long wid;
|
||||
|
||||
/**
|
||||
* 活动类型
|
||||
*/
|
||||
@Excel(name = "活动类型")
|
||||
private String activitytype;
|
||||
|
||||
/**
|
||||
* 活动内容
|
||||
*/
|
||||
@Excel(name = "活动内容")
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* 活动时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "活动时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date activitytime;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Excel(name = "创建人")
|
||||
private Long createuserid;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@Excel(name = "修改人")
|
||||
private Long updateuserid;
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setWid(Long wid) {
|
||||
this.wid = wid;
|
||||
}
|
||||
|
||||
public Long getWid() {
|
||||
return wid;
|
||||
}
|
||||
|
||||
public void setActivitytype(String activitytype) {
|
||||
this.activitytype = activitytype;
|
||||
}
|
||||
|
||||
public String getActivitytype() {
|
||||
return activitytype;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setActivitytime(Date activitytime) {
|
||||
this.activitytime = activitytime;
|
||||
}
|
||||
|
||||
public Date getActivitytime() {
|
||||
return activitytime;
|
||||
}
|
||||
|
||||
public void setCreateuserid(Long createuserid) {
|
||||
this.createuserid = createuserid;
|
||||
}
|
||||
|
||||
public Long getCreateuserid() {
|
||||
return createuserid;
|
||||
}
|
||||
|
||||
public void setUpdateuserid(Long updateuserid) {
|
||||
this.updateuserid = updateuserid;
|
||||
}
|
||||
|
||||
public Long getUpdateuserid() {
|
||||
return updateuserid;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("wid", getWid())
|
||||
.append("activitytype", getActivitytype())
|
||||
.append("content", getContent())
|
||||
.append("activitytime", getActivitytime())
|
||||
.append("createuserid", getCreateuserid())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateuserid", getUpdateuserid())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.project.benyi.domain.ByPlanweek;
|
||||
|
||||
/**
|
||||
* 周计划(家长和教育部门)Mapper接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-08-24
|
||||
*/
|
||||
public interface ByPlanweekMapper
|
||||
{
|
||||
/**
|
||||
* 查询周计划(家长和教育部门)
|
||||
*
|
||||
* @param id 周计划(家长和教育部门)ID
|
||||
* @return 周计划(家长和教育部门)
|
||||
*/
|
||||
public ByPlanweek selectByPlanweekById(Long id);
|
||||
|
||||
/**
|
||||
* 查询周计划(家长和教育部门)列表
|
||||
*
|
||||
* @param byPlanweek 周计划(家长和教育部门)
|
||||
* @return 周计划(家长和教育部门)集合
|
||||
*/
|
||||
public List<ByPlanweek> selectByPlanweekList(ByPlanweek byPlanweek);
|
||||
|
||||
/**
|
||||
* 新增周计划(家长和教育部门)
|
||||
*
|
||||
* @param byPlanweek 周计划(家长和教育部门)
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByPlanweek(ByPlanweek byPlanweek);
|
||||
|
||||
/**
|
||||
* 修改周计划(家长和教育部门)
|
||||
*
|
||||
* @param byPlanweek 周计划(家长和教育部门)
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByPlanweek(ByPlanweek byPlanweek);
|
||||
|
||||
/**
|
||||
* 删除周计划(家长和教育部门)
|
||||
*
|
||||
* @param id 周计划(家长和教育部门)ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByPlanweekById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除周计划(家长和教育部门)
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByPlanweekByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.project.benyi.domain.ByPlanweekitem;
|
||||
|
||||
/**
|
||||
* 周计划(家长和教育部门细化)Mapper接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-08-24
|
||||
*/
|
||||
public interface ByPlanweekitemMapper
|
||||
{
|
||||
/**
|
||||
* 查询周计划(家长和教育部门细化)
|
||||
*
|
||||
* @param id 周计划(家长和教育部门细化)ID
|
||||
* @return 周计划(家长和教育部门细化)
|
||||
*/
|
||||
public ByPlanweekitem selectByPlanweekitemById(Long id);
|
||||
|
||||
/**
|
||||
* 查询周计划(家长和教育部门细化)列表
|
||||
*
|
||||
* @param byPlanweekitem 周计划(家长和教育部门细化)
|
||||
* @return 周计划(家长和教育部门细化)集合
|
||||
*/
|
||||
public List<ByPlanweekitem> selectByPlanweekitemList(ByPlanweekitem byPlanweekitem);
|
||||
|
||||
/**
|
||||
* 新增周计划(家长和教育部门细化)
|
||||
*
|
||||
* @param byPlanweekitem 周计划(家长和教育部门细化)
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByPlanweekitem(ByPlanweekitem byPlanweekitem);
|
||||
|
||||
/**
|
||||
* 修改周计划(家长和教育部门细化)
|
||||
*
|
||||
* @param byPlanweekitem 周计划(家长和教育部门细化)
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByPlanweekitem(ByPlanweekitem byPlanweekitem);
|
||||
|
||||
/**
|
||||
* 删除周计划(家长和教育部门细化)
|
||||
*
|
||||
* @param id 周计划(家长和教育部门细化)ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByPlanweekitemById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除周计划(家长和教育部门细化)
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByPlanweekitemByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.project.benyi.domain.ByPlanweek;
|
||||
|
||||
/**
|
||||
* 周计划(家长和教育部门)Service接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-08-24
|
||||
*/
|
||||
public interface IByPlanweekService {
|
||||
/**
|
||||
* 查询周计划(家长和教育部门)
|
||||
*
|
||||
* @param id 周计划(家长和教育部门)ID
|
||||
* @return 周计划(家长和教育部门)
|
||||
*/
|
||||
public ByPlanweek selectByPlanweekById(Long id);
|
||||
|
||||
/**
|
||||
* 查询周计划(家长和教育部门)列表
|
||||
*
|
||||
* @param byPlanweek 周计划(家长和教育部门)
|
||||
* @return 周计划(家长和教育部门)集合
|
||||
*/
|
||||
public List<ByPlanweek> selectByPlanweekList(ByPlanweek byPlanweek);
|
||||
|
||||
/**
|
||||
* 新增周计划(家长和教育部门)
|
||||
*
|
||||
* @param byPlanweek 周计划(家长和教育部门)
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByPlanweek(ByPlanweek byPlanweek);
|
||||
|
||||
/**
|
||||
* 修改周计划(家长和教育部门)
|
||||
*
|
||||
* @param byPlanweek 周计划(家长和教育部门)
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByPlanweek(ByPlanweek byPlanweek);
|
||||
|
||||
/**
|
||||
* 批量删除周计划(家长和教育部门)
|
||||
*
|
||||
* @param ids 需要删除的周计划(家长和教育部门)ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByPlanweekByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除周计划(家长和教育部门)信息
|
||||
*
|
||||
* @param id 周计划(家长和教育部门)ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByPlanweekById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.project.benyi.domain.ByPlanweekitem;
|
||||
|
||||
/**
|
||||
* 周计划(家长和教育部门细化)Service接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-08-24
|
||||
*/
|
||||
public interface IByPlanweekitemService {
|
||||
/**
|
||||
* 查询周计划(家长和教育部门细化)
|
||||
*
|
||||
* @param id 周计划(家长和教育部门细化)ID
|
||||
* @return 周计划(家长和教育部门细化)
|
||||
*/
|
||||
public ByPlanweekitem selectByPlanweekitemById(Long id);
|
||||
|
||||
/**
|
||||
* 查询周计划(家长和教育部门细化)列表
|
||||
*
|
||||
* @param byPlanweekitem 周计划(家长和教育部门细化)
|
||||
* @return 周计划(家长和教育部门细化)集合
|
||||
*/
|
||||
public List<ByPlanweekitem> selectByPlanweekitemList(ByPlanweekitem byPlanweekitem);
|
||||
|
||||
/**
|
||||
* 新增周计划(家长和教育部门细化)
|
||||
*
|
||||
* @param byPlanweekitem 周计划(家长和教育部门细化)
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByPlanweekitem(ByPlanweekitem byPlanweekitem);
|
||||
|
||||
/**
|
||||
* 修改周计划(家长和教育部门细化)
|
||||
*
|
||||
* @param byPlanweekitem 周计划(家长和教育部门细化)
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByPlanweekitem(ByPlanweekitem byPlanweekitem);
|
||||
|
||||
/**
|
||||
* 批量删除周计划(家长和教育部门细化)
|
||||
*
|
||||
* @param ids 需要删除的周计划(家长和教育部门细化)ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByPlanweekitemByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除周计划(家长和教育部门细化)信息
|
||||
*
|
||||
* @param id 周计划(家长和教育部门细化)ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByPlanweekitemById(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.ByPlanweekMapper;
|
||||
import com.ruoyi.project.benyi.domain.ByPlanweek;
|
||||
import com.ruoyi.project.benyi.service.IByPlanweekService;
|
||||
|
||||
/**
|
||||
* 周计划(家长和教育部门)Service业务层处理
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-08-24
|
||||
*/
|
||||
@Service
|
||||
public class ByPlanweekServiceImpl implements IByPlanweekService {
|
||||
@Autowired
|
||||
private ByPlanweekMapper byPlanweekMapper;
|
||||
|
||||
/**
|
||||
* 查询周计划(家长和教育部门)
|
||||
*
|
||||
* @param id 周计划(家长和教育部门)ID
|
||||
* @return 周计划(家长和教育部门)
|
||||
*/
|
||||
@Override
|
||||
public ByPlanweek selectByPlanweekById(Long id) {
|
||||
return byPlanweekMapper.selectByPlanweekById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询周计划(家长和教育部门)列表
|
||||
*
|
||||
* @param byPlanweek 周计划(家长和教育部门)
|
||||
* @return 周计划(家长和教育部门)
|
||||
*/
|
||||
@Override
|
||||
public List<ByPlanweek> selectByPlanweekList(ByPlanweek byPlanweek) {
|
||||
return byPlanweekMapper.selectByPlanweekList(byPlanweek);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增周计划(家长和教育部门)
|
||||
*
|
||||
* @param byPlanweek 周计划(家长和教育部门)
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertByPlanweek(ByPlanweek byPlanweek) {
|
||||
byPlanweek.setCreateTime(DateUtils.getNowDate());
|
||||
return byPlanweekMapper.insertByPlanweek(byPlanweek);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改周计划(家长和教育部门)
|
||||
*
|
||||
* @param byPlanweek 周计划(家长和教育部门)
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateByPlanweek(ByPlanweek byPlanweek) {
|
||||
return byPlanweekMapper.updateByPlanweek(byPlanweek);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除周计划(家长和教育部门)
|
||||
*
|
||||
* @param ids 需要删除的周计划(家长和教育部门)ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByPlanweekByIds(Long[] ids) {
|
||||
return byPlanweekMapper.deleteByPlanweekByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除周计划(家长和教育部门)信息
|
||||
*
|
||||
* @param id 周计划(家长和教育部门)ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByPlanweekById(Long id) {
|
||||
return byPlanweekMapper.deleteByPlanweekById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
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.ByPlanweekitemMapper;
|
||||
import com.ruoyi.project.benyi.domain.ByPlanweekitem;
|
||||
import com.ruoyi.project.benyi.service.IByPlanweekitemService;
|
||||
|
||||
/**
|
||||
* 周计划(家长和教育部门细化)Service业务层处理
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-08-24
|
||||
*/
|
||||
@Service
|
||||
public class ByPlanweekitemServiceImpl implements IByPlanweekitemService {
|
||||
@Autowired
|
||||
private ByPlanweekitemMapper byPlanweekitemMapper;
|
||||
|
||||
/**
|
||||
* 查询周计划(家长和教育部门细化)
|
||||
*
|
||||
* @param id 周计划(家长和教育部门细化)ID
|
||||
* @return 周计划(家长和教育部门细化)
|
||||
*/
|
||||
@Override
|
||||
public ByPlanweekitem selectByPlanweekitemById(Long id) {
|
||||
return byPlanweekitemMapper.selectByPlanweekitemById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询周计划(家长和教育部门细化)列表
|
||||
*
|
||||
* @param byPlanweekitem 周计划(家长和教育部门细化)
|
||||
* @return 周计划(家长和教育部门细化)
|
||||
*/
|
||||
@Override
|
||||
public List<ByPlanweekitem> selectByPlanweekitemList(ByPlanweekitem byPlanweekitem) {
|
||||
return byPlanweekitemMapper.selectByPlanweekitemList(byPlanweekitem);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增周计划(家长和教育部门细化)
|
||||
*
|
||||
* @param byPlanweekitem 周计划(家长和教育部门细化)
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertByPlanweekitem(ByPlanweekitem byPlanweekitem) {
|
||||
byPlanweekitem.setCreateTime(DateUtils.getNowDate());
|
||||
return byPlanweekitemMapper.insertByPlanweekitem(byPlanweekitem);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改周计划(家长和教育部门细化)
|
||||
*
|
||||
* @param byPlanweekitem 周计划(家长和教育部门细化)
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateByPlanweekitem(ByPlanweekitem byPlanweekitem) {
|
||||
byPlanweekitem.setUpdateTime(DateUtils.getNowDate());
|
||||
return byPlanweekitemMapper.updateByPlanweekitem(byPlanweekitem);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除周计划(家长和教育部门细化)
|
||||
*
|
||||
* @param ids 需要删除的周计划(家长和教育部门细化)ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByPlanweekitemByIds(Long[] ids) {
|
||||
return byPlanweekitemMapper.deleteByPlanweekitemByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除周计划(家长和教育部门细化)信息
|
||||
*
|
||||
* @param id 周计划(家长和教育部门细化)ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByPlanweekitemById(Long id) {
|
||||
return byPlanweekitemMapper.deleteByPlanweekitemById(id);
|
||||
}
|
||||
}
|
131
ruoyi/src/main/resources/mybatis/benyi/ByPlanweekMapper.xml
Normal file
131
ruoyi/src/main/resources/mybatis/benyi/ByPlanweekMapper.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.ByPlanweekMapper">
|
||||
|
||||
<resultMap type="ByPlanweek" id="ByPlanweekResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="schoolid" column="schoolid"/>
|
||||
<result property="classid" column="classid"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="starttime" column="starttime"/>
|
||||
<result property="endtime" column="endtime"/>
|
||||
<result property="themeofweek" column="themeofweek"/>
|
||||
<result property="jxmbSh" column="jxmb_sh"/>
|
||||
<result property="jxmbYy" column="jxmb_yy"/>
|
||||
<result property="jxmbJk" column="jxmb_jk"/>
|
||||
<result property="jxmbKx" column="jxmb_kx"/>
|
||||
<result property="jxmbYs" column="jxmb_ys"/>
|
||||
<result property="createuserid" column="createuserid"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="status" column="status"/>
|
||||
<result property="shrid" column="shrid"/>
|
||||
<result property="shtime" column="shtime"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectByPlanweekVo">
|
||||
select id, schoolid, classid, name, starttime, endtime, themeofweek, jxmb_sh, jxmb_yy, jxmb_jk, jxmb_kx, jxmb_ys, createuserid, create_time, status, shrid, shtime from by_planweek
|
||||
</sql>
|
||||
|
||||
<select id="selectByPlanweekList" parameterType="ByPlanweek" resultMap="ByPlanweekResult">
|
||||
<include refid="selectByPlanweekVo"/>
|
||||
<where>
|
||||
<if test="schoolid != null ">and schoolid = #{schoolid}</if>
|
||||
<if test="classid != null and classid != ''">and classid = #{classid}</if>
|
||||
<if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if>
|
||||
<if test="starttime != null ">and starttime = #{starttime}</if>
|
||||
<if test="endtime != null ">and endtime = #{endtime}</if>
|
||||
<if test="themeofweek != null and themeofweek != ''">and themeofweek = #{themeofweek}</if>
|
||||
<if test="jxmbSh != null and jxmbSh != ''">and jxmb_sh = #{jxmbSh}</if>
|
||||
<if test="jxmbYy != null and jxmbYy != ''">and jxmb_yy = #{jxmbYy}</if>
|
||||
<if test="jxmbJk != null and jxmbJk != ''">and jxmb_jk = #{jxmbJk}</if>
|
||||
<if test="jxmbKx != null and jxmbKx != ''">and jxmb_kx = #{jxmbKx}</if>
|
||||
<if test="jxmbYs != null and jxmbYs != ''">and jxmb_ys = #{jxmbYs}</if>
|
||||
<if test="createuserid != null ">and createuserid = #{createuserid}</if>
|
||||
<if test="status != null and status != ''">and status = #{status}</if>
|
||||
<if test="shrid != null ">and shrid = #{shrid}</if>
|
||||
<if test="shtime != null ">and shtime = #{shtime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectByPlanweekById" parameterType="Long" resultMap="ByPlanweekResult">
|
||||
<include refid="selectByPlanweekVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertByPlanweek" parameterType="ByPlanweek" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into by_planweek
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="schoolid != null ">schoolid,</if>
|
||||
<if test="classid != null and classid != ''">classid,</if>
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="starttime != null ">starttime,</if>
|
||||
<if test="endtime != null ">endtime,</if>
|
||||
<if test="themeofweek != null and themeofweek != ''">themeofweek,</if>
|
||||
<if test="jxmbSh != null and jxmbSh != ''">jxmb_sh,</if>
|
||||
<if test="jxmbYy != null and jxmbYy != ''">jxmb_yy,</if>
|
||||
<if test="jxmbJk != null and jxmbJk != ''">jxmb_jk,</if>
|
||||
<if test="jxmbKx != null and jxmbKx != ''">jxmb_kx,</if>
|
||||
<if test="jxmbYs != null and jxmbYs != ''">jxmb_ys,</if>
|
||||
<if test="createuserid != null ">createuserid,</if>
|
||||
<if test="createTime != null ">create_time,</if>
|
||||
<if test="status != null and status != ''">status,</if>
|
||||
<if test="shrid != null ">shrid,</if>
|
||||
<if test="shtime != null ">shtime,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="schoolid != null ">#{schoolid},</if>
|
||||
<if test="classid != null and classid != ''">#{classid},</if>
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="starttime != null ">#{starttime},</if>
|
||||
<if test="endtime != null ">#{endtime},</if>
|
||||
<if test="themeofweek != null and themeofweek != ''">#{themeofweek},</if>
|
||||
<if test="jxmbSh != null and jxmbSh != ''">#{jxmbSh},</if>
|
||||
<if test="jxmbYy != null and jxmbYy != ''">#{jxmbYy},</if>
|
||||
<if test="jxmbJk != null and jxmbJk != ''">#{jxmbJk},</if>
|
||||
<if test="jxmbKx != null and jxmbKx != ''">#{jxmbKx},</if>
|
||||
<if test="jxmbYs != null and jxmbYs != ''">#{jxmbYs},</if>
|
||||
<if test="createuserid != null ">#{createuserid},</if>
|
||||
<if test="createTime != null ">#{createTime},</if>
|
||||
<if test="status != null and status != ''">#{status},</if>
|
||||
<if test="shrid != null ">#{shrid},</if>
|
||||
<if test="shtime != null ">#{shtime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateByPlanweek" parameterType="ByPlanweek">
|
||||
update by_planweek
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="schoolid != null ">schoolid = #{schoolid},</if>
|
||||
<if test="classid != null and classid != ''">classid = #{classid},</if>
|
||||
<if test="name != null and name != ''">name = #{name},</if>
|
||||
<if test="starttime != null ">starttime = #{starttime},</if>
|
||||
<if test="endtime != null ">endtime = #{endtime},</if>
|
||||
<if test="themeofweek != null and themeofweek != ''">themeofweek = #{themeofweek},</if>
|
||||
<if test="jxmbSh != null and jxmbSh != ''">jxmb_sh = #{jxmbSh},</if>
|
||||
<if test="jxmbYy != null and jxmbYy != ''">jxmb_yy = #{jxmbYy},</if>
|
||||
<if test="jxmbJk != null and jxmbJk != ''">jxmb_jk = #{jxmbJk},</if>
|
||||
<if test="jxmbKx != null and jxmbKx != ''">jxmb_kx = #{jxmbKx},</if>
|
||||
<if test="jxmbYs != null and jxmbYs != ''">jxmb_ys = #{jxmbYs},</if>
|
||||
<if test="createuserid != null ">createuserid = #{createuserid},</if>
|
||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||
<if test="status != null and status != ''">status = #{status},</if>
|
||||
<if test="shrid != null ">shrid = #{shrid},</if>
|
||||
<if test="shtime != null ">shtime = #{shtime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteByPlanweekById" parameterType="Long">
|
||||
delete from by_planweek where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByPlanweekByIds" parameterType="String">
|
||||
delete from by_planweek where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,90 @@
|
||||
<?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.ByPlanweekitemMapper">
|
||||
|
||||
<resultMap type="ByPlanweekitem" id="ByPlanweekitemResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="wid" column="wid"/>
|
||||
<result property="activitytype" column="activitytype"/>
|
||||
<result property="content" column="content"/>
|
||||
<result property="activitytime" column="activitytime"/>
|
||||
<result property="createuserid" column="createuserid"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateuserid" column="updateuserid"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectByPlanweekitemVo">
|
||||
select id, wid, activitytype, content, activitytime, createuserid, create_time, updateuserid, update_time from by_planweekitem
|
||||
</sql>
|
||||
|
||||
<select id="selectByPlanweekitemList" parameterType="ByPlanweekitem" resultMap="ByPlanweekitemResult">
|
||||
<include refid="selectByPlanweekitemVo"/>
|
||||
<where>
|
||||
<if test="wid != null ">and wid = #{wid}</if>
|
||||
<if test="activitytype != null and activitytype != ''">and activitytype = #{activitytype}</if>
|
||||
<if test="content != null and content != ''">and content = #{content}</if>
|
||||
<if test="activitytime != null ">and activitytime = #{activitytime}</if>
|
||||
<if test="createuserid != null ">and createuserid = #{createuserid}</if>
|
||||
<if test="updateuserid != null ">and updateuserid = #{updateuserid}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectByPlanweekitemById" parameterType="Long" resultMap="ByPlanweekitemResult">
|
||||
<include refid="selectByPlanweekitemVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertByPlanweekitem" parameterType="ByPlanweekitem" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into by_planweekitem
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="wid != null ">wid,</if>
|
||||
<if test="activitytype != null and activitytype != ''">activitytype,</if>
|
||||
<if test="content != null and content != ''">content,</if>
|
||||
<if test="activitytime != null ">activitytime,</if>
|
||||
<if test="createuserid != null ">createuserid,</if>
|
||||
<if test="createTime != null ">create_time,</if>
|
||||
<if test="updateuserid != null ">updateuserid,</if>
|
||||
<if test="updateTime != null ">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="wid != null ">#{wid},</if>
|
||||
<if test="activitytype != null and activitytype != ''">#{activitytype},</if>
|
||||
<if test="content != null and content != ''">#{content},</if>
|
||||
<if test="activitytime != null ">#{activitytime},</if>
|
||||
<if test="createuserid != null ">#{createuserid},</if>
|
||||
<if test="createTime != null ">#{createTime},</if>
|
||||
<if test="updateuserid != null ">#{updateuserid},</if>
|
||||
<if test="updateTime != null ">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateByPlanweekitem" parameterType="ByPlanweekitem">
|
||||
update by_planweekitem
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="wid != null ">wid = #{wid},</if>
|
||||
<if test="activitytype != null and activitytype != ''">activitytype = #{activitytype},</if>
|
||||
<if test="content != null and content != ''">content = #{content},</if>
|
||||
<if test="activitytime != null ">activitytime = #{activitytime},</if>
|
||||
<if test="createuserid != null ">createuserid = #{createuserid},</if>
|
||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||
<if test="updateuserid != null ">updateuserid = #{updateuserid},</if>
|
||||
<if test="updateTime != null ">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteByPlanweekitemById" parameterType="Long">
|
||||
delete from by_planweekitem where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByPlanweekitemByIds" parameterType="String">
|
||||
delete from by_planweekitem where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
Reference in New Issue
Block a user