whyclxw
2 天以前 12154b62b42df29173cdc54d7fd35d02d9a6422b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.pojo.AttachLock;
import com.whyc.service.AttachLockService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.List;
 
@Api(tags = "物料管理")
@RestController
@RequestMapping("attachLock")
public class AttachLockController {
    @Autowired
    private AttachLockService service;
 
 
    @ApiOperation(value = "修改附件锁定状态")
    @PostMapping("updateAttachLock")
    public Response updateAttachLock(@RequestBody List<AttachLock> list){
        return service.attachLock(list);
    }
 
    @ApiOperation(tags = "产品管理",value = "修改丝印锁定状态")
    @PostMapping("updateProductLock")
    public Response updateProductLock(@RequestBody List<AttachLock> list){
        return service.updateProductLock(list);
    }
}