계정 추가 및 개인 권한 설정 기능 추가

This commit is contained in:
Suh
2024-01-15 10:27:55 +09:00
parent 3307564595
commit 14e3b8b513
15 changed files with 465 additions and 26 deletions

View File

@@ -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

View File

@@ -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,