Pārlūkot izejas kodu

fix 新增疫苗操作记录

Administrator 3 gadi atpakaļ
vecāks
revīzija
f03d0f070f

+ 20 - 0
boman-web-core/src/main/java/com/boman/web/core/domain/VaccineInfoOperation.java

@@ -207,6 +207,18 @@ public class VaccineInfoOperation extends BaseEntity {
     private String manufacturer;
     /** 現在居住地址 */
     private String nowIn;
+    /**
+     * 附件地址
+     */
+    private String url;
+
+    public String getUrl() {
+        return url;
+    }
+
+    public void setUrl(String url) {
+        this.url = url;
+    }
 
     public void setId(Long id) {
         this.id = id;
@@ -496,6 +508,7 @@ public class VaccineInfoOperation extends BaseEntity {
         this.nowIn = nowIn;
     }
 
+
     @Override
     public String toString() {
         return "VaccineInfoOperation{" +
@@ -529,6 +542,13 @@ public class VaccineInfoOperation extends BaseEntity {
                 ", isDel='" + isDel + '\'' +
                 ", operationType='" + operationType + '\'' +
                 ", vaccineInfoId=" + vaccineInfoId +
+                ", code='" + code + '\'' +
+                ", birthday='" + birthday + '\'' +
+                ", workUnit='" + workUnit + '\'' +
+                ", crowdClassification='" + crowdClassification + '\'' +
+                ", manufacturer='" + manufacturer + '\'' +
+                ", nowIn='" + nowIn + '\'' +
+                ", url='" + url + '\'' +
                 '}';
     }
 }

+ 6 - 2
boman-web-core/src/main/resources/mapper/VaccineInfoMapper.xml

@@ -44,6 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="crowdClassification"    column="crowd_classification"    />
         <result property="manufacturer"    column="manufacturer"    />
         <result property="nowIn"    column="now_in"    />
+        <result property="url"    column="url"    />
     </resultMap>
 
     <sql id="selectVaccineInfoVo">
@@ -51,7 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         region, user_name, gender, id_card, phone_num, key_industries, is_vaccination, vaccine_name, jici,
         vaccination_time, vaccination_place, contraindication, suspend, death, lost_in_missing,
         should_be, other, progress, remark, status, create_by, create_time, update_by, update_time,
-               is_del,code,birthday,work_unit,crowd_classification,manufacturer,now_in from vaccine_info
+               is_del,code,birthday,work_unit,crowd_classification,manufacturer,now_in,url from vaccine_info
     </sql>
 
     <select id="selectVaccineInfoList" parameterType="VaccineInfoOperation" resultMap="VaccineInfoResult">
@@ -90,6 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="crowdClassification != null  and crowdClassification != ''"> and crowd_classification = #{crowdClassification}</if>
             <if test="manufacturer != null  and manufacturer != ''"> and manufacturer = #{manufacturer}</if>
             <if test="nowIn != null  and nowIn != ''"> and now_in = #{nowIn}</if>
+            <if test="url != null  and url != ''"> and url = #{url}</if>
         </where>
     </select>
     
@@ -146,6 +148,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="crowdClassification != null and crowdClassification != ''">crowd_classification,</if>
             <if test="manufacturer != null and manufacturer != ''">manufacturer,</if>
             <if test="nowIn != null and nowIn != ''">now_in,</if>
+            <if test="url != null and url != ''">url,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="villageTowns != null">#{villageTowns},</if>
@@ -180,13 +183,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="updateBy != null">#{updateBy},</if>
             <if test="updateTime != null">#{updateTime},</if>
             <if test="isDel != null and isDel != ''">#{isDel},</if>
-
             <if test="code != null and code != ''">#{code},</if>
             <if test="birthday != null and birthday != ''">#{birthday},</if>
             <if test="workUnit != null and workUnit != ''">#{workUnit},</if>
             <if test="crowdClassification != null and crowdClassification != ''">#{crowdClassification},</if>
             <if test="manufacturer != null and manufacturer != ''">#{manufacturer},</if>
             <if test="nowIn != null and nowIn != ''">#{nowIn},</if>
+            <if test="url != null and url != ''">#{url},</if>
          </trim>
     </insert>
 
@@ -231,6 +234,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="crowdClassification != null and crowdClassification != ''">crowd_classification = #{crowdClassification},</if>
             <if test="manufacturer != null and manufacturer != ''">manufacturer = #{manufacturer},</if>
             <if test="nowIn != null and nowIn != ''">now_in = #{nowIn},</if>
+            <if test="url != null and url != ''">url = #{url},</if>
         </trim>
         where id = #{id}
     </update>

+ 6 - 2
boman-web-core/src/main/resources/mapper/VaccineInfoOperationMapper.xml

@@ -46,6 +46,7 @@
         <result property="crowdClassification"    column="crowd_classification" />
         <result property="manufacturer"    column="manufacturer"    />
         <result property="nowIn"    column="now_in" />
+        <result property="url"    column="url" />
     </resultMap>
 
     <sql id="selectVaccineInfoOperationVo">
@@ -54,7 +55,7 @@
                vaccine_name, jici, vaccination_time, vaccination_place, contraindication,
                suspend, death, lost_in_missing, should_be, other, progress, remark, status,
                create_by, create_time, update_by, update_time, is_del, operation_type,
-               vaccine_info_id,code,birthday,work_unit,crowd_classification,manufacturer, now_in
+               vaccine_info_id,code,birthday,work_unit,crowd_classification,manufacturer, now_in, url
         from vaccine_info_operation
     </sql>
 
@@ -97,7 +98,7 @@
             <if test="crowdClassification != null  and crowdClassification != ''"> and crowd_classification = #{crowdClassification}</if>
             <if test="manufacturer != null  and manufacturer != ''"> and manufacturer = #{manufacturer}</if>
             <if test="nowIn != null  and nowIn != ''"> and now_in = #{nowIn}</if>
-
+            <if test="url != null  and url != ''"> and url = #{url}</if>
         </where>
     </select>
 
@@ -150,6 +151,7 @@
             <if test="crowdClassification != null and crowdClassification != ''">crowd_classification,</if>
             <if test="manufacturer != null and manufacturer != ''">manufacturer,</if>
             <if test="nowIn != null and nowIn != ''">now_in,</if>
+            <if test="url != null and url != ''">url,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="villageTowns != null">#{villageTowns},</if>
@@ -192,6 +194,7 @@
             <if test="crowdClassification != null and crowdClassification != ''">#{crowdClassification},</if>
             <if test="manufacturer != null and manufacturer != ''">#{manufacturer},</if>
             <if test="nowIn != null and nowIn != ''">#{nowIn},</if>
+            <if test="url != null and url != ''">#{url},</if>
         </trim>
     </insert>
 
@@ -238,6 +241,7 @@
             <if test="crowdClassification != null and crowdClassification != ''">crowd_classification = #{crowdClassification},</if>
             <if test="manufacturer != null and manufacturer != ''">manufacturer = #{manufacturer},</if>
             <if test="nowIn != null and nowIn != ''">now_in = #{nowIn},</if>
+            <if test="url != null and url != ''">url = #{url},</if>
         </trim>
         where id = #{id}
     </update>