| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.modules.sap.service.ProductionOrderSync; |
| | | import org.jeecg.modules.sap.service.SAPService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | public class SAPTestController { |
| | | @Autowired |
| | | private SAPService sapService; |
| | | @Autowired |
| | | private ProductionOrderSync productionOrderSync; |
| | | |
| | | @ApiOperation(value = "SAP集成测试-测试接口", notes = "SAP集成测试-测试接口") |
| | | @GetMapping("/test") |
| | |
| | | String test = sapService.test(); |
| | | return Result.ok(test); |
| | | } |
| | | |
| | | @ApiOperation(value = "SAP集成测试-测试接口", notes = "SAP集成测试-测试接口") |
| | | @GetMapping("/syncProductionOrder") |
| | | public Result<?> syncProductionOrder() { |
| | | productionOrderSync.syncProductionOrder(); |
| | | return Result.ok(); |
| | | } |
| | | } |