|
|
|
@ -15,6 +15,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
@ -26,6 +27,12 @@ public class DemoCloudController {
|
|
|
|
|
|
|
|
|
|
private static final Logger LOGGER = LoggerFactory.getLogger(DemoCloudController.class);
|
|
|
|
|
|
|
|
|
|
@Value("${server.port}")
|
|
|
|
|
private String serverPort;
|
|
|
|
|
|
|
|
|
|
@Value("${eureka.instance.ip-address}")
|
|
|
|
|
private String ipAddress;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
ICoreDemoCloud iCoreDemoCloud;
|
|
|
|
|
|
|
|
|
@ -35,14 +42,14 @@ public class DemoCloudController {
|
|
|
|
|
@GetMapping(value="/test")
|
|
|
|
|
@ApiOperation(value="core测试",notes = "core测试")
|
|
|
|
|
public ResultBean testCore(String test) {
|
|
|
|
|
LOGGER.info("【impp-core接受数据】{}",test);
|
|
|
|
|
LOGGER.info("{}:{},【impp-core接受数据】{}",ipAddress,serverPort,test);
|
|
|
|
|
return ResultBean.success("返回:" + test).setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping(value="/test-wms")
|
|
|
|
|
@ApiOperation(value="wms测试",notes = "wms测试")
|
|
|
|
|
public ResultBean testWms(String test) {
|
|
|
|
|
LOGGER.info("【impp-core接受数据 -> wms】{}",test);
|
|
|
|
|
LOGGER.info("【{}:{},impp-core接受数据 -> wms】{}",ipAddress,serverPort,test);
|
|
|
|
|
|
|
|
|
|
BaseResultBean result = iWmsDemoCloud.testWms(test);
|
|
|
|
|
if(result.isSuccess()){
|
|
|
|
|