| | |
| | | package com.example.erp.controller; |
| | | |
| | | import cn.dev33.satoken.annotation.SaCheckPermission; |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.dto.pp.WorkInProgressDTO; |
| | | import com.example.erp.entity.pp.FlowCard; |
| | | import com.example.erp.entity.sd.Order; |
| | | import com.example.erp.entity.sd.OrderDetail; |
| | | import com.example.erp.service.mm.FinishedGoodsInventoryService; |
| | | import com.example.erp.service.mm.MaterialInventoryService; |
| | | import com.example.erp.service.pp.ReportService; |
| | |
| | | |
| | | import java.time.LocalDate; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @RestController |
| | | @RequestMapping("/app") |
| | |
| | | |
| | | @ApiOperation("半成品库存报表") |
| | | @PostMapping("/getWorkInProgress/{selectProcesses}") |
| | | public Result workInProgress(@PathVariable String selectProcesses,WorkInProgressDTO workInProgressDTO) { |
| | | public Result getworkInProgress(@PathVariable String selectProcesses,WorkInProgressDTO workInProgressDTO) { |
| | | return Result.success(reportService.workInProgressSv(1, 999999999, "", "", selectProcesses,"","", workInProgressDTO)); |
| | | |
| | | } |
| | | |
| | | @ApiOperation("可入库的成品查询接口") |
| | | @PostMapping("/getSelectWarehousingList") |
| | | public Result getSelectWarehousingList(@RequestBody String processId){ |
| | | return Result.success(finishedGoodsInventoryService.getSelectWarehousingApp(processId)); |
| | | } |
| | | |
| | | @ApiOperation("成品入库接口") |
| | | @PostMapping("/addSelectWarehousing") |
| | | public Result addSelectWarehousing( @RequestBody Map<String,Object> object){ |
| | | return Result.success(finishedGoodsInventoryService.addSelectWarehousing(object)); |
| | | |
| | | } |
| | | |
| | | @ApiOperation("可发货的成品查询接口") |
| | | @PostMapping("/getSelectDeliveryDetailList") |
| | | public Result getSelectDeliveryDetailList(){ |
| | | return Result.success(finishedGoodsInventoryService.getSelectDeliveryDetailApp()); |
| | | } |
| | | |
| | | @ApiOperation("成品出库接口") |
| | | @PostMapping("/addDeliveryDetail") |
| | | public Result addDeliveryDetail( @RequestBody Map<String,Object> object){ |
| | | return Result.success(finishedGoodsInventoryService.addDeliveryDetail(object)); |
| | | } |
| | | } |