From 2212759d051a0f60b4f0ada73d678cf150e29c84 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期三, 04 二月 2026 18:26:02 +0800
Subject: [PATCH] 代码提交
---
smartor/src/main/resources/mapper/smartor/MedicalHistoryBadyMapper.xml | 52 ++++++++++++++++++++++++++--------------------------
1 files changed, 26 insertions(+), 26 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/MedicalHistoryBadyMapper.xml b/smartor/src/main/resources/mapper/smartor/MedicalHistoryBadyMapper.xml
index 68775a6..de04f5c 100644
--- a/smartor/src/main/resources/mapper/smartor/MedicalHistoryBadyMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/MedicalHistoryBadyMapper.xml
@@ -2,9 +2,9 @@
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.smartor.mapper.MedicalHistoryBadyMapper">
+<mapper namespace="com.smartor.mapper.MedicalHistoryBabyMapper">
- <resultMap type="com.smartor.domain.MedicalHistoryBady" id="MedicalHistoryBadyResult">
+ <resultMap type="com.smartor.domain.MedicalHistoryBaby" id="MedicalHistoryBabyResult">
<result property="id" column="id"/>
<result property="procreate" column="procreate"/>
<result property="gestationIllnesses" column="gestation_illnesses"/>
@@ -16,17 +16,17 @@
<result property="outWeight" column="out_weight"/>
<result property="allergy" column="allergy"/>
<result property="feed" column="feed"/>
- <result property="pid" column="pid"/>
+ <result property="patid" column="patid"/>
</resultMap>
- <sql id="selectMedicalHistoryBadyVo">
- select id, procreate, gestation_illnesses, family_history, surgical_history, birth_age, birth_weight, out_correct_age, out_weight, allergy, feed, pid
- from medical_history_bady
+ <sql id="selectMedicalHistoryBabyVo">
+ select id, procreate, gestation_illnesses, family_history, surgical_history, birth_age, birth_weight, out_correct_age, out_weight, allergy, feed, patid
+ from medical_history_baby
</sql>
- <select id="selectMedicalHistoryBadyList" parameterType="com.smartor.domain.MedicalHistoryBady"
- resultMap="MedicalHistoryBadyResult">
- <include refid="selectMedicalHistoryBadyVo"/>
+ <select id="selectMedicalHistoryBabyList" parameterType="com.smartor.domain.MedicalHistoryBaby"
+ resultMap="MedicalHistoryBabyResult">
+ <include refid="selectMedicalHistoryBabyVo"/>
<where>
del_flag=0
<if test="procreate != null and procreate != ''">
@@ -59,20 +59,20 @@
<if test="feed != null and feed != ''">
and feed = #{feed}
</if>
- <if test="pid != null ">
- and pid = #{pid}
+ <if test="patid != null ">
+ and patid = #{patid}
</if>
</where>
</select>
- <select id="selectMedicalHistoryBadyById" parameterType="Long"
- resultMap="MedicalHistoryBadyResult">
- <include refid="selectMedicalHistoryBadyVo"/>
+ <select id="selectMedicalHistoryBabyById" parameterType="Long"
+ resultMap="MedicalHistoryBabyResult">
+ <include refid="selectMedicalHistoryBabyVo"/>
where id = #{id}
</select>
- <insert id="insertMedicalHistoryBady" parameterType="com.smartor.domain.MedicalHistoryBady" useGeneratedKeys="true" keyProperty="id">
- insert into medical_history_bady
+ <insert id="insertMedicalHistoryBaby" parameterType="com.smartor.domain.MedicalHistoryBaby" useGeneratedKeys="true" keyProperty="id">
+ insert into medical_history_baby
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="procreate != null">procreate,
</if>
@@ -94,7 +94,7 @@
</if>
<if test="feed != null">feed,
</if>
- <if test="pid != null">pid,
+ <if test="patid != null">patid,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
@@ -118,13 +118,13 @@
</if>
<if test="feed != null">#{feed},
</if>
- <if test="pid != null">#{pid},
+ <if test="patid != null">#{patid},
</if>
</trim>
</insert>
- <update id="updateMedicalHistoryBady" parameterType="com.smartor.domain.MedicalHistoryBady">
- update medical_history_bady
+ <update id="updateMedicalHistoryBaby" parameterType="com.smartor.domain.MedicalHistoryBaby">
+ update medical_history_baby
<trim prefix="SET" suffixOverrides=",">
<if test="procreate != null">procreate =
#{procreate},
@@ -156,23 +156,23 @@
<if test="feed != null">feed =
#{feed},
</if>
- <if test="pid != null">pid =
- #{pid},
+ <if test="patid != null">patid =
+ #{patid},
</if>
</trim>
where id = #{id}
</update>
- <update id="deleteMedicalHistoryBadyById" parameterType="Long">
- update medical_history_bady
+ <update id="deleteMedicalHistoryBabyById" parameterType="Long">
+ update medical_history_baby
<trim prefix="SET" suffixOverrides=",">
del_flag =1
</trim>
where id = #{id}
</update>
- <update id="deleteMedicalHistoryBadyByIds" parameterType="String">
- update medical_history_bady
+ <update id="deleteMedicalHistoryBabyByIds" parameterType="String">
+ update medical_history_baby
<trim prefix="SET" suffixOverrides=",">
del_flag =1
</trim>
--
Gitblit v1.9.3