| | |
| | | package com.ruoyi.project.system.domain;
|
| | |
|
| | | import javax.validation.constraints.NotBlank;
|
| | | import javax.validation.constraints.NotNull;
|
| | | import javax.validation.constraints.Size;
|
| | | import org.apache.commons.lang3.builder.ToStringBuilder;
|
| | | import org.apache.commons.lang3.builder.ToStringStyle;
|
| | |
| | |
|
| | | /** 岗位排序 */
|
| | | @Excel(name = "岗位排序")
|
| | | private String postSort;
|
| | | private Integer postSort;
|
| | |
|
| | | /** 状态(0正常 1停用) */
|
| | | @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
|
| | |
| | | this.postName = postName;
|
| | | }
|
| | |
|
| | | @NotBlank(message = "显示顺序不能为空")
|
| | | public String getPostSort()
|
| | | @NotNull(message = "显示顺序不能为空")
|
| | | public Integer getPostSort()
|
| | | {
|
| | | return postSort;
|
| | | }
|
| | |
|
| | | public void setPostSort(String postSort)
|
| | | public void setPostSort(Integer postSort)
|
| | | {
|
| | | this.postSort = postSort;
|
| | | }
|
| | |
| | |
|
| | | import java.util.Set;
|
| | | import javax.validation.constraints.NotBlank;
|
| | | import javax.validation.constraints.NotNull;
|
| | | import javax.validation.constraints.Size;
|
| | | import org.apache.commons.lang3.builder.ToStringBuilder;
|
| | | import org.apache.commons.lang3.builder.ToStringStyle;
|
| | |
| | |
|
| | | /** 角色排序 */
|
| | | @Excel(name = "角色排序")
|
| | | private String roleSort;
|
| | | private Integer roleSort;
|
| | |
|
| | | /** 数据范围(1:所有数据权限;2:自定义数据权限;3:本部门数据权限;4:本部门及以下数据权限;5:仅本人数据权限) */
|
| | | @Excel(name = "数据范围", readConverterExp = "1=所有数据权限,2=自定义数据权限,3=本部门数据权限,4=本部门及以下数据权限,5=仅本人数据权限")
|
| | |
| | | this.roleKey = roleKey;
|
| | | }
|
| | |
|
| | | @NotBlank(message = "显示顺序不能为空")
|
| | | public String getRoleSort()
|
| | | @NotNull(message = "显示顺序不能为空")
|
| | | public Integer getRoleSort()
|
| | | {
|
| | | return roleSort;
|
| | | }
|
| | |
|
| | | public void setRoleSort(String roleSort)
|
| | | public void setRoleSort(Integer roleSort)
|
| | | {
|
| | | this.roleSort = roleSort;
|
| | | }
|
| | |
| | | <set>
|
| | | <if test="postCode != null and postCode != ''">post_code = #{postCode},</if>
|
| | | <if test="postName != null and postName != ''">post_name = #{postName},</if>
|
| | | <if test="postSort != null and postSort != ''">post_sort = #{postSort},</if>
|
| | | <if test="postSort != null">post_sort = #{postSort},</if>
|
| | | <if test="status != null and status != ''">status = #{status},</if>
|
| | | <if test="remark != null">remark = #{remark},</if>
|
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
| | |
| | | <if test="postId != null and postId != 0">post_id,</if>
|
| | | <if test="postCode != null and postCode != ''">post_code,</if>
|
| | | <if test="postName != null and postName != ''">post_name,</if>
|
| | | <if test="postSort != null and postSort != ''">post_sort,</if>
|
| | | <if test="postSort != null">post_sort,</if>
|
| | | <if test="status != null and status != ''">status,</if>
|
| | | <if test="remark != null and remark != ''">remark,</if>
|
| | | <if test="createBy != null and createBy != ''">create_by,</if>
|
| | |
| | | <if test="postId != null and postId != 0">#{postId},</if>
|
| | | <if test="postCode != null and postCode != ''">#{postCode},</if>
|
| | | <if test="postName != null and postName != ''">#{postName},</if>
|
| | | <if test="postSort != null and postSort != ''">#{postSort},</if>
|
| | | <if test="postSort != null">#{postSort},</if>
|
| | | <if test="status != null and status != ''">#{status},</if>
|
| | | <if test="remark != null and remark != ''">#{remark},</if>
|
| | | <if test="createBy != null and createBy != ''">#{createBy},</if>
|
| | |
| | | <if test="roleId != null and roleId != 0">role_id,</if>
|
| | | <if test="roleName != null and roleName != ''">role_name,</if>
|
| | | <if test="roleKey != null and roleKey != ''">role_key,</if>
|
| | | <if test="roleSort != null and roleSort != ''">role_sort,</if>
|
| | | <if test="roleSort != null">role_sort,</if>
|
| | | <if test="dataScope != null and dataScope != ''">data_scope,</if>
|
| | | <if test="menuCheckStrictly != null">menu_check_strictly,</if>
|
| | | <if test="deptCheckStrictly != null">dept_check_strictly,</if>
|
| | |
| | | <if test="roleId != null and roleId != 0">#{roleId},</if>
|
| | | <if test="roleName != null and roleName != ''">#{roleName},</if>
|
| | | <if test="roleKey != null and roleKey != ''">#{roleKey},</if>
|
| | | <if test="roleSort != null and roleSort != ''">#{roleSort},</if>
|
| | | <if test="roleSort != null">#{roleSort},</if>
|
| | | <if test="dataScope != null and dataScope != ''">#{dataScope},</if>
|
| | | <if test="menuCheckStrictly != null">#{menuCheckStrictly},</if>
|
| | | <if test="deptCheckStrictly != null">#{deptCheckStrictly},</if>
|
| | |
| | | <set>
|
| | | <if test="roleName != null and roleName != ''">role_name = #{roleName},</if>
|
| | | <if test="roleKey != null and roleKey != ''">role_key = #{roleKey},</if>
|
| | | <if test="roleSort != null and roleSort != ''">role_sort = #{roleSort},</if>
|
| | | <if test="roleSort != null">role_sort = #{roleSort},</if>
|
| | | <if test="dataScope != null and dataScope != ''">data_scope = #{dataScope},</if>
|
| | | <if test="menuCheckStrictly != null">menu_check_strictly = #{menuCheckStrictly},</if>
|
| | | <if test="deptCheckStrictly != null">dept_check_strictly = #{deptCheckStrictly},</if>
|
| | |
| | | #end
|
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
| | | <template #default="scope">
|
| | | <el-button
|
| | | type="text"
|
| | | icon="Edit"
|
| | | @click="handleUpdate(scope.row)"
|
| | | v-hasPermi="['${moduleName}:${businessName}:edit']"
|
| | | >修改</el-button>
|
| | | <el-button
|
| | | type="text"
|
| | | icon="Plus"
|
| | | @click="handleAdd(scope.row)"
|
| | | v-hasPermi="['${moduleName}:${businessName}:add']"
|
| | | >新增</el-button>
|
| | | <el-button
|
| | | type="text"
|
| | | icon="Delete"
|
| | | @click="handleDelete(scope.row)"
|
| | | v-hasPermi="['${moduleName}:${businessName}:remove']"
|
| | | >删除</el-button>
|
| | | <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['${moduleName}:${businessName}:edit']">修改</el-button>
|
| | | <el-button link type="primary" icon="Plus" @click="handleAdd(scope.row)" v-hasPermi="['${moduleName}:${businessName}:add']">新增</el-button>
|
| | | <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['${moduleName}:${businessName}:remove']">删除</el-button>
|
| | | </template>
|
| | | </el-table-column>
|
| | | </el-table>
|
| | |
| | | #end
|
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
| | | <template #default="scope">
|
| | | <el-button
|
| | | type="text"
|
| | | icon="Edit"
|
| | | @click="handleUpdate(scope.row)"
|
| | | v-hasPermi="['${moduleName}:${businessName}:edit']"
|
| | | >修改</el-button>
|
| | | <el-button
|
| | | type="text"
|
| | | icon="Delete"
|
| | | @click="handleDelete(scope.row)"
|
| | | v-hasPermi="['${moduleName}:${businessName}:remove']"
|
| | | >删除</el-button>
|
| | | <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['${moduleName}:${businessName}:edit']">修改</el-button>
|
| | | <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['${moduleName}:${businessName}:remove']">删除</el-button>
|
| | | </template>
|
| | | </el-table-column>
|
| | | </el-table>
|