add:
1. add price list api
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
|
||||
<select id="selectPriceListPage" resultType="org.springblade.modules.kiosk.pojo.vo.PriceListVO">
|
||||
select kpl.*,
|
||||
kpl.size as csize,
|
||||
kc.name as categoryName,
|
||||
kc.type as categoryType
|
||||
from kiosk_price_list kpl
|
||||
@@ -44,11 +45,15 @@
|
||||
<if test="priceList.material !=null">
|
||||
and kpl.material = #{priceList.material}
|
||||
</if>
|
||||
<if test="priceList.csize !=null">
|
||||
and kpl.size = #{csize}
|
||||
</if>
|
||||
order by kpl.price, kc.type
|
||||
</select>
|
||||
|
||||
<select id="selectPriceList" resultType="org.springblade.modules.kiosk.pojo.vo.PriceListVO">
|
||||
select kpl.*,
|
||||
kpl.size as csize,
|
||||
kc.name as categoryName,
|
||||
kc.type as categoryType
|
||||
from kiosk_price_list kpl
|
||||
@@ -66,6 +71,9 @@
|
||||
<if test="material !=null">
|
||||
and kpl.material = #{material}
|
||||
</if>
|
||||
<if test="csize !=null">
|
||||
and kpl.size = #{csize}
|
||||
</if>
|
||||
order by kpl.price, kc.type
|
||||
</select>
|
||||
|
||||
|
||||
@@ -25,10 +25,15 @@
|
||||
*/
|
||||
package org.springblade.modules.kiosk.pojo.vo;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import org.springblade.core.tenant.mp.TenantEntity;
|
||||
import org.springblade.modules.kiosk.pojo.entity.PriceListEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serial;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 自助终端价格表 视图实体类
|
||||
@@ -38,11 +43,54 @@ import java.io.Serial;
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class PriceListVO extends PriceListEntity {
|
||||
public class PriceListVO extends TenantEntity {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(
|
||||
value = "id",
|
||||
type = IdType.AUTO
|
||||
)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* cid
|
||||
*/
|
||||
@Schema(description = "cid")
|
||||
private Long categoryId;
|
||||
/**
|
||||
* 形状
|
||||
*/
|
||||
@Schema(description = "形状")
|
||||
private Integer shape;
|
||||
/**
|
||||
* 材质
|
||||
*/
|
||||
@Schema(description = "材质")
|
||||
private Integer material;
|
||||
/**
|
||||
* 尺寸
|
||||
*/
|
||||
@Schema(description = "尺寸")
|
||||
private Integer csize;
|
||||
/**
|
||||
* 单价
|
||||
*/
|
||||
@Schema(description = "单价")
|
||||
private String currency;
|
||||
/**
|
||||
* 单价
|
||||
*/
|
||||
@Schema(description = "单价")
|
||||
private BigDecimal price;
|
||||
/**
|
||||
* 目标部门
|
||||
*/
|
||||
@Schema(description = "目标部门")
|
||||
private Long deptId;
|
||||
|
||||
private String categoryName;
|
||||
|
||||
private String categoryType;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user