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 id="selectPriceListPage" resultType="org.springblade.modules.kiosk.pojo.vo.PriceListVO">
|
||||||
select kpl.*,
|
select kpl.*,
|
||||||
|
kpl.size as csize,
|
||||||
kc.name as categoryName,
|
kc.name as categoryName,
|
||||||
kc.type as categoryType
|
kc.type as categoryType
|
||||||
from kiosk_price_list kpl
|
from kiosk_price_list kpl
|
||||||
@@ -44,11 +45,15 @@
|
|||||||
<if test="priceList.material !=null">
|
<if test="priceList.material !=null">
|
||||||
and kpl.material = #{priceList.material}
|
and kpl.material = #{priceList.material}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="priceList.csize !=null">
|
||||||
|
and kpl.size = #{csize}
|
||||||
|
</if>
|
||||||
order by kpl.price, kc.type
|
order by kpl.price, kc.type
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectPriceList" resultType="org.springblade.modules.kiosk.pojo.vo.PriceListVO">
|
<select id="selectPriceList" resultType="org.springblade.modules.kiosk.pojo.vo.PriceListVO">
|
||||||
select kpl.*,
|
select kpl.*,
|
||||||
|
kpl.size as csize,
|
||||||
kc.name as categoryName,
|
kc.name as categoryName,
|
||||||
kc.type as categoryType
|
kc.type as categoryType
|
||||||
from kiosk_price_list kpl
|
from kiosk_price_list kpl
|
||||||
@@ -66,6 +71,9 @@
|
|||||||
<if test="material !=null">
|
<if test="material !=null">
|
||||||
and kpl.material = #{material}
|
and kpl.material = #{material}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="csize !=null">
|
||||||
|
and kpl.size = #{csize}
|
||||||
|
</if>
|
||||||
order by kpl.price, kc.type
|
order by kpl.price, kc.type
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
@@ -25,10 +25,15 @@
|
|||||||
*/
|
*/
|
||||||
package org.springblade.modules.kiosk.pojo.vo;
|
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 org.springblade.modules.kiosk.pojo.entity.PriceListEntity;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import java.io.Serial;
|
import java.io.Serial;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 自助终端价格表 视图实体类
|
* 自助终端价格表 视图实体类
|
||||||
@@ -38,11 +43,54 @@ import java.io.Serial;
|
|||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
public class PriceListVO extends PriceListEntity {
|
public class PriceListVO extends TenantEntity {
|
||||||
@Serial
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
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 categoryName;
|
||||||
|
|
||||||
private String categoryType;
|
private String categoryType;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user