Skip to content

Commit

Permalink
修复空字段sql错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Q-1515 committed Jul 23, 2022
1 parent 0e43a99 commit a341ec4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ public List<Dish> list(Long categoryId, String name) {

/**
* 条件查询菜品和口味
* @param dish 菜品
*
* @param dish 菜品
* @return 菜品和口味
*/
public List<DishVO> listWithFlavor(Dish dish) {
Expand Down
2 changes: 1 addition & 1 deletion reggie_server/src/main/resources/mapper/DishMapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
<!--动态条件查询菜品和口味-->
<select id="listWithFlavor" parameterType="Dish" resultMap="DishVOMap">
select
a.*,b.name fname,b.value
a.*,b.name dfname,b.value
from
dish a
left join
Expand Down

0 comments on commit a341ec4

Please sign in to comment.