guang:完成套餐部分修改
This commit is contained in:
parent
c74e95db15
commit
91055cd37a
@ -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);
|
||||||
}
|
}
|
@ -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()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user