feat(system): 为 SysPicture及其相关模型添加价格字段- 在 SysPicture、SysPictureBo 和 SysPictureVo 中添加原价 (originalPrice) 和优惠价 (discountPrice) 字段
- 使用 BigDecimal 类型来精确表示价格信息
This commit is contained in:
@@ -7,6 +7,7 @@ import lombok.EqualsAndHashCode;
|
||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 画册对象 sys_picture
|
||||
@@ -98,4 +99,14 @@ public class SysPicture extends BaseEntity {
|
||||
*/
|
||||
private String workName;
|
||||
|
||||
/**
|
||||
* 原价
|
||||
*/
|
||||
private BigDecimal originalPrice;
|
||||
|
||||
/**
|
||||
* 优惠价
|
||||
*/
|
||||
private BigDecimal discountPrice;
|
||||
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ import org.dromara.common.core.validate.EditGroup;
|
||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||
import org.dromara.system.domain.SysPicture;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -105,7 +106,13 @@ public class SysPictureBo extends BaseEntity {
|
||||
private String workName;
|
||||
|
||||
/**
|
||||
* 图片集
|
||||
* 原价
|
||||
*/
|
||||
private BigDecimal originalPrice;
|
||||
|
||||
/**
|
||||
* 优惠价
|
||||
*/
|
||||
private BigDecimal discountPrice;
|
||||
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ import org.dromara.system.domain.SysPicture;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
@@ -124,4 +125,14 @@ public class SysPictureVo implements Serializable {
|
||||
*/
|
||||
private String workName;
|
||||
|
||||
/**
|
||||
* 原价
|
||||
*/
|
||||
private BigDecimal originalPrice;
|
||||
|
||||
/**
|
||||
* 优惠价
|
||||
*/
|
||||
private BigDecimal discountPrice;
|
||||
|
||||
}
|
||||
|
||||
@@ -89,6 +89,14 @@ public interface ITzUserService extends MPJBaseService<TzUser> {
|
||||
*/
|
||||
Boolean submitSjsAuth(TzUserBo bo);
|
||||
|
||||
/**
|
||||
* 根据手机号查询用户信息
|
||||
*
|
||||
* @param userPhone 手机号
|
||||
* @return 用户信息
|
||||
*/
|
||||
TzUserVo queryUserInfoByPhone(String userPhone);
|
||||
|
||||
/**
|
||||
* 查询用户下单排行榜列表
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user