| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.modules.eam.constant.InspectionItemCategroyEnum; |
| | | import org.jeecg.modules.eam.entity.EamMaintenanceStandardDetail; |
| | | import org.jeecg.modules.eam.entity.EamWeekInspectionDetail; |
| | | import org.jeecg.modules.eam.service.IEamWeekInspectionDetailService; |
| | | import org.jeecg.modules.eam.util.DateUtils; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiOperation(value = "周点检工单明细-日点检规范列表查询", notes = "周点检工单明细-日点检规范列表查询") |
| | | @GetMapping(value = "/queryStandardList") |
| | | public Result<?> queryStandardList(@RequestParam("standardId") String standardId) { |
| | | public Result<?> queryStandardList(@RequestParam("standardId") String standardId, @RequestParam("inspectionDate") String inspectionDate) { |
| | | LambdaQueryWrapper<EamWeekInspectionDetail> queryWrapper = new LambdaQueryWrapper<>(); |
| | | queryWrapper.eq(EamWeekInspectionDetail::getStandardId, standardId); |
| | | queryWrapper.between(EamWeekInspectionDetail::getPlanInspectionDate, DateUtils.getFirstDayOfWeek(), DateUtils.getLastDayOfWeek()); |
| | | queryWrapper.between(EamWeekInspectionDetail::getPlanInspectionDate, DateUtils.getFirstDayOfWeek(inspectionDate), DateUtils.getLastDayOfWeek(inspectionDate)); |
| | | queryWrapper.orderByAsc(EamWeekInspectionDetail::getItemCode); |
| | | List<EamWeekInspectionDetail> list = eamWeekInspectionDetailService.list(queryWrapper); |
| | | return Result.OK(list); |