| | |
| | | import com.baomidou.mybatisplus.extension.conditions.update.LambdaUpdateChainWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.dataListener.CurrencyDataListener; |
| | | import com.ycl.platform.domain.entity.ReportAuditingRecord; |
| | | import com.ycl.platform.domain.entity.YwPeople; |
| | | import com.ycl.platform.domain.entity.YwPoint; |
| | | import com.ycl.platform.domain.excel.PointExport; |
| | | import com.ycl.platform.domain.form.BatchEditPointForm; |
| | | import com.ycl.platform.domain.form.YwPointForm; |
| | | import com.ycl.platform.domain.query.YwPointQuery; |
| | | import com.ycl.platform.domain.vo.ReportAuditingRecordVO; |
| | | import com.ycl.platform.domain.vo.YwPointVO; |
| | | import com.ycl.platform.mapper.YwPeopleMapper; |
| | | import com.ycl.platform.mapper.YwPointMapper; |
| | |
| | | |
| | | @Override |
| | | public Result select(String keyword) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | // 获取当前运维人员的运维单位 |
| | | YwPeople people = new LambdaQueryChainWrapper<>(ywPeopleMapper) |
| | | .eq(YwPeople::getUserId, userId) |
| | | .one(); |
| | | Integer unitId = null; |
| | | if (Objects.nonNull(people)) { |
| | | unitId = people.getBelongUnit(); |
| | | } |
| | | |
| | | List<YwPoint> list = new LambdaQueryChainWrapper<>(baseMapper) |
| | | .eq(YwPoint::getUnitId, unitId) |
| | | .like(YwPoint::getPointName, keyword) |
| | | .or() |
| | | .eq(YwPoint::getUnitId, unitId) |
| | | .like(YwPoint::getSerialNumber, keyword) |
| | | .list(); |
| | | Integer unitId = SecurityUtils.getUnitId(); |
| | | List<YwPoint> list = baseMapper.select(keyword, unitId); |
| | | List data = list.stream().map(item -> { |
| | | Map map = new HashMap<String, Object>(); |
| | | map.put("id", item.getSerialNumber()); |
| | |
| | | return Result.ok(); |
| | | } |
| | | |
| | | @Override |
| | | public ReportAuditingRecordVO getReportResult(String serialNumber, String reportType) { |
| | | return baseMapper.getReportResult(serialNumber, reportType); |
| | | } |
| | | |
| | | /** |
| | | * 修改点位的运维单位 |
| | | * |