| | |
| | | public IPage<GdWorkOrderVO> selectGdWorkOrderPage(IPage<GdWorkOrderVO> page, WorkOrderPageParam gdWorkOrder) { |
| | | if (gdWorkOrder.getIsQueryAll()) { |
| | | List<Long> deptList = new ArrayList<>(); |
| | | if (!AuthUtil.isAdministrator() || !AuthUtil.isAdmin()) { |
| | | if (!(AuthUtil.isAdministrator() || AuthUtil.isAdmin())) { |
| | | deptList = SysCache.getDeptChildIds(Long.valueOf(AuthUtil.getDeptId())); |
| | | } |
| | | gdWorkOrder.setDeptList(deptList); |
| | |
| | | if (centerCoords == null || centerCoords.length < 2) { |
| | | return false; |
| | | } |
| | | String countyCode = GdGeoAddressUtil.getCountyCode(centerCoords[0], centerCoords[1]); |
| | | String countyCode = GdGeoAddressUtil.getTownCode(centerCoords[0], centerCoords[1]); |
| | | entity.setAreaCode(countyCode); |
| | | // 生成工单编号 |
| | | if (StringUtils.isBlank(entity.getWorkOrderCode())) { |