| | |
| | | package com.example.erp.controller.pp; |
| | | |
| | | import com.example.erp.entity.pp.FlowCard; |
| | | import com.example.erp.entity.sd.Order; |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.entity.sd.OrderDetail; |
| | | import com.example.erp.service.pp.FlowCardService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | @PathVariable Date selectTime1, |
| | | @PathVariable Date selectTime2, |
| | | @RequestBody FlowCard flowCard){ |
| | | System.out.println(selectTime1+" "+selectTime2+" "+flowCard.toString()); |
| | | return Result.seccess(flowCardService.selectProcessCard(selectTime1,selectTime2,flowCard)); |
| | | |
| | | } |
| | | |
| | | @PostMapping ("/selectAddProcess/{selectTime1}/{selectTime2}") |
| | | public Result SelectAddProcess( |
| | | @PathVariable Date selectTime1, |
| | | @PathVariable Date selectTime2, |
| | | @RequestBody Order order){ |
| | | // System.out.println(selectTime1+" "+selectTime2+" "+flowCard.toString()); |
| | | return Result.seccess(flowCardService.selectAddProcess(selectTime1,selectTime2,order)); |
| | | |
| | | } |
| | | |
| | | @PostMapping ("/detailsSelect/{orderId}") |
| | | |
| | | public Result DetailsSelect( |
| | | @PathVariable String orderId, |
| | | @RequestBody OrderDetail orderDetail){ |
| | | return Result.seccess(flowCardService.DetailsSelectSv(orderId,orderDetail)); |
| | | |
| | | } |
| | | |
| | | } |