1.新增查询组织机构(只包含保安公司)树
2.招聘新增字段是否持证
3.现实表现记录列表数据接口修改
| | |
| | | @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private Date time; |
| | | |
| | | private String departmentid; |
| | | |
| | | /** |
| | | * 保安身份证号码 |
| | | */ |
| | | private String cardid; |
| | | |
| | | /** |
| | | * 服务公司名称 |
| | | */ |
| | | @TableField("department_name") |
| | | private String departmentName; |
| | | |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springblade.modules.performance.entity.Performance; |
| | | import org.springblade.modules.performance.vo.PerformanceVO; |
| | | |
| | |
| | | * @param performance |
| | | * @return |
| | | */ |
| | | List<PerformanceVO> selectPerformancePage(IPage page, PerformanceVO performance); |
| | | List<PerformanceVO> selectPerformancePage(IPage page, @Param("performance") PerformanceVO performance); |
| | | Map<String, String> queryYearPer(String year); |
| | | } |
| | |
| | | </resultMap> |
| | | |
| | | |
| | | <select id="selectPerformancePage" resultMap="performanceResultMap"> |
| | | select * from sys_performance |
| | | <!-- <select id="selectPerformancePage" resultMap="performanceResultMap">--> |
| | | <!-- select * from sys_performance--> |
| | | <!-- </select>--> |
| | | |
| | | <!--分页数据--> |
| | | <select id="selectPerformancePage" resultType="org.springblade.modules.performance.vo.PerformanceVO"> |
| | | select * from sys_performance where cardid = #{performance.cardid} |
| | | </select> |
| | | |
| | | |
| | |
| | | private Integer status; |
| | | |
| | | |
| | | /** |
| | | * 是否持证 1:是 2:否 |
| | | */ |
| | | private Integer permit; |
| | | |
| | | |
| | | } |
| | |
| | | <if test="recruitment.district!=null"> |
| | | and sr.district = #{recruitment.district} |
| | | </if> |
| | | <if test="recruitment.permit!=null"> |
| | | and sr.permit = #{recruitment.permit} |
| | | </if> |
| | | <if test="recruitment.education!=null and recruitment.education!=''"> |
| | | and sr.education = #{recruitment.education} |
| | | </if> |
| | |
| | | } |
| | | |
| | | /** |
| | | * 懒加载获取部门树形结构,不包含顶级管理员公安局 |
| | | */ |
| | | @GetMapping("/security_lazy-tree") |
| | | @ApiOperation(value = "懒加载树形结构", notes = "树形结构") |
| | | public R<List<DeptVO>> securityLazyTree(String tenantId, Long parentId, BladeUser bladeUser) { |
| | | List<DeptVO> tree = deptService.securityLazyTree(Func.toStrWithEmpty(tenantId, bladeUser.getTenantId()), parentId); |
| | | return R.data(tree); |
| | | } |
| | | |
| | | /** |
| | | * 懒加载获取部门树形结构 |
| | | */ |
| | | @GetMapping("/lazy-trees") |
| | |
| | | List<Map<Object,String>> selectId(String id); |
| | | Map<Object,Integer> selectHold(String deptid); |
| | | |
| | | /** |
| | | * 懒加载获取部门树形结构,不包含顶级管理员公安局 |
| | | */ |
| | | List<DeptVO> securityLazyTree(String tenantId, Long parentId); |
| | | } |
| | |
| | | ORDER BY dept.sort |
| | | </select> |
| | | |
| | | <select id="securityLazyTree" resultMap="treeNodeResultMap" > |
| | | SELECT |
| | | dept.id, |
| | | dept.parent_id, |
| | | dept.dept_name AS title, |
| | | dept.id AS "value", |
| | | dept.id AS "key", |
| | | ( |
| | | SELECT |
| | | CASE WHEN count(1) > 0 THEN 1 ELSE 0 END |
| | | FROM |
| | | blade_dept |
| | | WHERE |
| | | parent_id = dept.id and is_deleted = 0 |
| | | ) AS "has_children" |
| | | FROM |
| | | blade_dept dept |
| | | WHERE |
| | | dept.parent_id = #{param2} AND dept.is_deleted = 0 |
| | | and dept_category = 1 |
| | | <if test="param1!=null and param1!=''"> |
| | | and dept.tenant_id = #{param1} |
| | | </if> |
| | | ORDER BY dept.sort |
| | | </select> |
| | | |
| | | |
| | | |
| | | <select id="lazyTrees" resultMap="treeNodeResultMap" > |
| | |
| | | List<Map<Object,String>> selectCount(String name); |
| | | List<Map<Object,String>> selectId(String id); |
| | | Map<Object,Integer> selectHold(String deptid); |
| | | |
| | | /** |
| | | * 懒加载获取部门树形结构,不包含顶级管理员公安局 |
| | | */ |
| | | List<DeptVO> securityLazyTree(String tenantId, Long parentId); |
| | | } |
| | |
| | | return baseMapper.selectHold(deptid); |
| | | } |
| | | |
| | | /** |
| | | * 懒加载获取部门树形结构,不包含顶级管理员公安局 |
| | | */ |
| | | @Override |
| | | public List<DeptVO> securityLazyTree(String tenantId, Long parentId) { |
| | | if (AuthUtil.isAdministrator()) { |
| | | tenantId = StringPool.EMPTY; |
| | | } |
| | | return ForestNodeMerger.merge(baseMapper.securityLazyTree(tenantId, parentId)); |
| | | } |
| | | } |