儿童学习与发展档案

This commit is contained in:
paidaxing444
2020-08-10 17:59:25 +08:00
parent e33289bab6
commit 3d552ff313
16 changed files with 1984 additions and 0 deletions

View File

@ -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.ByChildLearndevelopmentFamily;
import com.ruoyi.project.benyi.service.IByChildLearndevelopmentFamilyService;
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-10
*/
@RestController
@RequestMapping("/benyi/learndevelopmentfamily")
public class ByChildLearndevelopmentFamilyController extends BaseController {
@Autowired
private IByChildLearndevelopmentFamilyService byChildLearndevelopmentFamilyService;
/**
* 查询儿童学习与发展档案(家长)列表
*/
@PreAuthorize("@ss.hasPermi('benyi:learndevelopmentfamily:list')")
@GetMapping("/list")
public TableDataInfo list(ByChildLearndevelopmentFamily byChildLearndevelopmentFamily) {
startPage();
List<ByChildLearndevelopmentFamily> list = byChildLearndevelopmentFamilyService.selectByChildLearndevelopmentFamilyList(byChildLearndevelopmentFamily);
return getDataTable(list);
}
/**
* 导出儿童学习与发展档案(家长)列表
*/
@PreAuthorize("@ss.hasPermi('benyi:learndevelopmentfamily:export')")
@Log(title = "儿童学习与发展档案(家长)", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(ByChildLearndevelopmentFamily byChildLearndevelopmentFamily) {
List<ByChildLearndevelopmentFamily> list = byChildLearndevelopmentFamilyService.selectByChildLearndevelopmentFamilyList(byChildLearndevelopmentFamily);
ExcelUtil<ByChildLearndevelopmentFamily> util = new ExcelUtil<ByChildLearndevelopmentFamily>(ByChildLearndevelopmentFamily.class);
return util.exportExcel(list, "family");
}
/**
* 获取儿童学习与发展档案(家长)详细信息
*/
@PreAuthorize("@ss.hasPermi('benyi:learndevelopmentfamily:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
return AjaxResult.success(byChildLearndevelopmentFamilyService.selectByChildLearndevelopmentFamilyById(id));
}
/**
* 新增儿童学习与发展档案(家长)
*/
@PreAuthorize("@ss.hasPermi('benyi:learndevelopmentfamily:add')")
@Log(title = "儿童学习与发展档案(家长)", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody ByChildLearndevelopmentFamily byChildLearndevelopmentFamily) {
return toAjax(byChildLearndevelopmentFamilyService.insertByChildLearndevelopmentFamily(byChildLearndevelopmentFamily));
}
/**
* 修改儿童学习与发展档案(家长)
*/
@PreAuthorize("@ss.hasPermi('benyi:learndevelopmentfamily:edit')")
@Log(title = "儿童学习与发展档案(家长)", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody ByChildLearndevelopmentFamily byChildLearndevelopmentFamily) {
return toAjax(byChildLearndevelopmentFamilyService.updateByChildLearndevelopmentFamily(byChildLearndevelopmentFamily));
}
/**
* 删除儿童学习与发展档案(家长)
*/
@PreAuthorize("@ss.hasPermi('benyi:learndevelopmentfamily:remove')")
@Log(title = "儿童学习与发展档案(家长)", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(byChildLearndevelopmentFamilyService.deleteByChildLearndevelopmentFamilyByIds(ids));
}
}

View File

@ -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.ByChildLearndevelopmentTeacher;
import com.ruoyi.project.benyi.service.IByChildLearndevelopmentTeacherService;
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-10
*/
@RestController
@RequestMapping("/benyi/learndevelopmentteacher")
public class ByChildLearndevelopmentTeacherController extends BaseController {
@Autowired
private IByChildLearndevelopmentTeacherService byChildLearndevelopmentTeacherService;
/**
* 查询儿童学习与发展档案(教师)列表
*/
@PreAuthorize("@ss.hasPermi('benyi:learndevelopmentteacher:list')")
@GetMapping("/list")
public TableDataInfo list(ByChildLearndevelopmentTeacher byChildLearndevelopmentTeacher) {
startPage();
List<ByChildLearndevelopmentTeacher> list = byChildLearndevelopmentTeacherService.selectByChildLearndevelopmentTeacherList(byChildLearndevelopmentTeacher);
return getDataTable(list);
}
/**
* 导出儿童学习与发展档案(教师)列表
*/
@PreAuthorize("@ss.hasPermi('benyi:learndevelopmentteacher:export')")
@Log(title = "儿童学习与发展档案(教师)", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(ByChildLearndevelopmentTeacher byChildLearndevelopmentTeacher) {
List<ByChildLearndevelopmentTeacher> list = byChildLearndevelopmentTeacherService.selectByChildLearndevelopmentTeacherList(byChildLearndevelopmentTeacher);
ExcelUtil<ByChildLearndevelopmentTeacher> util = new ExcelUtil<ByChildLearndevelopmentTeacher>(ByChildLearndevelopmentTeacher.class);
return util.exportExcel(list, "teacher");
}
/**
* 获取儿童学习与发展档案(教师)详细信息
*/
@PreAuthorize("@ss.hasPermi('benyi:learndevelopmentteacher:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
return AjaxResult.success(byChildLearndevelopmentTeacherService.selectByChildLearndevelopmentTeacherById(id));
}
/**
* 新增儿童学习与发展档案(教师)
*/
@PreAuthorize("@ss.hasPermi('benyi:learndevelopmentteacher:add')")
@Log(title = "儿童学习与发展档案(教师)", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody ByChildLearndevelopmentTeacher byChildLearndevelopmentTeacher) {
return toAjax(byChildLearndevelopmentTeacherService.insertByChildLearndevelopmentTeacher(byChildLearndevelopmentTeacher));
}
/**
* 修改儿童学习与发展档案(教师)
*/
@PreAuthorize("@ss.hasPermi('benyi:learndevelopmentteacher:edit')")
@Log(title = "儿童学习与发展档案(教师)", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody ByChildLearndevelopmentTeacher byChildLearndevelopmentTeacher) {
return toAjax(byChildLearndevelopmentTeacherService.updateByChildLearndevelopmentTeacher(byChildLearndevelopmentTeacher));
}
/**
* 删除儿童学习与发展档案(教师)
*/
@PreAuthorize("@ss.hasPermi('benyi:learndevelopmentteacher:remove')")
@Log(title = "儿童学习与发展档案(教师)", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(byChildLearndevelopmentTeacherService.deleteByChildLearndevelopmentTeacherByIds(ids));
}
}

View File

@ -0,0 +1,202 @@
package com.ruoyi.project.benyi.domain;
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_child_learndevelopment_family
*
* @author tsbz
* @date 2020-08-10
*/
public class ByChildLearndevelopmentFamily extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 编号
*/
private Long id;
/**
* 幼儿id
*/
@Excel(name = "幼儿id")
private Long childid;
/**
* 学年学期
*/
@Excel(name = "学年学期")
private String xnxq;
/**
* 作品照片
*/
@Excel(name = "作品照片")
private String zpimgs;
/**
* 作品照片备注
*/
@Excel(name = "作品照片备注")
private String zpimgremarks;
/**
* 生活照片
*/
@Excel(name = "生活照片")
private String shimgs;
/**
* 生活照片备注
*/
@Excel(name = "生活照片备注")
private String shimgsremarks;
/**
* 有趣事件
*/
@Excel(name = "有趣事件")
private String yqsj;
/**
* 有趣事件备注
*/
@Excel(name = "有趣事件备注")
private String yqsjremarks;
/**
* 教师评语
*/
@Excel(name = "教师评语")
private String jspy;
/**
* 教师评语备注
*/
@Excel(name = "教师评语备注")
private String jspyremarks;
/**
* 创建人
*/
@Excel(name = "创建人")
private Long createuserid;
public void setId(Long id) {
this.id = id;
}
public Long getId() {
return id;
}
public void setChildid(Long childid) {
this.childid = childid;
}
public Long getChildid() {
return childid;
}
public void setXnxq(String xnxq) {
this.xnxq = xnxq;
}
public String getXnxq() {
return xnxq;
}
public void setZpimgs(String zpimgs) {
this.zpimgs = zpimgs;
}
public String getZpimgs() {
return zpimgs;
}
public void setZpimgremarks(String zpimgremarks) {
this.zpimgremarks = zpimgremarks;
}
public String getZpimgremarks() {
return zpimgremarks;
}
public void setShimgs(String shimgs) {
this.shimgs = shimgs;
}
public String getShimgs() {
return shimgs;
}
public void setShimgsremarks(String shimgsremarks) {
this.shimgsremarks = shimgsremarks;
}
public String getShimgsremarks() {
return shimgsremarks;
}
public void setYqsj(String yqsj) {
this.yqsj = yqsj;
}
public String getYqsj() {
return yqsj;
}
public void setYqsjremarks(String yqsjremarks) {
this.yqsjremarks = yqsjremarks;
}
public String getYqsjremarks() {
return yqsjremarks;
}
public void setJspy(String jspy) {
this.jspy = jspy;
}
public String getJspy() {
return jspy;
}
public void setJspyremarks(String jspyremarks) {
this.jspyremarks = jspyremarks;
}
public String getJspyremarks() {
return jspyremarks;
}
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("childid", getChildid())
.append("xnxq", getXnxq())
.append("zpimgs", getZpimgs())
.append("zpimgremarks", getZpimgremarks())
.append("shimgs", getShimgs())
.append("shimgsremarks", getShimgsremarks())
.append("yqsj", getYqsj())
.append("yqsjremarks", getYqsjremarks())
.append("jspy", getJspy())
.append("jspyremarks", getJspyremarks())
.append("createuserid", getCreateuserid())
.append("createTime", getCreateTime())
.toString();
}
}

