|
@@ -111,14 +111,14 @@ public class XfDiscounttermController extends BaseController {
|
|
|
/**
|
|
/**
|
|
|
* 删除折扣设备
|
|
* 删除折扣设备
|
|
|
*
|
|
*
|
|
|
- * @param discountTermIds 主键串
|
|
|
|
|
|
|
+ * @param discountTermIds 设备id串
|
|
|
*/
|
|
*/
|
|
|
@SaCheckPermission("consumption:xfDiscountterm:remove")
|
|
@SaCheckPermission("consumption:xfDiscountterm:remove")
|
|
|
@Log(title = "折扣设备", businessType = BusinessType.DELETE)
|
|
@Log(title = "折扣设备", businessType = BusinessType.DELETE)
|
|
|
@SyncDataToLocal(eventType = DISCOUNT_TERM_REMOVE, sender = XF_DISCOUNT_SENDER)
|
|
@SyncDataToLocal(eventType = DISCOUNT_TERM_REMOVE, sender = XF_DISCOUNT_SENDER)
|
|
|
@DeleteMapping("/{discountTermIds}")
|
|
@DeleteMapping("/{discountTermIds}")
|
|
|
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
|
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
|
|
- @PathVariable Long[] discountTermIds) {
|
|
|
|
|
- return toAjax(xfDiscounttermService.deleteWithValidByIds(List.of(discountTermIds), true));
|
|
|
|
|
|
|
+ @PathVariable Long[] termIds) {
|
|
|
|
|
+ return toAjax(xfDiscounttermService.deleteWithValidByIds(List.of(termIds), true));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|