feat: 健康管理系统,代码提交。
This commit is contained in:
8
ruoyi-modules/intc-health/src/main/resources/banner.txt
Normal file
8
ruoyi-modules/intc-health/src/main/resources/banner.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
Spring Boot Version: ${spring-boot.version}
|
||||
Spring Application Name: ${spring.application.name}
|
||||
_ _ _ __ _ _ _
|
||||
___ _ __ __ _ _ _ | |_ o O O | | (_) / _` | | |_ | |_
|
||||
(_-< | ' \ / _` | | '_| | _| o | | | | \__, | | ' \ | _|
|
||||
/__/_ |_|_|_| \__,_| _|_|_ _\__| TS__[O] _|_|_ _|_|_ |___/ |_||_| _\__|
|
||||
_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| {======|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|
|
||||
"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'./o--000'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'
|
||||
41
ruoyi-modules/intc-health/src/main/resources/bootstrap.yml
Normal file
41
ruoyi-modules/intc-health/src/main/resources/bootstrap.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
# Tomcat
|
||||
server:
|
||||
max-http-header-size: 4048576
|
||||
port: 9228
|
||||
tomcat:
|
||||
max-http-form-post-size: -1
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
application:
|
||||
# 应用名称
|
||||
name: intc-health
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: dev
|
||||
servlet:
|
||||
multipart:
|
||||
enabled: true
|
||||
max-file-size: -1
|
||||
max-request-size: -1
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
namespace: 6ff354f8-471d-46ef-bd30-b81588a009cd
|
||||
# 服务注册地址
|
||||
server-addr: 101.126.95.100:8858
|
||||
group: dev
|
||||
# ip: 8.140.22.151
|
||||
config:
|
||||
namespace: 6ff354f8-471d-46ef-bd30-b81588a009cd
|
||||
# 配置中心地址
|
||||
server-addr: 101.126.95.100:8858
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
# 用于服务监控可在线查看日志,该配置用于生产环境
|
||||
logging:
|
||||
file:
|
||||
name: logs/${spring.application.name}/info.log
|
||||
74
ruoyi-modules/intc-health/src/main/resources/logback.xml
Normal file
74
ruoyi-modules/intc-health/src/main/resources/logback.xml
Normal file
@@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration scan="true" scanPeriod="60 seconds" debug="false">
|
||||
<!-- 日志存放路径 -->
|
||||
<property name="log.path" value="logs/hny-smart-light" />
|
||||
<!-- 日志输出格式 -->
|
||||
<property name="log.pattern" value="%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
|
||||
|
||||
<!-- 控制台输出 -->
|
||||
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- 系统日志输出 -->
|
||||
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/info.log</file>
|
||||
<!-- 循环政策:基于时间创建日志文件 -->
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<!-- 日志文件名格式 -->
|
||||
<fileNamePattern>${log.path}/info.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||
<!-- 日志最大的历史 60天 -->
|
||||
<maxHistory>60</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||
<!-- 过滤的级别 -->
|
||||
<level>INFO</level>
|
||||
<!-- 匹配时的操作:接收(记录) -->
|
||||
<onMatch>ACCEPT</onMatch>
|
||||
<!-- 不匹配时的操作:拒绝(不记录) -->
|
||||
<onMismatch>DENY</onMismatch>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/error.log</file>
|
||||
<!-- 循环政策:基于时间创建日志文件 -->
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<!-- 日志文件名格式 -->
|
||||
<fileNamePattern>${log.path}/error.%d{yyyy-MM}.log</fileNamePattern>
|
||||
<!-- 日志最大的历史 60天 -->
|
||||
<maxHistory>60</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||
<!-- 过滤的级别 -->
|
||||
<level>ERROR</level>
|
||||
<!-- 匹配时的操作:接收(记录) -->
|
||||
<onMatch>ACCEPT</onMatch>
|
||||
<!-- 不匹配时的操作:拒绝(不记录) -->
|
||||
<onMismatch>DENY</onMismatch>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<!-- 系统模块日志级别控制 -->
|
||||
<logger name="com.ruoyi" level="info" />
|
||||
<!-- Spring日志级别控制 -->
|
||||
<logger name="org.springframework" level="warn" />
|
||||
|
||||
<root level="info">
|
||||
<appender-ref ref="console" />
|
||||
</root>
|
||||
|
||||
<!--系统操作日志-->
|
||||
<root level="info">
|
||||
<appender-ref ref="file_info" />
|
||||
<appender-ref ref="file_error" />
|
||||
</root>
|
||||
</configuration>
|
||||
@@ -0,0 +1,149 @@
|
||||
<?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.health.mapper.HealthDoctorRecordMapper">
|
||||
|
||||
<resultMap type="HealthDoctorRecordVo" id="HealthDoctorRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="hospitalName" column="hospital_name" />
|
||||
<result property="departments" column="departments" />
|
||||
<result property="doctor" column="doctor" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="healthRecordId" column="health_record_id" />
|
||||
<result property="visitingTime" column="visiting_time" />
|
||||
<result property="prescribe" column="prescribe" />
|
||||
<result property="personId" column="person_id" />
|
||||
<result property="personName" column="person_name" />
|
||||
<result property="healthRecordName" column="health_record_name" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHealthDoctorRecordVo">
|
||||
select
|
||||
a.id,
|
||||
a.hospital_name,
|
||||
a.departments,
|
||||
a.doctor,
|
||||
a.create_by,
|
||||
a.create_time,
|
||||
a.update_by,
|
||||
a.update_time,
|
||||
a.del_flag,
|
||||
a.remark,
|
||||
a.health_record_id,
|
||||
a.visiting_time,
|
||||
a.prescribe,
|
||||
a.person_id,
|
||||
hp."name" as person_name ,
|
||||
hr."name" as health_record_name
|
||||
from
|
||||
health_doctor_record a
|
||||
left join health_person hp on
|
||||
hp.id = a.person_id
|
||||
left join health_record hr on
|
||||
hr.id = a.health_record_id
|
||||
</sql>
|
||||
|
||||
<select id="selectHealthDoctorRecordList" parameterType="HealthDoctorRecordDto" resultMap="HealthDoctorRecordResult">
|
||||
<include refid="selectHealthDoctorRecordVo"/>
|
||||
<where>
|
||||
a.del_flag='0'
|
||||
<if test="hospitalName != null and hospitalName != ''"> and a.hospital_name like '%'|| #{hospitalName}||'%'</if>
|
||||
<if test="departments != null and departments != ''"> and a.departments = #{departments}</if>
|
||||
<if test="doctor != null and doctor != ''"> and a.doctor = #{doctor}</if>
|
||||
<if test="healthRecordId != null and healthRecordId != ''"> and a.health_record_id = #{healthRecordId}</if>
|
||||
<if test="visitingTime != null "> and a.visiting_time = #{visitingTime}</if>
|
||||
<if test="personId != null "> and a.person_id = #{personId}</if>
|
||||
</where>
|
||||
<!-- 数据范围过滤 -->
|
||||
${params.dataScope}
|
||||
order by a.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectHealthDoctorRecordById" parameterType="Long" resultMap="HealthDoctorRecordResult">
|
||||
<include refid="selectHealthDoctorRecordVo"/>
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertHealthDoctorRecord" parameterType="HealthDoctorRecord">
|
||||
insert into health_doctor_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="hospitalName != null and hospitalName != ''">hospital_name,</if>
|
||||
<if test="departments != null and departments != ''">departments,</if>
|
||||
<if test="doctor != null and doctor != ''">doctor,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="healthRecordId != null and healthRecordId != ''">health_record_id,</if>
|
||||
<if test="visitingTime != null">visiting_time,</if>
|
||||
<if test="prescribe != null and prescribe != ''">prescribe,</if>
|
||||
<if test="personId != null">person_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="hospitalName != null and hospitalName != ''">#{hospitalName},</if>
|
||||
<if test="departments != null and departments != ''">#{departments},</if>
|
||||
<if test="doctor != null and doctor != ''">#{doctor},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="healthRecordId != null and healthRecordId != ''">#{healthRecordId},</if>
|
||||
<if test="visitingTime != null">#{visitingTime},</if>
|
||||
<if test="prescribe != null and prescribe != ''">#{prescribe},</if>
|
||||
<if test="personId != null">#{personId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateHealthDoctorRecord" parameterType="HealthDoctorRecord">
|
||||
update health_doctor_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="hospitalName != null and hospitalName != ''">hospital_name = #{hospitalName},</if>
|
||||
<if test="departments != null and departments != ''">departments = #{departments},</if>
|
||||
<if test="doctor != null and doctor != ''">doctor = #{doctor},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="healthRecordId != null and healthRecordId != ''">health_record_id = #{healthRecordId},</if>
|
||||
<if test="visitingTime != null">visiting_time = #{visitingTime},</if>
|
||||
<if test="prescribe != null and prescribe != ''">prescribe = #{prescribe},</if>
|
||||
<if test="personId != null">person_id = #{personId},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteHealthDoctorRecordById" parameterType="Long">
|
||||
delete from health_doctor_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteHealthDoctorRecordByIds" parameterType="String">
|
||||
delete from health_doctor_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
<update id="removeHealthDoctorRecordById" parameterType="Long">
|
||||
update health_doctor_record set del_flag='1' where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="removeHealthDoctorRecordByIds" parameterType="String">
|
||||
update health_doctor_record set del_flag='1' where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -0,0 +1,157 @@
|
||||
<?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.health.mapper.HealthMarRecordMapper">
|
||||
|
||||
<resultMap type="HealthMarRecordVo" id="HealthMarRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="type" column="type" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="healthRecordId" column="health_record_id" />
|
||||
<result property="dosingTime" column="dosing_time" />
|
||||
<result property="dosage" column="dosage" />
|
||||
<result property="personId" column="person_id" />
|
||||
<result property="resource" column="resource" />
|
||||
<result property="place" column="place" />
|
||||
<result property="personName" column="person_name" />
|
||||
<result property="healthRecordName" column="health_record_name" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHealthMarRecordVo">
|
||||
select
|
||||
a.id,
|
||||
a.name,
|
||||
a.type,
|
||||
a.create_by,
|
||||
a.create_time,
|
||||
a.update_by,
|
||||
a.update_time,
|
||||
a.del_flag,
|
||||
a.remark,
|
||||
a.health_record_id,
|
||||
a.dosing_time,
|
||||
a.dosage,
|
||||
a.person_id,
|
||||
a.resource,
|
||||
a.place,
|
||||
hp."name" as person_name ,
|
||||
hr."name" as health_record_name
|
||||
from
|
||||
health_mar_record a
|
||||
left join health_person hp on
|
||||
hp.id = a.person_id
|
||||
left join health_record hr on
|
||||
hr.id = a.health_record_id
|
||||
</sql>
|
||||
|
||||
<select id="selectHealthMarRecordList" parameterType="HealthMarRecordDto" resultMap="HealthMarRecordResult">
|
||||
<include refid="selectHealthMarRecordVo"/>
|
||||
<where>
|
||||
a.del_flag='0'
|
||||
<if test="name != null and name != ''"> and a.name like '%'|| #{name}||'%'</if>
|
||||
<if test="type != null and type != ''"> and a.type = #{type}</if>
|
||||
<if test="healthRecordId != null and healthRecordId != ''"> and a.health_record_id = #{healthRecordId}</if>
|
||||
<if test="dosingTime != null "> and a.dosing_time = #{dosingTime}</if>
|
||||
<if test="dosage != null and dosage != ''"> and a.dosage = #{dosage}</if>
|
||||
<if test="personId != null "> and a.person_id = #{personId}</if>
|
||||
<if test="resource != null and resource != ''"> and a.resource = #{resource}</if>
|
||||
<if test="place != null and place != ''"> and a.place = #{place}</if>
|
||||
</where>
|
||||
<!-- 数据范围过滤 -->
|
||||
${params.dataScope}
|
||||
order by a.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectHealthMarRecordById" parameterType="Long" resultMap="HealthMarRecordResult">
|
||||
<include refid="selectHealthMarRecordVo"/>
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertHealthMarRecord" parameterType="HealthMarRecord">
|
||||
insert into health_mar_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="type != null and type != ''">type,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="healthRecordId != null">health_record_id,</if>
|
||||
<if test="dosingTime != null">dosing_time,</if>
|
||||
<if test="dosage != null and dosage != ''">dosage,</if>
|
||||
<if test="personId != null">person_id,</if>
|
||||
<if test="resource != null">resource,</if>
|
||||
<if test="place != null">place,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="type != null and type != ''">#{type},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="healthRecordId != null">#{healthRecordId},</if>
|
||||
<if test="dosingTime != null">#{dosingTime},</if>
|
||||
<if test="dosage != null and dosage != ''">#{dosage},</if>
|
||||
<if test="personId != null">#{personId},</if>
|
||||
<if test="resource != null">#{resource},</if>
|
||||
<if test="place != null">#{place},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateHealthMarRecord" parameterType="HealthMarRecord">
|
||||
update health_mar_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">name = #{name},</if>
|
||||
<if test="type != null and type != ''">type = #{type},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="healthRecordId != null">health_record_id = #{healthRecordId},</if>
|
||||
<if test="dosingTime != null">dosing_time = #{dosingTime},</if>
|
||||
<if test="dosage != null and dosage != ''">dosage = #{dosage},</if>
|
||||
<if test="personId != null">person_id = #{personId},</if>
|
||||
<if test="resource != null">resource = #{resource},</if>
|
||||
<if test="place != null">place = #{place},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteHealthMarRecordById" parameterType="Long">
|
||||
delete from health_mar_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteHealthMarRecordByIds" parameterType="String">
|
||||
delete from health_mar_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
<update id="removeHealthMarRecordById" parameterType="Long">
|
||||
update health_mar_record set del_flag='1' where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="removeHealthMarRecordByIds" parameterType="String">
|
||||
update health_mar_record set del_flag='1' where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -0,0 +1,118 @@
|
||||
<?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.health.mapper.HealthPersonMapper">
|
||||
|
||||
<resultMap type="HealthPersonVo" id="HealthPersonResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="type" column="type" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="birthday" column="birthday" />
|
||||
<result property="nickName" column="nick_name" />
|
||||
<result property="height" column="height" />
|
||||
<result property="weight" column="weight" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHealthPersonVo">
|
||||
select a.id, a.name, a.type, a.create_by, a.create_time, a.update_by, a.update_time, a.del_flag, a.remark, a.birthday, a.nick_name, a.height, a.weight from health_person a
|
||||
</sql>
|
||||
|
||||
<select id="selectHealthPersonList" parameterType="HealthPersonDto" resultMap="HealthPersonResult">
|
||||
<include refid="selectHealthPersonVo"/>
|
||||
<where>
|
||||
a.del_flag='0'
|
||||
<if test="name != null and name != ''"> and a.name like '%'|| #{name}||'%'</if>
|
||||
<if test="type != null and type != ''"> and a.type = #{type}</if>
|
||||
<if test="nickName != null and nickName != ''"> and a.nick_name like '%'|| #{nickName}||'%'</if>
|
||||
</where>
|
||||
<!-- 数据范围过滤 -->
|
||||
${params.dataScope}
|
||||
order by a.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectHealthPersonById" parameterType="Long" resultMap="HealthPersonResult">
|
||||
<include refid="selectHealthPersonVo"/>
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertHealthPerson" parameterType="HealthPerson">
|
||||
insert into health_person
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="type != null and type != ''">type,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="birthday != null">birthday,</if>
|
||||
<if test="nickName != null and nickName != ''">nick_name,</if>
|
||||
<if test="height != null">height,</if>
|
||||
<if test="weight != null">weight,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="type != null and type != ''">#{type},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="birthday != null">#{birthday},</if>
|
||||
<if test="nickName != null and nickName != ''">#{nickName},</if>
|
||||
<if test="height != null">#{height},</if>
|
||||
<if test="weight != null">#{weight},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateHealthPerson" parameterType="HealthPerson">
|
||||
update health_person
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">name = #{name},</if>
|
||||
<if test="type != null and type != ''">type = #{type},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="birthday != null">birthday = #{birthday},</if>
|
||||
<if test="nickName != null and nickName != ''">nick_name = #{nickName},</if>
|
||||
<if test="height != null">height = #{height},</if>
|
||||
<if test="weight != null">weight = #{weight},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteHealthPersonById" parameterType="Long">
|
||||
delete from health_person where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteHealthPersonByIds" parameterType="String">
|
||||
delete from health_person where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
<update id="removeHealthPersonById" parameterType="Long">
|
||||
update health_person set del_flag='1' where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="removeHealthPersonByIds" parameterType="String">
|
||||
update health_person set del_flag='1' where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -0,0 +1,159 @@
|
||||
<?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.health.mapper.HealthRecordMapper">
|
||||
|
||||
<resultMap type="HealthRecordVo" id="HealthRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="type" column="type" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="occurTime" column="occur_time" />
|
||||
<result property="rehabilitationTime" column="rehabilitation_time" />
|
||||
<result property="initialSymptoms" column="initial_symptoms" />
|
||||
<result property="mediumTermSymptoms" column="medium_term_symptoms" />
|
||||
<result property="laterStageSymptoms" column="later_stage_symptoms" />
|
||||
<result property="etiology" column="etiology" />
|
||||
<result property="personId" column="person_id" />
|
||||
<result property="state" column="state" />
|
||||
<result property="personName" column="person_name" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHealthRecordVo">
|
||||
select
|
||||
a.id,
|
||||
a.name,
|
||||
a.type,
|
||||
a.create_by,
|
||||
a.create_time,
|
||||
a.update_by,
|
||||
a.update_time,
|
||||
a.del_flag,
|
||||
a.remark,
|
||||
a.occur_time,
|
||||
a.rehabilitation_time,
|
||||
a.initial_symptoms,
|
||||
a.medium_term_symptoms,
|
||||
a.later_stage_symptoms,
|
||||
a.etiology,
|
||||
a.person_id,
|
||||
a.state,
|
||||
hp."name" as person_name
|
||||
from
|
||||
health_record a
|
||||
left join health_person hp on
|
||||
hp.id = a.person_id
|
||||
</sql>
|
||||
|
||||
<select id="selectHealthRecordList" parameterType="HealthRecordDto" resultMap="HealthRecordResult">
|
||||
<include refid="selectHealthRecordVo"/>
|
||||
<where>
|
||||
a.del_flag='0'
|
||||
<if test="name != null and name != ''"> and a.name like '%'|| #{name}||'%'</if>
|
||||
<if test="type != null and type != ''"> and a.type = #{type}</if>
|
||||
<if test="state != null and state != ''"> and a.state = #{state}</if>
|
||||
<if test="etiology != null and etiology != ''"> and a.etiology = #{etiology}</if>
|
||||
<if test="personId != null "> and a.person_id = #{personId}</if>
|
||||
</where>
|
||||
<!-- 数据范围过滤 -->
|
||||
${params.dataScope}
|
||||
order by a.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectHealthRecordById" parameterType="Long" resultMap="HealthRecordResult">
|
||||
<include refid="selectHealthRecordVo"/>
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertHealthRecord" parameterType="HealthRecord">
|
||||
insert into health_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="type != null and type != ''">type,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="occurTime != null">occur_time,</if>
|
||||
<if test="rehabilitationTime != null">rehabilitation_time,</if>
|
||||
<if test="initialSymptoms != null and initialSymptoms != ''">initial_symptoms,</if>
|
||||
<if test="mediumTermSymptoms != null">medium_term_symptoms,</if>
|
||||
<if test="laterStageSymptoms != null">later_stage_symptoms,</if>
|
||||
<if test="etiology != null and etiology != ''">etiology,</if>
|
||||
<if test="personId != null">person_id,</if>
|
||||
<if test="state != null">state,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="type != null and type != ''">#{type},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="occurTime != null">#{occurTime},</if>
|
||||
<if test="rehabilitationTime != null">#{rehabilitationTime},</if>
|
||||
<if test="initialSymptoms != null and initialSymptoms != ''">#{initialSymptoms},</if>
|
||||
<if test="mediumTermSymptoms != null">#{mediumTermSymptoms},</if>
|
||||
<if test="laterStageSymptoms != null">#{laterStageSymptoms},</if>
|
||||
<if test="etiology != null and etiology != ''">#{etiology},</if>
|
||||
<if test="personId != null">#{personId},</if>
|
||||
<if test="state != null">#{state},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateHealthRecord" parameterType="HealthRecord">
|
||||
update health_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">name = #{name},</if>
|
||||
<if test="type != null and type != ''">type = #{type},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="occurTime != null">occur_time = #{occurTime},</if>
|
||||
<if test="rehabilitationTime != null">rehabilitation_time = #{rehabilitationTime},</if>
|
||||
<if test="initialSymptoms != null and initialSymptoms != ''">initial_symptoms = #{initialSymptoms},</if>
|
||||
<if test="mediumTermSymptoms != null">medium_term_symptoms = #{mediumTermSymptoms},</if>
|
||||
<if test="laterStageSymptoms != null">later_stage_symptoms = #{laterStageSymptoms},</if>
|
||||
<if test="etiology != null and etiology != ''">etiology = #{etiology},</if>
|
||||
<if test="personId != null">person_id = #{personId},</if>
|
||||
<if test="state != null">state = #{state},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteHealthRecordById" parameterType="Long">
|
||||
delete from health_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteHealthRecordByIds" parameterType="String">
|
||||
delete from health_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
<update id="removeHealthRecordById" parameterType="Long">
|
||||
update health_record set del_flag='1' where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="removeHealthRecordByIds" parameterType="String">
|
||||
update health_record set del_flag='1' where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -0,0 +1,132 @@
|
||||
<?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.health.mapper.HealthTemperatureRecordMapper">
|
||||
|
||||
<resultMap type="HealthTemperatureRecordVo" id="HealthTemperatureRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="healthRecordId" column="health_record_id" />
|
||||
<result property="measureTime" column="measure_time" />
|
||||
<result property="temperature" column="temperature" />
|
||||
<result property="personId" column="person_id" />
|
||||
<result property="personName" column="person_name" />
|
||||
<result property="healthRecordName" column="health_record_name" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHealthTemperatureRecordVo">
|
||||
select
|
||||
a.id,
|
||||
a.create_by,
|
||||
a.create_time,
|
||||
a.update_by,
|
||||
a.update_time,
|
||||
a.del_flag,
|
||||
a.remark,
|
||||
a.health_record_id,
|
||||
a.measure_time,
|
||||
a.temperature,
|
||||
a.person_id,
|
||||
hp."name" as person_name ,
|
||||
hr."name" as health_record_name
|
||||
from
|
||||
health_temperature_record a
|
||||
left join health_person hp on
|
||||
hp.id = a.person_id
|
||||
left join health_record hr on
|
||||
hr.id = a.health_record_id
|
||||
</sql>
|
||||
|
||||
<select id="selectHealthTemperatureRecordList" parameterType="HealthTemperatureRecordDto" resultMap="HealthTemperatureRecordResult">
|
||||
<include refid="selectHealthTemperatureRecordVo"/>
|
||||
<where>
|
||||
a.del_flag='0'
|
||||
<if test="healthRecordId != null "> and a.health_record_id = #{healthRecordId}</if>
|
||||
<if test="measureTime != null "> and a.measure_time = #{measureTime}</if>
|
||||
<if test="temperature != null "> and a.temperature = #{temperature}</if>
|
||||
<if test="personId != null "> and a.person_id = #{personId}</if>
|
||||
</where>
|
||||
<!-- 数据范围过滤 -->
|
||||
${params.dataScope}
|
||||
order by a.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectHealthTemperatureRecordById" parameterType="Long" resultMap="HealthTemperatureRecordResult">
|
||||
<include refid="selectHealthTemperatureRecordVo"/>
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertHealthTemperatureRecord" parameterType="HealthTemperatureRecord">
|
||||
insert into health_temperature_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="healthRecordId != null">health_record_id,</if>
|
||||
<if test="measureTime != null">measure_time,</if>
|
||||
<if test="temperature != null">temperature,</if>
|
||||
<if test="personId != null">person_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="healthRecordId != null">#{healthRecordId},</if>
|
||||
<if test="measureTime != null">#{measureTime},</if>
|
||||
<if test="temperature != null">#{temperature},</if>
|
||||
<if test="personId != null">#{personId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateHealthTemperatureRecord" parameterType="HealthTemperatureRecord">
|
||||
update health_temperature_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="healthRecordId != null">health_record_id = #{healthRecordId},</if>
|
||||
<if test="measureTime != null">measure_time = #{measureTime},</if>
|
||||
<if test="temperature != null">temperature = #{temperature},</if>
|
||||
<if test="personId != null">person_id = #{personId},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteHealthTemperatureRecordById" parameterType="Long">
|
||||
delete from health_temperature_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteHealthTemperatureRecordByIds" parameterType="String">
|
||||
delete from health_temperature_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
<update id="removeHealthTemperatureRecordById" parameterType="Long">
|
||||
update health_temperature_record set del_flag='1' where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="removeHealthTemperatureRecordByIds" parameterType="String">
|
||||
update health_temperature_record set del_flag='1' where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -0,0 +1,105 @@
|
||||
<?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.health.mapper.HealthWeightRecordMapper">
|
||||
|
||||
<resultMap type="HealthWeightRecordVo" id="HealthWeightRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="measureTime" column="measure_time" />
|
||||
<result property="weight" column="weight" />
|
||||
<result property="personId" column="person_id" />
|
||||
<result property="personName" column="person_name" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHealthWeightRecordVo">
|
||||
select a.id, a.create_by, a.create_time, a.update_by, a.update_time, a.del_flag, a.remark, a.measure_time, a.weight, a.person_id from health_weight_record a
|
||||
</sql>
|
||||
|
||||
<select id="selectHealthWeightRecordList" parameterType="HealthWeightRecordDto" resultMap="HealthWeightRecordResult">
|
||||
<include refid="selectHealthWeightRecordVo"/>
|
||||
<where>
|
||||
a.del_flag='0'
|
||||
<if test="personId != null "> and a.person_id = #{personId}</if>
|
||||
</where>
|
||||
<!-- 数据范围过滤 -->
|
||||
${params.dataScope}
|
||||
order by a.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectHealthWeightRecordById" parameterType="Long" resultMap="HealthWeightRecordResult">
|
||||
<include refid="selectHealthWeightRecordVo"/>
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertHealthWeightRecord" parameterType="HealthWeightRecord">
|
||||
insert into health_weight_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="measureTime != null">measure_time,</if>
|
||||
<if test="weight != null">weight,</if>
|
||||
<if test="personId != null">person_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="measureTime != null">#{measureTime},</if>
|
||||
<if test="weight != null">#{weight},</if>
|
||||
<if test="personId != null">#{personId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateHealthWeightRecord" parameterType="HealthWeightRecord">
|
||||
update health_weight_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="measureTime != null">measure_time = #{measureTime},</if>
|
||||
<if test="weight != null">weight = #{weight},</if>
|
||||
<if test="personId != null">person_id = #{personId},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteHealthWeightRecordById" parameterType="Long">
|
||||
delete from health_weight_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteHealthWeightRecordByIds" parameterType="String">
|
||||
delete from health_weight_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
<update id="removeHealthWeightRecordById" parameterType="Long">
|
||||
update health_weight_record set del_flag='1' where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="removeHealthWeightRecordByIds" parameterType="String">
|
||||
update health_weight_record set del_flag='1' where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
</mapper>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.3 KiB |
Reference in New Issue
Block a user