| | |
| | | if (config.getMoreDepartmentIds()!=null&&config.getMoreDepartmentIds().indexOf(",")>0) |
| | | config.setDataPermission(config.getMoreDepartmentIds().substring(config.getMoreDepartmentIds().indexOf(",")+1)); |
| | | else |
| | | { |
| | | config.setDataPermission("0"); |
| | | } |
| | | |
| | | config.setRoleIds("13"); |
| | | } |
| | | else |
| | |
| | | List<HuaChengSysUser> list=iHuaChengSysUserService.selectData("",account,""); |
| | | HuaChengSysUser huaChengSysUser=null; |
| | | |
| | | if(list!=null || list.size()>0 ) |
| | | if(list!=null && list.size()>0 ) |
| | | { |
| | | huaChengSysUser=list.get(0); |
| | | } |
| | |
| | | AND user_type=#{userType} |
| | | </if> |
| | | <if test="ids != null"> |
| | | and department_id IN |
| | | <foreach collection="ids" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | | AND |
| | | <foreach collection="ids" item="param" open="(" close=")" separator="or"> |
| | | locate(#{param},more_department_ids)>0 |
| | | </foreach> |
| | | </if> |
| | | |
| | | <if test="isDivisionHead != null and isDivisionHead != ''"> |
| | | and is_division_head=#{isDivisionHead} |
| | | </if> |