menu_dishes_type crby fix
This commit is contained in:
parent
f010bf8fc3
commit
35df8518b7
|
|
@ -57,7 +57,7 @@ public class MenuDishesTypeServiceImpl extends ServiceImpl<MenuDishesTypeMapper
|
|||
String username = SecurityUtils.getUsername();
|
||||
MenuDishesType dishesType = new MenuDishesType();
|
||||
BeanUtil.copyProperties(content, dishesType, new String[0]);
|
||||
dishesType.setCrby(username);
|
||||
dishesType.setCreateBy(username);
|
||||
dishesType.setTypeId(Id.next());
|
||||
return this.baseMapper.insert(dishesType);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -432,7 +432,7 @@ public class MenuRecipeServiceImpl extends ServiceImpl<MenuRecipeMapper, MenuRec
|
|||
return this.baseMapper.getAllDishCategories(Wrappers.lambdaQuery(MenuDishesType.class)
|
||||
.eq(MenuDishesType::getDelFlag, DelFlagEnum.DEL_FALSE.key())
|
||||
.orderByAsc(MenuDishesType::getDefaultFlag)
|
||||
.orderByDesc(MenuDishesType::getCrtime));
|
||||
.orderByDesc(MenuDishesType::getCreateTime));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue