|
@@ -50,6 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="progress" column="progress" />
|
|
|
<result property="deptId" column="dept_id" />
|
|
|
<result property="rlr" column="rlr" />
|
|
|
+ <result property="deleteReason" column="delete_reason" />
|
|
|
<collection property="vaccineInfoUserList" javaType="java.util.List" resultMap="VaccineInfoUser" />
|
|
|
</resultMap>
|
|
|
|
|
@@ -378,6 +379,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
+ <select id="countIdCard" resultType="int">
|
|
|
+ select count(vi.id) from vaccine_info vi where vi.is_del = 'N' and id_card = #{idCard}
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="listByCode" resultMap="VaccineInfoResult">
|
|
|
select vi.id, vi.user_name, vi.phone_num, vi.id_card, vi.gender, vi.province, vi.city, vi.region, vi.now_in
|
|
|
, vi.house_type, vi.update_by, vi.code, vi.rlr
|
|
@@ -387,7 +392,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="listByRlry" resultMap="VaccineInfoResult">
|
|
|
select vi.id, vi.user_name, vi.phone_num, vi.id_card, vi.gender, vi.province, vi.city, vi.region, vi.now_in
|
|
|
- , vi.house_type, vi.update_by, vi.code, vi.rlr
|
|
|
+ , vi.house_type, vi.update_by, vi.code, vi.rlr, vi.update_time, vi.delete_reason
|
|
|
from vaccine_info vi
|
|
|
<where>
|
|
|
vi.is_del = #{isDel}
|
|
@@ -640,7 +645,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<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="updateTime != null">update_time = sysdate(),</if>
|
|
|
<if test="isDel != null and isDel != ''">is_del = #{isDel},</if>
|
|
|
<if test="code != null and code != ''">code = #{code},</if>
|
|
|
<if test="birthday != null and birthday != ''">birthday = #{birthday},</if>
|
|
@@ -655,6 +660,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="age != null and age != ''">age = #{age},</if>
|
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
<if test="rlr != null and rlr != ''">rlr = #{rlr},</if>
|
|
|
+ <if test="deleteReason != null and deleteReason != ''">delete_reason = #{deleteReason},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|