fanli/src/main/java/com/yeshi/fanli/controller/client/InviteGetMoneyController.java
@@ -140,17 +140,16 @@ int myTeamCount = myFirstTeamCount + mySecondTeamCount; data.put("myTeam", myTeamCount); // 今日 本月预估收益 BigDecimal moneyToday = inviteGetMoneyService.getMoneyToday(uid); BigDecimal moneyToday = inviteGetMoneyService.getMoneyToday(uid + ""); if (moneyToday == null) { moneyToday = new BigDecimal(0); } BigDecimal moneyMonth = inviteGetMoneyService.getMoneyMonth(uid); BigDecimal moneyMonth = inviteGetMoneyService.getMoneyMonth(uid + ""); if (moneyMonth == null) { moneyMonth = new BigDecimal(0); } BigDecimal moneyLastMonth = inviteGetMoneyService.getMoneyLastMonth(uid); BigDecimal moneyLastMonth = inviteGetMoneyService.getMoneyLastMonth(uid + ""); data.put("moneyToday", moneyToday.setScale(2, BigDecimal.ROUND_DOWN)); data.put("moneyMonth", moneyMonth.setScale(2, BigDecimal.ROUND_DOWN)); fanli/src/main/java/com/yeshi/fanli/service/impl/goods/CollectionGoodsServiceImpl.java
@@ -10,6 +10,7 @@ import org.hibernate.Session; import org.springframework.orm.hibernate4.HibernateCallback; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.yeshi.fanli.dao.goods.CollectionGoodsDao; import com.yeshi.fanli.entity.bus.user.CollectionGoods; @@ -95,6 +96,7 @@ return null; } @Transactional @Override public void updateCollectionGoods(TaoBaoGoodsBrief goods) { if (goods != null && goods.getAuctionId() != null) { @@ -126,6 +128,7 @@ collectionGoods.setCouponAmount(goods.getCouponAmount()); collectionGoods.setCouponEffectiveEndTime(goods.getCouponEffectiveEndTime()); collectionGoods.setCouponLeftCount(goods.getCouponLeftCount()); collectionGoods.setCouponInfo(goods.getCouponInfo()); collectionGoods.setCouponEffectiveStartTime(goods.getCouponEffectiveStartTime()); collectionGoods.setCouponStartFee(goods.getCouponStartFee()); collectionGoods.setCouponTotalCount(goods.getCouponTotalCount()); fanli/src/main/java/com/yeshi/fanli/service/impl/taobao/TaoBaoGoodsUpdateServiceImpl.java
@@ -102,18 +102,18 @@ if (goods.getAuctionId() == null || goods.getAuctionId() == 0) throw new TaobaoGoodsUpdateException(2, "商品ID为空"); List<TaoBaoGoodsBrief> goodsList = taoBaoGoodsBriefMapper.queryByAuctionId(goods.getAuctionId()); if (goodsList == null || goodsList.size() == 0) throw new TaobaoGoodsUpdateException(3, "商品不在商品库中"); // 更新收藏信息 collectionGoodsService.updateCollectionGoods(goods); for (TaoBaoGoodsBrief tb : goodsList) { goods.setId(tb.getId()); TaoBaoGoodsBrief updateGoods = getUpdateTaoBaoGoodsBrief(goods); System.out.println("更细信息:" + new Gson().toJson(updateGoods)); taoBaoGoodsBriefMapper.updateByPrimaryKeySelective(updateGoods); // 更新收藏信息 collectionGoodsService.updateCollectionGoods(goods); } List<TaoBaoGoodsBrief> goodsList = taoBaoGoodsBriefMapper.queryByAuctionId(goods.getAuctionId()); if (goodsList != null) for (TaoBaoGoodsBrief tb : goodsList) { goods.setId(tb.getId()); TaoBaoGoodsBrief updateGoods = getUpdateTaoBaoGoodsBrief(goods); System.out.println("更细信息:" + new Gson().toJson(updateGoods)); taoBaoGoodsBriefMapper.updateByPrimaryKeySelective(updateGoods); } } @Override