| | |
| | | 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 java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | |
| | | @RestController |
| | | //@Component |
| | | @RequestMapping("/dmMes") |
| | | public class RestfulAPI { |
| | | |
| | | @Autowired |
| | |
| | | //出参 |
| | | OutPutParametersChild child = new OutPutParametersChild(workOrdersInfo.getMaterialNumber(), "S", "采集完成"); |
| | | outputParams.addData(child); |
| | | outputParams.toJson(); |
| | | } else { |
| | | OutPutParametersChild child = new OutPutParametersChild(workOrdersInfo.getMaterialNumber(), "F", "采集失败"); |
| | | outputParams.addData(child); |
| | | outputParams.toJson(); |
| | | } |
| | | |
| | | return outputParams; |