linwe
2023-11-12 8d8c7da4e91028fc877f101dcd244bef3e18c197
src/main/java/org/springblade/modules/house/controller/HouseholdLabelController.java
@@ -16,6 +16,7 @@
 */
package org.springblade.modules.house.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
@@ -135,4 +136,17 @@
   }
   /**
    * 住户-标签 自定义删除
    */
   @PostMapping("/removeHouseholdLabel")
   public R removeHouseholdLabel(@RequestBody HouseholdLabelEntity householdLabel) {
      QueryWrapper<HouseholdLabelEntity> wrapper = new QueryWrapper<>();
      wrapper.eq("household_id",householdLabel.getHouseholdId())
         .eq("label_id",householdLabel.getLabelId());
      // 返回
      return R.status(householdLabelService.remove(wrapper));
   }
}