| | |
| | | |
| | | @ApiOperation(value = "根据软件id修改软件锁定状态") |
| | | @GetMapping("updateSoftwareLock") |
| | | public Response updateSoftwareLock(@RequestParam int id,@RequestParam int lockFlag,@RequestParam String localReason){ |
| | | return service.updateSoftwareLock(id,lockFlag,localReason); |
| | | public Response updateSoftwareLock(@RequestParam String fileUrl,@RequestParam int lockFlag,@RequestParam String localReason){ |
| | | return service.updateSoftwareLock(fileUrl,lockFlag,localReason); |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | //根据软件id修改软件锁定状态 |
| | | public Response updateSoftwareLock(int id,int lockFlag,String localReason) { |
| | | public Response updateSoftwareLock(String fileUrl,int lockFlag,String localReason) { |
| | | UpdateWrapper uwrapper=new UpdateWrapper(); |
| | | uwrapper.set("lock_flag",lockFlag); |
| | | uwrapper.set("local_reason",localReason); |
| | | uwrapper.eq("id",id); |
| | | uwrapper.eq("file_url",fileUrl); |
| | | int flag=mapper.update(null,uwrapper); |
| | | return new Response().set(1,flag>0,"锁定/解锁成功"); |
| | | } |