fx:修复微服务导致前端请求不可以正常访问
This commit is contained in:
parent
c551239e6a
commit
03ae405005
@ -10,10 +10,10 @@ import org.springframework.web.bind.annotation.*;
|
||||
@FeignClient(contextId = "remoteQmsSamplePlanService", value = "iep-qms")
|
||||
public interface RemoteQmsSamplePlanService {
|
||||
|
||||
@GetMapping("/sample-plan/{handle}/info")
|
||||
@GetMapping("/sample-plan/api/{handle}/info")
|
||||
R<QmsSamplePlan> getById(@PathVariable("handle") String handle, @RequestHeader(SecurityConstants.FROM) String from);
|
||||
|
||||
@PostMapping("/sample-plan/calculate")
|
||||
@PostMapping("/sample-plan/api/calculate")
|
||||
R<QmsSamplePlanDTO> calculate(@RequestBody QmsSamplePlanDTO qmsSamplePlanDTO,
|
||||
@RequestHeader(SecurityConstants.FROM) String from);
|
||||
}
|
||||
@ -102,20 +102,36 @@ public class QmsSamplePlanController {
|
||||
*/
|
||||
@ApiOperation(value = "计算抽样数&允退数", notes = "计算抽样数&允退数")
|
||||
@SysLog("计算抽样数&允退数")
|
||||
@Inner
|
||||
@PostMapping("/calculate")
|
||||
public R calculate(@RequestBody QmsSamplePlanDTO qmsSamplePlan) {
|
||||
return R.ok(qmsSamplePlanService.calculate(qmsSamplePlan));
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算抽样数&允退数
|
||||
*
|
||||
* @param qmsSamplePlan 抽样计划主表
|
||||
* @return R
|
||||
*/
|
||||
@Inner
|
||||
@PostMapping("/api/calculate")
|
||||
public R calculateApi(@RequestBody QmsSamplePlanDTO qmsSamplePlan) {
|
||||
return R.ok(qmsSamplePlanService.calculate(qmsSamplePlan));
|
||||
}
|
||||
|
||||
@GetMapping("/ratio")
|
||||
public R getQmsSampleRatio() {
|
||||
return R.ok(qmsSampleRatioService.list());
|
||||
}
|
||||
|
||||
@Inner
|
||||
@GetMapping("/{handle}/info")
|
||||
public R getById(@PathVariable("handle") String handle) {
|
||||
return R.ok(qmsSamplePlanService.getById(handle));
|
||||
}
|
||||
|
||||
@Inner
|
||||
@GetMapping("/api/{handle}/info")
|
||||
public R getByIdApi(@PathVariable("handle") String handle) {
|
||||
return R.ok(qmsSamplePlanService.getById(handle));
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user