| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.Map; |
| | | |
| | | @Api(tags = "SAP集成测试") |
| | | @RestController |
| | | @RequestMapping("/sap/client") |
| | |
| | | return Result.ok(test); |
| | | } |
| | | |
| | | @ApiOperation(value = "SAP集成测试-测试接口", notes = "SAP集成测试-测试接口") |
| | | @ApiOperation(value = "SAP集成测试-生产订单同步接口", notes = "SAP集成测试-生产订单同步接口") |
| | | @GetMapping("/syncProductionOrder") |
| | | public Result<?> syncProductionOrder() { |
| | | productionOrderSync.syncProductionOrder(); |
| | | return Result.ok(); |
| | | public Result<?> syncProductionOrder() throws Exception { |
| | | Map<String, Object> resultMap = productionOrderSync.syncProductionOrder(); |
| | | return Result.ok(resultMap); |
| | | } |
| | | } |