diff --git a/ruoyi-ui/src/api/benyi/activity.js b/ruoyi-ui/src/api/benyi/activity.js
index d5b6ecea8..470aefebc 100644
--- a/ruoyi-ui/src/api/benyi/activity.js
+++ b/ruoyi-ui/src/api/benyi/activity.js
@@ -50,4 +50,12 @@ export function exportActivity(query) {
method: 'get',
params: query
})
+}
+
+// 删除主题整合活动
+export function listActivityByThemeId(id) {
+ return request({
+ url: '/benyi/activity/listbythemeid/' + id,
+ method: 'post'
+ })
}
\ No newline at end of file
diff --git a/ruoyi-ui/src/api/benyi/themeweekplan.js b/ruoyi-ui/src/api/benyi/themeweekplan.js
new file mode 100644
index 000000000..3838723a4
--- /dev/null
+++ b/ruoyi-ui/src/api/benyi/themeweekplan.js
@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询主题整合周计划列表
+export function listWeekplan(query) {
+ return request({
+ url: '/benyi/themeweekplan/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询主题整合周计划详细
+export function getWeekplan(id) {
+ return request({
+ url: '/benyi/themeweekplan/' + id,
+ method: 'get'
+ })
+}
+
+// 新增主题整合周计划
+export function addWeekplan(data) {
+ return request({
+ url: '/benyi/themeweekplan',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改主题整合周计划
+export function updateWeekplan(data) {
+ return request({
+ url: '/benyi/themeweekplan',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除主题整合周计划
+export function delWeekplan(id) {
+ return request({
+ url: '/benyi/themeweekplan/' + id,
+ method: 'delete'
+ })
+}
+
+// 导出主题整合周计划
+export function exportWeekplan(query) {
+ return request({
+ url: '/benyi/themeweekplan/export',
+ method: 'get',
+ params: query
+ })
+}
\ No newline at end of file
diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js
index 421e93ae1..e3b6a72a5 100644
--- a/ruoyi-ui/src/router/index.js
+++ b/ruoyi-ui/src/router/index.js
@@ -227,7 +227,22 @@ export const constantRoutes = [{
import('@/views/benyi/themetermplan/data'),
name: 'Themetermplan1',
meta: {
- title: '主题整合学期计划',
+ title: '主题整合学期计划(明细)',
+ icon: ''
+ }
+ }]
+ },
+ {
+ path: '/benyi_course/thememonthplan',
+ component: Layout,
+ hidden: true,
+ children: [{
+ path: 'data/:id',
+ component: () =>
+ import('@/views/benyi/thememonthplan/data'),
+ name: 'Thememonthplan1',
+ meta: {
+ title: '主题整合月计划(明细)',
icon: ''
}
}]
diff --git a/ruoyi-ui/src/views/benyi/thememonthplan/data.vue b/ruoyi-ui/src/views/benyi/thememonthplan/data.vue
new file mode 100644
index 000000000..e56c78f32
--- /dev/null
+++ b/ruoyi-ui/src/views/benyi/thememonthplan/data.vue
@@ -0,0 +1,424 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.starttime, '{y}-{m}-{d}') }}
+
+
+
+
+ {{ parseTime(scope.row.endtime, '{y}-{m}-{d}') }}
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ruoyi-ui/src/views/benyi/thememonthplan/index.vue b/ruoyi-ui/src/views/benyi/thememonthplan/index.vue
index e0dfad752..df76de8af 100644
--- a/ruoyi-ui/src/views/benyi/thememonthplan/index.vue
+++ b/ruoyi-ui/src/views/benyi/thememonthplan/index.vue
@@ -91,7 +91,13 @@
-
+
+
+
+ {{ scope.row.name }}
+
+
+
@@ -105,8 +111,8 @@
-
-
+
diff --git a/ruoyi-ui/src/views/benyi/themeweekplan/index.vue b/ruoyi-ui/src/views/benyi/themeweekplan/index.vue
new file mode 100644
index 000000000..e69de29bb
diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByThemeActivityController.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByThemeActivityController.java
index 381580e5a..db6fb0fc3 100644
--- a/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByThemeActivityController.java
+++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByThemeActivityController.java
@@ -113,4 +113,14 @@ public class ByThemeActivityController extends BaseController {
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(byThemeActivityService.deleteByThemeActivityByIds(ids));
}
+
+ /**
+ * 查询主题整合活动列表
+ */
+ @PreAuthorize("@ss.hasPermi('benyi:theme:list')"+ "||@ss.hasPermi('benyi:thememonthplan:list')")
+ @PostMapping("/listbythemeid/{ids}")
+ public TableDataInfo listbythemeid(@PathVariable Long[] ids) {
+ List list = byThemeActivityService.selectByThemeActivityByThemeIds(ids);
+ return getDataTable(list);
+ }
}
diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByThemeMonthplanController.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByThemeMonthplanController.java
index 76b724bc9..0e9ea069f 100644
--- a/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByThemeMonthplanController.java
+++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByThemeMonthplanController.java
@@ -132,7 +132,8 @@ public class ByThemeMonthplanController extends BaseController {
byThemeMonthplan.setClassid(classId);
byThemeMonthplan.setThemes(strThemeIds);//主题id
byThemeMonthplan.setCreateuserid(SecurityUtils.getLoginUser().getUser().getUserId());
- byThemeMonthplan.setName(byClassService.selectByClassById(classId).getBjmc() + "-主题整合月计划");
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM");
+ byThemeMonthplan.setName(byClassService.selectByClassById(classId).getBjmc() + "-主题整合月计划" + "(" + sdf.format(byThemeMonthplan.getMonth()) + ")");
return toAjax(byThemeMonthplanService.insertByThemeMonthplan(byThemeMonthplan));
} else {
return AjaxResult.error("当前用户非幼儿园,无法创建月计划");
diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByThemeTermplanitemController.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByThemeTermplanitemController.java
index c121410cb..fd6490383 100644
--- a/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByThemeTermplanitemController.java
+++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByThemeTermplanitemController.java
@@ -2,6 +2,7 @@ package com.ruoyi.project.benyi.controller;
import java.util.List;
+import com.ruoyi.common.utils.SecurityUtils;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@@ -72,6 +73,7 @@ public class ByThemeTermplanitemController extends BaseController {
@Log(title = "主题整合学期计划明细", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody ByThemeTermplanitem byThemeTermplanitem) {
+ byThemeTermplanitem.setCreateuserid(SecurityUtils.getLoginUser().getUser().getUserId());
return toAjax(byThemeTermplanitemService.insertByThemeTermplanitem(byThemeTermplanitem));
}
diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByThemeWeekplanController.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByThemeWeekplanController.java
new file mode 100644
index 000000000..06c24e342
--- /dev/null
+++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByThemeWeekplanController.java
@@ -0,0 +1,111 @@
+package com.ruoyi.project.benyi.controller;
+
+import java.util.List;
+
+import com.ruoyi.common.utils.SecurityUtils;
+import com.ruoyi.project.common.SchoolCommon;
+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.ByThemeWeekplan;
+import com.ruoyi.project.benyi.service.IByThemeWeekplanService;
+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-25
+ */
+@RestController
+@RequestMapping("/benyi/themeweekplan")
+public class ByThemeWeekplanController extends BaseController
+{
+ @Autowired
+ private IByThemeWeekplanService byThemeWeekplanService;
+ @Autowired
+ private SchoolCommon schoolCommon;
+
+/**
+ * 查询主题整合周计划列表
+ */
+@PreAuthorize("@ss.hasPermi('benyi:thememonthplan:list')")
+@GetMapping("/list")
+ public TableDataInfo list(ByThemeWeekplan byThemeWeekplan)
+ {
+ startPage();
+ List list = byThemeWeekplanService.selectByThemeWeekplanList(byThemeWeekplan);
+ return getDataTable(list);
+ }
+
+ /**
+ * 导出主题整合周计划列表
+ */
+ @PreAuthorize("@ss.hasPermi('benyi:thememonthplan:export')")
+ @Log(title = "主题整合周计划", businessType = BusinessType.EXPORT)
+ @GetMapping("/export")
+ public AjaxResult export(ByThemeWeekplan byThemeWeekplan)
+ {
+ List list = byThemeWeekplanService.selectByThemeWeekplanList(byThemeWeekplan);
+ ExcelUtil util = new ExcelUtil(ByThemeWeekplan.class);
+ return util.exportExcel(list, "weekplan");
+ }
+
+ /**
+ * 获取主题整合周计划详细信息
+ */
+ @PreAuthorize("@ss.hasPermi('benyi:thememonthplan:query')")
+ @GetMapping(value = "/{id}")
+ public AjaxResult getInfo(@PathVariable("id") String id)
+ {
+ return AjaxResult.success(byThemeWeekplanService.selectByThemeWeekplanById(id));
+ }
+
+ /**
+ * 新增主题整合周计划
+ */
+ @PreAuthorize("@ss.hasPermi('benyi:thememonthplan:add')")
+ @Log(title = "主题整合周计划", businessType = BusinessType.INSERT)
+ @PostMapping
+ public AjaxResult add(@RequestBody ByThemeWeekplan byThemeWeekplan)
+ {
+ String uuid=schoolCommon.getUuid();
+ byThemeWeekplan.setId(uuid);
+ byThemeWeekplan.setCreateuserid(SecurityUtils.getLoginUser().getUser().getUserId());
+ return toAjax(byThemeWeekplanService.insertByThemeWeekplan(byThemeWeekplan));
+ }
+
+ /**
+ * 修改主题整合周计划
+ */
+ @PreAuthorize("@ss.hasPermi('benyi:thememonthplan:edit')")
+ @Log(title = "主题整合周计划", businessType = BusinessType.UPDATE)
+ @PutMapping
+ public AjaxResult edit(@RequestBody ByThemeWeekplan byThemeWeekplan)
+ {
+ return toAjax(byThemeWeekplanService.updateByThemeWeekplan(byThemeWeekplan));
+ }
+
+ /**
+ * 删除主题整合周计划
+ */
+ @PreAuthorize("@ss.hasPermi('benyi:thememonthplan:remove')")
+ @Log(title = "主题整合周计划", businessType = BusinessType.DELETE)
+ @DeleteMapping("/{ids}")
+ public AjaxResult remove(@PathVariable String[] ids)
+ {
+ return toAjax(byThemeWeekplanService.deleteByThemeWeekplanByIds(ids));
+ }
+}
diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByThemeWeekplan.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByThemeWeekplan.java
new file mode 100644
index 000000000..8b42decd8
--- /dev/null
+++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByThemeWeekplan.java
@@ -0,0 +1,147 @@
+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_weekplan
+ *
+ * @author tsbz
+ * @date 2020-08-25
+ */
+public class ByThemeWeekplan extends BaseEntity {
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * 编号
+ */
+ private String id;
+
+ /**
+ * 所属月计划
+ */
+ @Excel(name = "所属月计划")
+ private String mpid;
+
+ /**
+ * 周次
+ */
+ @Excel(name = "周次")
+ private Long zc;
+
+ /**
+ * 开始时间
+ */
+ @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;
+
+ /**
+ * 活动id
+ */
+ @Excel(name = "活动id")
+ private String activityid;
+
+ /**
+ * 家长支持
+ */
+ @Excel(name = "家长支持")
+ private String jzzc;
+
+ /**
+ * 创建人
+ */
+ @Excel(name = "创建人")
+ private Long createuserid;
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ public void setMpid(String mpid) {
+ this.mpid = mpid;
+ }
+
+ public String getMpid() {
+ return mpid;
+ }
+
+ public void setZc(Long zc) {
+ this.zc = zc;
+ }
+
+ public Long getZc() {
+ return zc;
+ }
+
+ 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 setActivityid(String activityid) {
+ this.activityid = activityid;
+ }
+
+ public String getActivityid() {
+ return activityid;
+ }
+
+ public void setJzzc(String jzzc) {
+ this.jzzc = jzzc;
+ }
+
+ public String getJzzc() {
+ return jzzc;
+ }
+
+ public void setCreateuserid(Long createuserid) {
+ this.createuserid = createuserid;
+ }
+
+ public Long getCreateuserid() {
+ return createuserid;
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
+ .append("id", getId())
+ .append("mpid", getMpid())
+ .append("zc", getZc())
+ .append("starttime", getStarttime())
+ .append("endtime", getEndtime())
+ .append("activityid", getActivityid())
+ .append("jzzc", getJzzc())
+ .append("createuserid", getCreateuserid())
+ .append("createTime", getCreateTime())
+ .toString();
+ }
+}
diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByThemeActivityMapper.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByThemeActivityMapper.java
index 8e3d50f3a..8408bb604 100644
--- a/ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByThemeActivityMapper.java
+++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByThemeActivityMapper.java
@@ -58,4 +58,12 @@ public interface ByThemeActivityMapper {
* @return 结果
*/
public int deleteByThemeActivityByIds(Long[] ids);
+
+ /**
+ * 查询主题整合活动列表
+ *
+ * @param ids 主题整合活动
+ * @return 主题整合活动集合
+ */
+ public List selectByThemeActivityByThemeIds(Long[] ids);
}
diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByThemeWeekplanMapper.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByThemeWeekplanMapper.java
new file mode 100644
index 000000000..9a8b2944d
--- /dev/null
+++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByThemeWeekplanMapper.java
@@ -0,0 +1,61 @@
+package com.ruoyi.project.benyi.mapper;
+
+import java.util.List;
+
+import com.ruoyi.project.benyi.domain.ByThemeWeekplan;
+
+/**
+ * 主题整合周计划Mapper接口
+ *
+ * @author tsbz
+ * @date 2020-08-25
+ */
+public interface ByThemeWeekplanMapper {
+ /**
+ * 查询主题整合周计划
+ *
+ * @param id 主题整合周计划ID
+ * @return 主题整合周计划
+ */
+ public ByThemeWeekplan selectByThemeWeekplanById(String id);
+
+ /**
+ * 查询主题整合周计划列表
+ *
+ * @param byThemeWeekplan 主题整合周计划
+ * @return 主题整合周计划集合
+ */
+ public List selectByThemeWeekplanList(ByThemeWeekplan byThemeWeekplan);
+
+ /**
+ * 新增主题整合周计划
+ *
+ * @param byThemeWeekplan 主题整合周计划
+ * @return 结果
+ */
+ public int insertByThemeWeekplan(ByThemeWeekplan byThemeWeekplan);
+
+ /**
+ * 修改主题整合周计划
+ *
+ * @param byThemeWeekplan 主题整合周计划
+ * @return 结果
+ */
+ public int updateByThemeWeekplan(ByThemeWeekplan byThemeWeekplan);
+
+ /**
+ * 删除主题整合周计划
+ *
+ * @param id 主题整合周计划ID
+ * @return 结果
+ */
+ public int deleteByThemeWeekplanById(String id);
+
+ /**
+ * 批量删除主题整合周计划
+ *
+ * @param ids 需要删除的数据ID
+ * @return 结果
+ */
+ public int deleteByThemeWeekplanByIds(String[] ids);
+}
diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByThemeActivityService.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByThemeActivityService.java
index 422c1a76e..4a4cfcf4f 100644
--- a/ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByThemeActivityService.java
+++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByThemeActivityService.java
@@ -58,4 +58,12 @@ public interface IByThemeActivityService {
* @return 结果
*/
public int deleteByThemeActivityById(Long id);
+
+ /**
+ * 查询主题整合活动列表
+ *
+ * @param ids 主题整合活动
+ * @return 主题整合活动集合
+ */
+ public List selectByThemeActivityByThemeIds(Long[] ids);
}
diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByThemeWeekplanService.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByThemeWeekplanService.java
new file mode 100644
index 000000000..32bc5128f
--- /dev/null
+++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByThemeWeekplanService.java
@@ -0,0 +1,61 @@
+package com.ruoyi.project.benyi.service;
+
+import java.util.List;
+
+import com.ruoyi.project.benyi.domain.ByThemeWeekplan;
+
+/**
+ * 主题整合周计划Service接口
+ *
+ * @author tsbz
+ * @date 2020-08-25
+ */
+public interface IByThemeWeekplanService {
+ /**
+ * 查询主题整合周计划
+ *
+ * @param id 主题整合周计划ID
+ * @return 主题整合周计划
+ */
+ public ByThemeWeekplan selectByThemeWeekplanById(String id);
+
+ /**
+ * 查询主题整合周计划列表
+ *
+ * @param byThemeWeekplan 主题整合周计划
+ * @return 主题整合周计划集合
+ */
+ public List selectByThemeWeekplanList(ByThemeWeekplan byThemeWeekplan);
+
+ /**
+ * 新增主题整合周计划
+ *
+ * @param byThemeWeekplan 主题整合周计划
+ * @return 结果
+ */
+ public int insertByThemeWeekplan(ByThemeWeekplan byThemeWeekplan);
+
+ /**
+ * 修改主题整合周计划
+ *
+ * @param byThemeWeekplan 主题整合周计划
+ * @return 结果
+ */
+ public int updateByThemeWeekplan(ByThemeWeekplan byThemeWeekplan);
+
+ /**
+ * 批量删除主题整合周计划
+ *
+ * @param ids 需要删除的主题整合周计划ID
+ * @return 结果
+ */
+ public int deleteByThemeWeekplanByIds(String[] ids);
+
+ /**
+ * 删除主题整合周计划信息
+ *
+ * @param id 主题整合周计划ID
+ * @return 结果
+ */
+ public int deleteByThemeWeekplanById(String id);
+}
diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByThemeActivityServiceImpl.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByThemeActivityServiceImpl.java
index 5a4c82252..0491c01c4 100644
--- a/ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByThemeActivityServiceImpl.java
+++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByThemeActivityServiceImpl.java
@@ -86,4 +86,15 @@ public class ByThemeActivityServiceImpl implements IByThemeActivityService {
public int deleteByThemeActivityById(Long id) {
return byThemeActivityMapper.deleteByThemeActivityById(id);
}
+
+ /**
+ * 查询主题整合活动列表
+ *
+ * @param ids 主题整合活动
+ * @return 主题整合活动集合
+ */
+ @Override
+ public List selectByThemeActivityByThemeIds(Long[] ids){
+ return byThemeActivityMapper.selectByThemeActivityByThemeIds(ids);
+ }
}
diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByThemeWeekplanServiceImpl.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByThemeWeekplanServiceImpl.java
new file mode 100644
index 000000000..f41816150
--- /dev/null
+++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByThemeWeekplanServiceImpl.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.ByThemeWeekplanMapper;
+import com.ruoyi.project.benyi.domain.ByThemeWeekplan;
+import com.ruoyi.project.benyi.service.IByThemeWeekplanService;
+
+/**
+ * 主题整合周计划Service业务层处理
+ *
+ * @author tsbz
+ * @date 2020-08-25
+ */
+@Service
+public class ByThemeWeekplanServiceImpl implements IByThemeWeekplanService {
+ @Autowired
+ private ByThemeWeekplanMapper byThemeWeekplanMapper;
+
+ /**
+ * 查询主题整合周计划
+ *
+ * @param id 主题整合周计划ID
+ * @return 主题整合周计划
+ */
+ @Override
+ public ByThemeWeekplan selectByThemeWeekplanById(String id) {
+ return byThemeWeekplanMapper.selectByThemeWeekplanById(id);
+ }
+
+ /**
+ * 查询主题整合周计划列表
+ *
+ * @param byThemeWeekplan 主题整合周计划
+ * @return 主题整合周计划
+ */
+ @Override
+ public List selectByThemeWeekplanList(ByThemeWeekplan byThemeWeekplan) {
+ return byThemeWeekplanMapper.selectByThemeWeekplanList(byThemeWeekplan);
+ }
+
+ /**
+ * 新增主题整合周计划
+ *
+ * @param byThemeWeekplan 主题整合周计划
+ * @return 结果
+ */
+ @Override
+ public int insertByThemeWeekplan(ByThemeWeekplan byThemeWeekplan) {
+ byThemeWeekplan.setCreateTime(DateUtils.getNowDate());
+ return byThemeWeekplanMapper.insertByThemeWeekplan(byThemeWeekplan);
+ }
+
+ /**
+ * 修改主题整合周计划
+ *
+ * @param byThemeWeekplan 主题整合周计划
+ * @return 结果
+ */
+ @Override
+ public int updateByThemeWeekplan(ByThemeWeekplan byThemeWeekplan) {
+ return byThemeWeekplanMapper.updateByThemeWeekplan(byThemeWeekplan);
+ }
+
+ /**
+ * 批量删除主题整合周计划
+ *
+ * @param ids 需要删除的主题整合周计划ID
+ * @return 结果
+ */
+ @Override
+ public int deleteByThemeWeekplanByIds(String[] ids) {
+ return byThemeWeekplanMapper.deleteByThemeWeekplanByIds(ids);
+ }
+
+ /**
+ * 删除主题整合周计划信息
+ *
+ * @param id 主题整合周计划ID
+ * @return 结果
+ */
+ @Override
+ public int deleteByThemeWeekplanById(String id) {
+ return byThemeWeekplanMapper.deleteByThemeWeekplanById(id);
+ }
+}
diff --git a/ruoyi/src/main/resources/mybatis/benyi/ByThemeActivityMapper.xml b/ruoyi/src/main/resources/mybatis/benyi/ByThemeActivityMapper.xml
index f49c8037f..f3d6fe817 100644
--- a/ruoyi/src/main/resources/mybatis/benyi/ByThemeActivityMapper.xml
+++ b/ruoyi/src/main/resources/mybatis/benyi/ByThemeActivityMapper.xml
@@ -108,4 +108,13 @@
+
+
\ No newline at end of file
diff --git a/ruoyi/src/main/resources/mybatis/benyi/ByThemeMonthplanMapper.xml b/ruoyi/src/main/resources/mybatis/benyi/ByThemeMonthplanMapper.xml
index 9624c3549..b7c7f7a82 100644
--- a/ruoyi/src/main/resources/mybatis/benyi/ByThemeMonthplanMapper.xml
+++ b/ruoyi/src/main/resources/mybatis/benyi/ByThemeMonthplanMapper.xml
@@ -47,6 +47,7 @@
and spyj = #{spyj}
and status = #{status}
+ order by month desc