Skip to content

Commit

Permalink
#359 #357 change approval to need_approval
Browse files Browse the repository at this point in the history
  • Loading branch information
heziai committed Mar 14, 2018
1 parent 4745199 commit a62ecd4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public class UserRole extends CommonFields {
private String userName;
private String roleKey;
private String namespace;
private Boolean approval;
private Boolean needApproval;
private User user;
private Role role;

Expand Down Expand Up @@ -33,12 +33,12 @@ public void setNamespace(String namespace) {
this.namespace = namespace;
}

public Boolean getApproval() {
return approval;
public Boolean getNeedApproval() {
return needApproval;
}

public void setApproval(Boolean approval) {
this.approval = approval;
public void setNeedApproval(Boolean needApproval) {
this.needApproval = needApproval;
}

public User getUser() {
Expand Down
10 changes: 5 additions & 5 deletions saturn-console-api/src/main/resources/mapper/UserRoleMapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<result column="user_name" property="userName" jdbcType="VARCHAR"/>
<result column="role_key" property="roleKey" jdbcType="VARCHAR"/>
<result column="namespace" property="namespace" jdbcType="VARCHAR"/>
<result column="approval" property="approval" jdbcType="BOOLEAN"/>
<result column="need_approval" property="needApproval" jdbcType="BOOLEAN"/>
<result column="created_by" property="createdBy" jdbcType="VARCHAR"/>
<result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
<result column="last_updated_by" property="lastUpdatedBy" jdbcType="VARCHAR"/>
Expand All @@ -16,15 +16,15 @@
</resultMap>

<insert id="insert" parameterType="com.vip.saturn.job.console.mybatis.entity.UserRole">
INSERT INTO `user_role`(`user_name`, `role_key`, `namespace`, `approval`, `created_by`, `create_time`,
INSERT INTO `user_role`(`user_name`, `role_key`, `namespace`, `need_approval`, `created_by`, `create_time`,
`last_updated_by`, `last_update_time`, `is_deleted`)
VALUES(#{userName, jdbcType=VARCHAR}, #{roleKey, jdbcType=VARCHAR}, #{namespace, jdbcType=VARCHAR},
#{approval, jdbcType=BOOLEAN},#{createdBy, jdbcType=VARCHAR}, #{createTime, jdbcType=TIMESTAMP},
#{needApproval, jdbcType=BOOLEAN},#{createdBy, jdbcType=VARCHAR}, #{createTime, jdbcType=TIMESTAMP},
#{lastUpdatedBy, jdbcType=VARCHAR}, #{lastUpdateTime, jdbcType=TIMESTAMP}, #{isDeleted, jdbcType=BOOLEAN})
</insert>

<sql id="selectAllSql">
SELECT `user_name`, `role_key`, `namespace`, `approval`, `created_by`, `create_time`, `last_updated_by`,
SELECT `user_name`, `role_key`, `namespace`, `need_approval`, `created_by`, `create_time`, `last_updated_by`,
`last_update_time`, `is_deleted` FROM `user_role`
</sql>

Expand Down Expand Up @@ -79,7 +79,7 @@
`user_name` = #{cur.userName, jdbcType=VARCHAR},
`role_key` = #{cur.roleKey, jdbcType=VARCHAR},
`namespace` = #{cur.namespace, jdbcType=VARCHAR},
`approval` = #{cur.approval, jdbcType=VARCHAR},
`need_approval` = #{cur.needApproval, jdbcType=VARCHAR},
`last_updated_by` = #{cur.lastUpdatedBy, jdbcType=VARCHAR},
`is_deleted` = #{isDeleted, jdbcType=BOOLEAN}
WHERE
Expand Down

0 comments on commit a62ecd4

Please sign in to comment.