1
This commit is contained in:
@@ -94,6 +94,14 @@ public class FavoriteProduct extends BaseEntity
|
||||
@Excel(name = "使用次数")
|
||||
private Integer useCount;
|
||||
|
||||
/** 发品后的商品ID */
|
||||
@Excel(name = "发品商品ID")
|
||||
private String productId;
|
||||
|
||||
/** 发品状态 */
|
||||
@Excel(name = "发品状态")
|
||||
private Integer productStatus;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
@@ -294,6 +302,26 @@ public class FavoriteProduct extends BaseEntity
|
||||
return useCount;
|
||||
}
|
||||
|
||||
public void setProductId(String productId)
|
||||
{
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public String getProductId()
|
||||
{
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setProductStatus(Integer productStatus)
|
||||
{
|
||||
this.productStatus = productStatus;
|
||||
}
|
||||
|
||||
public Integer getProductStatus()
|
||||
{
|
||||
return productStatus;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
@@ -312,6 +340,8 @@ public class FavoriteProduct extends BaseEntity
|
||||
.append("createUserId", getCreateUserId())
|
||||
.append("createUserName", getCreateUserName())
|
||||
.append("erpProductIds", getErpProductIds())
|
||||
.append("productId", getProductId())
|
||||
.append("productStatus", getProductStatus())
|
||||
.append("category", getCategory())
|
||||
.append("brand", getBrand())
|
||||
.append("lastUsedTime", getLastUsedTime())
|
||||
|
||||
@@ -83,6 +83,14 @@ public interface FavoriteProductMapper
|
||||
*/
|
||||
public int updateTopStatus(FavoriteProduct favoriteProduct);
|
||||
|
||||
/**
|
||||
* 更新发品信息
|
||||
*
|
||||
* @param favoriteProduct 常用商品
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProductInfo(FavoriteProduct favoriteProduct);
|
||||
|
||||
/**
|
||||
* 查询用户的常用商品列表(按置顶和排序权重排序)
|
||||
*
|
||||
|
||||
@@ -133,4 +133,12 @@ public interface IFavoriteProductService
|
||||
* @return 结果
|
||||
*/
|
||||
public Object quickPublishFromFavorite(Long id, String appid);
|
||||
|
||||
/**
|
||||
* 更新发品信息
|
||||
*
|
||||
* @param favoriteProduct 常用商品信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProductInfo(FavoriteProduct favoriteProduct);
|
||||
}
|
||||
|
||||
@@ -275,4 +275,16 @@ public class FavoriteProductServiceImpl implements IFavoriteProductService
|
||||
// 暂时返回成功信息
|
||||
return "发品请求已提交,应用ID: " + appid;
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新发品信息
|
||||
*
|
||||
* @param favoriteProduct 常用商品信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateProductInfo(FavoriteProduct favoriteProduct)
|
||||
{
|
||||
return favoriteProductMapper.updateProductInfo(favoriteProduct);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user