新火炬后端单体项目初始化代码
zhangherong
9 天以前 e6d788eef335aa02ac306e984c44affa68ab971c
src/main/java/org/jeecg/modules/sap/controller/SAPTestController.java
@@ -4,11 +4,14 @@
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;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
@Api(tags = "SAP集成测试")
@RestController
@@ -17,6 +20,8 @@
public class SAPTestController {
    @Autowired
    private SAPService sapService;
    @Autowired
    private ProductionOrderSync productionOrderSync;
    @ApiOperation(value = "SAP集成测试-测试接口", notes = "SAP集成测试-测试接口")
    @GetMapping("/test")
@@ -24,4 +29,11 @@
        String test = sapService.test();
        return Result.ok(test);
    }
    @ApiOperation(value = "SAP集成测试-生产订单同步接口", notes = "SAP集成测试-生产订单同步接口")
    @GetMapping("/syncProductionOrder")
    public Result<?> syncProductionOrder() throws Exception {
        Map<String, Object> resultMap = productionOrderSync.syncProductionOrder();
        return Result.ok(resultMap);
    }
}