智慧保安后台管理-外网
Administrator
2021-08-30 f5c1732bf6bfd05af3fa53286e9c85f34d77c677
src/main/java/org/springblade/modules/system/service/impl/UserServiceImpl.java
@@ -41,6 +41,9 @@
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;
@@ -72,6 +75,7 @@
   private final IUserOauthService userOauthService;
   private final IRoleService roleService;
   private final BladeTenantProperties tenantProperties;
   private final IInformationService iInformationService;
   @Override
   @Transactional(rollbackFor = Exception.class)
@@ -621,15 +625,34 @@
      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;