xiao547607 4 years ago
parent
commit
e01187c9e7

+ 1 - 1
common/src/main/java/com/jpsoft/employment/modules/job/entity/WorkCategory.java

@@ -27,7 +27,7 @@ public class WorkCategory {
         @ApiModelProperty(value = "排序")
     private Integer sortNo;
         @ApiModelProperty(value = "编码")
-    private Integer code;
+    private String code;
         @ApiModelProperty(value = "")
     private String quickLog;
         @ApiModelProperty(value = "创建人")

+ 3 - 4
common/src/main/resources/mapper/job/WorkCategory.xml

@@ -32,7 +32,7 @@
 ,#{name,jdbcType=VARCHAR}
 ,#{parentId,jdbcType=VARCHAR}
 ,#{sortNo,jdbcType= NUMERIC }
-,#{code,jdbcType= NUMERIC }
+,#{code,jdbcType= VARCHAR }
 ,#{quickLog,jdbcType=VARCHAR}
 ,#{createBy,jdbcType=VARCHAR}
 ,#{createTime,jdbcType= TIMESTAMP }
@@ -59,7 +59,7 @@
 		sort_no=#{sortNo,jdbcType= NUMERIC },
 		</if>
 				<if test="code!=null">
-		code_=#{code,jdbcType= NUMERIC },
+		code_=#{code,jdbcType= VARCHAR },
 		</if>
 				<if test="quickLog!=null">
 		quick_log=#{quickLog,jdbcType=VARCHAR},
@@ -86,8 +86,7 @@
 	where id_=#{id}
 	</update>
 	<select id="get" parameterType="string" resultMap="WorkCategoryMap">
-		select 
-id_,name_,parent_id,sort_no,code_,quick_log,create_by,create_time,update_by,update_time,del_flag,level_		from job_work_category where id_=#{0}
+		select * from job_work_category where id_=#{0}
 	</select>
 	<select id="exist" parameterType="string" resultType="int">
 		select count(*) from job_work_category where id_=#{0}