| | |
| | | } |
| | | |
| | | public Map<String, Object> pickOutMap() { |
| | | return where.getMap(); |
| | | return pickOutMap(false); |
| | | } |
| | | |
| | | public Map<String, Object> pickOutMap(boolean mergeCondition) { |
| | | Map<String, Object> map = where.getMap(); |
| | | if (mergeCondition) { |
| | | if (!Cools.isEmpty(where.getCondition())) { |
| | | map.put("condition", where.getCondition()); |
| | | } |
| | | } |
| | | return map; |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | @Override |
| | | public PageResult<User> pageRel(PageParam<User, BaseParam> pageParam) { |
| | | return new PageResult<>(this.baseMapper.selectPageRel(pageParam, pageParam.pickOutMap()), pageParam.getTotal()); |
| | | return new PageResult<>(this.baseMapper.selectPageRel(pageParam, pageParam.pickOutMap(true)), pageParam.getTotal()); |
| | | } |
| | | |
| | | @Override |
| | |
| | | <if test="param.deptId != null"> |
| | | and (FIND_IN_SET(#{param.deptId}, sd.`path`) OR sd.`id` = #{param.deptId}) |
| | | </if> |
| | | <if test="param.condition != null"> |
| | | </if> |
| | | order by su.create_time desc |
| | | </select> |
| | | |