| | |
| | | ywLinePoint.setCreateDate(new Date()); |
| | | ywLinePoint.setCreator(loginUserInfo.getId()); |
| | | ywLinePoint.setIsdeleted(Constants.ZERO); |
| | | ywLinePoint.setLineId(ywLinePoint.getId()); |
| | | ywLinePoint.setLineId(ywPatrolLine.getId()); |
| | | } |
| | | ywLinePointMapper.insert(ywLinePointList); |
| | | return ywPatrolLine.getId(); |
| | |
| | | ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"巡检点配置错误"); |
| | | } |
| | | ywLinePoint.setLineId(ywLinePoint.getId()); |
| | | ywLinePoint.setLineId(ywPatrolLine.getId()); |
| | | ywLinePoint.setCreateDate(new Date()); |
| | | ywLinePoint.setCreator(loginUserInfo.getId()); |
| | | ywLinePoint.setIsdeleted(Constants.ZERO); |
| | |
| | | List<YwLinePoint> ywLinePointList = ywLinePointMapper.selectJoinList(YwLinePoint.class,new MPJLambdaWrapper<YwLinePoint>() |
| | | .selectAll(YwLinePoint.class) |
| | | .selectAs(YwPatrolPoint::getName,YwLinePoint::getPointName) |
| | | .leftJoin(YwPatrolLine.class,YwPatrolLine::getId,YwLinePoint::getPointId) |
| | | .selectAs(YwPatrolPoint::getCode,YwLinePoint::getCode) |
| | | .leftJoin(YwPatrolPoint.class,YwPatrolPoint::getId,YwLinePoint::getPointId) |
| | | .eq(YwLinePoint::getLineId,id) |
| | | .orderByAsc(YwLinePoint::getSortnum) |
| | | ); |
| | |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | YwPatrolLine model = pageWrap.getModel(); |
| | | queryWrapper.selectAll(YwPatrolLine.class) |
| | | .select(" ( select count(1) from yw_line_point y where y.LINE_ID = yw_patrol_line.id ) as lineAmount ") |
| | | .select(" ( select count(1) from yw_line_point y where y.LINE_ID = t.id ) as lineAmount ") |
| | | .like(Objects.nonNull(model)&&StringUtils.isNotBlank(model.getName()),YwPatrolLine::getName,model.getName()) |
| | | .eq(YwPatrolLine::getIsdeleted,Constants.ZERO) |
| | | .orderByDesc(YwPatrolLine::getCreateDate) |