| | |
| | | package com.billion.main.api; |
| | | |
| | | import com.billion.main.api.domain.ApiResponse; |
| | | import com.billion.main.api.domain.CollectQualityData; |
| | | import com.billion.main.api.domain.WorkOrdersInfo; |
| | | import com.billion.main.api.service.IWorkOrdersInfoService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | |
| | | try { |
| | | // 调用service层保存数据 |
| | | boolean saveResult = iWorkOrdersInfoService.saveWorkOrders(workOrdersInfo); |
| | | |
| | | // 构建响应数据 |
| | | ApiResponse response = new ApiResponse(); |
| | | List<ApiResponse.ResponseData> dataList = new ArrayList<>(); |
| | |
| | | return response; |
| | | } |
| | | } |
| | | @PostMapping("/CollectQualityData") |
| | | public CollectQualityData CollectQualityData(@RequestBody CollectQualityData collectQualityData){ |
| | | |
| | | return collectQualityData; |
| | | } |
| | | |
| | | |
| | | } |