#
Junjie
2024-01-05 1d87fc5ed3d35dcaf3c5ebba51c98b0c3498ed48
zy-asrs-openapi/src/main/java/com/zy/asrs/openapi/controller/ApiController.java
@@ -124,9 +124,10 @@
     */
    @PostMapping("/createMat")
    public synchronized R createMat(@RequestHeader(required = true) String appkey,
                                    @RequestBody(required = false) List<CreateMatParam> mats) {
        HostKey hostKey = auth(appkey, mats, true);
        int result = apiService.createMat(mats, hostKey.getHostId());
                                    @RequestBody(required = false) CreateMatParam param) {
        HostKey hostKey = auth(appkey, param, true);
        param.setHostId(hostKey.getHostId());
        int result = apiService.createMat(param);
        return R.ok().add(result);
    }