View File

@ -0,0 +1,202 @@
package com.ruoyi.project.benyi.domain;
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_child_learndevelopment_teacher
*
* @author tsbz
* @date 2020-08-10
*/
public class ByChildLearndevelopmentTeacher extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 编号
*/
private Long id;
/**
* 幼儿id
*/
@Excel(name = "幼儿id")
private Long childid;
/**
* 学年学期
*/
@Excel(name = "学年学期")
private String xnxq;
/**
* 观察记录
*/
@Excel(name = "观察记录")
private String gcjl;
/**
* 观察记录备注
*/
@Excel(name = "观察记录备注")
private String gcjlremarks;
/**
* 问题与方案
*/
@Excel(name = "问题与方案")
private String wtyfa;
/**
* 问题与方案备注
*/
@Excel(name = "问题与方案备注")
private String wtyfaremarks;
/**
* 评估结果
*/
@Excel(name = "评估结果")
private String pgjg;
/**
* 评估结果备注
*/
@Excel(name = "评估结果备注")
private String pgjgremarks;
/**
* 教育计划
*/
@Excel(name = "教育计划")
private String jyjh;
/**
* 教育计划备注
*/
@Excel(name = "教育计划备注")
private String jyjhremarks;
/**
* 创建人
*/
@Excel(name = "创建人")
private Long createuserid;
public void setId(Long id) {
this.id = id;
}
public Long getId() {
return id;
}
public void setChildid(Long childid) {
this.childid = childid;
}
public Long getChildid() {
return childid;
}
public void setXnxq(String xnxq) {
this.xnxq = xnxq;
}
public String getXnxq() {
return xnxq;
}
public void setGcjl(String gcjl) {
this.gcjl = gcjl;
}
public String getGcjl() {
return gcjl;
}
public void setGcjlremarks(String gcjlremarks) {
this.gcjlremarks = gcjlremarks;
}
public String getGcjlremarks() {
return gcjlremarks;
}
public void setWtyfa(String wtyfa) {
this.wtyfa = wtyfa;
}
public String getWtyfa() {
return wtyfa;
}
public void setWtyfaremarks(String wtyfaremarks) {
this.wtyfaremarks = wtyfaremarks;
}
public String getWtyfaremarks() {
return wtyfaremarks;
}
public void setPgjg(String pgjg) {
this.pgjg = pgjg;
}
public String getPgjg() {
return pgjg;
}
public void setPgjgremarks(String pgjgremarks) {
this.pgjgremarks = pgjgremarks;
}
public String getPgjgremarks() {
return pgjgremarks;
}
public void setJyjh(String jyjh) {
this.jyjh = jyjh;
}
public String getJyjh() {
return jyjh;
}
public void setJyjhremarks(String jyjhremarks) {
this.jyjhremarks = jyjhremarks;
}
public String getJyjhremarks() {
return jyjhremarks;
}
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("childid", getChildid())
.append("xnxq", getXnxq())
.append("gcjl", getGcjl())
.append("gcjlremarks", getGcjlremarks())
.append("wtyfa", getWtyfa())
.append("wtyfaremarks", getWtyfaremarks())
.append("pgjg", getPgjg())
.append("pgjgremarks", getPgjgremarks())
.append("jyjh", getJyjh())
.append("jyjhremarks", getJyjhremarks())
.append("createuserid", getCreateuserid())
.append("createTime", getCreateTime())
.toString();
}
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.project.benyi.mapper;
import java.util.List;
import com.ruoyi.project.benyi.domain.ByChildLearndevelopmentFamily;
/**
* 儿童学习与发展档案家长Mapper接口
*
* @author tsbz
* @date 2020-08-10
*/
public interface ByChildLearndevelopmentFamilyMapper {
/**
* 查询儿童学习与发展档案(家长)
*
* @param id 儿童学习与发展档案家长ID
* @return 儿童学习与发展档案(家长)
*/
public ByChildLearndevelopmentFamily selectByChildLearndevelopmentFamilyById(Long id);
/**
* 查询儿童学习与发展档案(家长)列表
*
* @param byChildLearndevelopmentFamily 儿童学习与发展档案(家长)
* @return 儿童学习与发展档案(家长)集合
*/
public List<ByChildLearndevelopmentFamily> selectByChildLearndevelopmentFamilyList(ByChildLearndevelopmentFamily byChildLearndevelopmentFamily);
/**
* 新增儿童学习与发展档案(家长)
*
* @param byChildLearndevelopmentFamily 儿童学习与发展档案(家长)
* @return 结果
*/
public int insertByChildLearndevelopmentFamily(ByChildLearndevelopmentFamily byChildLearndevelopmentFamily);
/**
* 修改儿童学习与发展档案(家长)
*
* @param byChildLearndevelopmentFamily 儿童学习与发展档案(家长)
* @return 结果
*/
public int updateByChildLearndevelopmentFamily(ByChildLearndevelopmentFamily byChildLearndevelopmentFamily);
/**
* 删除儿童学习与发展档案(家长)
*
* @param id 儿童学习与发展档案家长ID
* @return 结果
*/
public int deleteByChildLearndevelopmentFamilyById(Long id);
/**
* 批量删除儿童学习与发展档案(家长)
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteByChildLearndevelopmentFamilyByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.project.benyi.mapper;
import java.util.List;
import com.ruoyi.project.benyi.domain.ByChildLearndevelopmentTeacher;
/**
* 儿童学习与发展档案教师Mapper接口
*
* @author tsbz
* @date 2020-08-10
*/
public interface ByChildLearndevelopmentTeacherMapper {
/**
* 查询儿童学习与发展档案(教师)
*
* @param id 儿童学习与发展档案教师ID
* @return 儿童学习与发展档案(教师)
*/
public ByChildLearndevelopmentTeacher selectByChildLearndevelopmentTeacherById(Long id);
/**
* 查询儿童学习与发展档案(教师)列表
*
* @param byChildLearndevelopmentTeacher 儿童学习与发展档案(教师)
* @return 儿童学习与发展档案(教师)集合
*/
public List<ByChildLearndevelopmentTeacher> selectByChildLearndevelopmentTeacherList(ByChildLearndevelopmentTeacher byChildLearndevelopmentTeacher);
/**
* 新增儿童学习与发展档案(教师)
*
* @param byChildLearndevelopmentTeacher 儿童学习与发展档案(教师)
* @return 结果
*/
public int insertByChildLearndevelopmentTeacher(ByChildLearndevelopmentTeacher byChildLearndevelopmentTeacher);
/**
* 修改儿童学习与发展档案(教师)
*
* @param byChildLearndevelopmentTeacher 儿童学习与发展档案(教师)
* @return 结果
*/
public int updateByChildLearndevelopmentTeacher(ByChildLearndevelopmentTeacher byChildLearndevelopmentTeacher);
/**
* 删除儿童学习与发展档案(教师)
*
* @param id 儿童学习与发展档案教师ID
* @return 结果
*/
public int deleteByChildLearndevelopmentTeacherById(Long id);
/**
* 批量删除儿童学习与发展档案(教师)
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteByChildLearndevelopmentTeacherByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.project.benyi.service;
import java.util.List;
import com.ruoyi.project.benyi.domain.ByChildLearndevelopmentFamily;
/**
* 儿童学习与发展档案家长Service接口
*
* @author tsbz
* @date 2020-08-10
*/
public interface IByChildLearndevelopmentFamilyService {
/**
* 查询儿童学习与发展档案(家长)
*
* @param id 儿童学习与发展档案家长ID
* @return 儿童学习与发展档案(家长)
*/
public ByChildLearndevelopmentFamily selectByChildLearndevelopmentFamilyById(Long id);
/**
* 查询儿童学习与发展档案(家长)列表
*
* @param byChildLearndevelopmentFamily 儿童学习与发展档案(家长)
* @return 儿童学习与发展档案(家长)集合
*/
public List<ByChildLearndevelopmentFamily> selectByChildLearndevelopmentFamilyList(ByChildLearndevelopmentFamily byChildLearndevelopmentFamily);
/**
* 新增儿童学习与发展档案(家长)
*
* @param byChildLearndevelopmentFamily 儿童学习与发展档案(家长)
* @return 结果
*/
public int insertByChildLearndevelopmentFamily(ByChildLearndevelopmentFamily byChildLearndevelopmentFamily);
/**
* 修改儿童学习与发展档案(家长)
*
* @param byChildLearndevelopmentFamily 儿童学习与发展档案(家长)
* @return 结果
*/
public int updateByChildLearndevelopmentFamily(ByChildLearndevelopmentFamily byChildLearndevelopmentFamily);
/**
* 批量删除儿童学习与发展档案(家长)
*
* @param ids 需要删除的儿童学习与发展档案家长ID
* @return 结果
*/
public int deleteByChildLearndevelopmentFamilyByIds(Long[] ids);
/**
* 删除儿童学习与发展档案(家长)信息
*
* @param id 儿童学习与发展档案家长ID
* @return 结果
*/
public int deleteByChildLearndevelopmentFamilyById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.project.benyi.service;
import java.util.List;
import com.ruoyi.project.benyi.domain.ByChildLearndevelopmentTeacher;
/**
* 儿童学习与发展档案教师Service接口
*
* @author tsbz
* @date 2020-08-10
*/
public interface IByChildLearndevelopmentTeacherService {
/**
* 查询儿童学习与发展档案(教师)
*
* @param id 儿童学习与发展档案教师ID
* @return 儿童学习与发展档案(教师)
*/
public ByChildLearndevelopmentTeacher selectByChildLearndevelopmentTeacherById(Long id);
/**
* 查询儿童学习与发展档案(教师)列表
*
* @param byChildLearndevelopmentTeacher 儿童学习与发展档案(教师)
* @return 儿童学习与发展档案(教师)集合
*/
public List<ByChildLearndevelopmentTeacher> selectByChildLearndevelopmentTeacherList(ByChildLearndevelopmentTeacher byChildLearndevelopmentTeacher);
/**
* 新增儿童学习与发展档案(教师)
*
* @param byChildLearndevelopmentTeacher 儿童学习与发展档案(教师)
* @return 结果
*/
public int insertByChildLearndevelopmentTeacher(ByChildLearndevelopmentTeacher byChildLearndevelopmentTeacher);
/**
* 修改儿童学习与发展档案(教师)
*
* @param byChildLearndevelopmentTeacher 儿童学习与发展档案(教师)
* @return 结果
*/
public int updateByChildLearndevelopmentTeacher(ByChildLearndevelopmentTeacher byChildLearndevelopmentTeacher);
/**
* 批量删除儿童学习与发展档案(教师)
*
* @param ids 需要删除的儿童学习与发展档案教师ID
* @return 结果
*/
public int deleteByChildLearndevelopmentTeacherByIds(Long[] ids);
/**
* 删除儿童学习与发展档案(教师)信息
*
* @param id 儿童学习与发展档案教师ID
* @return 结果
*/
public int deleteByChildLearndevelopmentTeacherById(Long id);
}

View File

@ -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.ByChildLearndevelopmentFamilyMapper;
import com.ruoyi.project.benyi.domain.ByChildLearndevelopmentFamily;
import com.ruoyi.project.benyi.service.IByChildLearndevelopmentFamilyService;
/**
* 儿童学习与发展档案家长Service业务层处理
*
* @author tsbz
* @date 2020-08-10
*/
@Service
public class ByChildLearndevelopmentFamilyServiceImpl implements IByChildLearndevelopmentFamilyService {
@Autowired
private ByChildLearndevelopmentFamilyMapper byChildLearndevelopmentFamilyMapper;
/**
* 查询儿童学习与发展档案(家长)
*
* @param id 儿童学习与发展档案家长ID
* @return 儿童学习与发展档案(家长)
*/
@Override
public ByChildLearndevelopmentFamily selectByChildLearndevelopmentFamilyById(Long id) {
return byChildLearndevelopmentFamilyMapper.selectByChildLearndevelopmentFamilyById(id);
}
/**
* 查询儿童学习与发展档案(家长)列表
*
* @param byChildLearndevelopmentFamily 儿童学习与发展档案(家长)
* @return 儿童学习与发展档案(家长)
*/
@Override
public List<ByChildLearndevelopmentFamily> selectByChildLearndevelopmentFamilyList(ByChildLearndevelopmentFamily byChildLearndevelopmentFamily) {
return byChildLearndevelopmentFamilyMapper.selectByChildLearndevelopmentFamilyList(byChildLearndevelopmentFamily);
}
/**
* 新增儿童学习与发展档案(家长)
*
* @param byChildLearndevelopmentFamily 儿童学习与发展档案(家长)
* @return 结果
*/
@Override
public int insertByChildLearndevelopmentFamily(ByChildLearndevelopmentFamily byChildLearndevelopmentFamily) {
byChildLearndevelopmentFamily.setCreateTime(DateUtils.getNowDate());
return byChildLearndevelopmentFamilyMapper.insertByChildLearndevelopmentFamily(byChildLearndevelopmentFamily);
}
/**
* 修改儿童学习与发展档案(家长)
*
* @param byChildLearndevelopmentFamily 儿童学习与发展档案(家长)
* @return 结果
*/
@Override
public int updateByChildLearndevelopmentFamily(ByChildLearndevelopmentFamily byChildLearndevelopmentFamily) {
return byChildLearndevelopmentFamilyMapper.updateByChildLearndevelopmentFamily(byChildLearndevelopmentFamily);
}
/**
* 批量删除儿童学习与发展档案(家长)
*
* @param ids 需要删除的儿童学习与发展档案家长ID
* @return 结果
*/
@Override
public int deleteByChildLearndevelopmentFamilyByIds(Long[] ids) {
return byChildLearndevelopmentFamilyMapper.deleteByChildLearndevelopmentFamilyByIds(ids);
}
/**
* 删除儿童学习与发展档案(家长)信息
*
* @param id 儿童学习与发展档案家长ID
* @return 结果
*/
@Override
public int deleteByChildLearndevelopmentFamilyById(Long id) {
return byChildLearndevelopmentFamilyMapper.deleteByChildLearndevelopmentFamilyById(id);
}
}

View File

@ -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.ByChildLearndevelopmentTeacherMapper;
import com.ruoyi.project.benyi.domain.ByChildLearndevelopmentTeacher;
import com.ruoyi.project.benyi.service.IByChildLearndevelopmentTeacherService;
/**
* 儿童学习与发展档案教师Service业务层处理
*
* @author tsbz
* @date 2020-08-10
*/
@Service
public class ByChildLearndevelopmentTeacherServiceImpl implements IByChildLearndevelopmentTeacherService {
@Autowired
private ByChildLearndevelopmentTeacherMapper byChildLearndevelopmentTeacherMapper;
/**
* 查询儿童学习与发展档案(教师)
*
* @param id 儿童学习与发展档案教师ID
* @return 儿童学习与发展档案(教师)
*/
@Override
public ByChildLearndevelopmentTeacher selectByChildLearndevelopmentTeacherById(Long id) {
return byChildLearndevelopmentTeacherMapper.selectByChildLearndevelopmentTeacherById(id);
}
/**
* 查询儿童学习与发展档案(教师)列表
*
* @param byChildLearndevelopmentTeacher 儿童学习与发展档案(教师)
* @return 儿童学习与发展档案(教师)
*/
@Override
public List<ByChildLearndevelopmentTeacher> selectByChildLearndevelopmentTeacherList(ByChildLearndevelopmentTeacher byChildLearndevelopmentTeacher) {
return byChildLearndevelopmentTeacherMapper.selectByChildLearndevelopmentTeacherList(byChildLearndevelopmentTeacher);
}
/**
* 新增儿童学习与发展档案(教师)
*
* @param byChildLearndevelopmentTeacher 儿童学习与发展档案(教师)
* @return 结果
*/
@Override
public int insertByChildLearndevelopmentTeacher(ByChildLearndevelopmentTeacher byChildLearndevelopmentTeacher) {
byChildLearndevelopmentTeacher.setCreateTime(DateUtils.getNowDate());
return byChildLearndevelopmentTeacherMapper.insertByChildLearndevelopmentTeacher(byChildLearndevelopmentTeacher);
}
/**
* 修改儿童学习与发展档案(教师)
*
* @param byChildLearndevelopmentTeacher 儿童学习与发展档案(教师)
* @return 结果
*/
@Override
public int updateByChildLearndevelopmentTeacher(ByChildLearndevelopmentTeacher byChildLearndevelopmentTeacher) {
return byChildLearndevelopmentTeacherMapper.updateByChildLearndevelopmentTeacher(byChildLearndevelopmentTeacher);
}
/**
* 批量删除儿童学习与发展档案(教师)
*
* @param ids 需要删除的儿童学习与发展档案教师ID
* @return 结果
*/
@Override
public int deleteByChildLearndevelopmentTeacherByIds(Long[] ids) {
return byChildLearndevelopmentTeacherMapper.deleteByChildLearndevelopmentTeacherByIds(ids);
}
/**
* 删除儿童学习与发展档案(教师)信息
*
* @param id 儿童学习与发展档案教师ID
* @return 结果
*/
@Override
public int deleteByChildLearndevelopmentTeacherById(Long id) {
return byChildLearndevelopmentTeacherMapper.deleteByChildLearndevelopmentTeacherById(id);
}
}

View File

@ -0,0 +1,115 @@
<?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.ByChildLearndevelopmentFamilyMapper">
<resultMap type="ByChildLearndevelopmentFamily" id="ByChildLearndevelopmentFamilyResult">
<result property="id" column="id"/>
<result property="childid" column="childid"/>
<result property="xnxq" column="xnxq"/>
<result property="zpimgs" column="zpimgs"/>
<result property="zpimgremarks" column="zpimgremarks"/>
<result property="shimgs" column="shimgs"/>
<result property="shimgsremarks" column="shimgsremarks"/>
<result property="yqsj" column="yqsj"/>
<result property="yqsjremarks" column="yqsjremarks"/>
<result property="jspy" column="jspy"/>
<result property="jspyremarks" column="jspyremarks"/>
<result property="createuserid" column="createuserid"/>
<result property="createTime" column="create_time"/>
</resultMap>
<sql id="selectByChildLearndevelopmentFamilyVo">
select id, childid, xnxq, zpimgs, zpimgremarks, shimgs, shimgsremarks, yqsj, yqsjremarks, jspy, jspyremarks, createuserid, create_time from by_child_learndevelopment_family
</sql>
<select id="selectByChildLearndevelopmentFamilyList" parameterType="ByChildLearndevelopmentFamily"
resultMap="ByChildLearndevelopmentFamilyResult">
<include refid="selectByChildLearndevelopmentFamilyVo"/>
<where>
<if test="childid != null ">and childid = #{childid}</if>
<if test="xnxq != null and xnxq != ''">and xnxq = #{xnxq}</if>
<if test="zpimgs != null and zpimgs != ''">and zpimgs = #{zpimgs}</if>
<if test="zpimgremarks != null and zpimgremarks != ''">and zpimgremarks = #{zpimgremarks}</if>
<if test="shimgs != null and shimgs != ''">and shimgs = #{shimgs}</if>
<if test="shimgsremarks != null and shimgsremarks != ''">and shimgsremarks = #{shimgsremarks}</if>
<if test="yqsj != null and yqsj != ''">and yqsj = #{yqsj}</if>
<if test="yqsjremarks != null and yqsjremarks != ''">and yqsjremarks = #{yqsjremarks}</if>
<if test="jspy != null and jspy != ''">and jspy = #{jspy}</if>
<if test="jspyremarks != null and jspyremarks != ''">and jspyremarks = #{jspyremarks}</if>
<if test="createuserid != null ">and createuserid = #{createuserid}</if>
</where>
</select>
<select id="selectByChildLearndevelopmentFamilyById" parameterType="Long"
resultMap="ByChildLearndevelopmentFamilyResult">
<include refid="selectByChildLearndevelopmentFamilyVo"/>
where id = #{id}
</select>
<insert id="insertByChildLearndevelopmentFamily" parameterType="ByChildLearndevelopmentFamily">
insert into by_child_learndevelopment_family
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null ">id,</if>
<if test="childid != null ">childid,</if>
<if test="xnxq != null and xnxq != ''">xnxq,</if>
<if test="zpimgs != null and zpimgs != ''">zpimgs,</if>
<if test="zpimgremarks != null and zpimgremarks != ''">zpimgremarks,</if>
<if test="shimgs != null and shimgs != ''">shimgs,</if>
<if test="shimgsremarks != null and shimgsremarks != ''">shimgsremarks,</if>
<if test="yqsj != null and yqsj != ''">yqsj,</if>
<if test="yqsjremarks != null and yqsjremarks != ''">yqsjremarks,</if>
<if test="jspy != null and jspy != ''">jspy,</if>
<if test="jspyremarks != null and jspyremarks != ''">jspyremarks,</if>
<if test="createuserid != null ">createuserid,</if>
<if test="createTime != null ">create_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null ">#{id},</if>
<if test="childid != null ">#{childid},</if>
<if test="xnxq != null and xnxq != ''">#{xnxq},</if>
<if test="zpimgs != null and zpimgs != ''">#{zpimgs},</if>
<if test="zpimgremarks != null and zpimgremarks != ''">#{zpimgremarks},</if>
<if test="shimgs != null and shimgs != ''">#{shimgs},</if>
<if test="shimgsremarks != null and shimgsremarks != ''">#{shimgsremarks},</if>
<if test="yqsj != null and yqsj != ''">#{yqsj},</if>
<if test="yqsjremarks != null and yqsjremarks != ''">#{yqsjremarks},</if>
<if test="jspy != null and jspy != ''">#{jspy},</if>
<if test="jspyremarks != null and jspyremarks != ''">#{jspyremarks},</if>
<if test="createuserid != null ">#{createuserid},</if>
<if test="createTime != null ">#{createTime},</if>
</trim>
</insert>
<update id="updateByChildLearndevelopmentFamily" parameterType="ByChildLearndevelopmentFamily">
update by_child_learndevelopment_family
<trim prefix="SET" suffixOverrides=",">
<if test="childid != null ">childid = #{childid},</if>
<if test="xnxq != null and xnxq != ''">xnxq = #{xnxq},</if>
<if test="zpimgs != null and zpimgs != ''">zpimgs = #{zpimgs},</if>
<if test="zpimgremarks != null and zpimgremarks != ''">zpimgremarks = #{zpimgremarks},</if>
<if test="shimgs != null and shimgs != ''">shimgs = #{shimgs},</if>
<if test="shimgsremarks != null and shimgsremarks != ''">shimgsremarks = #{shimgsremarks},</if>
<if test="yqsj != null and yqsj != ''">yqsj = #{yqsj},</if>
<if test="yqsjremarks != null and yqsjremarks != ''">yqsjremarks = #{yqsjremarks},</if>
<if test="jspy != null and jspy != ''">jspy = #{jspy},</if>
<if test="jspyremarks != null and jspyremarks != ''">jspyremarks = #{jspyremarks},</if>
<if test="createuserid != null ">createuserid = #{createuserid},</if>
<if test="createTime != null ">create_time = #{createTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteByChildLearndevelopmentFamilyById" parameterType="Long">
delete from by_child_learndevelopment_family where id = #{id}
</delete>
<delete id="deleteByChildLearndevelopmentFamilyByIds" parameterType="String">
delete from by_child_learndevelopment_family where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,115 @@
<?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.ByChildLearndevelopmentTeacherMapper">
<resultMap type="ByChildLearndevelopmentTeacher" id="ByChildLearndevelopmentTeacherResult">
<result property="id" column="id"/>
<result property="childid" column="childid"/>
<result property="xnxq" column="xnxq"/>
<result property="gcjl" column="gcjl"/>
<result property="gcjlremarks" column="gcjlremarks"/>
<result property="wtyfa" column="wtyfa"/>
<result property="wtyfaremarks" column="wtyfaremarks"/>
<result property="pgjg" column="pgjg"/>
<result property="pgjgremarks" column="pgjgremarks"/>
<result property="jyjh" column="jyjh"/>
<result property="jyjhremarks" column="jyjhremarks"/>
<result property="createuserid" column="createuserid"/>
<result property="createTime" column="create_time"/>
</resultMap>
<sql id="selectByChildLearndevelopmentTeacherVo">
select id, childid, xnxq, gcjl, gcjlremarks, wtyfa, wtyfaremarks, pgjg, pgjgremarks, jyjh, jyjhremarks, createuserid, create_time from by_child_learndevelopment_teacher
</sql>
<select id="selectByChildLearndevelopmentTeacherList" parameterType="ByChildLearndevelopmentTeacher"
resultMap="ByChildLearndevelopmentTeacherResult">
<include refid="selectByChildLearndevelopmentTeacherVo"/>
<where>
<if test="childid != null ">and childid = #{childid}</if>
<if test="xnxq != null and xnxq != ''">and xnxq = #{xnxq}</if>
<if test="gcjl != null and gcjl != ''">and gcjl = #{gcjl}</if>
<if test="gcjlremarks != null and gcjlremarks != ''">and gcjlremarks = #{gcjlremarks}</if>
<if test="wtyfa != null and wtyfa != ''">and wtyfa = #{wtyfa}</if>
<if test="wtyfaremarks != null and wtyfaremarks != ''">and wtyfaremarks = #{wtyfaremarks}</if>
<if test="pgjg != null and pgjg != ''">and pgjg = #{pgjg}</if>
<if test="pgjgremarks != null and pgjgremarks != ''">and pgjgremarks = #{pgjgremarks}</if>
<if test="jyjh != null and jyjh != ''">and jyjh = #{jyjh}</if>
<if test="jyjhremarks != null and jyjhremarks != ''">and jyjhremarks = #{jyjhremarks}</if>
<if test="createuserid != null ">and createuserid = #{createuserid}</if>
</where>
</select>
<select id="selectByChildLearndevelopmentTeacherById" parameterType="Long"
resultMap="ByChildLearndevelopmentTeacherResult">
<include refid="selectByChildLearndevelopmentTeacherVo"/>
where id = #{id}
</select>
<insert id="insertByChildLearndevelopmentTeacher" parameterType="ByChildLearndevelopmentTeacher">
insert into by_child_learndevelopment_teacher
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null ">id,</if>
<if test="childid != null ">childid,</if>
<if test="xnxq != null and xnxq != ''">xnxq,</if>
<if test="gcjl != null and gcjl != ''">gcjl,</if>
<if test="gcjlremarks != null and gcjlremarks != ''">gcjlremarks,</if>
<if test="wtyfa != null and wtyfa != ''">wtyfa,</if>
<if test="wtyfaremarks != null and wtyfaremarks != ''">wtyfaremarks,</if>
<if test="pgjg != null and pgjg != ''">pgjg,</if>
<if test="pgjgremarks != null and pgjgremarks != ''">pgjgremarks,</if>
<if test="jyjh != null and jyjh != ''">jyjh,</if>
<if test="jyjhremarks != null and jyjhremarks != ''">jyjhremarks,</if>
<if test="createuserid != null ">createuserid,</if>
<if test="createTime != null ">create_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null ">#{id},</if>
<if test="childid != null ">#{childid},</if>
<if test="xnxq != null and xnxq != ''">#{xnxq},</if>
<if test="gcjl != null and gcjl != ''">#{gcjl},</if>
<if test="gcjlremarks != null and gcjlremarks != ''">#{gcjlremarks},</if>
<if test="wtyfa != null and wtyfa != ''">#{wtyfa},</if>
<if test="wtyfaremarks != null and wtyfaremarks != ''">#{wtyfaremarks},</if>
<if test="pgjg != null and pgjg != ''">#{pgjg},</if>
<if test="pgjgremarks != null and pgjgremarks != ''">#{pgjgremarks},</if>
<if test="jyjh != null and jyjh != ''">#{jyjh},</if>
<if test="jyjhremarks != null and jyjhremarks != ''">#{jyjhremarks},</if>
<if test="createuserid != null ">#{createuserid},</if>
<if test="createTime != null ">#{createTime},</if>
</trim>
</insert>
<update id="updateByChildLearndevelopmentTeacher" parameterType="ByChildLearndevelopmentTeacher">
update by_child_learndevelopment_teacher
<trim prefix="SET" suffixOverrides=",">
<if test="childid != null ">childid = #{childid},</if>
<if test="xnxq != null and xnxq != ''">xnxq = #{xnxq},</if>
<if test="gcjl != null and gcjl != ''">gcjl = #{gcjl},</if>
<if test="gcjlremarks != null and gcjlremarks != ''">gcjlremarks = #{gcjlremarks},</if>
<if test="wtyfa != null and wtyfa != ''">wtyfa = #{wtyfa},</if>
<if test="wtyfaremarks != null and wtyfaremarks != ''">wtyfaremarks = #{wtyfaremarks},</if>
<if test="pgjg != null and pgjg != ''">pgjg = #{pgjg},</if>
<if test="pgjgremarks != null and pgjgremarks != ''">pgjgremarks = #{pgjgremarks},</if>
<if test="jyjh != null and jyjh != ''">jyjh = #{jyjh},</if>
<if test="jyjhremarks != null and jyjhremarks != ''">jyjhremarks = #{jyjhremarks},</if>
<if test="createuserid != null ">createuserid = #{createuserid},</if>
<if test="createTime != null ">create_time = #{createTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteByChildLearndevelopmentTeacherById" parameterType="Long">
delete from by_child_learndevelopment_teacher where id = #{id}
</delete>
<delete id="deleteByChildLearndevelopmentTeacherByIds" parameterType="String">
delete from by_child_learndevelopment_teacher where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>