增加会员专区 积分专区 积分兑换内容 增加三个专区的字段
This commit is contained in:
@@ -4,6 +4,7 @@ import com.buy507.mall.model.SmsHomeNewProduct;
|
||||
import com.buy507.mall.model.SmsHomeNewProductExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
public interface SmsHomeNewProductMapper {
|
||||
long countByExample(SmsHomeNewProductExample example);
|
||||
@@ -27,4 +28,10 @@ public interface SmsHomeNewProductMapper {
|
||||
int updateByPrimaryKeySelective(SmsHomeNewProduct record);
|
||||
|
||||
int updateByPrimaryKey(SmsHomeNewProduct record);
|
||||
|
||||
/**
|
||||
* 通过 productId 查询 SmsHomeNewProduct
|
||||
*/
|
||||
@Select("SELECT * FROM pms_product WHERE product_id = #{productId} LIMIT 1")
|
||||
SmsHomeNewProduct selectByProductId(@Param("productId") Long productId);
|
||||
}
|
||||
@@ -16,6 +16,17 @@ public class SmsHomeNewProduct implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
// 会员专区状态
|
||||
private Integer vipStatus;
|
||||
|
||||
// 积分专区状态
|
||||
private Integer pointsAreaStatus;
|
||||
|
||||
// 积分兑换专区状态
|
||||
private Integer pointsExchangeStatus;
|
||||
|
||||
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@@ -56,6 +67,35 @@ public class SmsHomeNewProduct implements Serializable {
|
||||
this.sort = sort;
|
||||
}
|
||||
|
||||
public Integer getVipStatus() {
|
||||
return vipStatus;
|
||||
}
|
||||
|
||||
public void setVipStatus(Integer vipStatus) {
|
||||
this.vipStatus = vipStatus;
|
||||
}
|
||||
|
||||
|
||||
public Integer getPointsAreaStatus() {
|
||||
return pointsAreaStatus;
|
||||
}
|
||||
|
||||
public void setPointsAreaStatus(Integer pointsAreaStatus) {
|
||||
this.pointsAreaStatus = pointsAreaStatus;
|
||||
}
|
||||
|
||||
|
||||
public Integer getPointsExchangeStatus() {
|
||||
return pointsExchangeStatus;
|
||||
}
|
||||
|
||||
|
||||
public void setPointsExchangeStatus(Integer pointsExchangeStatus) {
|
||||
this.pointsExchangeStatus = pointsExchangeStatus;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
Reference in New Issue
Block a user