Browse Source

添加气瓶标签更换时,状态修改接口

liujh 3 years ago
parent
commit
ba08a9c4e0

+ 12 - 0
zd-modules/zd-airbottle/src/main/java/com/zd/airbottle/controller/QpRfidTagController.java

@@ -104,4 +104,16 @@ public class QpRfidTagController extends BaseController<QpRfidTag> {
     public ResultData<Boolean> remove(@PathVariable Long[] ids) {
     public ResultData<Boolean> remove(@PathVariable Long[] ids) {
         return ResultData.result(qpRfidTagService.deleteQpRfidTagByIds(ids));
         return ResultData.result(qpRfidTagService.deleteQpRfidTagByIds(ids));
     }
     }
+
+    /**
+     * 修改RFID标签管理-小程序
+     */
+    @ApiOperation(value = "修改RFID标签管理-小程序")
+    @Log(title = "RFID标签管理", businessType = BusinessType.UPDATE)
+    @PostMapping("/update")
+    public ResultData<Boolean> update(@RequestBody QpRfidTag qpRfidTag) {
+        QpRfidTag tag = qpRfidTagService.selectByTag(qpRfidTag.getTagCode());
+        tag.setIsBind(qpRfidTag.getIsBind());
+        return ResultData.result(qpRfidTagService.updateQpRfidTag(tag));
+    }
 }
 }