| | |
| | | import org.springblade.core.tool.support.Kv; |
| | | import org.springblade.core.tool.utils.*; |
| | | import org.springblade.modules.auth.enums.UserEnum; |
| | | import org.springblade.modules.information.entity.Information; |
| | | import org.springblade.modules.information.service.IInformationService; |
| | | import org.springblade.modules.jurisdiction.entity.Jurisdiction; |
| | | import org.springblade.modules.system.entity.*; |
| | | import org.springblade.modules.system.excel.UserExcel; |
| | | import org.springblade.modules.system.mapper.UserMapper; |
| | |
| | | private final IUserOauthService userOauthService; |
| | | private final IRoleService roleService; |
| | | private final BladeTenantProperties tenantProperties; |
| | | private final IInformationService iInformationService; |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | return baseMapper.getUserDetails(user); |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @param type 1:派遣 2:保安向 |
| | | * @param deptid |
| | | * @param jurisdiction |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<Map<String, Object>> seleL(String type,String deptid, String jurisdiction) { |
| | | List<Map<String, Object>> list = new ArrayList<>(); |
| | | //工作汇报 |
| | | if (type.equals(1)){ |
| | | //派遣 |
| | | if (Integer.parseInt(type)==1){ |
| | | list = baseMapper.getDispaterInfo(deptid, jurisdiction); |
| | | } |
| | | //派遣 |
| | | if (type.equals(2) ||type.equals(3)){ |
| | | //工作汇报 |
| | | //保安向保安 |
| | | if (Integer.parseInt(type)==2){ |
| | | list = baseMapper.getWorkReportInfo(type,deptid, jurisdiction); |
| | | } |
| | | //保安向民警 |
| | | if (Integer.parseInt(type)==3){ |
| | | Information information = new Information(); |
| | | information.setDepartmentid(deptid); |
| | | Information one = iInformationService.getOne(Condition.getQueryWrapper(information)); |
| | | list = baseMapper.getWorkReportInfo(type,null, one.getJurisdiction()); |
| | | } |
| | | //民警对民警 |
| | | if (Integer.parseInt(type)==4){ |
| | | list = baseMapper.getWorkReportInfo(type,deptid, jurisdiction); |
| | | } |
| | | return list; |