| | |
| | | */
|
| | | @RequestMapping("collectionGoods")
|
| | | public void collectionGoods(long uid, long auctionId, int type, PrintWriter out) {
|
| | | CollectionGoodsV2 find = collectionGoodsV2Service.findByUidAndAuctionId(uid, auctionId);
|
| | | CollectionGoodsV2 find = collectionGoodsV2Service.findByUidAndAuctionId(uid, auctionId,Constant.SOURCE_TYPE_TAOBAO);
|
| | | if (type == 1) {
|
| | | if (find != null) {
|
| | | out.print(JsonUtil.loadFalseResult(""));
|
| | |
| | | return;
|
| | | } else {
|
| | | try {
|
| | | collectionGoodsV2Service.cancelCollectionByAuctionId(uid, auctionId);
|
| | | collectionGoodsV2Service.cancelCollectionByAuctionId(uid, auctionId, Constant.SOURCE_TYPE_TAOBAO);
|
| | | out.print(JsonUtil.loadTrueResult("取消收藏成功"));
|
| | | } catch (CollectionGoodsException e) {
|
| | | out.print(JsonUtil.loadFalseResult(e.getCode(), e.getMsg()));
|
| | |
| | | * @param out
|
| | | */
|
| | | @RequestMapping("collectionGoodsList")
|
| | | public void collectionGoodsList(long uid, int page, int pageSize, PrintWriter out) {
|
| | | List<CollectionGoodsV2> coList = collectionGoodsV2Service.getCollectionGoodsList(uid, page, pageSize);
|
| | | long count = collectionGoodsV2Service.getCollectionGoodsCount(uid);
|
| | | public void collectionGoodsList(long uid, int page, int pageSize, Integer source,PrintWriter out) {
|
| | | List<CollectionGoodsV2> coList = collectionGoodsV2Service.getCollectionGoodsList(uid, page, pageSize, source);
|
| | | long count = collectionGoodsV2Service.getCollectionGoodsCount(uid, source);
|
| | | JSONObject data = new JSONObject();
|
| | | BigDecimal proportion = hongBaoManageService.getFanLiRate();
|
| | | List<TaoBaoGoodsBriefExtra> list = new ArrayList<TaoBaoGoodsBriefExtra>();
|