| | |
| | | * @param out |
| | | */ |
| | | @RequestMapping(value = "saveGoodsCoupon") |
| | | public void saveGoodsCoupon(String callback, String pid, String tags, String tagDesc, PrintWriter out) { |
| | | public void saveGoodsCoupon(String callback, String pid, String content, PrintWriter out) { |
| | | try { |
| | | goodsEvaluateService.saveGoodsCoupon(pid, tags, tagDesc); |
| | | goodsEvaluateService.saveGoodsCoupon(pid, content); |
| | | JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult("保存成功")); |
| | | } catch (GoodsEvaluateException e) { |
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult(e.getMsg())); |
| | |
| | | && goodsEvaluate.getComments().size() > 0) { |
| | | for (CommentInfo info : goodsEvaluate.getComments()) { |
| | | if (info != null) |
| | | if (CommentInfoEnum.currencyCoupon == info.getType()) { |
| | | if (CommentInfoEnum.currencyCoupon == info.getTypeEnum()) { |
| | | commentInfo = info; |
| | | } |
| | | } |
| | |
| | | && goodsEvaluate.getComments().size() > 0) { |
| | | for (CommentInfo info : goodsEvaluate.getComments()) { |
| | | if (info != null) |
| | | if (CommentInfoEnum.goodsCoupon == info.getType()) { |
| | | if (CommentInfoEnum.goodsCoupon == info.getTypeEnum()) { |
| | | commentInfo = info; |
| | | } |
| | | } |