@@ -80,4 +80,7 @@ public interface HeheMapper {
List<HeHeSku> findHeheSkus(Integer productId);
List<LadderPriceVo> getActivityLadderListBySkuId(@Param("activityId") Integer activityId, @Param("skuId") Integer skuId);
+
+ String getHelpContent(Integer helpId);
}
@@ -171,4 +171,13 @@ public class HeheProductVo implements Serializable {
*/
List<LadderPriceVo> ladderList;
+ /**
+ * 能否退货 1 能 2不能
+ */
+ private Integer returnGoodsStutas;
+ * 特殊商品退货须知提示 (取后台帮助中心id1040的数据)
+ private String helpContent;
@@ -143,6 +143,11 @@ public class HeheServiceImpl implements HeheService {
if (product == null) {
//商品不存在
return ResponseJson.error("商品不存在", null);
+ }else{
+ //特殊商品需添加退货提示
+ if(null!=product.getReturnGoodsStutas()&&product.getReturnGoodsStutas()==2){
+ product.setHelpContent(heheMapper.getHelpContent(1040));
+ }
String[] split = null;
//商品标签
@@ -100,7 +100,8 @@
p.name,
p.mainImage,
cb.name as "brandName",
- p.tags
+ p.tags,
+ p.returnGoodsStutas
FROM cm_hehe_product chp
LEFT JOIN product p ON chp.productId = p.productID
LEFT JOIN cm_brand cb on p.brandID = cb.id
@@ -365,5 +366,7 @@
AND skuId = #{skuId}
ORDER BY buyPrice ASC
</select>
-
+ <select id="getHelpContent" resultType="java.lang.String">
+ select content from helppage where helpPageID=#{helpId}
+ </select>
</mapper>