幼儿评估
This commit is contained in:
@ -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.ByAssessmentchild;
|
||||
import com.ruoyi.project.benyi.service.IByAssessmentchildService;
|
||||
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-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/benyi/assessmentchild")
|
||||
public class ByAssessmentchildController extends BaseController {
|
||||
@Autowired
|
||||
private IByAssessmentchildService byAssessmentchildService;
|
||||
|
||||
/**
|
||||
* 查询幼儿评估列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentchild:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ByAssessmentchild byAssessmentchild) {
|
||||
startPage();
|
||||
List<ByAssessmentchild> list = byAssessmentchildService.selectByAssessmentchildList(byAssessmentchild);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出幼儿评估列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentchild:export')")
|
||||
@Log(title = "幼儿评估", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(ByAssessmentchild byAssessmentchild) {
|
||||
List<ByAssessmentchild> list = byAssessmentchildService.selectByAssessmentchildList(byAssessmentchild);
|
||||
ExcelUtil<ByAssessmentchild> util = new ExcelUtil<ByAssessmentchild>(ByAssessmentchild.class);
|
||||
return util.exportExcel(list, "assessmentchild");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取幼儿评估详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentchild:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(byAssessmentchildService.selectByAssessmentchildById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增幼儿评估
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentchild:add')")
|
||||
@Log(title = "幼儿评估", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ByAssessmentchild byAssessmentchild) {
|
||||
return toAjax(byAssessmentchildService.insertByAssessmentchild(byAssessmentchild));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改幼儿评估
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentchild:edit')")
|
||||
@Log(title = "幼儿评估", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ByAssessmentchild byAssessmentchild) {
|
||||
return toAjax(byAssessmentchildService.updateByAssessmentchild(byAssessmentchild));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除幼儿评估
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentchild:remove')")
|
||||
@Log(title = "幼儿评估", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(byAssessmentchildService.deleteByAssessmentchildByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,103 @@
|
||||
package com.ruoyi.project.benyi.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.framework.aspectj.lang.annotation.Log;
|
||||
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
|
||||
import com.ruoyi.project.benyi.domain.ByAssessmentrecordchild;
|
||||
import com.ruoyi.project.benyi.service.IByAssessmentrecordchildService;
|
||||
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-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/benyi/assessmentrecordchild")
|
||||
public class ByAssessmentrecordchildController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IByAssessmentrecordchildService byAssessmentrecordchildService;
|
||||
|
||||
/**
|
||||
* 查询幼儿评估记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentrecordchild:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ByAssessmentrecordchild byAssessmentrecordchild)
|
||||
{
|
||||
startPage();
|
||||
List<ByAssessmentrecordchild> list = byAssessmentrecordchildService.selectByAssessmentrecordchildList(byAssessmentrecordchild);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出幼儿评估记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentrecordchild:export')")
|
||||
@Log(title = "幼儿评估记录", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(ByAssessmentrecordchild byAssessmentrecordchild)
|
||||
{
|
||||
List<ByAssessmentrecordchild> list = byAssessmentrecordchildService.selectByAssessmentrecordchildList(byAssessmentrecordchild);
|
||||
ExcelUtil<ByAssessmentrecordchild> util = new ExcelUtil<ByAssessmentrecordchild>(ByAssessmentrecordchild.class);
|
||||
return util.exportExcel(list, "assessmentrecordchild");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取幼儿评估记录详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentrecordchild:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(byAssessmentrecordchildService.selectByAssessmentrecordchildById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增幼儿评估记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentrecordchild:add')")
|
||||
@Log(title = "幼儿评估记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ByAssessmentrecordchild byAssessmentrecordchild)
|
||||
{
|
||||
return toAjax(byAssessmentrecordchildService.insertByAssessmentrecordchild(byAssessmentrecordchild));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改幼儿评估记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentrecordchild:edit')")
|
||||
@Log(title = "幼儿评估记录", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ByAssessmentrecordchild byAssessmentrecordchild)
|
||||
{
|
||||
return toAjax(byAssessmentrecordchildService.updateByAssessmentrecordchild(byAssessmentrecordchild));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除幼儿评估记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentrecordchild:remove')")
|
||||
@Log(title = "幼儿评估记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(byAssessmentrecordchildService.deleteByAssessmentrecordchildByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,112 @@
|
||||
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_assessmentchild
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-10-27
|
||||
*/
|
||||
public class ByAssessmentchild extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 幼儿编号
|
||||
*/
|
||||
@Excel(name = "幼儿编号")
|
||||
private Long childid;
|
||||
|
||||
/**
|
||||
* 测评内容编号
|
||||
*/
|
||||
@Excel(name = "测评内容编号")
|
||||
private Long contentid;
|
||||
|
||||
/**
|
||||
* 是否符合标准
|
||||
*/
|
||||
@Excel(name = "是否符合标准")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 测评学年
|
||||
*/
|
||||
@Excel(name = "测评学年")
|
||||
private String xn;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Excel(name = "创建人")
|
||||
private Long userid;
|
||||
|
||||
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 setContentid(Long contentid) {
|
||||
this.contentid = contentid;
|
||||
}
|
||||
|
||||
public Long getContentid() {
|
||||
return contentid;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setXn(String xn) {
|
||||
this.xn = xn;
|
||||
}
|
||||
|
||||
public String getXn() {
|
||||
return xn;
|
||||
}
|
||||
|
||||
public void setUserid(Long userid) {
|
||||
this.userid = userid;
|
||||
}
|
||||
|
||||
public Long getUserid() {
|
||||
return userid;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("childid", getChildid())
|
||||
.append("contentid", getContentid())
|
||||
.append("type", getType())
|
||||
.append("xn", getXn())
|
||||
.append("userid", getUserid())
|
||||
.append("createTime", getCreateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,112 @@
|
||||
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_assessmentrecordchild
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-10-27
|
||||
*/
|
||||
public class ByAssessmentrecordchild extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 幼儿编号
|
||||
*/
|
||||
@Excel(name = "幼儿编号")
|
||||
private Long childid;
|
||||
|
||||
/**
|
||||
* 学年
|
||||
*/
|
||||
@Excel(name = "学年")
|
||||
private String xn;
|
||||
|
||||
/**
|
||||
* 是否提交
|
||||
*/
|
||||
@Excel(name = "是否提交")
|
||||
private String state;
|
||||
|
||||
/**
|
||||
* 所属年龄段
|
||||
*/
|
||||
@Excel(name = "所属年龄段")
|
||||
private String scope;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Excel(name = "创建人")
|
||||
private Long userid;
|
||||
|
||||
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 setXn(String xn) {
|
||||
this.xn = xn;
|
||||
}
|
||||
|
||||
public String getXn() {
|
||||
return xn;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setScope(String scope) {
|
||||
this.scope = scope;
|
||||
}
|
||||
|
||||
public String getScope() {
|
||||
return scope;
|
||||
}
|
||||
|
||||
public void setUserid(Long userid) {
|
||||
this.userid = userid;
|
||||
}
|
||||
|
||||
public Long getUserid() {
|
||||
return userid;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("childid", getChildid())
|
||||
.append("xn", getXn())
|
||||
.append("state", getState())
|
||||
.append("scope", getScope())
|
||||
.append("userid", getUserid())
|
||||
.append("createTime", getCreateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.project.benyi.domain.ByAssessmentchild;
|
||||
|
||||
/**
|
||||
* 幼儿评估Mapper接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-10-27
|
||||
*/
|
||||
public interface ByAssessmentchildMapper {
|
||||
/**
|
||||
* 查询幼儿评估
|
||||
*
|
||||
* @param id 幼儿评估ID
|
||||
* @return 幼儿评估
|
||||
*/
|
||||
public ByAssessmentchild selectByAssessmentchildById(Long id);
|
||||
|
||||
/**
|
||||
* 查询幼儿评估列表
|
||||
*
|
||||
* @param byAssessmentchild 幼儿评估
|
||||
* @return 幼儿评估集合
|
||||
*/
|
||||
public List<ByAssessmentchild> selectByAssessmentchildList(ByAssessmentchild byAssessmentchild);
|
||||
|
||||
/**
|
||||
* 新增幼儿评估
|
||||
*
|
||||
* @param byAssessmentchild 幼儿评估
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByAssessmentchild(ByAssessmentchild byAssessmentchild);
|
||||
|
||||
/**
|
||||
* 修改幼儿评估
|
||||
*
|
||||
* @param byAssessmentchild 幼儿评估
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByAssessmentchild(ByAssessmentchild byAssessmentchild);
|
||||
|
||||
/**
|
||||
* 删除幼儿评估
|
||||
*
|
||||
* @param id 幼儿评估ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByAssessmentchildById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除幼儿评估
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByAssessmentchildByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.project.benyi.domain.ByAssessmentrecordchild;
|
||||
|
||||
/**
|
||||
* 幼儿评估记录Mapper接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-10-27
|
||||
*/
|
||||
public interface ByAssessmentrecordchildMapper {
|
||||
/**
|
||||
* 查询幼儿评估记录
|
||||
*
|
||||
* @param id 幼儿评估记录ID
|
||||
* @return 幼儿评估记录
|
||||
*/
|
||||
public ByAssessmentrecordchild selectByAssessmentrecordchildById(Long id);
|
||||
|
||||
/**
|
||||
* 查询幼儿评估记录列表
|
||||
*
|
||||
* @param byAssessmentrecordchild 幼儿评估记录
|
||||
* @return 幼儿评估记录集合
|
||||
*/
|
||||
public List<ByAssessmentrecordchild> selectByAssessmentrecordchildList(ByAssessmentrecordchild byAssessmentrecordchild);
|
||||
|
||||
/**
|
||||
* 新增幼儿评估记录
|
||||
*
|
||||
* @param byAssessmentrecordchild 幼儿评估记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByAssessmentrecordchild(ByAssessmentrecordchild byAssessmentrecordchild);
|
||||
|
||||
/**
|
||||
* 修改幼儿评估记录
|
||||
*
|
||||
* @param byAssessmentrecordchild 幼儿评估记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByAssessmentrecordchild(ByAssessmentrecordchild byAssessmentrecordchild);
|
||||
|
||||
/**
|
||||
* 删除幼儿评估记录
|
||||
*
|
||||
* @param id 幼儿评估记录ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByAssessmentrecordchildById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除幼儿评估记录
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByAssessmentrecordchildByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.project.benyi.domain.ByAssessmentchild;
|
||||
|
||||
/**
|
||||
* 幼儿评估Service接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-10-27
|
||||
*/
|
||||
public interface IByAssessmentchildService {
|
||||
/**
|
||||
* 查询幼儿评估
|
||||
*
|
||||
* @param id 幼儿评估ID
|
||||
* @return 幼儿评估
|
||||
*/
|
||||
public ByAssessmentchild selectByAssessmentchildById(Long id);
|
||||
|
||||
/**
|
||||
* 查询幼儿评估列表
|
||||
*
|
||||
* @param byAssessmentchild 幼儿评估
|
||||
* @return 幼儿评估集合
|
||||
*/
|
||||
public List<ByAssessmentchild> selectByAssessmentchildList(ByAssessmentchild byAssessmentchild);
|
||||
|
||||
/**
|
||||
* 新增幼儿评估
|
||||
*
|
||||
* @param byAssessmentchild 幼儿评估
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByAssessmentchild(ByAssessmentchild byAssessmentchild);
|
||||
|
||||
/**
|
||||
* 修改幼儿评估
|
||||
*
|
||||
* @param byAssessmentchild 幼儿评估
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByAssessmentchild(ByAssessmentchild byAssessmentchild);
|
||||
|
||||
/**
|
||||
* 批量删除幼儿评估
|
||||
*
|
||||
* @param ids 需要删除的幼儿评估ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByAssessmentchildByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除幼儿评估信息
|
||||
*
|
||||
* @param id 幼儿评估ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByAssessmentchildById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.project.benyi.domain.ByAssessmentrecordchild;
|
||||
|
||||
/**
|
||||
* 幼儿评估记录Service接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-10-27
|
||||
*/
|
||||
public interface IByAssessmentrecordchildService {
|
||||
/**
|
||||
* 查询幼儿评估记录
|
||||
*
|
||||
* @param id 幼儿评估记录ID
|
||||
* @return 幼儿评估记录
|
||||
*/
|
||||
public ByAssessmentrecordchild selectByAssessmentrecordchildById(Long id);
|
||||
|
||||
/**
|
||||
* 查询幼儿评估记录列表
|
||||
*
|
||||
* @param byAssessmentrecordchild 幼儿评估记录
|
||||
* @return 幼儿评估记录集合
|
||||
*/
|
||||
public List<ByAssessmentrecordchild> selectByAssessmentrecordchildList(ByAssessmentrecordchild byAssessmentrecordchild);
|
||||
|
||||
/**
|
||||
* 新增幼儿评估记录
|
||||
*
|
||||
* @param byAssessmentrecordchild 幼儿评估记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByAssessmentrecordchild(ByAssessmentrecordchild byAssessmentrecordchild);
|
||||
|
||||
/**
|
||||
* 修改幼儿评估记录
|
||||
*
|
||||
* @param byAssessmentrecordchild 幼儿评估记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByAssessmentrecordchild(ByAssessmentrecordchild byAssessmentrecordchild);
|
||||
|
||||
/**
|
||||
* 批量删除幼儿评估记录
|
||||
*
|
||||
* @param ids 需要删除的幼儿评估记录ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByAssessmentrecordchildByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除幼儿评估记录信息
|
||||
*
|
||||
* @param id 幼儿评估记录ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByAssessmentrecordchildById(Long id);
|
||||
}
|
@ -0,0 +1,89 @@
|
||||
package com.ruoyi.project.benyi.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.project.benyi.mapper.ByAssessmentchildMapper;
|
||||
import com.ruoyi.project.benyi.domain.ByAssessmentchild;
|
||||
import com.ruoyi.project.benyi.service.IByAssessmentchildService;
|
||||
|
||||
/**
|
||||
* 幼儿评估Service业务层处理
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-10-27
|
||||
*/
|
||||
@Service
|
||||
public class ByAssessmentchildServiceImpl implements IByAssessmentchildService {
|
||||
@Autowired
|
||||
private ByAssessmentchildMapper byAssessmentchildMapper;
|
||||
|
||||
/**
|
||||
* 查询幼儿评估
|
||||
*
|
||||
* @param id 幼儿评估ID
|
||||
* @return 幼儿评估
|
||||
*/
|
||||
@Override
|
||||
public ByAssessmentchild selectByAssessmentchildById(Long id) {
|
||||
return byAssessmentchildMapper.selectByAssessmentchildById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询幼儿评估列表
|
||||
*
|
||||
* @param byAssessmentchild 幼儿评估
|
||||
* @return 幼儿评估
|
||||
*/
|
||||
@Override
|
||||
public List<ByAssessmentchild> selectByAssessmentchildList(ByAssessmentchild byAssessmentchild) {
|
||||
return byAssessmentchildMapper.selectByAssessmentchildList(byAssessmentchild);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增幼儿评估
|
||||
*
|
||||
* @param byAssessmentchild 幼儿评估
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertByAssessmentchild(ByAssessmentchild byAssessmentchild) {
|
||||
byAssessmentchild.setCreateTime(DateUtils.getNowDate());
|
||||
return byAssessmentchildMapper.insertByAssessmentchild(byAssessmentchild);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改幼儿评估
|
||||
*
|
||||
* @param byAssessmentchild 幼儿评估
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateByAssessmentchild(ByAssessmentchild byAssessmentchild) {
|
||||
return byAssessmentchildMapper.updateByAssessmentchild(byAssessmentchild);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除幼儿评估
|
||||
*
|
||||
* @param ids 需要删除的幼儿评估ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByAssessmentchildByIds(Long[] ids) {
|
||||
return byAssessmentchildMapper.deleteByAssessmentchildByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除幼儿评估信息
|
||||
*
|
||||
* @param id 幼儿评估ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByAssessmentchildById(Long id) {
|
||||
return byAssessmentchildMapper.deleteByAssessmentchildById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,89 @@
|
||||
package com.ruoyi.project.benyi.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.project.benyi.mapper.ByAssessmentrecordchildMapper;
|
||||
import com.ruoyi.project.benyi.domain.ByAssessmentrecordchild;
|
||||
import com.ruoyi.project.benyi.service.IByAssessmentrecordchildService;
|
||||
|
||||
/**
|
||||
* 幼儿评估记录Service业务层处理
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-10-27
|
||||
*/
|
||||
@Service
|
||||
public class ByAssessmentrecordchildServiceImpl implements IByAssessmentrecordchildService {
|
||||
@Autowired
|
||||
private ByAssessmentrecordchildMapper byAssessmentrecordchildMapper;
|
||||
|
||||
/**
|
||||
* 查询幼儿评估记录
|
||||
*
|
||||
* @param id 幼儿评估记录ID
|
||||
* @return 幼儿评估记录
|
||||
*/
|
||||
@Override
|
||||
public ByAssessmentrecordchild selectByAssessmentrecordchildById(Long id) {
|
||||
return byAssessmentrecordchildMapper.selectByAssessmentrecordchildById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询幼儿评估记录列表
|
||||
*
|
||||
* @param byAssessmentrecordchild 幼儿评估记录
|
||||
* @return 幼儿评估记录
|
||||
*/
|
||||
@Override
|
||||
public List<ByAssessmentrecordchild> selectByAssessmentrecordchildList(ByAssessmentrecordchild byAssessmentrecordchild) {
|
||||
return byAssessmentrecordchildMapper.selectByAssessmentrecordchildList(byAssessmentrecordchild);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增幼儿评估记录
|
||||
*
|
||||
* @param byAssessmentrecordchild 幼儿评估记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertByAssessmentrecordchild(ByAssessmentrecordchild byAssessmentrecordchild) {
|
||||
byAssessmentrecordchild.setCreateTime(DateUtils.getNowDate());
|
||||
return byAssessmentrecordchildMapper.insertByAssessmentrecordchild(byAssessmentrecordchild);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改幼儿评估记录
|
||||
*
|
||||
* @param byAssessmentrecordchild 幼儿评估记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateByAssessmentrecordchild(ByAssessmentrecordchild byAssessmentrecordchild) {
|
||||
return byAssessmentrecordchildMapper.updateByAssessmentrecordchild(byAssessmentrecordchild);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除幼儿评估记录
|
||||
*
|
||||
* @param ids 需要删除的幼儿评估记录ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByAssessmentrecordchildByIds(Long[] ids) {
|
||||
return byAssessmentrecordchildMapper.deleteByAssessmentrecordchildByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除幼儿评估记录信息
|
||||
*
|
||||
* @param id 幼儿评估记录ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByAssessmentrecordchildById(Long id) {
|
||||
return byAssessmentrecordchildMapper.deleteByAssessmentrecordchildById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,81 @@
|
||||
<?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.ByAssessmentchildMapper">
|
||||
|
||||
<resultMap type="ByAssessmentchild" id="ByAssessmentchildResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="childid" column="childid"/>
|
||||
<result property="contentid" column="contentid"/>
|
||||
<result property="type" column="type"/>
|
||||
<result property="xn" column="xn"/>
|
||||
<result property="userid" column="userid"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectByAssessmentchildVo">
|
||||
select id, childid, contentid, type, xn, userid, create_time from by_assessmentchild
|
||||
</sql>
|
||||
|
||||
<select id="selectByAssessmentchildList" parameterType="ByAssessmentchild" resultMap="ByAssessmentchildResult">
|
||||
<include refid="selectByAssessmentchildVo"/>
|
||||
<where>
|
||||
<if test="childid != null ">and childid = #{childid}</if>
|
||||
<if test="contentid != null ">and contentid = #{contentid}</if>
|
||||
<if test="type != null and type != ''">and type = #{type}</if>
|
||||
<if test="xn != null and xn != ''">and xn = #{xn}</if>
|
||||
<if test="userid != null ">and userid = #{userid}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectByAssessmentchildById" parameterType="Long" resultMap="ByAssessmentchildResult">
|
||||
<include refid="selectByAssessmentchildVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertByAssessmentchild" parameterType="ByAssessmentchild" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into by_assessmentchild
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="childid != null ">childid,</if>
|
||||
<if test="contentid != null ">contentid,</if>
|
||||
<if test="type != null and type != ''">type,</if>
|
||||
<if test="xn != null and xn != ''">xn,</if>
|
||||
<if test="userid != null ">userid,</if>
|
||||
<if test="createTime != null ">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="childid != null ">#{childid},</if>
|
||||
<if test="contentid != null ">#{contentid},</if>
|
||||
<if test="type != null and type != ''">#{type},</if>
|
||||
<if test="xn != null and xn != ''">#{xn},</if>
|
||||
<if test="userid != null ">#{userid},</if>
|
||||
<if test="createTime != null ">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateByAssessmentchild" parameterType="ByAssessmentchild">
|
||||
update by_assessmentchild
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="childid != null ">childid = #{childid},</if>
|
||||
<if test="contentid != null ">contentid = #{contentid},</if>
|
||||
<if test="type != null and type != ''">type = #{type},</if>
|
||||
<if test="xn != null and xn != ''">xn = #{xn},</if>
|
||||
<if test="userid != null ">userid = #{userid},</if>
|
||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteByAssessmentchildById" parameterType="Long">
|
||||
delete from by_assessmentchild where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByAssessmentchildByIds" parameterType="String">
|
||||
delete from by_assessmentchild where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,83 @@
|
||||
<?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.ByAssessmentrecordchildMapper">
|
||||
|
||||
<resultMap type="ByAssessmentrecordchild" id="ByAssessmentrecordchildResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="childid" column="childid"/>
|
||||
<result property="xn" column="xn"/>
|
||||
<result property="state" column="state"/>
|
||||
<result property="scope" column="scope"/>
|
||||
<result property="userid" column="userid"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectByAssessmentrecordchildVo">
|
||||
select id, childid, xn, state, scope, userid, create_time from by_assessmentrecordchild
|
||||
</sql>
|
||||
|
||||
<select id="selectByAssessmentrecordchildList" parameterType="ByAssessmentrecordchild"
|
||||
resultMap="ByAssessmentrecordchildResult">
|
||||
<include refid="selectByAssessmentrecordchildVo"/>
|
||||
<where>
|
||||
<if test="childid != null ">and childid = #{childid}</if>
|
||||
<if test="xn != null and xn != ''">and xn = #{xn}</if>
|
||||
<if test="state != null and state != ''">and state = #{state}</if>
|
||||
<if test="scope != null and scope != ''">and scope = #{scope}</if>
|
||||
<if test="userid != null ">and userid = #{userid}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectByAssessmentrecordchildById" parameterType="Long" resultMap="ByAssessmentrecordchildResult">
|
||||
<include refid="selectByAssessmentrecordchildVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertByAssessmentrecordchild" parameterType="ByAssessmentrecordchild" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into by_assessmentrecordchild
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="childid != null ">childid,</if>
|
||||
<if test="xn != null and xn != ''">xn,</if>
|
||||
<if test="state != null and state != ''">state,</if>
|
||||
<if test="scope != null and scope != ''">scope,</if>
|
||||
<if test="userid != null ">userid,</if>
|
||||
<if test="createTime != null ">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="childid != null ">#{childid},</if>
|
||||
<if test="xn != null and xn != ''">#{xn},</if>
|
||||
<if test="state != null and state != ''">#{state},</if>
|
||||
<if test="scope != null and scope != ''">#{scope},</if>
|
||||
<if test="userid != null ">#{userid},</if>
|
||||
<if test="createTime != null ">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateByAssessmentrecordchild" parameterType="ByAssessmentrecordchild">
|
||||
update by_assessmentrecordchild
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="childid != null ">childid = #{childid},</if>
|
||||
<if test="xn != null and xn != ''">xn = #{xn},</if>
|
||||
<if test="state != null and state != ''">state = #{state},</if>
|
||||
<if test="scope != null and scope != ''">scope = #{scope},</if>
|
||||
<if test="userid != null ">userid = #{userid},</if>
|
||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteByAssessmentrecordchildById" parameterType="Long">
|
||||
delete from by_assessmentrecordchild where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByAssessmentrecordchildByIds" parameterType="String">
|
||||
delete from by_assessmentrecordchild where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
Reference in New Issue
Block a user