Merge branches 'master' and 'xzj' of https://gitee.com/darlk/ShengTangManage into xzj

This commit is contained in:
xiezhijun
2021-04-27 19:49:05 +08:00
24 changed files with 312 additions and 185 deletions

View File

@ -37,16 +37,7 @@ public class SysDishesController extends BaseController {
@GetMapping("/list")
public TableDataInfo list(SysDishes sysDishes) {
startPage();
List<SysDishes> list = sysDishesService.selectSysDishesList(sysDishes);
for (SysDishes dishes : list) {
List<SysDishesIngredient> ingredients = sysDishesService.selectSysIngreditentsById(dishes.getId());
if (StringUtils.isNull(ingredients)) {
dishes.setIgdList(new ArrayList<>());
} else {
dishes.setIgdList(ingredients);
}
}
return getDataTable(list);
return getDataTable(sysDishesService.selectSysDishesList(sysDishes));
}
/**