mirror of
https://github.com/suhf/No1WMS.git
synced 2026-02-05 04:03:45 +09:00
계정 추가 및 개인 권한 설정 기능 추가
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
<result column="activation" property="activation"/>
|
||||
<result column="personal_authority_id" property="personalAuthorityId" />
|
||||
<result column="group_authority_id" property="groupAuthorityId" />
|
||||
<result column="department_id" property="departmentId" />
|
||||
<result column="position_id" property="positionId" />
|
||||
<association property="groupAuthorityDto" javaType="authorityDto">
|
||||
<id column="auth2.id" property="id" />
|
||||
<result column="group_auth_name" property="name" />
|
||||
@@ -101,6 +103,11 @@
|
||||
where name like concat('%',#{search},'%')
|
||||
order by name limit #{start}, #{perPage}
|
||||
</select>
|
||||
<update id="resetPassword" parameterType="accountDto">
|
||||
update account SET
|
||||
password = ( SELECT employee_number from account where id = #{id} )
|
||||
WHERE id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="update" parameterType="accountDto">
|
||||
update account SET
|
||||
|
||||
@@ -31,6 +31,16 @@
|
||||
<select id="selectById" resultType="AuthorityDto">
|
||||
SELECT * FROM authority WHERE id = #{id}
|
||||
</select>
|
||||
<select id="selectPersonalAuthorityById" resultMap="authorityResultMap">
|
||||
SELECT
|
||||
auth.id, auth.name,
|
||||
auth.account, auth.authority, auth.product_category, auth.product,
|
||||
auth.prices, auth.vendor, auth.warehouse, auth.stock, auth.plan_in, auth.product_in,
|
||||
auth.product_out, auth.board, auth.activation, auth.is_group_authority,
|
||||
acc.employee_number, acc.name acc_name
|
||||
from authority auth join account acc on acc.personal_authority_id = auth.id
|
||||
WHERE auth.id = #{id}
|
||||
</select>
|
||||
<select id="selectAll" resultMap="authorityResultMap" parameterType="map">
|
||||
SELECT
|
||||
auth.id, auth.name,
|
||||
|
||||
Reference in New Issue
Block a user