主题整合学期计划
This commit is contained in:
		| @@ -0,0 +1,103 @@ | ||||
| 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.ByThemeTermplan; | ||||
| import com.ruoyi.project.benyi.service.IByThemeTermplanService; | ||||
| 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/themetermplan") | ||||
| public class ByThemeTermplanController extends BaseController | ||||
| { | ||||
|     @Autowired | ||||
|     private IByThemeTermplanService byThemeTermplanService; | ||||
|  | ||||
| /** | ||||
|  * 查询主题整合学期计划列表 | ||||
|  */ | ||||
| @PreAuthorize("@ss.hasPermi('benyi:themetermplan:list')") | ||||
| @GetMapping("/list") | ||||
|         public TableDataInfo list(ByThemeTermplan byThemeTermplan) | ||||
|     { | ||||
|         startPage(); | ||||
|         List<ByThemeTermplan> list = byThemeTermplanService.selectByThemeTermplanList(byThemeTermplan); | ||||
|         return getDataTable(list); | ||||
|     } | ||||
|      | ||||
|     /** | ||||
|      * 导出主题整合学期计划列表 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('benyi:themetermplan:export')") | ||||
|     @Log(title = "主题整合学期计划", businessType = BusinessType.EXPORT) | ||||
|     @GetMapping("/export") | ||||
|     public AjaxResult export(ByThemeTermplan byThemeTermplan) | ||||
|     { | ||||
|         List<ByThemeTermplan> list = byThemeTermplanService.selectByThemeTermplanList(byThemeTermplan); | ||||
|         ExcelUtil<ByThemeTermplan> util = new ExcelUtil<ByThemeTermplan>(ByThemeTermplan.class); | ||||
|         return util.exportExcel(list, "themetermplan"); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 获取主题整合学期计划详细信息 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('benyi:themetermplan:query')") | ||||
|     @GetMapping(value = "/{id}") | ||||
|     public AjaxResult getInfo(@PathVariable("id") Long id) | ||||
|     { | ||||
|         return AjaxResult.success(byThemeTermplanService.selectByThemeTermplanById(id)); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 新增主题整合学期计划 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('benyi:themetermplan:add')") | ||||
|     @Log(title = "主题整合学期计划", businessType = BusinessType.INSERT) | ||||
|     @PostMapping | ||||
|     public AjaxResult add(@RequestBody ByThemeTermplan byThemeTermplan) | ||||
|     { | ||||
|         return toAjax(byThemeTermplanService.insertByThemeTermplan(byThemeTermplan)); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 修改主题整合学期计划 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('benyi:themetermplan:edit')") | ||||
|     @Log(title = "主题整合学期计划", businessType = BusinessType.UPDATE) | ||||
|     @PutMapping | ||||
|     public AjaxResult edit(@RequestBody ByThemeTermplan byThemeTermplan) | ||||
|     { | ||||
|         return toAjax(byThemeTermplanService.updateByThemeTermplan(byThemeTermplan)); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 删除主题整合学期计划 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('benyi:themetermplan:remove')") | ||||
|     @Log(title = "主题整合学期计划", businessType = BusinessType.DELETE) | ||||
|     @DeleteMapping("/{ids}") | ||||
|     public AjaxResult remove(@PathVariable Long[] ids) | ||||
|     { | ||||
|         return toAjax(byThemeTermplanService.deleteByThemeTermplanByIds(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.ByThemeTermplanitem; | ||||
| import com.ruoyi.project.benyi.service.IByThemeTermplanitemService; | ||||
| 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/termplanitem") | ||||
| public class ByThemeTermplanitemController extends BaseController { | ||||
|     @Autowired | ||||
|     private IByThemeTermplanitemService byThemeTermplanitemService; | ||||
|  | ||||
|     /** | ||||
|      * 查询主题整合学期计划明细列表 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('benyi:themetermplan:list')") | ||||
|     @GetMapping("/list") | ||||
|     public TableDataInfo list(ByThemeTermplanitem byThemeTermplanitem) { | ||||
|         startPage(); | ||||
|         List<ByThemeTermplanitem> list = byThemeTermplanitemService.selectByThemeTermplanitemList(byThemeTermplanitem); | ||||
|         return getDataTable(list); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 导出主题整合学期计划明细列表 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('benyi:themetermplan:export')") | ||||
|     @Log(title = "主题整合学期计划明细", businessType = BusinessType.EXPORT) | ||||
|     @GetMapping("/export") | ||||
|     public AjaxResult export(ByThemeTermplanitem byThemeTermplanitem) { | ||||
|         List<ByThemeTermplanitem> list = byThemeTermplanitemService.selectByThemeTermplanitemList(byThemeTermplanitem); | ||||
|         ExcelUtil<ByThemeTermplanitem> util = new ExcelUtil<ByThemeTermplanitem>(ByThemeTermplanitem.class); | ||||
|         return util.exportExcel(list, "termplanitem"); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 获取主题整合学期计划明细详细信息 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('benyi:themetermplan:query')") | ||||
|     @GetMapping(value = "/{id}") | ||||
|     public AjaxResult getInfo(@PathVariable("id") Long id) { | ||||
|         return AjaxResult.success(byThemeTermplanitemService.selectByThemeTermplanitemById(id)); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 新增主题整合学期计划明细 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('benyi:themetermplan:add')") | ||||
|     @Log(title = "主题整合学期计划明细", businessType = BusinessType.INSERT) | ||||
|     @PostMapping | ||||
|     public AjaxResult add(@RequestBody ByThemeTermplanitem byThemeTermplanitem) { | ||||
|         return toAjax(byThemeTermplanitemService.insertByThemeTermplanitem(byThemeTermplanitem)); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 修改主题整合学期计划明细 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('benyi:themetermplan:edit')") | ||||
|     @Log(title = "主题整合学期计划明细", businessType = BusinessType.UPDATE) | ||||
|     @PutMapping | ||||
|     public AjaxResult edit(@RequestBody ByThemeTermplanitem byThemeTermplanitem) { | ||||
|         return toAjax(byThemeTermplanitemService.updateByThemeTermplanitem(byThemeTermplanitem)); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 删除主题整合学期计划明细 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('benyi:themetermplan:remove')") | ||||
|     @Log(title = "主题整合学期计划明细", businessType = BusinessType.DELETE) | ||||
|     @DeleteMapping("/{ids}") | ||||
|     public AjaxResult remove(@PathVariable Long[] ids) { | ||||
|         return toAjax(byThemeTermplanitemService.deleteByThemeTermplanitemByIds(ids)); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,194 @@ | ||||
| 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_theme_termplan | ||||
|  * | ||||
|  * @author tsbz | ||||
|  * @date 2020-08-24 | ||||
|  */ | ||||
| public class ByThemeTermplan extends BaseEntity { | ||||
|     private static final long serialVersionUID = 1L; | ||||
|  | ||||
|     /** | ||||
|      * 编号 | ||||
|      */ | ||||
|     private String 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 startmonth; | ||||
|  | ||||
|     /** | ||||
|      * 结束月份 | ||||
|      */ | ||||
|     @JsonFormat(pattern = "yyyy-MM-dd") | ||||
|     @Excel(name = "结束月份", width = 30, dateFormat = "yyyy-MM-dd") | ||||
|     private Date endmonth; | ||||
|  | ||||
|     /** | ||||
|      * 学年学期 | ||||
|      */ | ||||
|     @Excel(name = "学年学期") | ||||
|     private String xnxq; | ||||
|  | ||||
|     /** | ||||
|      * 创建人 | ||||
|      */ | ||||
|     @Excel(name = "创建人") | ||||
|     private Long createuserid; | ||||
|  | ||||
|     /** | ||||
|      * 状态 | ||||
|      */ | ||||
|     @Excel(name = "状态") | ||||
|     private String status; | ||||
|  | ||||
|     /** | ||||
|      * 审批人 | ||||
|      */ | ||||
|     @Excel(name = "审批人") | ||||
|     private Long spr; | ||||
|  | ||||
|     /** | ||||
|      * 审批时间 | ||||
|      */ | ||||
|     @JsonFormat(pattern = "yyyy-MM-dd") | ||||
|     @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd") | ||||
|     private Date sptime; | ||||
|  | ||||
|     public void setId(String id) { | ||||
|         this.id = id; | ||||
|     } | ||||
|  | ||||
|     public String 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 setStartmonth(Date startmonth) { | ||||
|         this.startmonth = startmonth; | ||||
|     } | ||||
|  | ||||
|     public Date getStartmonth() { | ||||
|         return startmonth; | ||||
|     } | ||||
|  | ||||
|     public void setEndmonth(Date endmonth) { | ||||
|         this.endmonth = endmonth; | ||||
|     } | ||||
|  | ||||
|     public Date getEndmonth() { | ||||
|         return endmonth; | ||||
|     } | ||||
|  | ||||
|     public void setXnxq(String xnxq) { | ||||
|         this.xnxq = xnxq; | ||||
|     } | ||||
|  | ||||
|     public String getXnxq() { | ||||
|         return xnxq; | ||||
|     } | ||||
|  | ||||
|     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 setSpr(Long spr) { | ||||
|         this.spr = spr; | ||||
|     } | ||||
|  | ||||
|     public Long getSpr() { | ||||
|         return spr; | ||||
|     } | ||||
|  | ||||
|     public void setSptime(Date sptime) { | ||||
|         this.sptime = sptime; | ||||
|     } | ||||
|  | ||||
|     public Date getSptime() { | ||||
|         return sptime; | ||||
|     } | ||||
|  | ||||
|     @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("startmonth", getStartmonth()) | ||||
|                 .append("endmonth", getEndmonth()) | ||||
|                 .append("xnxq", getXnxq()) | ||||
|                 .append("remark", getRemark()) | ||||
|                 .append("createuserid", getCreateuserid()) | ||||
|                 .append("createTime", getCreateTime()) | ||||
|                 .append("status", getStatus()) | ||||
|                 .append("spr", getSpr()) | ||||
|                 .append("sptime", getSptime()) | ||||
|                 .toString(); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,117 @@ | ||||
| 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_theme_termplanitem | ||||
|  * | ||||
|  * @author tsbz | ||||
|  * @date 2020-08-24 | ||||
|  */ | ||||
| public class ByThemeTermplanitem extends BaseEntity { | ||||
|     private static final long serialVersionUID = 1L; | ||||
|  | ||||
|     /** | ||||
|      * 编号 | ||||
|      */ | ||||
|     private Long id; | ||||
|  | ||||
|     /** | ||||
|      * 所属计划 | ||||
|      */ | ||||
|     @Excel(name = "所属计划") | ||||
|     private String tpid; | ||||
|  | ||||
|     /** | ||||
|      * 主题内容 | ||||
|      */ | ||||
|     @Excel(name = "主题内容") | ||||
|     private String themeconent; | ||||
|  | ||||
|     /** | ||||
|      * 创建人 | ||||
|      */ | ||||
|     @Excel(name = "创建人") | ||||
|     private Long createuserid; | ||||
|  | ||||
|     /** | ||||
|      * $column.columnComment | ||||
|      */ | ||||
|     @JsonFormat(pattern = "yyyy-MM-dd") | ||||
|     @Excel(name = "创建人", width = 30, dateFormat = "yyyy-MM-dd") | ||||
|     private Date 创建时间; | ||||
|  | ||||
|     /** | ||||
|      * 修改人 | ||||
|      */ | ||||
|     @Excel(name = "修改人") | ||||
|     private Long updateuserid; | ||||
|  | ||||
|     public void setId(Long id) { | ||||
|         this.id = id; | ||||
|     } | ||||
|  | ||||
|     public Long getId() { | ||||
|         return id; | ||||
|     } | ||||
|  | ||||
|     public void setTpid(String tpid) { | ||||
|         this.tpid = tpid; | ||||
|     } | ||||
|  | ||||
|     public String getTpid() { | ||||
|         return tpid; | ||||
|     } | ||||
|  | ||||
|     public void setThemeconent(String themeconent) { | ||||
|         this.themeconent = themeconent; | ||||
|     } | ||||
|  | ||||
|     public String getThemeconent() { | ||||
|         return themeconent; | ||||
|     } | ||||
|  | ||||
|     public void setCreateuserid(Long createuserid) { | ||||
|         this.createuserid = createuserid; | ||||
|     } | ||||
|  | ||||
|     public Long getCreateuserid() { | ||||
|         return createuserid; | ||||
|     } | ||||
|  | ||||
|     public void set创建时间(Date 创建时间) { | ||||
|         this.创建时间 = 创建时间; | ||||
|     } | ||||
|  | ||||
|     public Date get创建时间() { | ||||
|         return 创建时间; | ||||
|     } | ||||
|  | ||||
|     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("tpid", getTpid()) | ||||
|                 .append("themeconent", getThemeconent()) | ||||
|                 .append("remark", getRemark()) | ||||
|                 .append("createuserid", getCreateuserid()) | ||||
|                 .append("创建时间", get创建时间()) | ||||
|                 .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.ByThemeTermplan; | ||||
|  | ||||
| /** | ||||
|  * 主题整合学期计划Mapper接口 | ||||
|  * | ||||
|  * @author tsbz | ||||
|  * @date 2020-08-24 | ||||
|  */ | ||||
| public interface ByThemeTermplanMapper { | ||||
|     /** | ||||
|      * 查询主题整合学期计划 | ||||
|      * | ||||
|      * @param id 主题整合学期计划ID | ||||
|      * @return 主题整合学期计划 | ||||
|      */ | ||||
|     public ByThemeTermplan selectByThemeTermplanById(Long id); | ||||
|  | ||||
|     /** | ||||
|      * 查询主题整合学期计划列表 | ||||
|      * | ||||
|      * @param byThemeTermplan 主题整合学期计划 | ||||
|      * @return 主题整合学期计划集合 | ||||
|      */ | ||||
|     public List<ByThemeTermplan> selectByThemeTermplanList(ByThemeTermplan byThemeTermplan); | ||||
|  | ||||
|     /** | ||||
|      * 新增主题整合学期计划 | ||||
|      * | ||||
|      * @param byThemeTermplan 主题整合学期计划 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int insertByThemeTermplan(ByThemeTermplan byThemeTermplan); | ||||
|  | ||||
|     /** | ||||
|      * 修改主题整合学期计划 | ||||
|      * | ||||
|      * @param byThemeTermplan 主题整合学期计划 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int updateByThemeTermplan(ByThemeTermplan byThemeTermplan); | ||||
|  | ||||
|     /** | ||||
|      * 删除主题整合学期计划 | ||||
|      * | ||||
|      * @param id 主题整合学期计划ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteByThemeTermplanById(Long id); | ||||
|  | ||||
|     /** | ||||
|      * 批量删除主题整合学期计划 | ||||
|      * | ||||
|      * @param ids 需要删除的数据ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteByThemeTermplanByIds(Long[] ids); | ||||
| } | ||||
| @@ -0,0 +1,61 @@ | ||||
| package com.ruoyi.project.benyi.mapper; | ||||
|  | ||||
| import java.util.List; | ||||
|  | ||||
| import com.ruoyi.project.benyi.domain.ByThemeTermplanitem; | ||||
|  | ||||
| /** | ||||
|  * 主题整合学期计划明细Mapper接口 | ||||
|  * | ||||
|  * @author tsbz | ||||
|  * @date 2020-08-24 | ||||
|  */ | ||||
| public interface ByThemeTermplanitemMapper { | ||||
|     /** | ||||
|      * 查询主题整合学期计划明细 | ||||
|      * | ||||
|      * @param id 主题整合学期计划明细ID | ||||
|      * @return 主题整合学期计划明细 | ||||
|      */ | ||||
|     public ByThemeTermplanitem selectByThemeTermplanitemById(Long id); | ||||
|  | ||||
|     /** | ||||
|      * 查询主题整合学期计划明细列表 | ||||
|      * | ||||
|      * @param byThemeTermplanitem 主题整合学期计划明细 | ||||
|      * @return 主题整合学期计划明细集合 | ||||
|      */ | ||||
|     public List<ByThemeTermplanitem> selectByThemeTermplanitemList(ByThemeTermplanitem byThemeTermplanitem); | ||||
|  | ||||
|     /** | ||||
|      * 新增主题整合学期计划明细 | ||||
|      * | ||||
|      * @param byThemeTermplanitem 主题整合学期计划明细 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int insertByThemeTermplanitem(ByThemeTermplanitem byThemeTermplanitem); | ||||
|  | ||||
|     /** | ||||
|      * 修改主题整合学期计划明细 | ||||
|      * | ||||
|      * @param byThemeTermplanitem 主题整合学期计划明细 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int updateByThemeTermplanitem(ByThemeTermplanitem byThemeTermplanitem); | ||||
|  | ||||
|     /** | ||||
|      * 删除主题整合学期计划明细 | ||||
|      * | ||||
|      * @param id 主题整合学期计划明细ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteByThemeTermplanitemById(Long id); | ||||
|  | ||||
|     /** | ||||
|      * 批量删除主题整合学期计划明细 | ||||
|      * | ||||
|      * @param ids 需要删除的数据ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteByThemeTermplanitemByIds(Long[] ids); | ||||
| } | ||||
| @@ -0,0 +1,61 @@ | ||||
| package com.ruoyi.project.benyi.service; | ||||
|  | ||||
| import java.util.List; | ||||
|  | ||||
| import com.ruoyi.project.benyi.domain.ByThemeTermplan; | ||||
|  | ||||
| /** | ||||
|  * 主题整合学期计划Service接口 | ||||
|  * | ||||
|  * @author tsbz | ||||
|  * @date 2020-08-24 | ||||
|  */ | ||||
| public interface IByThemeTermplanService { | ||||
|     /** | ||||
|      * 查询主题整合学期计划 | ||||
|      * | ||||
|      * @param id 主题整合学期计划ID | ||||
|      * @return 主题整合学期计划 | ||||
|      */ | ||||
|     public ByThemeTermplan selectByThemeTermplanById(Long id); | ||||
|  | ||||
|     /** | ||||
|      * 查询主题整合学期计划列表 | ||||
|      * | ||||
|      * @param byThemeTermplan 主题整合学期计划 | ||||
|      * @return 主题整合学期计划集合 | ||||
|      */ | ||||
|     public List<ByThemeTermplan> selectByThemeTermplanList(ByThemeTermplan byThemeTermplan); | ||||
|  | ||||
|     /** | ||||
|      * 新增主题整合学期计划 | ||||
|      * | ||||
|      * @param byThemeTermplan 主题整合学期计划 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int insertByThemeTermplan(ByThemeTermplan byThemeTermplan); | ||||
|  | ||||
|     /** | ||||
|      * 修改主题整合学期计划 | ||||
|      * | ||||
|      * @param byThemeTermplan 主题整合学期计划 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int updateByThemeTermplan(ByThemeTermplan byThemeTermplan); | ||||
|  | ||||
|     /** | ||||
|      * 批量删除主题整合学期计划 | ||||
|      * | ||||
|      * @param ids 需要删除的主题整合学期计划ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteByThemeTermplanByIds(Long[] ids); | ||||
|  | ||||
|     /** | ||||
|      * 删除主题整合学期计划信息 | ||||
|      * | ||||
|      * @param id 主题整合学期计划ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteByThemeTermplanById(Long id); | ||||
| } | ||||
| @@ -0,0 +1,61 @@ | ||||
| package com.ruoyi.project.benyi.service; | ||||
|  | ||||
| import java.util.List; | ||||
|  | ||||
| import com.ruoyi.project.benyi.domain.ByThemeTermplanitem; | ||||
|  | ||||
| /** | ||||
|  * 主题整合学期计划明细Service接口 | ||||
|  * | ||||
|  * @author tsbz | ||||
|  * @date 2020-08-24 | ||||
|  */ | ||||
| public interface IByThemeTermplanitemService { | ||||
|     /** | ||||
|      * 查询主题整合学期计划明细 | ||||
|      * | ||||
|      * @param id 主题整合学期计划明细ID | ||||
|      * @return 主题整合学期计划明细 | ||||
|      */ | ||||
|     public ByThemeTermplanitem selectByThemeTermplanitemById(Long id); | ||||
|  | ||||
|     /** | ||||
|      * 查询主题整合学期计划明细列表 | ||||
|      * | ||||
|      * @param byThemeTermplanitem 主题整合学期计划明细 | ||||
|      * @return 主题整合学期计划明细集合 | ||||
|      */ | ||||
|     public List<ByThemeTermplanitem> selectByThemeTermplanitemList(ByThemeTermplanitem byThemeTermplanitem); | ||||
|  | ||||
|     /** | ||||
|      * 新增主题整合学期计划明细 | ||||
|      * | ||||
|      * @param byThemeTermplanitem 主题整合学期计划明细 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int insertByThemeTermplanitem(ByThemeTermplanitem byThemeTermplanitem); | ||||
|  | ||||
|     /** | ||||
|      * 修改主题整合学期计划明细 | ||||
|      * | ||||
|      * @param byThemeTermplanitem 主题整合学期计划明细 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int updateByThemeTermplanitem(ByThemeTermplanitem byThemeTermplanitem); | ||||
|  | ||||
|     /** | ||||
|      * 批量删除主题整合学期计划明细 | ||||
|      * | ||||
|      * @param ids 需要删除的主题整合学期计划明细ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteByThemeTermplanitemByIds(Long[] ids); | ||||
|  | ||||
|     /** | ||||
|      * 删除主题整合学期计划明细信息 | ||||
|      * | ||||
|      * @param id 主题整合学期计划明细ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteByThemeTermplanitemById(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.ByThemeTermplanMapper; | ||||
| import com.ruoyi.project.benyi.domain.ByThemeTermplan; | ||||
| import com.ruoyi.project.benyi.service.IByThemeTermplanService; | ||||
|  | ||||
| /** | ||||
|  * 主题整合学期计划Service业务层处理 | ||||
|  * | ||||
|  * @author tsbz | ||||
|  * @date 2020-08-24 | ||||
|  */ | ||||
| @Service | ||||
| public class ByThemeTermplanServiceImpl implements IByThemeTermplanService { | ||||
|     @Autowired | ||||
|     private ByThemeTermplanMapper byThemeTermplanMapper; | ||||
|  | ||||
|     /** | ||||
|      * 查询主题整合学期计划 | ||||
|      * | ||||
|      * @param id 主题整合学期计划ID | ||||
|      * @return 主题整合学期计划 | ||||
|      */ | ||||
|     @Override | ||||
|     public ByThemeTermplan selectByThemeTermplanById(Long id) { | ||||
|         return byThemeTermplanMapper.selectByThemeTermplanById(id); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 查询主题整合学期计划列表 | ||||
|      * | ||||
|      * @param byThemeTermplan 主题整合学期计划 | ||||
|      * @return 主题整合学期计划 | ||||
|      */ | ||||
|     @Override | ||||
|     public List<ByThemeTermplan> selectByThemeTermplanList(ByThemeTermplan byThemeTermplan) { | ||||
|         return byThemeTermplanMapper.selectByThemeTermplanList(byThemeTermplan); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 新增主题整合学期计划 | ||||
|      * | ||||
|      * @param byThemeTermplan 主题整合学期计划 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int insertByThemeTermplan(ByThemeTermplan byThemeTermplan) { | ||||
|         byThemeTermplan.setCreateTime(DateUtils.getNowDate()); | ||||
|         return byThemeTermplanMapper.insertByThemeTermplan(byThemeTermplan); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 修改主题整合学期计划 | ||||
|      * | ||||
|      * @param byThemeTermplan 主题整合学期计划 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int updateByThemeTermplan(ByThemeTermplan byThemeTermplan) { | ||||
|         return byThemeTermplanMapper.updateByThemeTermplan(byThemeTermplan); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 批量删除主题整合学期计划 | ||||
|      * | ||||
|      * @param ids 需要删除的主题整合学期计划ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int deleteByThemeTermplanByIds(Long[] ids) { | ||||
|         return byThemeTermplanMapper.deleteByThemeTermplanByIds(ids); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 删除主题整合学期计划信息 | ||||
|      * | ||||
|      * @param id 主题整合学期计划ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int deleteByThemeTermplanById(Long id) { | ||||
|         return byThemeTermplanMapper.deleteByThemeTermplanById(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.ByThemeTermplanitemMapper; | ||||
| import com.ruoyi.project.benyi.domain.ByThemeTermplanitem; | ||||
| import com.ruoyi.project.benyi.service.IByThemeTermplanitemService; | ||||
|  | ||||
| /** | ||||
|  * 主题整合学期计划明细Service业务层处理 | ||||
|  * | ||||
|  * @author tsbz | ||||
|  * @date 2020-08-24 | ||||
|  */ | ||||
| @Service | ||||
| public class ByThemeTermplanitemServiceImpl implements IByThemeTermplanitemService { | ||||
|     @Autowired | ||||
|     private ByThemeTermplanitemMapper byThemeTermplanitemMapper; | ||||
|  | ||||
|     /** | ||||
|      * 查询主题整合学期计划明细 | ||||
|      * | ||||
|      * @param id 主题整合学期计划明细ID | ||||
|      * @return 主题整合学期计划明细 | ||||
|      */ | ||||
|     @Override | ||||
|     public ByThemeTermplanitem selectByThemeTermplanitemById(Long id) { | ||||
|         return byThemeTermplanitemMapper.selectByThemeTermplanitemById(id); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 查询主题整合学期计划明细列表 | ||||
|      * | ||||
|      * @param byThemeTermplanitem 主题整合学期计划明细 | ||||
|      * @return 主题整合学期计划明细 | ||||
|      */ | ||||
|     @Override | ||||
|     public List<ByThemeTermplanitem> selectByThemeTermplanitemList(ByThemeTermplanitem byThemeTermplanitem) { | ||||
|         return byThemeTermplanitemMapper.selectByThemeTermplanitemList(byThemeTermplanitem); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 新增主题整合学期计划明细 | ||||
|      * | ||||
|      * @param byThemeTermplanitem 主题整合学期计划明细 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int insertByThemeTermplanitem(ByThemeTermplanitem byThemeTermplanitem) { | ||||
|         return byThemeTermplanitemMapper.insertByThemeTermplanitem(byThemeTermplanitem); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 修改主题整合学期计划明细 | ||||
|      * | ||||
|      * @param byThemeTermplanitem 主题整合学期计划明细 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int updateByThemeTermplanitem(ByThemeTermplanitem byThemeTermplanitem) { | ||||
|         byThemeTermplanitem.setUpdateTime(DateUtils.getNowDate()); | ||||
|         return byThemeTermplanitemMapper.updateByThemeTermplanitem(byThemeTermplanitem); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 批量删除主题整合学期计划明细 | ||||
|      * | ||||
|      * @param ids 需要删除的主题整合学期计划明细ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int deleteByThemeTermplanitemByIds(Long[] ids) { | ||||
|         return byThemeTermplanitemMapper.deleteByThemeTermplanitemByIds(ids); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 删除主题整合学期计划明细信息 | ||||
|      * | ||||
|      * @param id 主题整合学期计划明细ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int deleteByThemeTermplanitemById(Long id) { | ||||
|         return byThemeTermplanitemMapper.deleteByThemeTermplanitemById(id); | ||||
|     } | ||||
| } | ||||
							
								
								
									
										112
									
								
								ruoyi/src/main/resources/mybatis/benyi/ByThemeTermplanMapper.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										112
									
								
								ruoyi/src/main/resources/mybatis/benyi/ByThemeTermplanMapper.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,112 @@ | ||||
| <?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.ByThemeTermplanMapper"> | ||||
|  | ||||
|     <resultMap type="ByThemeTermplan" id="ByThemeTermplanResult"> | ||||
|         <result property="id" column="id"/> | ||||
|         <result property="schoolid" column="schoolid"/> | ||||
|         <result property="classid" column="classid"/> | ||||
|         <result property="name" column="name"/> | ||||
|         <result property="startmonth" column="startmonth"/> | ||||
|         <result property="endmonth" column="endmonth"/> | ||||
|         <result property="xnxq" column="xnxq"/> | ||||
|         <result property="remark" column="remark"/> | ||||
|         <result property="createuserid" column="createuserid"/> | ||||
|         <result property="createTime" column="create_time"/> | ||||
|         <result property="status" column="status"/> | ||||
|         <result property="spr" column="spr"/> | ||||
|         <result property="sptime" column="sptime"/> | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="selectByThemeTermplanVo"> | ||||
|         select id, schoolid, classid, name, startmonth, endmonth, xnxq, remark, createuserid, create_time, status, spr, sptime from by_theme_termplan | ||||
|     </sql> | ||||
|  | ||||
|     <select id="selectByThemeTermplanList" parameterType="ByThemeTermplan" resultMap="ByThemeTermplanResult"> | ||||
|         <include refid="selectByThemeTermplanVo"/> | ||||
|         <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="startmonth != null ">and startmonth = #{startmonth}</if> | ||||
|             <if test="endmonth != null ">and endmonth = #{endmonth}</if> | ||||
|             <if test="xnxq != null  and xnxq != ''">and xnxq = #{xnxq}</if> | ||||
|             <if test="createuserid != null ">and createuserid = #{createuserid}</if> | ||||
|             <if test="status != null  and status != ''">and status = #{status}</if> | ||||
|             <if test="spr != null ">and spr = #{spr}</if> | ||||
|             <if test="sptime != null ">and sptime = #{sptime}</if> | ||||
|         </where> | ||||
|     </select> | ||||
|  | ||||
|     <select id="selectByThemeTermplanById" parameterType="String" resultMap="ByThemeTermplanResult"> | ||||
|         <include refid="selectByThemeTermplanVo"/> | ||||
|         where id = #{id} | ||||
|     </select> | ||||
|  | ||||
|     <insert id="insertByThemeTermplan" parameterType="ByThemeTermplan"> | ||||
|         insert into by_theme_termplan | ||||
|         <trim prefix="(" suffix=")" suffixOverrides=","> | ||||
|             <if test="id != null  and id != ''">id,</if> | ||||
|             <if test="schoolid != null ">schoolid,</if> | ||||
|             <if test="classid != null  and classid != ''">classid,</if> | ||||
|             <if test="name != null  and name != ''">name,</if> | ||||
|             <if test="startmonth != null ">startmonth,</if> | ||||
|             <if test="endmonth != null ">endmonth,</if> | ||||
|             <if test="xnxq != null  and xnxq != ''">xnxq,</if> | ||||
|             <if test="remark != null  and remark != ''">remark,</if> | ||||
|             <if test="createuserid != null ">createuserid,</if> | ||||
|             <if test="createTime != null ">create_time,</if> | ||||
|             <if test="status != null  and status != ''">status,</if> | ||||
|             <if test="spr != null ">spr,</if> | ||||
|             <if test="sptime != null ">sptime,</if> | ||||
|         </trim> | ||||
|         <trim prefix="values (" suffix=")" suffixOverrides=","> | ||||
|             <if test="id != null  and id != ''">#{id},</if> | ||||
|             <if test="schoolid != null ">#{schoolid},</if> | ||||
|             <if test="classid != null  and classid != ''">#{classid},</if> | ||||
|             <if test="name != null  and name != ''">#{name},</if> | ||||
|             <if test="startmonth != null ">#{startmonth},</if> | ||||
|             <if test="endmonth != null ">#{endmonth},</if> | ||||
|             <if test="xnxq != null  and xnxq != ''">#{xnxq},</if> | ||||
|             <if test="remark != null  and remark != ''">#{remark},</if> | ||||
|             <if test="createuserid != null ">#{createuserid},</if> | ||||
|             <if test="createTime != null ">#{createTime},</if> | ||||
|             <if test="status != null  and status != ''">#{status},</if> | ||||
|             <if test="spr != null ">#{spr},</if> | ||||
|             <if test="sptime != null ">#{sptime},</if> | ||||
|         </trim> | ||||
|     </insert> | ||||
|  | ||||
|     <update id="updateByThemeTermplan" parameterType="ByThemeTermplan"> | ||||
|         update by_theme_termplan | ||||
|         <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="startmonth != null ">startmonth = #{startmonth},</if> | ||||
|             <if test="endmonth != null ">endmonth = #{endmonth},</if> | ||||
|             <if test="xnxq != null  and xnxq != ''">xnxq = #{xnxq},</if> | ||||
|             <if test="remark != null  and remark != ''">remark = #{remark},</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="spr != null ">spr = #{spr},</if> | ||||
|             <if test="sptime != null ">sptime = #{sptime},</if> | ||||
|         </trim> | ||||
|         where id = #{id} | ||||
|     </update> | ||||
|  | ||||
|     <delete id="deleteByThemeTermplanById" parameterType="String"> | ||||
|         delete from by_theme_termplan where id = #{id} | ||||
|     </delete> | ||||
|  | ||||
|     <delete id="deleteByThemeTermplanByIds" parameterType="String"> | ||||
|         delete from by_theme_termplan where id in | ||||
|         <foreach item="id" collection="array" open="(" separator="," close=")"> | ||||
|             #{id} | ||||
|         </foreach> | ||||
|     </delete> | ||||
|  | ||||
| </mapper> | ||||
| @@ -0,0 +1,86 @@ | ||||
| <?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.ByThemeTermplanitemMapper"> | ||||
|  | ||||
|     <resultMap type="ByThemeTermplanitem" id="ByThemeTermplanitemResult"> | ||||
|         <result property="id" column="id"/> | ||||
|         <result property="tpid" column="tpid"/> | ||||
|         <result property="themeconent" column="themeconent"/> | ||||
|         <result property="remark" column="remark"/> | ||||
|         <result property="createuserid" column="createuserid"/> | ||||
|         <result property="创建时间" column="创建时间"/> | ||||
|         <result property="updateuserid" column="updateuserid"/> | ||||
|         <result property="updateTime" column="update_time"/> | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="selectByThemeTermplanitemVo"> | ||||
|         select id, tpid, themeconent, remark, createuserid, 创建时间, updateuserid, update_time from by_theme_termplanitem | ||||
|     </sql> | ||||
|  | ||||
|     <select id="selectByThemeTermplanitemList" parameterType="ByThemeTermplanitem" | ||||
|             resultMap="ByThemeTermplanitemResult"> | ||||
|         <include refid="selectByThemeTermplanitemVo"/> | ||||
|         <where> | ||||
|             <if test="tpid != null  and tpid != ''">and tpid = #{tpid}</if> | ||||
|             <if test="themeconent != null  and themeconent != ''">and themeconent = #{themeconent}</if> | ||||
|             <if test="createuserid != null ">and createuserid = #{createuserid}</if> | ||||
|             <if test="创建时间 != null ">and 创建时间 = #{创建时间}</if> | ||||
|             <if test="updateuserid != null ">and updateuserid = #{updateuserid}</if> | ||||
|         </where> | ||||
|     </select> | ||||
|  | ||||
|     <select id="selectByThemeTermplanitemById" parameterType="Long" resultMap="ByThemeTermplanitemResult"> | ||||
|         <include refid="selectByThemeTermplanitemVo"/> | ||||
|         where id = #{id} | ||||
|     </select> | ||||
|  | ||||
|     <insert id="insertByThemeTermplanitem" parameterType="ByThemeTermplanitem" useGeneratedKeys="true" keyProperty="id"> | ||||
|         insert into by_theme_termplanitem | ||||
|         <trim prefix="(" suffix=")" suffixOverrides=","> | ||||
|             <if test="tpid != null  and tpid != ''">tpid,</if> | ||||
|             <if test="themeconent != null  and themeconent != ''">themeconent,</if> | ||||
|             <if test="remark != null  and remark != ''">remark,</if> | ||||
|             <if test="createuserid != null ">createuserid,</if> | ||||
|             <if test="创建时间 != null ">创建时间,</if> | ||||
|             <if test="updateuserid != null ">updateuserid,</if> | ||||
|             <if test="updateTime != null ">update_time,</if> | ||||
|         </trim> | ||||
|         <trim prefix="values (" suffix=")" suffixOverrides=","> | ||||
|             <if test="tpid != null  and tpid != ''">#{tpid},</if> | ||||
|             <if test="themeconent != null  and themeconent != ''">#{themeconent},</if> | ||||
|             <if test="remark != null  and remark != ''">#{remark},</if> | ||||
|             <if test="createuserid != null ">#{createuserid},</if> | ||||
|             <if test="创建时间 != null ">#{创建时间},</if> | ||||
|             <if test="updateuserid != null ">#{updateuserid},</if> | ||||
|             <if test="updateTime != null ">#{updateTime},</if> | ||||
|         </trim> | ||||
|     </insert> | ||||
|  | ||||
|     <update id="updateByThemeTermplanitem" parameterType="ByThemeTermplanitem"> | ||||
|         update by_theme_termplanitem | ||||
|         <trim prefix="SET" suffixOverrides=","> | ||||
|             <if test="tpid != null  and tpid != ''">tpid = #{tpid},</if> | ||||
|             <if test="themeconent != null  and themeconent != ''">themeconent = #{themeconent},</if> | ||||
|             <if test="remark != null  and remark != ''">remark = #{remark},</if> | ||||
|             <if test="createuserid != null ">createuserid = #{createuserid},</if> | ||||
|             <if test="创建时间 != null ">创建时间 = #{创建时间},</if> | ||||
|             <if test="updateuserid != null ">updateuserid = #{updateuserid},</if> | ||||
|             <if test="updateTime != null ">update_time = #{updateTime},</if> | ||||
|         </trim> | ||||
|         where id = #{id} | ||||
|     </update> | ||||
|  | ||||
|     <delete id="deleteByThemeTermplanitemById" parameterType="Long"> | ||||
|         delete from by_theme_termplanitem where id = #{id} | ||||
|     </delete> | ||||
|  | ||||
|     <delete id="deleteByThemeTermplanitemByIds" parameterType="String"> | ||||
|         delete from by_theme_termplanitem where id in | ||||
|         <foreach item="id" collection="array" open="(" separator="," close=")"> | ||||
|             #{id} | ||||
|         </foreach> | ||||
|     </delete> | ||||
|  | ||||
| </mapper> | ||||
		Reference in New Issue
	
	Block a user