|
@@ -67,14 +67,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectVaccineInfoList" parameterType="VaccineInfoOperation" resultMap="VaccineInfoResult">
|
|
|
-
|
|
|
select vi.id, vi.village_towns, vi.village, vi.villager_group, vi.house_type, vi.domicile, vi.province, vi.city,
|
|
|
vi.region, vi.user_name, vi.gender, vi.id_card, vi.phone_num, vi.key_industries, vi.is_vaccination, vi.vaccine_name, vi.jici,
|
|
|
vi.vaccination_time, vi.vaccination_place, vi.contraindication, vi.suspend, vi.death, vi.lost_in_missing,
|
|
|
vi.should_be, vi.other, vi.progress, vi.remark, vi.status, vi.create_by, vi.create_time, vi.update_by, vi.update_time,
|
|
|
vi.is_del,vi.code,vi.birthday,vi.work_unit,vi.crowd_classification,vi.manufacturer,vi.now_in,vi.url from vaccine_info vi
|
|
|
- left join vaccine_info_user viu
|
|
|
- on vi.id_card = viu.id_card and viu.is_del = 'N'
|
|
|
<where>
|
|
|
vi.is_del = 'N'
|
|
|
<if test="villageTowns != null and villageTowns != ''"> and vi.village_towns = #{villageTowns}</if>
|
|
@@ -91,17 +88,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="phoneNum != null and phoneNum != ''"> and vi.phone_num = #{phoneNum}</if>
|
|
|
<if test="keyIndustries != null and keyIndustries != ''"> and vi.key_industries = #{keyIndustries}</if>
|
|
|
<if test="isVaccination != null and isVaccination != ''"> and vi.is_vaccination = #{isVaccination}</if>
|
|
|
- <if test="vaccineName != null and vaccineName != ''"> and viu.vaccine_name like concat('%', #{vaccineName}, '%')</if>
|
|
|
+<!-- <if test="vaccineName != null and vaccineName != ''"> and viu.vaccine_name like concat('%', #{vaccineName}, '%')</if>
|
|
|
<if test="jici != null and jici != ''"> and viu.jici = #{jici}</if>
|
|
|
<if test="vaccinationTime != null "> and viu.vaccination_time = #{vaccinationTime}</if>
|
|
|
- <if test="vaccinationPlace != null and vaccinationPlace != ''"> and viu.vaccination_place = #{vaccinationPlace}</if>
|
|
|
+ <if test="vaccinationPlace != null and vaccinationPlace != ''"> and viu.vaccination_place = #{vaccinationPlace}</if>-->
|
|
|
<if test="contraindication != null and contraindication != ''"> and vi.contraindication = #{contraindication}</if>
|
|
|
<if test="suspend != null and suspend != ''"> and vi.suspend = #{suspend}</if>
|
|
|
<if test="death != null and death != ''"> and vi.death = #{death}</if>
|
|
|
<if test="lostInMissing != null and lostInMissing != ''"> and vi.lost_in_missing = #{lostInMissing}</if>
|
|
|
<if test="shouldBe != null and shouldBe != ''"> and vi.should_be = #{shouldBe}</if>
|
|
|
<if test="other != null and other != ''"> and vi.other = #{other}</if>
|
|
|
- <if test="progress != null and progress != ''"> and viu.progress = #{progress}</if>
|
|
|
+<!-- <if test="progress != null and progress != ''"> and viu.progress = #{progress}</if>-->
|
|
|
<if test="status != null and status != ''"> and vi.status = #{status}</if>
|
|
|
<if test="code != null and code != ''"> and vi.code = #{code}</if>
|
|
|
<if test="birthday != null and birthday != ''"> and vi.birthday = #{birthday}</if>
|
|
@@ -121,6 +118,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectVaccineInfoById" parameterType="Long" resultMap="VaccineInfoResult">
|
|
|
<include refid="selectVaccineInfoVo"/>
|
|
|
where vi.id = #{id} and vi.is_del = 'N'
|
|
|
+ order by viu.vaccination_time
|
|
|
</select>
|
|
|
<select id="selectVaccineInfoByIds" parameterType="Long" resultMap="VaccineInfoResult">
|
|
|
<include refid="selectVaccineInfoVo"/>
|