|
|
@@ -42,6 +42,7 @@ import org.springblade.sing.active.wrapper.ActiveProductRecordWrapper;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
@@ -147,7 +148,12 @@ public class ActiveProductRecordController extends BladeController {
|
|
|
@ApiOperationSupport(order = 7)
|
|
|
@ApiOperation(value = "逻辑删除", notes = "传入ids")
|
|
|
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
|
|
|
- return R.status(activeProductRecordService.deleteLogic(Func.toLongList(ids)));
|
|
|
+ List<Long> longs = Func.toLongList(ids);
|
|
|
+ List<ActiveProductRecord> activeProductRecords = activeProductRecordService.listByIds(longs);
|
|
|
+ for (ActiveProductRecord activeProductRecord : activeProductRecords) {
|
|
|
+ ActiveProductUtil.delProductRank(activeProductRecord);
|
|
|
+ }
|
|
|
+ return R.status(activeProductRecordService.deleteLogic(longs));
|
|
|
}
|
|
|
|
|
|
|