|
@@ -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));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|