guang:完成套餐部分修改

This commit is contained in:
飞光!飞光! 2023-06-20 00:11:12 +08:00
parent c74e95db15
commit 91055cd37a
2 changed files with 0 additions and 8 deletions

View File

@ -14,7 +14,6 @@ import java.util.List;
*/ */
public interface SetmealService extends CrudService<SetmealEntity, SetmealDTO> { public interface SetmealService extends CrudService<SetmealEntity, SetmealDTO> {
void updateStatus(int status, List<Long> ids);
void updateStatus(List<String> ids); void updateStatus(List<String> ids);
} }

View File

@ -35,13 +35,6 @@ public class SetmealServiceImpl extends CrudServiceImpl<SetmealDao, SetmealEntit
return wrapper; return wrapper;
} }
@Override
public void updateStatus(int status, List<Long> ids) {
LambdaUpdateWrapper<SetmealEntity> wrapper = new LambdaUpdateWrapper<>();
wrapper.in(SetmealEntity::getId, ids).set(SetmealEntity::getStatus, status);
this.update(new SetmealEntity(), wrapper);
}
@Override @Override
public void updateStatus(List<String> ids) { public void updateStatus(List<String> ids) {
if (ids == null || ids.isEmpty()) { if (ids == null || ids.isEmpty()) {