init
This commit is contained in:
@@ -91,6 +91,7 @@ public class ActivityShopController extends BaseController {
|
|||||||
@DeleteMapping("/{ids}")
|
@DeleteMapping("/{ids}")
|
||||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||||
@PathVariable Long[] ids) {
|
@PathVariable Long[] ids) {
|
||||||
return toAjax(activityShopService.removeBatchByIds(Arrays.asList(ids)));
|
activityShopService.removeDataByIds(ids);
|
||||||
|
return R.ok();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,4 +31,6 @@ public interface ActivityShopService extends IService<ActivityShop> {
|
|||||||
void updateData(ActivityShop bo);
|
void updateData(ActivityShop bo);
|
||||||
|
|
||||||
void updateDataUser(ActivityShop bo);
|
void updateDataUser(ActivityShop bo);
|
||||||
|
|
||||||
|
void removeDataByIds(Long[] ids);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -234,4 +234,11 @@ public class ActivityShopServiceImpl extends ServiceImpl<ActivityShopMapper,Acti
|
|||||||
shop.setHandManNum(bo.getHandManNum());
|
shop.setHandManNum(bo.getHandManNum());
|
||||||
this.updateById(bo);
|
this.updateById(bo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void removeDataByIds(Long[] ids) {
|
||||||
|
this.update(Wrappers.lambdaUpdate(ActivityShop.class)
|
||||||
|
.eq(ActivityShop::getId, ids)
|
||||||
|
.set(ActivityShop::getDeleteFlag, 1));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user