浏览代码

人员信息添加是否后勤和后勤排序号

xiao547607 4 年之前
父节点
当前提交
a3b6daf2a4

+ 2 - 2
common/src/main/java/com/jpsoft/shinestar/modules/base/entity/PersonInfo.java

@@ -246,8 +246,8 @@ public class PersonInfo implements Serializable {
     @ApiModelProperty(value = "车牌号")
     private String carNum;
 
-    @ApiModelProperty(value = "是否后勤人员")
-    private String isHq;
+    @ApiModelProperty(value = "后勤人员类别")
+    private String hqType;
 
     @ApiModelProperty(value = "后勤排序号")
     private String hqSortNo;

+ 5 - 5
common/src/main/resources/mapper/base/PersonInfo.xml

@@ -44,7 +44,7 @@
         <result property="jobNumber" column="job_number"/>
         <result property="carNum" column="car_num"/>
         <result property="hqSortNo" column="hq_sort_no"/>
-        <result property="isHq" column="is_hq"/>
+        <result property="hqType" column="hq_type"/>
     </resultMap>
     <insert id="insert" parameterType="com.jpsoft.shinestar.modules.base.entity.PersonInfo">
         <selectKey resultType="long" keyColumn="id_" keyProperty="id">
@@ -56,7 +56,7 @@
 	    app_enabled,password_enabled,guest_enabled,position1_,position2_,
 	    position3_,position4_,position5_,face_image_url,del_flag,
 	    create_by,create_time,update_by,update_time,popedom_,wechat_notice_enabled,allow_view_local,health_ertificate_url,is_sync,sex_,
-	    park_id,work_status,job_number,car_num,hq_sort_no,is_hq)
+	    park_id,work_status,job_number,car_num,hq_sort_no,hq_type)
 		values
 		(
             #{companyId,jdbcType=VARCHAR}
@@ -92,7 +92,7 @@
             ,#{jobNumber,jdbcType=VARCHAR}
             ,#{carNum,jdbcType=VARCHAR}
             ,#{hqSortNo,jdbcType= NUMERIC }
-            ,#{isHq,jdbcType=NUMERIC}
+            ,#{hqType,jdbcType=VARCHAR}
 		)
 	]]>
     </insert>
@@ -204,8 +204,8 @@
             <if test="isHq != null">
                 is_hq = #{isHq,jdbcType=NUMERIC}
             </if>
-            <if test="hqSortNo != null">
-                hq_sort_no = #{hqSortNo,jdbcType= NUMERIC }
+            <if test="hqType != null">
+                hq_type = #{hqType,jdbcType=VARCHAR}
             </if>
         </set>
         where id_=#{id}