| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.math.BigDecimal; |
| | |
| | | public Result<String> publish(@RequestParam("ids") String ids) { |
| | | List<String> idList = Arrays.asList(ids.split(",")); |
| | | List<MesProductionWorkOrder> list = mesProductionWorkOrderService.list(new LambdaQueryWrapper<MesProductionWorkOrder>() |
| | | .in(MesProductionWorkOrder::getId, idList) |
| | | .eq(MesProductionWorkOrder::getDelFlag, CommonConstant.DEL_FLAG_0)).stream() |
| | | .in(MesProductionWorkOrder::getId, idList) |
| | | .eq(MesProductionWorkOrder::getDelFlag, CommonConstant.DEL_FLAG_0)).stream() |
| | | .filter(i -> !ProductionWorkOrderStatus.NEW.name().equals(i.getWorkOrderStatus())) |
| | | .collect(Collectors.toList()); |
| | | if (!list.isEmpty()) { |
| | |
| | | } |
| | | |
| | | @AutoLog(value = "排产工单-重发布排产计划") |
| | | @ApiOperation(value="排产工单-重发布排产计划", notes="重发布排产计划") |
| | | @ApiOperation(value = "排产工单-重发布排产计划", notes = "重发布排产计划") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_production_work_order:republish") |
| | | @PostMapping(value = "/republish") |
| | | public Result<String> republish(@RequestBody MesProductionWorkOrderRepublishRequest request) { |
| | |
| | | } |
| | | |
| | | @AutoLog(value = "排产工单-齐套性检查") |
| | | @ApiOperation(value="排产工单-齐套性检查", notes="齐套性检查") |
| | | @ApiOperation(value = "排产工单-齐套性检查", notes = "齐套性检查") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_production_work_order:workOrderCompletenessCheck") |
| | | @GetMapping(value = "/workOrderCompletenessCheck") |
| | | public Result<List<MesKittingCompletenessCheck>> workOrderCompletenessCheck(@RequestParam("id") String id) { |
| | |
| | | return super.importExcel(request, response, MesProductionWorkOrder.class); |
| | | } |
| | | |
| | | /** |
| | | * 物料拉动选择排产工单列表查询 |
| | | * |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "排产工单-物料拉动工单列表", notes = "排产工单-物料拉动工单列表") |
| | | @GetMapping(value = "/queryWorkOrderByTransfer") |
| | | public Result<IPage<MesProductionWorkOrder>> queryWorkOrderByTransfer(@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, |
| | | @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize) { |
| | | Page<MesProductionWorkOrder> page = new Page<>(pageNo, pageSize); |
| | | IPage<MesProductionWorkOrder> pageList = mesProductionWorkOrderService.queryWorkOrderByTransfer(page); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | } |