2023-02-14 09:08:21 +08:00
|
|
|
package com.cnbm.packing.controller;
|
|
|
|
|
2023-02-24 14:21:25 +08:00
|
|
|
import com.cnbm.common.constant.Constant;
|
|
|
|
import com.cnbm.packing.service.DynamicDataSourceService;
|
2023-02-14 09:08:21 +08:00
|
|
|
import io.swagger.annotations.Api;
|
2023-02-24 14:21:25 +08:00
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
2023-02-14 09:08:21 +08:00
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import com.cnbm.common.utils.Result;
|
2023-02-24 14:21:25 +08:00
|
|
|
import springfox.documentation.annotations.ApiIgnore;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
2023-02-14 09:08:21 +08:00
|
|
|
/**
|
|
|
|
* @Author weihongyang
|
|
|
|
* @Date 2022/6/24 8:57 AM
|
|
|
|
* @Version 1.0
|
|
|
|
*/
|
|
|
|
@RestController
|
2023-02-24 14:21:25 +08:00
|
|
|
@RequestMapping("/test")
|
|
|
|
@Api(tags="测试接口")
|
2023-02-14 09:08:21 +08:00
|
|
|
public class TestController {
|
|
|
|
|
2023-02-24 14:21:25 +08:00
|
|
|
@Autowired
|
|
|
|
DynamicDataSourceService service;
|
|
|
|
@PostMapping("getPMPPBySubId")
|
|
|
|
@ApiImplicitParams({
|
|
|
|
@ApiImplicitParam(name = "subId", value = "基板ID", paramType = "query", required = true, dataTypeClass=Integer.class) ,
|
|
|
|
})
|
|
|
|
public Result<Float> getPMPPBySubId(@ApiIgnore @RequestParam Map<String, Object> params){
|
|
|
|
Object subId = params.get("subId");
|
|
|
|
return new Result<Float>().ok(service.getPMPPBySubId(subId.toString()));
|
|
|
|
}
|
|
|
|
@PostMapping("getOrderNameBySubId")
|
|
|
|
@ApiImplicitParams({
|
|
|
|
@ApiImplicitParam(name = "subId", value = "基板ID", paramType = "query", required = true, dataTypeClass=Integer.class) ,
|
|
|
|
})
|
|
|
|
public Result<String> getOrderNameBySubId(@ApiIgnore @RequestParam Map<String, Object> params){
|
|
|
|
Object subId = params.get("subId");
|
|
|
|
//service.getExtendArgFromCamline()
|
|
|
|
return new Result<String>().ok(service.getOrderNameBySubId(subId.toString()));
|
2023-02-14 09:08:21 +08:00
|
|
|
}
|
|
|
|
|
2023-02-24 14:21:25 +08:00
|
|
|
@PostMapping("getExtendArgFromCamline")
|
|
|
|
@ApiImplicitParams({
|
|
|
|
@ApiImplicitParam(name = "subId", value = "基板ID", paramType = "query", required = true, dataTypeClass=Integer.class) ,
|
|
|
|
})
|
|
|
|
public Result<String> getExtendArgFromCamline(@ApiIgnore @RequestParam Map<String, Object> params){
|
|
|
|
Object subId = params.get("subId");
|
|
|
|
return new Result<String>().ok(service.getExtendArgFromCamline(subId.toString()).toString());
|
2023-02-14 09:08:21 +08:00
|
|
|
}
|
2023-02-24 14:21:25 +08:00
|
|
|
|
2023-02-14 09:08:21 +08:00
|
|
|
}
|