| | |
| | | import com.moral.api.pojo.ext.allocation.AllocationExt; |
| | | import com.moral.api.pojo.ext.allocation.AllocationListExt; |
| | | import com.moral.api.pojo.ext.allocation.AllocationPageExt; |
| | | import com.moral.api.pojo.ext.responsibility.ResponsibilityUnitExt; |
| | | import com.moral.api.pojo.query.allocation.*; |
| | | import com.moral.api.pojo.query.allocationextension.AllocationExtensionAddCond; |
| | | import com.moral.api.pojo.query.app.AppAllocationFileCond; |
| | |
| | | String endTime=null; |
| | | if (!ObjectUtils.isEmpty(map.get("startTime")) || !ObjectUtils.isEmpty(map.get("endTime"))){ |
| | | startTime = map.get("startTime").toString(); |
| | | endTime = map.get("endTime").toString(); |
| | | endTime = DateUtils.getDateOfDay(map.get("endTime").toString(), 1, DateUtils.yyyy_MM_dd_EN); |
| | | |
| | | } |
| | | if (Integer.parseInt(number1.toString())>0){ |
| | |
| | | |
| | | @Override |
| | | public Integer unitAreaCode() { |
| | | // 1 总管理 0普通 2 区域管理 |
| | | QxUser user = UserHelper.getCurrentUser(); |
| | | List<Integer> userList = responsibilityUnitMapper.selectCodeList(SysDictTypeEnum.SYS_JBD.getValue(),user.getUserId()); |
| | | if(CollectionUtils.isNotEmpty(userList)){ |
| | | return 1; |
| | | } |
| | | if(Objects.nonNull(user.getUnitId())&&user.getUnitId()!=0) { |
| | | String code = responsibilityUnitMapper.selectAreaCode(user.getUnitId()); |
| | | if (code.length() > 6) { |
| | | List<ResponsibilityUnitExt> codeList = responsibilityUnitMapper.selectResponsibilityUnitList(user.getUnitId()); |
| | | if ( codeList.get(0).getAreaCode().length() > 6) { |
| | | return 0; |
| | | } else { |
| | | } else if(codeList.get(0).getAreaCode().length() == 6 && codeList.get(0).getParentCode().equals("320900")) { |
| | | return 0; |
| | | }else { |
| | | return 2; |
| | | } |
| | | } |