| | |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.productionPlan.dto.ProductionPlanDto; |
| | | import com.ruoyi.productionPlan.dto.ProductionPlanSummaryDto; |
| | | import com.ruoyi.productionPlan.service.ProductionPlanService; |
| | | import com.ruoyi.staff.dto.StaffLeaveDto; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <br> |
| | |
| | | } |
| | | |
| | | @GetMapping("/loadProdData") |
| | | @ApiOperation("拉取销售生产计划") |
| | | @Log(title = "拉取销售生产计划", businessType = BusinessType.INSERT) |
| | | public AjaxResult loadProdData() { |
| | | productionPlanService.loadProdData(); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @PostMapping("/combine") |
| | | @Log(title = "合并生产计划", businessType = BusinessType.INSERT) |
| | | @ApiOperation("合并生产计划") |
| | | public AjaxResult combine(@RequestBody ProductionPlanDto productionPlanDto) { |
| | | return AjaxResult.success(productionPlanService.combine(productionPlanDto)); |
| | | } |
| | | |
| | | @GetMapping("/summaryByProductType") |
| | | @ApiOperation("按照产品类别汇总统计需求量") |
| | | @Log(title = "按照产品类别汇总统计需求量", businessType = BusinessType.OTHER) |
| | | public AjaxResult summaryByProductType(ProductionPlanSummaryDto query) { |
| | | List<ProductionPlanSummaryDto> list = productionPlanService.summaryByProductType(query); |
| | | return AjaxResult.success(list); |
| | | } |
| | | } |