幼儿评估
This commit is contained in:
parent
522fce1f72
commit
6ad62d8fc5
@ -72,7 +72,12 @@
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<!-- <el-table-column label="编号" align="center" prop="id" /> -->
|
||||
<el-table-column label="标题" align="center" prop="title" />
|
||||
<el-table-column label="内容" align="center" :show-overflow-tooltip="true" prop="content" />
|
||||
<el-table-column
|
||||
label="内容"
|
||||
align="center"
|
||||
:show-overflow-tooltip="true"
|
||||
prop="content"
|
||||
/>
|
||||
<el-table-column
|
||||
label="操作"
|
||||
align="center"
|
||||
@ -114,7 +119,8 @@
|
||||
<el-input v-model="form.title" placeholder="请输入标题" />
|
||||
</el-form-item>
|
||||
<el-form-item label="内容" prop="content">
|
||||
<el-input type="textarea" v-model="form.content" placeholder="请输入内容" />
|
||||
<!-- <el-input type="textarea" v-model="form.content" placeholder="请输入内容" /> -->
|
||||
<Editor v-model="form.content" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
@ -134,8 +140,13 @@ import {
|
||||
updateAssessmentintroduce,
|
||||
} from "@/api/benyi/assessmentintroduce";
|
||||
|
||||
import Editor from "@/components/Editor";
|
||||
|
||||
export default {
|
||||
name: "Assessmentintroduce",
|
||||
components: {
|
||||
Editor,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
@ -165,7 +176,7 @@ export default {
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
title: [{ required: true, message: "名称不能为空", trigger: "blur" }],
|
||||
title: [{ required: true, message: "名称不能为空", trigger: "blur" }],
|
||||
content: [{ required: true, message: "内容不能为空", trigger: "blur" }],
|
||||
},
|
||||
};
|
||||
|
@ -45,6 +45,7 @@ import {
|
||||
getAssessmentcontent,
|
||||
getAssessmentcontentbyparentid,
|
||||
} from "@/api/benyi/assessmentcontent";
|
||||
import { listAssessmentintroduce } from "@/api/benyi/assessmentintroduce";
|
||||
|
||||
export default {
|
||||
name: "Assessmentstudy",
|
||||
@ -55,10 +56,7 @@ export default {
|
||||
//标题
|
||||
title: "儿童学习与发展评估介绍",
|
||||
//目的
|
||||
note:
|
||||
"儿童学习与发展评估对象是幼儿园3-6岁儿童。本一的“儿童学习与发展评估”(以下称“评估”),是完全基于教育部《3-6岁儿童学习与发展指南》所构建。尽管“评估”具备工具性质,但更重要的事实是,它“通过提出3-6岁各年龄儿童学习与发展目标和相应的教育建议,帮助幼儿园教师和家长了解3-6岁幼儿学习与发展的基本规律和特点,建立对幼儿发展的合理期望,实施科学的保育和教育,让幼儿度过快乐而有意义的童年”(《指南》)。3-6岁三个年龄段的“儿童学习与发展评估”包括5大领域,11个分支领域,32个指标,以及若干个评估元素。评估以班级中每个孩子为基本单位。建议在班长和教师之间分配所评估孩子的数量。评估过程以日常生活对孩子的观察为主,随时在线记录和标记满足于各个指标的元素。其最终评估结果,将会在线自动生成“雷达图”。需要注意的是,评估的基本目的,是为了更有效地对每个孩子实施个性化教育。因此,不要把评估结果当成“测验”或“考核”手段或工具,更不要直接将结果拿给家长看,以免造成误读。",
|
||||
// 根据一日流程id查到的名下任务列表
|
||||
dayflowtaskList: [],
|
||||
note: "",
|
||||
// 树状显示类型
|
||||
treeOptions: [],
|
||||
// 树结构
|
||||
@ -80,6 +78,7 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.getTreeselect();
|
||||
this.getNote();
|
||||
},
|
||||
methods: {
|
||||
/** 查询部门下拉树结构 */
|
||||
@ -96,11 +95,21 @@ export default {
|
||||
// 节点单击事件
|
||||
handleNodeClick(data) {
|
||||
console.log("node:" + data.id);
|
||||
this.queryParams.id = data.id;
|
||||
this.title = data.label;
|
||||
this.getTaskList();
|
||||
// console.log(this.dayflowtaskList[date.id])
|
||||
// this.getStandardList();
|
||||
if (data.id == "-1") {
|
||||
this.getNote();
|
||||
} else {
|
||||
this.queryParams.id = data.id;
|
||||
|
||||
this.getTaskList();
|
||||
}
|
||||
},
|
||||
/**查询评估介绍 */
|
||||
getNote() {
|
||||
listAssessmentintroduce(null).then((response) => {
|
||||
console.log("评估介绍:" + response.rows[0].content);
|
||||
this.note = response.rows[0].content;
|
||||
});
|
||||
},
|
||||
/** 查询一日流程任务列表 */
|
||||
getTaskList() {
|
||||
|
@ -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>
|
Loading…
x
Reference in New Issue
Block a user