|
|
@@ -26,6 +26,8 @@
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="status" column="status_" />
|
|
|
+ <result property="level" column="level_" />
|
|
|
+
|
|
|
</resultMap>
|
|
|
<insert id="insert" parameterType="com.jpsoft.employment.modules.base.entity.TechnicianInfo">
|
|
|
<!--
|
|
|
@@ -35,7 +37,7 @@
|
|
|
-->
|
|
|
<![CDATA[
|
|
|
insert into base_technician_info
|
|
|
- (id_,user_name,password_,open_id,phone_,id_card,real_name,region_,image_,gender_,introduction_,service_info,business_scope,id_card_image,is_verified,promo_code,create_time,update_time,del_flag,create_by,update_by,status_)
|
|
|
+ (id_,user_name,password_,open_id,phone_,id_card,real_name,region_,image_,gender_,introduction_,service_info,business_scope,id_card_image,is_verified,promo_code,create_time,update_time,del_flag,create_by,update_by,status_,level_)
|
|
|
values
|
|
|
(
|
|
|
#{id,jdbcType=VARCHAR}
|
|
|
@@ -60,6 +62,9 @@
|
|
|
,#{createBy,jdbcType=VARCHAR}
|
|
|
,#{updateBy,jdbcType=VARCHAR}
|
|
|
,#{status,jdbcType=VARCHAR}
|
|
|
+,#{level,jdbcType= NUMERIC }
|
|
|
+
|
|
|
+
|
|
|
)
|
|
|
]]>
|
|
|
</insert>
|
|
|
@@ -132,12 +137,14 @@
|
|
|
<if test="status!=null">
|
|
|
status_=#{status,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="level!=null">
|
|
|
+ level_=#{level,jdbcType= NUMERIC },
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id_=#{id}
|
|
|
</update>
|
|
|
<select id="get" parameterType="string" resultMap="TechnicianInfoMap">
|
|
|
- select
|
|
|
-id_,user_name,password_,open_id,phone_,id_card,real_name,region_,image_,gender_,introduction_,service_info,business_scope,id_card_image,is_verified,promo_code,create_time,update_time,del_flag,create_by,update_by,status_ from base_technician_info where id_=#{0}
|
|
|
+ select * from base_technician_info where id_=#{0}
|
|
|
</select>
|
|
|
<select id="exist" parameterType="string" resultType="int">
|
|
|
select count(*) from base_technician_info where id_=#{0}
|