测试问题修复

This commit is contained in:
liux 2025-11-13 20:28:19 +08:00
parent d515e6bd10
commit 92fae50ff9
2 changed files with 5 additions and 3 deletions

View File

@ -524,10 +524,11 @@ public class CookDishesServiceImpl implements ICookDishesService {
});
List<MapBean> typeMapList = this.cookDishesMapper.getCookMaterialTypeMap();
if(Objects.isNull(typeMapList)){
throw new RuntimeException("菜品类型为空");
}
Map<String, Long> typeMap = new HashMap<>(100);
typeMapList.forEach(map -> typeMap.put(map.getKey(), toLong(map.getValue())));
importDishesContext.setAllocAreaMap(areaMap);
importDishesContext.setAllocStallMap(stallMap);
importDishesContext.setAllocCanteenMap(canteenMap);

View File

@ -391,7 +391,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where del_flag = '0'
</select>
<select id="getCookMaterialTypeMap" resultType="com.bonus.canteen.core.cook.domain.MapBean">
select dishes_type_name as `key` ,dishes_type_id as `value` from cook_dishes_type where parent_id != 0
select dishes_type_name as `key` ,dishes_type_id as `value` from cook_dishes_type
<!-- where parent_id != 0-->
</select>
<insert id="insertCookDishes" parameterType="com.bonus.canteen.core.cook.domain.CookDishes" useGeneratedKeys="true" keyProperty="dishesId">