|
@@ -15,6 +15,7 @@
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
<result property="orgId" column="org_id"/>
|
|
|
<result property="phone" column="phone_"/>
|
|
|
+ <result property="specialClassId" column="special_class_id"/>
|
|
|
</resultMap>
|
|
|
<insert id="insert" parameterType="com.jpsoft.excellent.modules.sys.entity.User">
|
|
|
<!--
|
|
@@ -25,7 +26,7 @@
|
|
|
<![CDATA[
|
|
|
insert into sys_user
|
|
|
(id_,user_name,password_,real_name,create_time,update_time,
|
|
|
- del_flag,create_by,update_by,org_id,phone_)
|
|
|
+ del_flag,create_by,update_by,org_id,phone_,special_class_id)
|
|
|
values
|
|
|
(
|
|
|
#{id,jdbcType=VARCHAR}
|
|
@@ -39,6 +40,7 @@
|
|
|
,#{updateBy,jdbcType=VARCHAR}
|
|
|
,#{orgId,jdbcType=VARCHAR}
|
|
|
,#{phone,jdbcType=VARCHAR}
|
|
|
+ ,#{specialClassId,jdbcType=VARCHAR}
|
|
|
)
|
|
|
]]>
|
|
|
</insert>
|
|
@@ -78,6 +80,9 @@
|
|
|
<if test="phone!=null">
|
|
|
phone_=#{phone,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="specialClassId!=null">
|
|
|
+ special_class_id=#{specialClassId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id_=#{id}
|
|
|
</update>
|
|
@@ -120,4 +125,9 @@
|
|
|
where ur.role_id = r.id_
|
|
|
and ur.user_id = #{userId} and r.name_=#{roleName}
|
|
|
</select>
|
|
|
+ <select id="findListBySpecialClassId" parameterType="string" resultMap="UserMap">
|
|
|
+ select * from sys_user
|
|
|
+ where del_flag = 0
|
|
|
+ and special_class_id = #{0}
|
|
|
+ </select>
|
|
|
</mapper>
|