Commit 96b8a4a8 by ghxdhr

修改标准样品代码

parent 72f1364e
...@@ -16,12 +16,12 @@ import org.springframework.web.bind.annotation.*; ...@@ -16,12 +16,12 @@ import org.springframework.web.bind.annotation.*;
import java.util.List; import java.util.List;
/** /**
* ${table.comment} 前端控制器 * 标准样品 前端控制器
* *
* @author patzn * @author patzn
* @since 2021-07-22 * @since 2021-07-22
*/ */
@Api(tags = "${table.comment}") @Api(tags = "标准样品表")
@RestController @RestController
@RequestMapping("/v1/sample") @RequestMapping("/v1/sample")
public class StandardSampleController extends ServiceController { public class StandardSampleController extends ServiceController {
...@@ -61,6 +61,7 @@ public class StandardSampleController extends ServiceController { ...@@ -61,6 +61,7 @@ public class StandardSampleController extends ServiceController {
@ApiOperation("添加") @ApiOperation("添加")
@PostMapping("/") @PostMapping("/")
public RestResult<Boolean> add(StandardSample standardSample) { public RestResult<Boolean> add(StandardSample standardSample) {
standardSample.setCid(getAccount().getUserId());
return success(standardSampleService.save(standardSample)); return success(standardSampleService.save(standardSample));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment