New file |
| | |
| | | package com.example.erp.controller.pp; |
| | | |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.entity.sd.OrderGlassDetail; |
| | | import com.example.erp.service.pp.WorkOrderService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.sql.Date; |
| | | |
| | | @RestController |
| | | @RequestMapping("/workOrder") |
| | | public class WorkOrderController { |
| | | @Autowired |
| | | WorkOrderService workOrderService; |
| | | |
| | | @PostMapping ("/orderGlassDetail/{selectTime1}/{selectTime2}/{state}") |
| | | public Result DateWork( |
| | | @PathVariable Date selectTime1, |
| | | @PathVariable Date selectTime2, |
| | | @PathVariable Integer state, |
| | | @RequestBody OrderGlassDetail orderGlassDetail){ |
| | | return Result.seccess(workOrderService.defaultDateWork(selectTime1,selectTime2,state,orderGlassDetail)); |
| | | } |
| | | } |