From 09ca6827c4ec824231c521f501321bc621186f0e Mon Sep 17 00:00:00 2001 From: sk1551 <15175617877@163.com> Date: Thu, 29 Oct 2020 15:19:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=B8=E6=88=8F=E6=95=B0=E5=AD=A6=E5=AD=A6?= =?UTF-8?q?=E6=9C=9F=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/mathtermplan.js | 61 +++ .../src/views/benyi/child_preserve/index.vue | 42 +- .../src/views/benyi/mathtermplan/index.vue | 504 ++++++++++++++++++ .../main/java/com/ruoyi/RuoYiApplication.java | 26 +- .../controller/ByMathTermplanController.java | 134 +++++ .../project/benyi/domain/ByMathTermplan.java | 209 ++++++++ .../benyi/mapper/ByMathTermplanMapper.java | 61 +++ .../benyi/service/IByMathTermplanService.java | 61 +++ .../impl/ByMathTermplanServiceImpl.java | 95 ++++ .../mybatis/benyi/ByMathTermplanMapper.xml | 117 ++++ 10 files changed, 1256 insertions(+), 54 deletions(-) create mode 100644 ruoyi-ui/src/api/benyi/mathtermplan.js create mode 100644 ruoyi-ui/src/views/benyi/mathtermplan/index.vue create mode 100644 ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByMathTermplanController.java create mode 100644 ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByMathTermplan.java create mode 100644 ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByMathTermplanMapper.java create mode 100644 ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByMathTermplanService.java create mode 100644 ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByMathTermplanServiceImpl.java create mode 100644 ruoyi/src/main/resources/mybatis/benyi/ByMathTermplanMapper.xml diff --git a/ruoyi-ui/src/api/benyi/mathtermplan.js b/ruoyi-ui/src/api/benyi/mathtermplan.js new file mode 100644 index 000000000..6d18ac341 --- /dev/null +++ b/ruoyi-ui/src/api/benyi/mathtermplan.js @@ -0,0 +1,61 @@ +import request from '@/utils/request' + +// 查询游戏数学学期计划列表 +export function listMathtermplan(query) { + return request({ + url: '/benyi/mathtermplan/list', + method: 'get', + params: query + }) +} + +// 查询游戏数学学期计划详细 +export function getMathtermplan(id) { + return request({ + url: '/benyi/mathtermplan/' + id, + method: 'get' + }) +} + +// 新增游戏数学学期计划 +export function addMathtermplan(data) { + return request({ + url: '/benyi/mathtermplan', + method: 'post', + data: data + }) +} + +// 修改游戏数学学期计划 +export function updateMathtermplan(data) { + return request({ + url: '/benyi/mathtermplan', + method: 'put', + data: data + }) +} + +// 提交主题整合学期计划 +export function checkTermplan(id) { + return request({ + url: '/benyi/mathtermplan/check/' + id, + method: 'post' + }) +} + +// 删除游戏数学学期计划 +export function delMathtermplan(id) { + return request({ + url: '/benyi/mathtermplan/' + id, + method: 'delete' + }) +} + +// 导出游戏数学学期计划 +export function exportMathtermplan(query) { + return request({ + url: '/benyi/mathtermplan/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/ruoyi-ui/src/views/benyi/child_preserve/index.vue b/ruoyi-ui/src/views/benyi/child_preserve/index.vue index 47de43f53..1c7d209ec 100644 --- a/ruoyi-ui/src/views/benyi/child_preserve/index.vue +++ b/ruoyi-ui/src/views/benyi/child_preserve/index.vue @@ -387,26 +387,7 @@ export default { }; }, created() { - // const sid = this.$route.params && this.$route.params.id; - // this.queryParams.schoolid = sid; - // this.getDicts("sys_user_sex").then(response => { - // this.sexOptions = response.data; - // }); - // this.getDicts("sys_normal_disable").then(response => { - // this.statusOptions = response.data; - // }); - // this.getDicts("sys_dm_mz").then(response => { - // this.mzOptions = response.data; - // }); - // this.getDicts("sys_yes_no").then(response => { - // this.ynOptions = response.data; - // }); - // this.getDicts("sys_dm_ryqd").then(response => { - // this.sourceOptions = response.data; - // }); - // this.getDicts("sys_dm_jtgx").then((response) => { - // this.jtgxOptions = response.data; - // }); + }, components: { //省市区三级联动全局组件 @@ -417,26 +398,7 @@ export default { onInput() { this.$forceUpdate(); }, - // // 性别字典翻译 - // xbFormat(row, column) { - // return this.selectDictLabel(this.sexOptions, row.xb); - // }, - // // 字典翻译 - // mzFormat(row, column) { - // return this.selectDictLabel(this.mzOptions, row.mz); - // }, - // // 字典翻译 - // ynFormat(row, column) { - // return this.selectDictLabel(this.ynOptions, row.learnEnglish); - // }, - // // 字典翻译 - // sourceFormat(row, column) { - // return this.selectDictLabel(this.sourceOptions, row.source); - // }, - // // 字典翻译 - // statusFormat(row, column) { - // return this.selectDictLabel(this.statusOptions, row.status); - // }, + // 字典翻译 classFormat(row, column) { // return this.selectDictLabel(this.classOptions, row.classid); diff --git a/ruoyi-ui/src/views/benyi/mathtermplan/index.vue b/ruoyi-ui/src/views/benyi/mathtermplan/index.vue new file mode 100644 index 000000000..1a2198e56 --- /dev/null +++ b/ruoyi-ui/src/views/benyi/mathtermplan/index.vue @@ -0,0 +1,504 @@ + + + \ No newline at end of file diff --git a/ruoyi/src/main/java/com/ruoyi/RuoYiApplication.java b/ruoyi/src/main/java/com/ruoyi/RuoYiApplication.java index 3b48047ec..cbad7f1c2 100644 --- a/ruoyi/src/main/java/com/ruoyi/RuoYiApplication.java +++ b/ruoyi/src/main/java/com/ruoyi/RuoYiApplication.java @@ -6,26 +6,24 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; /** * 启动程序 - * + * * @author ruoyi */ -@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class }) -public class RuoYiApplication -{ - public static void main(String[] args) - { +@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}) +public class RuoYiApplication { + public static void main(String[] args) { System.setProperty("spring.devtools.restart.enabled", "false"); SpringApplication.run(RuoYiApplication.class, args); System.out.println( "-------^&^-------" + - "BenYi Startup success" + - "-------^&^-------\n" + - "-------^&^-------" + - "BenYi Startup success" + - "-------^&^-------\n" + - "-------^&^-------" + - "BenYi Startup success" + - "-------^&^-------\n" + "BenYi Startup success" + + "-------^&^-------\n" + + "-------^&^-------" + + "BenYi Startup success" + + "-------^&^-------\n" + + "-------^&^-------" + + "BenYi Startup success" + + "-------^&^-------\n" ); } } diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByMathTermplanController.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByMathTermplanController.java new file mode 100644 index 000000000..a44c7854d --- /dev/null +++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByMathTermplanController.java @@ -0,0 +1,134 @@ +package com.ruoyi.project.benyi.controller; + +import java.util.List; + +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.project.common.SchoolCommon; +import com.ruoyi.project.system.service.IByClassService; +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.ByMathTermplan; +import com.ruoyi.project.benyi.service.IByMathTermplanService; +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-10-29 + */ +@RestController +@RequestMapping("/benyi/mathtermplan") +public class ByMathTermplanController extends BaseController +{ + @Autowired + private IByMathTermplanService byMathTermplanService; + @Autowired + private SchoolCommon schoolCommon; + @Autowired + private IByClassService byClassService; + +/** + * 查询游戏数学学期计划列表 + */ +@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:list')") +@GetMapping("/list") + public TableDataInfo list(ByMathTermplan byMathTermplan) + { + startPage(); + List list = byMathTermplanService.selectByMathTermplanList(byMathTermplan); + return getDataTable(list); + } + + /** + * 导出游戏数学学期计划列表 + */ + @PreAuthorize("@ss.hasPermi('benyi:mathtermplan:export')") + @Log(title = "游戏数学学期计划", businessType = BusinessType.EXPORT) + @GetMapping("/export") + public AjaxResult export(ByMathTermplan byMathTermplan) + { + List list = byMathTermplanService.selectByMathTermplanList(byMathTermplan); + ExcelUtil util = new ExcelUtil(ByMathTermplan.class); + return util.exportExcel(list, "mathtermplan"); + } + + /** + * 获取游戏数学学期计划详细信息 + */ + @PreAuthorize("@ss.hasPermi('benyi:mathtermplan:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") String id) + { + return AjaxResult.success(byMathTermplanService.selectByMathTermplanById(id)); + } + + /** + * 新增游戏数学学期计划 + */ + @PreAuthorize("@ss.hasPermi('benyi:mathtermplan:add')") + @Log(title = "游戏数学学期计划", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody ByMathTermplan byMathTermplan) + { + String classId = schoolCommon.getClassId(); + + int iCount = schoolCommon.getDifMonth(byMathTermplan.getStartmonth(), byMathTermplan.getEndmonth()); + System.out.println("月份差=" + iCount); + String uuid = schoolCommon.getUuid(); + byMathTermplan.setId(uuid); + byMathTermplan.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId()); + byMathTermplan.setCreateuserid(SecurityUtils.getLoginUser().getUser().getUserId()); + byMathTermplan.setClassid(classId); + byMathTermplan.setName(byClassService.selectByClassById(classId).getBjmc() + "-主题整合学期计划"); + return toAjax(byMathTermplanService.insertByMathTermplan(byMathTermplan)); + } + + /** + * 修改游戏数学学期计划 + */ + @PreAuthorize("@ss.hasPermi('benyi:mathtermplan:edit')") + @Log(title = "游戏数学学期计划", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody ByMathTermplan byMathTermplan) + { + return toAjax(byMathTermplanService.updateByMathTermplan(byMathTermplan)); + } + + /** + * 删除游戏数学学期计划 + */ + @PreAuthorize("@ss.hasPermi('benyi:mathtermplan:remove')") + @Log(title = "游戏数学学期计划", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable String[] ids) + { + return toAjax(byMathTermplanService.deleteByMathTermplanByIds(ids)); + } + + /** + * 提交主题整合学期计划 + */ + @PreAuthorize("@ss.hasPermi('benyi:themetermplan:edit')") + @Log(title = "主题整合学期计划", businessType = BusinessType.UPDATE) + @PostMapping("/check/{id}") + public AjaxResult check(@PathVariable String id) { + ByMathTermplan byMathTermplan = new ByMathTermplan(); + byMathTermplan.setId(id); + byMathTermplan.setStatus("1"); + return toAjax(byMathTermplanService.updateByMathTermplan(byMathTermplan)); + } +} diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByMathTermplan.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByMathTermplan.java new file mode 100644 index 000000000..cbc208a69 --- /dev/null +++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByMathTermplan.java @@ -0,0 +1,209 @@ +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_math_termplan + * + * @author tsbz + * @date 2020-10-29 + */ +public class ByMathTermplan 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") + @Excel(name = "开始月份", width = 30, dateFormat = "yyyy-MM") + private Date startmonth; + + /** + * 结束月份 + */ + @JsonFormat(pattern = "yyyy-MM") + @Excel(name = "结束月份", width = 30, dateFormat = "yyyy-MM") + private Date endmonth; + + /** + * 学年学期 + */ + @Excel(name = "学年学期") + private String xnxq; + + /** + * 状态 + */ + @Excel(name = "状态") + private String status; + + /** + * 审批人 + */ + @Excel(name = "审批人") + private Integer spr; + + /** + * 审批时间 + */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date sptime; + + /** + * 审批意见 + */ + @Excel(name = "审批意见") + private String spyj; + + /** + * 创建人 + */ + @Excel(name = "创建人") + private Long createuserid; + + 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 setStatus(String status) { + this.status = status; + } + + public String getStatus() { + return status; + } + + public void setSpr(Integer spr) { + this.spr = spr; + } + + public Integer getSpr() { + return spr; + } + + public void setSptime(Date sptime) { + this.sptime = sptime; + } + + public Date getSptime() { + return sptime; + } + + public void setSpyj(String spyj) { + this.spyj = spyj; + } + + public String getSpyj() { + return spyj; + } + + 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("schoolid", getSchoolid()) + .append("classid", getClassid()) + .append("name", getName()) + .append("startmonth", getStartmonth()) + .append("endmonth", getEndmonth()) + .append("xnxq", getXnxq()) + .append("status", getStatus()) + .append("spr", getSpr()) + .append("sptime", getSptime()) + .append("spyj", getSpyj()) + .append("remark", getRemark()) + .append("createuserid", getCreateuserid()) + .append("createTime", getCreateTime()) + .toString(); + } +} diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByMathTermplanMapper.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByMathTermplanMapper.java new file mode 100644 index 000000000..133674b3c --- /dev/null +++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByMathTermplanMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.project.benyi.mapper; + +import java.util.List; +import com.ruoyi.project.benyi.domain.ByMathTermplan; + +/** + * 游戏数学学期计划Mapper接口 + * + * @author tsbz + * @date 2020-10-29 + */ +public interface ByMathTermplanMapper +{ + /** + * 查询游戏数学学期计划 + * + * @param id 游戏数学学期计划ID + * @return 游戏数学学期计划 + */ + public ByMathTermplan selectByMathTermplanById(String id); + + /** + * 查询游戏数学学期计划列表 + * + * @param byMathTermplan 游戏数学学期计划 + * @return 游戏数学学期计划集合 + */ + public List selectByMathTermplanList(ByMathTermplan byMathTermplan); + + /** + * 新增游戏数学学期计划 + * + * @param byMathTermplan 游戏数学学期计划 + * @return 结果 + */ + public int insertByMathTermplan(ByMathTermplan byMathTermplan); + + /** + * 修改游戏数学学期计划 + * + * @param byMathTermplan 游戏数学学期计划 + * @return 结果 + */ + public int updateByMathTermplan(ByMathTermplan byMathTermplan); + + /** + * 删除游戏数学学期计划 + * + * @param id 游戏数学学期计划ID + * @return 结果 + */ + public int deleteByMathTermplanById(String id); + + /** + * 批量删除游戏数学学期计划 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteByMathTermplanByIds(String[] ids); +} diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByMathTermplanService.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByMathTermplanService.java new file mode 100644 index 000000000..a2b2ddd56 --- /dev/null +++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByMathTermplanService.java @@ -0,0 +1,61 @@ +package com.ruoyi.project.benyi.service; + +import java.util.List; +import com.ruoyi.project.benyi.domain.ByMathTermplan; + +/** + * 游戏数学学期计划Service接口 + * + * @author tsbz + * @date 2020-10-29 + */ +public interface IByMathTermplanService +{ + /** + * 查询游戏数学学期计划 + * + * @param id 游戏数学学期计划ID + * @return 游戏数学学期计划 + */ + public ByMathTermplan selectByMathTermplanById(String id); + + /** + * 查询游戏数学学期计划列表 + * + * @param byMathTermplan 游戏数学学期计划 + * @return 游戏数学学期计划集合 + */ + public List selectByMathTermplanList(ByMathTermplan byMathTermplan); + + /** + * 新增游戏数学学期计划 + * + * @param byMathTermplan 游戏数学学期计划 + * @return 结果 + */ + public int insertByMathTermplan(ByMathTermplan byMathTermplan); + + /** + * 修改游戏数学学期计划 + * + * @param byMathTermplan 游戏数学学期计划 + * @return 结果 + */ + public int updateByMathTermplan(ByMathTermplan byMathTermplan); + + /** + * 批量删除游戏数学学期计划 + * + * @param ids 需要删除的游戏数学学期计划ID + * @return 结果 + */ + public int deleteByMathTermplanByIds(String[] ids); + + /** + * 删除游戏数学学期计划信息 + * + * @param id 游戏数学学期计划ID + * @return 结果 + */ + public int deleteByMathTermplanById(String id); +} diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByMathTermplanServiceImpl.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByMathTermplanServiceImpl.java new file mode 100644 index 000000000..fecc4d807 --- /dev/null +++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByMathTermplanServiceImpl.java @@ -0,0 +1,95 @@ +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.ByMathTermplanMapper; +import com.ruoyi.project.benyi.domain.ByMathTermplan; +import com.ruoyi.project.benyi.service.IByMathTermplanService; + +/** + * 游戏数学学期计划Service业务层处理 + * + * @author tsbz + * @date 2020-10-29 + */ +@Service +public class ByMathTermplanServiceImpl implements IByMathTermplanService +{ + @Autowired + private ByMathTermplanMapper byMathTermplanMapper; + + /** + * 查询游戏数学学期计划 + * + * @param id 游戏数学学期计划ID + * @return 游戏数学学期计划 + */ + @Override + public ByMathTermplan selectByMathTermplanById(String id) + { + return byMathTermplanMapper.selectByMathTermplanById(id); + } + + /** + * 查询游戏数学学期计划列表 + * + * @param byMathTermplan 游戏数学学期计划 + * @return 游戏数学学期计划 + */ + @Override + public List selectByMathTermplanList(ByMathTermplan byMathTermplan) + { + return byMathTermplanMapper.selectByMathTermplanList(byMathTermplan); + } + + /** + * 新增游戏数学学期计划 + * + * @param byMathTermplan 游戏数学学期计划 + * @return 结果 + */ + @Override + public int insertByMathTermplan(ByMathTermplan byMathTermplan) + { + byMathTermplan.setCreateTime(DateUtils.getNowDate()); + return byMathTermplanMapper.insertByMathTermplan(byMathTermplan); + } + + /** + * 修改游戏数学学期计划 + * + * @param byMathTermplan 游戏数学学期计划 + * @return 结果 + */ + @Override + public int updateByMathTermplan(ByMathTermplan byMathTermplan) + { + return byMathTermplanMapper.updateByMathTermplan(byMathTermplan); + } + + /** + * 批量删除游戏数学学期计划 + * + * @param ids 需要删除的游戏数学学期计划ID + * @return 结果 + */ + @Override + public int deleteByMathTermplanByIds(String[] ids) + { + return byMathTermplanMapper.deleteByMathTermplanByIds(ids); + } + + /** + * 删除游戏数学学期计划信息 + * + * @param id 游戏数学学期计划ID + * @return 结果 + */ + @Override + public int deleteByMathTermplanById(String id) + { + return byMathTermplanMapper.deleteByMathTermplanById(id); + } +} diff --git a/ruoyi/src/main/resources/mybatis/benyi/ByMathTermplanMapper.xml b/ruoyi/src/main/resources/mybatis/benyi/ByMathTermplanMapper.xml new file mode 100644 index 000000000..6ca8adde9 --- /dev/null +++ b/ruoyi/src/main/resources/mybatis/benyi/ByMathTermplanMapper.xml @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + select id, schoolid, classid, name, startmonth, endmonth, xnxq, status, spr, sptime, spyj, remark, createuserid, create_time from by_math_termplan + + + + + + + + insert into by_math_termplan + + id, + schoolid, + classid, + name, + startmonth, + endmonth, + xnxq, + status, + spr, + sptime, + spyj, + remark, + createuserid, + create_time, + + + #{id}, + #{schoolid}, + #{classid}, + #{name}, + #{startmonth}, + #{endmonth}, + #{xnxq}, + #{status}, + #{spr}, + #{sptime}, + #{spyj}, + #{remark}, + #{createuserid}, + #{createTime}, + + + + + update by_math_termplan + + schoolid = #{schoolid}, + classid = #{classid}, + name = #{name}, + startmonth = #{startmonth}, + endmonth = #{endmonth}, + xnxq = #{xnxq}, + status = #{status}, + spr = #{spr}, + sptime = #{sptime}, + spyj = #{spyj}, + remark = #{remark}, + createuserid = #{createuserid}, + create_time = #{createTime}, + + where id = #{id} + + + + delete from by_math_termplan where id = #{id} + + + + delete from by_math_termplan where id in + + #{id} + + + + \ No newline at end of file