add:
1. add price list
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -42,4 +42,7 @@ public class PriceListVO extends PriceListEntity {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String categoryName;
|
||||
|
||||
private String categoryType;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user