角色加描述

This commit is contained in:
钱涛 2024-08-02 14:04:14 +08:00
parent 9eea989bf2
commit 494679087d
3 changed files with 21 additions and 1 deletions

View File

@ -23,5 +23,4 @@
</config>

View File

@ -31,6 +31,12 @@ public class AuthRolePO {
@ElogTransform(name = "个税扣缴义务人id")
private Long taxAgentId;
/**
* 描述
*/
@ElogTransform(name = "描述")
private String description;
/**
* 创建人
*/

View File

@ -4,6 +4,7 @@
<resultMap id="BaseResultMap" type="com.engine.salary.entity.auth.po.AuthRolePO">
<result column="id" property="id"/>
<result column="name" property="name"/>
<result column="description" property="description"/>
<result column="tax_agent_id" property="taxAgentId"/>
<result column="creator" property="creator"/>
<result column="create_time" property="createTime"/>
@ -18,6 +19,7 @@
.
id
, t.name
, t.description
, t.tax_agent_id
, t.creator
, t.create_time
@ -54,6 +56,9 @@
<if test="name != null">
AND name = #{name}
</if>
<if test="description != null">
AND description = #{description}
</if>
<if test="taxAgentId != null">
AND tax_agent_id = #{taxAgentId}
</if>
@ -93,6 +98,9 @@
<if test="name != null">
name,
</if>
<if test="description != null">
description,
</if>
<if test="taxAgentId != null">
tax_agent_id,
</if>
@ -119,6 +127,9 @@
<if test="name != null">
#{name},
</if>
<if test="description != null">
#{description},
</if>
<if test="taxAgentId != null">
#{taxAgentId},
</if>
@ -145,6 +156,7 @@
UPDATE hrsa_auth_role
<set>
name=#{name},
description=#{description},
tax_agent_id=#{taxAgentId},
creator=#{creator},
create_time=#{createTime},
@ -163,6 +175,9 @@
<if test="name != null">
name=#{name},
</if>
<if test="description != null">
description=#{description},
</if>
<if test="taxAgentId != null">
tax_agent_id=#{taxAgentId},
</if>