1. add price list
This commit is contained in:
2025-10-13 19:17:15 +08:00
parent 4cd341e0a9
commit 88114f285d
2 changed files with 12 additions and 2 deletions

View File

@@ -25,8 +25,15 @@
</resultMap>
<select id="selectPriceListPage" resultMap="priceListResultMap">
select * from kiosk_price_list where is_deleted = 0 and dept_id = #{priceList.deptId}
<select id="selectPriceListPage" resultType="org.springblade.modules.kiosk.pojo.vo.PriceListVO">
select kpl.*,
kc.name as categoryName,
kc.type as categoryType
from kiosk_price_list kpl
left join kiosk_category kc on kpl.category_id = kc.id
where kpl.is_deleted = 0
and kpl.dept_id = #{priceList.deptId}
order by kpl.price, kc.type
</select>
<insert id="initByCrossJoin">

View File

@@ -42,4 +42,7 @@ public class PriceListVO extends PriceListEntity {
@Serial
private static final long serialVersionUID = 1L;
private String categoryName;
private String categoryType;
}