From 357c498b017a1b91ec26f5c299f992ea90a273be Mon Sep 17 00:00:00 2001 From: paidaxing444 <12qwaszx> Date: Mon, 24 Aug 2020 14:46:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=A8=E8=AE=A1=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/api/benyi/planweek.js | 53 ++ ruoyi-ui/src/api/benyi/planweekitem.js | 53 ++ ruoyi-ui/src/views/benyi/planweek/index.vue | 521 ++++++++++++++++++ .../controller/ByPlanweekController.java | 97 ++++ .../controller/ByPlanweekitemController.java | 97 ++++ .../project/benyi/domain/ByPlanweek.java | 268 +++++++++ .../project/benyi/domain/ByPlanweekitem.java | 132 +++++ .../benyi/mapper/ByPlanweekMapper.java | 61 ++ .../benyi/mapper/ByPlanweekitemMapper.java | 61 ++ .../benyi/service/IByPlanweekService.java | 61 ++ .../benyi/service/IByPlanweekitemService.java | 61 ++ .../service/impl/ByPlanweekServiceImpl.java | 89 +++ .../impl/ByPlanweekitemServiceImpl.java | 90 +++ .../mybatis/benyi/ByPlanweekMapper.xml | 131 +++++ .../mybatis/benyi/ByPlanweekitemMapper.xml | 90 +++ 15 files changed, 1865 insertions(+) create mode 100644 ruoyi-ui/src/api/benyi/planweek.js create mode 100644 ruoyi-ui/src/api/benyi/planweekitem.js create mode 100644 ruoyi-ui/src/views/benyi/planweek/index.vue create mode 100644 ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByPlanweekController.java create mode 100644 ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByPlanweekitemController.java create mode 100644 ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByPlanweek.java create mode 100644 ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByPlanweekitem.java create mode 100644 ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByPlanweekMapper.java create mode 100644 ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByPlanweekitemMapper.java create mode 100644 ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByPlanweekService.java create mode 100644 ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByPlanweekitemService.java create mode 100644 ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByPlanweekServiceImpl.java create mode 100644 ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByPlanweekitemServiceImpl.java create mode 100644 ruoyi/src/main/resources/mybatis/benyi/ByPlanweekMapper.xml create mode 100644 ruoyi/src/main/resources/mybatis/benyi/ByPlanweekitemMapper.xml diff --git a/ruoyi-ui/src/api/benyi/planweek.js b/ruoyi-ui/src/api/benyi/planweek.js new file mode 100644 index 000000000..cbf6d2d02 --- /dev/null +++ b/ruoyi-ui/src/api/benyi/planweek.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询周计划(家长和教育部门)列表 +export function listPlanweek(query) { + return request({ + url: '/benyi/planweek/list', + method: 'get', + params: query + }) +} + +// 查询周计划(家长和教育部门)详细 +export function getPlanweek(id) { + return request({ + url: '/benyi/planweek/' + id, + method: 'get' + }) +} + +// 新增周计划(家长和教育部门) +export function addPlanweek(data) { + return request({ + url: '/benyi/planweek', + method: 'post', + data: data + }) +} + +// 修改周计划(家长和教育部门) +export function updatePlanweek(data) { + return request({ + url: '/benyi/planweek', + method: 'put', + data: data + }) +} + +// 删除周计划(家长和教育部门) +export function delPlanweek(id) { + return request({ + url: '/benyi/planweek/' + id, + method: 'delete' + }) +} + +// 导出周计划(家长和教育部门) +export function exportPlanweek(query) { + return request({ + url: '/benyi/planweek/export', + method: 'get', + params: query + }) +} diff --git a/ruoyi-ui/src/api/benyi/planweekitem.js b/ruoyi-ui/src/api/benyi/planweekitem.js new file mode 100644 index 000000000..b11269121 --- /dev/null +++ b/ruoyi-ui/src/api/benyi/planweekitem.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询周计划(家长和教育部门细化)列表 +export function listPlanweekitem(query) { + return request({ + url: '/benyi/planweekitem/list', + method: 'get', + params: query + }) +} + +// 查询周计划(家长和教育部门细化)详细 +export function getPlanweekitem(id) { + return request({ + url: '/benyi/planweekitem/' + id, + method: 'get' + }) +} + +// 新增周计划(家长和教育部门细化) +export function addPlanweekitem(data) { + return request({ + url: '/benyi/planweekitem', + method: 'post', + data: data + }) +} + +// 修改周计划(家长和教育部门细化) +export function updatePlanweekitem(data) { + return request({ + url: '/benyi/planweekitem', + method: 'put', + data: data + }) +} + +// 删除周计划(家长和教育部门细化) +export function delPlanweekitem(id) { + return request({ + url: '/benyi/planweekitem/' + id, + method: 'delete' + }) +} + +// 导出周计划(家长和教育部门细化) +export function exportPlanweekitem(query) { + return request({ + url: '/benyi/planweekitem/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/ruoyi-ui/src/views/benyi/planweek/index.vue b/ruoyi-ui/src/views/benyi/planweek/index.vue new file mode 100644 index 000000000..89241a865 --- /dev/null +++ b/ruoyi-ui/src/views/benyi/planweek/index.vue @@ -0,0 +1,521 @@ + + + \ No newline at end of file diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByPlanweekController.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByPlanweekController.java new file mode 100644 index 000000000..3eeed9290 --- /dev/null +++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByPlanweekController.java @@ -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 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 list = byPlanweekService.selectByPlanweekList(byPlanweek); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByPlanweekitemController.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByPlanweekitemController.java new file mode 100644 index 000000000..86d96426d --- /dev/null +++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByPlanweekitemController.java @@ -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 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 list = byPlanweekitemService.selectByPlanweekitemList(byPlanweekitem); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByPlanweek.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByPlanweek.java new file mode 100644 index 000000000..d78630159 --- /dev/null +++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByPlanweek.java @@ -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(); + } +} diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByPlanweekitem.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByPlanweekitem.java new file mode 100644 index 000000000..d0142046a --- /dev/null +++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByPlanweekitem.java @@ -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(); + } +} diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByPlanweekMapper.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByPlanweekMapper.java new file mode 100644 index 000000000..e34bd03ea --- /dev/null +++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByPlanweekMapper.java @@ -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 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); +} diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByPlanweekitemMapper.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByPlanweekitemMapper.java new file mode 100644 index 000000000..d44749d4b --- /dev/null +++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByPlanweekitemMapper.java @@ -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 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); +} diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByPlanweekService.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByPlanweekService.java new file mode 100644 index 000000000..90a4de4f5 --- /dev/null +++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByPlanweekService.java @@ -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 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); +} diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByPlanweekitemService.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByPlanweekitemService.java new file mode 100644 index 000000000..fe0725b1f --- /dev/null +++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByPlanweekitemService.java @@ -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 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); +} diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByPlanweekServiceImpl.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByPlanweekServiceImpl.java new file mode 100644 index 000000000..632e5c7d5 --- /dev/null +++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByPlanweekServiceImpl.java @@ -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 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); + } +} diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByPlanweekitemServiceImpl.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByPlanweekitemServiceImpl.java new file mode 100644 index 000000000..76872ca49 --- /dev/null +++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByPlanweekitemServiceImpl.java @@ -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 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); + } +} diff --git a/ruoyi/src/main/resources/mybatis/benyi/ByPlanweekMapper.xml b/ruoyi/src/main/resources/mybatis/benyi/ByPlanweekMapper.xml new file mode 100644 index 000000000..8614f8b34 --- /dev/null +++ b/ruoyi/src/main/resources/mybatis/benyi/ByPlanweekMapper.xml @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + + + + + insert into by_planweek + + schoolid, + classid, + name, + starttime, + endtime, + themeofweek, + jxmb_sh, + jxmb_yy, + jxmb_jk, + jxmb_kx, + jxmb_ys, + createuserid, + create_time, + status, + shrid, + shtime, + + + #{schoolid}, + #{classid}, + #{name}, + #{starttime}, + #{endtime}, + #{themeofweek}, + #{jxmbSh}, + #{jxmbYy}, + #{jxmbJk}, + #{jxmbKx}, + #{jxmbYs}, + #{createuserid}, + #{createTime}, + #{status}, + #{shrid}, + #{shtime}, + + + + + update by_planweek + + schoolid = #{schoolid}, + classid = #{classid}, + name = #{name}, + starttime = #{starttime}, + endtime = #{endtime}, + themeofweek = #{themeofweek}, + jxmb_sh = #{jxmbSh}, + jxmb_yy = #{jxmbYy}, + jxmb_jk = #{jxmbJk}, + jxmb_kx = #{jxmbKx}, + jxmb_ys = #{jxmbYs}, + createuserid = #{createuserid}, + create_time = #{createTime}, + status = #{status}, + shrid = #{shrid}, + shtime = #{shtime}, + + where id = #{id} + + + + delete from by_planweek where id = #{id} + + + + delete from by_planweek where id in + + #{id} + + + + \ No newline at end of file diff --git a/ruoyi/src/main/resources/mybatis/benyi/ByPlanweekitemMapper.xml b/ruoyi/src/main/resources/mybatis/benyi/ByPlanweekitemMapper.xml new file mode 100644 index 000000000..09afcee10 --- /dev/null +++ b/ruoyi/src/main/resources/mybatis/benyi/ByPlanweekitemMapper.xml @@ -0,0 +1,90 @@ + + + + + + + + + + + + + + + + + + select id, wid, activitytype, content, activitytime, createuserid, create_time, updateuserid, update_time from by_planweekitem + + + + + + + + insert into by_planweekitem + + wid, + activitytype, + content, + activitytime, + createuserid, + create_time, + updateuserid, + update_time, + + + #{wid}, + #{activitytype}, + #{content}, + #{activitytime}, + #{createuserid}, + #{createTime}, + #{updateuserid}, + #{updateTime}, + + + + + update by_planweekitem + + wid = #{wid}, + activitytype = #{activitytype}, + content = #{content}, + activitytime = #{activitytime}, + createuserid = #{createuserid}, + create_time = #{createTime}, + updateuserid = #{updateuserid}, + update_time = #{updateTime}, + + where id = #{id} + + + + delete from by_planweekitem where id = #{id} + + + + delete from by_planweekitem where id in + + #{id} + + + + \ No newline at end of file