mark
This commit is contained in:
@@ -1,24 +1,54 @@
|
||||
package com.cnbm.packing.controller;
|
||||
|
||||
import com.cnbm.common.constant.Constant;
|
||||
import com.cnbm.packing.service.DynamicDataSourceService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.cnbm.common.utils.Result;
|
||||
import springfox.documentation.annotations.ApiIgnore;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Author weihongyang
|
||||
* @Date 2022/6/24 8:57 AM
|
||||
* @Version 1.0
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/packing")
|
||||
@RequestMapping("/test")
|
||||
@Api(tags="测试接口")
|
||||
public class TestController {
|
||||
|
||||
@GetMapping("get")
|
||||
public Result<Integer> get(){
|
||||
return new Result<Integer>().ok(1);
|
||||
@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()));
|
||||
}
|
||||
|
||||
@PostMapping("get2")
|
||||
public Result<Integer> get2(){
|
||||
return new Result<Integer>().ok(2);
|
||||
@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());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user