添加儿童体检表

This commit is contained in:
sk1551
2020-08-10 18:35:13 +08:00
parent 3d552ff313
commit ef1603dcea
8 changed files with 1376 additions and 0 deletions

View File

@ -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.ByChildHealthCheck;
import com.ruoyi.project.benyi.service.IByChildHealthCheckService;
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-07
*/
@RestController
@RequestMapping("/benyi/healthcheck")
public class ByChildHealthCheckController extends BaseController
{
@Autowired
private IByChildHealthCheckService byChildHealthCheckService;
/**
* 查询儿童常规体检记录列表
*/
@PreAuthorize("@ss.hasPermi('benyi:healthcheck:list')")
@GetMapping("/list")
public TableDataInfo list(ByChildHealthCheck byChildHealthCheck)
{
startPage();
List<ByChildHealthCheck> list = byChildHealthCheckService.selectByChildHealthCheckList(byChildHealthCheck);
return getDataTable(list);
}
/**
* 导出儿童常规体检记录列表
*/
@PreAuthorize("@ss.hasPermi('benyi:healthcheck:export')")
@Log(title = "儿童常规体检记录", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(ByChildHealthCheck byChildHealthCheck)
{
List<ByChildHealthCheck> list = byChildHealthCheckService.selectByChildHealthCheckList(byChildHealthCheck);
ExcelUtil<ByChildHealthCheck> util = new ExcelUtil<ByChildHealthCheck>(ByChildHealthCheck.class);
return util.exportExcel(list, "healthcheck");
}
/**
* 获取儿童常规体检记录详细信息
*/
@PreAuthorize("@ss.hasPermi('benyi:healthcheck:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(byChildHealthCheckService.selectByChildHealthCheckById(id));
}
/**
* 新增儿童常规体检记录
*/
@PreAuthorize("@ss.hasPermi('benyi:healthcheck:add')")
@Log(title = "儿童常规体检记录", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody ByChildHealthCheck byChildHealthCheck)
{
return toAjax(byChildHealthCheckService.insertByChildHealthCheck(byChildHealthCheck));
}
/**
* 修改儿童常规体检记录
*/
@PreAuthorize("@ss.hasPermi('benyi:healthcheck:edit')")
@Log(title = "儿童常规体检记录", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody ByChildHealthCheck byChildHealthCheck)
{
return toAjax(byChildHealthCheckService.updateByChildHealthCheck(byChildHealthCheck));
}
/**
* 删除儿童常规体检记录
*/
@PreAuthorize("@ss.hasPermi('benyi:healthcheck:remove')")
@Log(title = "儿童常规体检记录", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(byChildHealthCheckService.deleteByChildHealthCheckByIds(ids));
}
}

View File

@ -0,0 +1,293 @@
package com.ruoyi.project.benyi.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
/**
* 儿童常规体检记录对象 by_child_health_check
*
* @author tsbz
* @date 2020-08-07
*/
public class ByChildHealthCheck extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 体检表编号
*/
private Long id;
/**
* 幼儿ID
*/
@Excel(name = "幼儿ID")
private Long childId;
/**
* 班级信息
*/
@Excel(name = "班级信息")
private String classInfo;
/**
* 学校名称
*/
@Excel(name = "学校名称")
private String schoolName;
/**
* 检查日期
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "检查日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date checkTime;
/**
* 保健师
*/
@Excel(name = "保健师")
private String doctorName;
/**
* 左眼视力
*/
@Excel(name = "左眼视力")
private String eyesVisionLeft;
/**
* 右眼视力
*/
@Excel(name = "右眼视力")
private String eyesVisionRight;
/**
* 视力评价
*/
@Excel(name = "视力评价")
private String visionAssessment;
/**
* 是否龋齿
*/
@Excel(name = "是否龋齿")
private String decayedTooth;
/**
* 体重
*/
@Excel(name = "体重")
private Integer weight;
/**
* 体重评价
*/
@Excel(name = "体重评价")
private String weightAssessment;
/**
* 身高
*/
@Excel(name = "身高")
private Double height;
/**
* 身高评价
*/
@Excel(name = "身高评价")
private String heightAssessment;
/**
* 总评价
*/
@Excel(name = "总评价")
private String totalAssessment;
/**
* 创建时间
*/
@Excel(name = "创建时间")
private Date createtime;
/**
* 创建人
*/
@Excel(name = "创建人")
private ByChild byChild;
private Long createuser;
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 setClassInfo(String classInfo) {
this.classInfo = classInfo;
}
public String getClassInfo() {
return classInfo;
}
public void setSchoolName(String schoolName) {
this.schoolName = schoolName;
}
public String getSchoolName() {
return schoolName;
}
public void setCheckTime(Date checkTime) {
this.checkTime = checkTime;
}
public Date getCheckTime() {
return checkTime;
}
public void setDoctorName(String doctorName) {
this.doctorName = doctorName;
}
public String getDoctorName() {
return doctorName;
}
public void setEyesVisionLeft(String eyesVisionLeft) {
this.eyesVisionLeft = eyesVisionLeft;
}
public String getEyesVisionLeft() {
return eyesVisionLeft;
}
public void setEyesVisionRight(String eyesVisionRight) {
this.eyesVisionRight = eyesVisionRight;
}
public String getEyesVisionRight() {
return eyesVisionRight;
}
public void setVisionAssessment(String visionAssessment) {
this.visionAssessment = visionAssessment;
}
public String getVisionAssessment() {
return visionAssessment;
}
public void setDecayedTooth(String decayedTooth) {
this.decayedTooth = decayedTooth;
}
public String getDecayedTooth() {
return decayedTooth;
}
public void setWeight(Integer weight) {
this.weight = weight;
}
public Integer getWeight() {
return weight;
}
public void setWeightAssessment(String weightAssessment) {
this.weightAssessment = weightAssessment;
}
public String getWeightAssessment() {
return weightAssessment;
}
public void setHeight(Double height) {
this.height = height;
}
public Double getHeight() {
return height;
}
public void setHeightAssessment(String heightAssessment) {
this.heightAssessment = heightAssessment;
}
public String getHeightAssessment() {
return heightAssessment;
}
public void setTotalAssessment(String totalAssessment) {
this.totalAssessment = totalAssessment;
}
public String getTotalAssessment() {
return totalAssessment;
}
public void setCreateuser(Long createuser) {
this.createuser = createuser;
}
public Long getCreateuser() {
return createuser;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("childId", getChildId())
.append("classInfo", getClassInfo())
.append("schoolName", getSchoolName())
.append("checkTime", getCheckTime())
.append("doctorName", getDoctorName())
.append("eyesVisionLeft", getEyesVisionLeft())
.append("eyesVisionRight", getEyesVisionRight())
.append("visionAssessment", getVisionAssessment())
.append("decayedTooth", getDecayedTooth())
.append("weight", getWeight())
.append("weightAssessment", getWeightAssessment())
.append("height", getHeight())
.append("heightAssessment", getHeightAssessment())
.append("totalAssessment", getTotalAssessment())
.append("createtime", getCreatetime())
.append("createuser", getCreateuser())
.append("byChild", getByChild())
.toString();
}
public Date getCreatetime() {
return createtime;
}
public void setCreatetime(Date createtime) {
this.createtime = createtime;
}
public ByChild getByChild() {
return byChild;
}
public void setByChild(ByChild byChild) {
this.byChild = byChild;
}
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.project.benyi.mapper;
import java.util.List;
import com.ruoyi.project.benyi.domain.ByChildHealthCheck;
/**
* 儿童常规体检记录Mapper接口
*
* @author tsbz
* @date 2020-08-07
*/
public interface ByChildHealthCheckMapper
{
/**
* 查询儿童常规体检记录
*
* @param id 儿童常规体检记录ID
* @return 儿童常规体检记录
*/
public ByChildHealthCheck selectByChildHealthCheckById(Long id);
/**
* 查询儿童常规体检记录列表
*
* @param byChildHealthCheck 儿童常规体检记录
* @return 儿童常规体检记录集合
*/
public List<ByChildHealthCheck> selectByChildHealthCheckList(ByChildHealthCheck byChildHealthCheck);
/**
* 新增儿童常规体检记录
*
* @param byChildHealthCheck 儿童常规体检记录
* @return 结果
*/
public int insertByChildHealthCheck(ByChildHealthCheck byChildHealthCheck);
/**
* 修改儿童常规体检记录
*
* @param byChildHealthCheck 儿童常规体检记录
* @return 结果
*/
public int updateByChildHealthCheck(ByChildHealthCheck byChildHealthCheck);
/**
* 删除儿童常规体检记录
*
* @param id 儿童常规体检记录ID
* @return 结果
*/
public int deleteByChildHealthCheckById(Long id);
/**
* 批量删除儿童常规体检记录
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteByChildHealthCheckByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.project.benyi.service;
import java.util.List;
import com.ruoyi.project.benyi.domain.ByChildHealthCheck;
/**
* 儿童常规体检记录Service接口
*
* @author tsbz
* @date 2020-08-07
*/
public interface IByChildHealthCheckService
{
/**
* 查询儿童常规体检记录
*
* @param id 儿童常规体检记录ID
* @return 儿童常规体检记录
*/
public ByChildHealthCheck selectByChildHealthCheckById(Long id);
/**
* 查询儿童常规体检记录列表
*
* @param byChildHealthCheck 儿童常规体检记录
* @return 儿童常规体检记录集合
*/
public List<ByChildHealthCheck> selectByChildHealthCheckList(ByChildHealthCheck byChildHealthCheck);
/**
* 新增儿童常规体检记录
*
* @param byChildHealthCheck 儿童常规体检记录
* @return 结果
*/
public int insertByChildHealthCheck(ByChildHealthCheck byChildHealthCheck);
/**
* 修改儿童常规体检记录
*
* @param byChildHealthCheck 儿童常规体检记录
* @return 结果
*/
public int updateByChildHealthCheck(ByChildHealthCheck byChildHealthCheck);
/**
* 批量删除儿童常规体检记录
*
* @param ids 需要删除的儿童常规体检记录ID
* @return 结果
*/
public int deleteByChildHealthCheckByIds(Long[] ids);
/**
* 删除儿童常规体检记录信息
*
* @param id 儿童常规体检记录ID
* @return 结果
*/
public int deleteByChildHealthCheckById(Long id);
}

View File

@ -0,0 +1,93 @@
package com.ruoyi.project.benyi.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.benyi.mapper.ByChildHealthCheckMapper;
import com.ruoyi.project.benyi.domain.ByChildHealthCheck;
import com.ruoyi.project.benyi.service.IByChildHealthCheckService;
/**
* 儿童常规体检记录Service业务层处理
*
* @author tsbz
* @date 2020-08-07
*/
@Service
public class ByChildHealthCheckServiceImpl implements IByChildHealthCheckService
{
@Autowired
private ByChildHealthCheckMapper byChildHealthCheckMapper;
/**
* 查询儿童常规体检记录
*
* @param id 儿童常规体检记录ID
* @return 儿童常规体检记录
*/
@Override
public ByChildHealthCheck selectByChildHealthCheckById(Long id)
{
return byChildHealthCheckMapper.selectByChildHealthCheckById(id);
}
/**
* 查询儿童常规体检记录列表
*
* @param byChildHealthCheck 儿童常规体检记录
* @return 儿童常规体检记录
*/
@Override
public List<ByChildHealthCheck> selectByChildHealthCheckList(ByChildHealthCheck byChildHealthCheck)
{
return byChildHealthCheckMapper.selectByChildHealthCheckList(byChildHealthCheck);
}
/**
* 新增儿童常规体检记录
*
* @param byChildHealthCheck 儿童常规体检记录
* @return 结果
*/
@Override
public int insertByChildHealthCheck(ByChildHealthCheck byChildHealthCheck)
{
return byChildHealthCheckMapper.insertByChildHealthCheck(byChildHealthCheck);
}
/**
* 修改儿童常规体检记录
*
* @param byChildHealthCheck 儿童常规体检记录
* @return 结果
*/
@Override
public int updateByChildHealthCheck(ByChildHealthCheck byChildHealthCheck)
{
return byChildHealthCheckMapper.updateByChildHealthCheck(byChildHealthCheck);
}
/**
* 批量删除儿童常规体检记录
*
* @param ids 需要删除的儿童常规体检记录ID
* @return 结果
*/
@Override
public int deleteByChildHealthCheckByIds(Long[] ids)
{
return byChildHealthCheckMapper.deleteByChildHealthCheckByIds(ids);
}
/**
* 删除儿童常规体检记录信息
*
* @param id 儿童常规体检记录ID
* @return 结果
*/
@Override
public int deleteByChildHealthCheckById(Long id)
{
return byChildHealthCheckMapper.deleteByChildHealthCheckById(id);
}
}

View File

@ -0,0 +1,192 @@
<?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.ByChildHealthCheckMapper">
<resultMap type="ByChildHealthCheck" id="ByChildHealthCheckResult">
<result property="id" column="id"/>
<result property="childId" column="child_id"/>
<result property="classInfo" column="class_info"/>
<result property="schoolName" column="school_name"/>
<result property="checkTime" column="check_time"/>
<result property="doctorName" column="doctor_name"/>
<result property="eyesVisionLeft" column="eyes_vision_left"/>
<result property="eyesVisionRight" column="eyes_vision_right"/>
<result property="visionAssessment" column="vision_assessment"/>
<result property="decayedTooth" column="decayed_tooth"/>
<result property="weight" column="weight"/>
<result property="weightAssessment" column="weight_assessment"/>
<result property="height" column="height"/>
<result property="heightAssessment" column="height_assessment"/>
<result property="totalAssessment" column="total_assessment"/>
<result property="createtime" column="createtime"/>
<result property="createuser" column="createuser"/>
<association property="byChild" column="id" javaType="ByChild" resultMap="ByChildResult" />
</resultMap>
<resultMap type="ByChild" id="ByChildResult">
<result property="id" column="id"/>
<result property="schoolid" column="schoolid"/>
<result property="classid" column="classid"/>
<result property="name" column="name"/>
<result property="enName" column="en_name"/>
<result property="infantName" column="infant_name"/>
<result property="phone" column="phone"/>
<result property="xb" column="xb"/>
<result property="mz" column="mz"/>
<result property="zjhm" column="zjhm"/>
<result property="csrq" column="csrq"/>
<result property="birthProvince" column="birth_province"/>
<result property="birthProvincename" column="birth_provincename"/>
<result property="birthCity" column="birth_city"/>
<result property="birthCityname" column="birth_cityname"/>
<result property="birthArea" column="birth_area"/>
<result property="birthAreaname" column="birth_areaname"/>
<result property="registeredProvince" column="registered_province"/>
<result property="registeredProvincename" column="registered_provincename"/>
<result property="registeredCity" column="registered_city"/>
<result property="registeredCityname" column="registered_cityname"/>
<result property="registeredArea" column="registered_area"/>
<result property="registeredAreaname" column="registered_areaname"/>
<result property="addrProvince" column="addr_province"/>
<result property="addrProvincename" column="addr_provincename"/>
<result property="addrCity" column="addr_city"/>
<result property="addrCityname" column="addr_cityname"/>
<result property="addrArea" column="addr_area"/>
<result property="addrAreaname" column="addr_areaname"/>
<result property="addrDetail" column="addr_detail"/>
<result property="everSchool" column="ever_school"/>
<result property="learnEnglish" column="learn_english"/>
<result property="source" column="source"/>
<result property="status" column="status"/>
<result property="enterDate" column="enter_date"/>
<result property="outDate" column="out_date"/>
<result property="firstLanguage" column="first_language"/>
<result property="seconderLanguage" column="seconder_language"/>
<result property="otherLanguage" column="other_language"/>
<result property="createuserid" column="createuserid"/>
<result property="createTime" column="create_time"/>
</resultMap>
<sql id="selectByChildHealthCheckVo">
select h.id, h.child_id, h.class_info, h.school_name, h.check_time, h.doctor_name, h.eyes_vision_left, h.eyes_vision_right, h.vision_assessment, h.decayed_tooth, h.weight, h.weight_assessment, h.height, h.height_assessment, h.total_assessment, h.createtime, h.createuser,
c.id, c.schoolid, c.classid, c.name
from by_child_health_check h
left join by_child c on h.child_id = c.id
</sql>
<select id="selectByChildHealthCheckList" parameterType="ByChildHealthCheck" resultMap="ByChildHealthCheckResult">
<include refid="selectByChildHealthCheckVo"/>
<where>
<if test="childId != null ">and child_id = #{childId}</if>
<if test="classInfo != null and classInfo != ''">and class_info = #{classInfo}</if>
<if test="schoolName != null and schoolName != ''">and school_name like concat('%', #{schoolName}, '%')
</if>
<if test="checkTime != null ">and check_time = #{checkTime}</if>
<if test="doctorName != null and doctorName != ''">and doctor_name like concat('%', #{doctorName}, '%')
</if>
<if test="eyesVisionLeft != null and eyesVisionLeft != ''">and eyes_vision_left = #{eyesVisionLeft}</if>
<if test="eyesVisionRight != null and eyesVisionRight != ''">and eyes_vision_right = #{eyesVisionRight}
</if>
<if test="visionAssessment != null and visionAssessment != ''">and vision_assessment =
#{visionAssessment}
</if>
<if test="decayedTooth != null and decayedTooth != ''">and decayed_tooth = #{decayedTooth}</if>
<if test="weight != null ">and weight = #{weight}</if>
<if test="weightAssessment != null and weightAssessment != ''">and weight_assessment =
#{weightAssessment}
</if>
<if test="height != null ">and height = #{height}</if>
<if test="heightAssessment != null and heightAssessment != ''">and height_assessment =
#{heightAssessment}
</if>
<if test="totalAssessment != null and totalAssessment != ''">and total_assessment = #{totalAssessment}</if>
<if test="createtime != null ">and createtime = #{createtime}</if>
<if test="createuser != null ">and createuser = #{createuser}</if>
</where>
</select>
<select id="selectByChildHealthCheckById" parameterType="Long" resultMap="ByChildHealthCheckResult">
<include refid="selectByChildHealthCheckVo"/>
where id = #{id}
</select>
<insert id="insertByChildHealthCheck" parameterType="ByChildHealthCheck" useGeneratedKeys="true" keyProperty="id">
insert into by_child_health_check
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="childId != null ">child_id,</if>
<if test="classInfo != null and classInfo != ''">class_info,</if>
<if test="schoolName != null and schoolName != ''">school_name,</if>
<if test="checkTime != null ">check_time,</if>
<if test="doctorName != null and doctorName != ''">doctor_name,</if>
<if test="eyesVisionLeft != null and eyesVisionLeft != ''">eyes_vision_left,</if>
<if test="eyesVisionRight != null and eyesVisionRight != ''">eyes_vision_right,</if>
<if test="visionAssessment != null and visionAssessment != ''">vision_assessment,</if>
<if test="decayedTooth != null and decayedTooth != ''">decayed_tooth,</if>
<if test="weight != null ">weight,</if>
<if test="weightAssessment != null and weightAssessment != ''">weight_assessment,</if>
<if test="height != null ">height,</if>
<if test="heightAssessment != null and heightAssessment != ''">height_assessment,</if>
<if test="totalAssessment != null and totalAssessment != ''">total_assessment,</if>
<if test="createtime != null ">createtime,</if>
<if test="createuser != null ">createuser,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="childId != null ">#{childId},</if>
<if test="classInfo != null and classInfo != ''">#{classInfo},</if>
<if test="schoolName != null and schoolName != ''">#{schoolName},</if>
<if test="checkTime != null ">#{checkTime},</if>
<if test="doctorName != null and doctorName != ''">#{doctorName},</if>
<if test="eyesVisionLeft != null and eyesVisionLeft != ''">#{eyesVisionLeft},</if>
<if test="eyesVisionRight != null and eyesVisionRight != ''">#{eyesVisionRight},</if>
<if test="visionAssessment != null and visionAssessment != ''">#{visionAssessment},</if>
<if test="decayedTooth != null and decayedTooth != ''">#{decayedTooth},</if>
<if test="weight != null ">#{weight},</if>
<if test="weightAssessment != null and weightAssessment != ''">#{weightAssessment},</if>
<if test="height != null ">#{height},</if>
<if test="heightAssessment != null and heightAssessment != ''">#{heightAssessment},</if>
<if test="totalAssessment != null and totalAssessment != ''">#{totalAssessment},</if>
<if test="createtime != null ">#{createtime},</if>
<if test="createuser != null ">#{createuser},</if>
</trim>
</insert>
<update id="updateByChildHealthCheck" parameterType="ByChildHealthCheck">
update by_child_health_check
<trim prefix="SET" suffixOverrides=",">
<if test="childId != null ">child_id = #{childId},</if>
<if test="classInfo != null and classInfo != ''">class_info = #{classInfo},</if>
<if test="schoolName != null and schoolName != ''">school_name = #{schoolName},</if>
<if test="checkTime != null ">check_time = #{checkTime},</if>
<if test="doctorName != null and doctorName != ''">doctor_name = #{doctorName},</if>
<if test="eyesVisionLeft != null and eyesVisionLeft != ''">eyes_vision_left = #{eyesVisionLeft},</if>
<if test="eyesVisionRight != null and eyesVisionRight != ''">eyes_vision_right = #{eyesVisionRight},</if>
<if test="visionAssessment != null and visionAssessment != ''">vision_assessment = #{visionAssessment},
</if>
<if test="decayedTooth != null and decayedTooth != ''">decayed_tooth = #{decayedTooth},</if>
<if test="weight != null ">weight = #{weight},</if>
<if test="weightAssessment != null and weightAssessment != ''">weight_assessment = #{weightAssessment},
</if>
<if test="height != null ">height = #{height},</if>
<if test="heightAssessment != null and heightAssessment != ''">height_assessment = #{heightAssessment},
</if>
<if test="totalAssessment != null and totalAssessment != ''">total_assessment = #{totalAssessment},</if>
<if test="createtime != null ">createtime = #{createtime},</if>
<if test="createuser != null ">createuser = #{createuser},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteByChildHealthCheckById" parameterType="Long">
delete from by_child_health_check where id = #{id}
</delete>
<delete id="deleteByChildHealthCheckByIds" parameterType="String">
delete from by_child_health_check where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>