yujian
2019-11-11 f995b45da163cea907cd5b109e7b5dbc2ff276c8
fanli/src/main/java/com/yeshi/fanli/controller/admin/shop/BanLiShopGoodsAdminController.java
@@ -21,9 +21,11 @@
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken;
import com.yeshi.fanli.entity.shop.BanLiShopGoods;
import com.yeshi.fanli.entity.shop.BanLiShopGoodsClass;
import com.yeshi.fanli.exception.shop.BanLiShopGoodsException;
import com.yeshi.fanli.exception.shop.BanLiShopGoodsSetException;
import com.yeshi.fanli.exception.shop.BanLiShopGoodsSetPayException;
import com.yeshi.fanli.service.inter.shop.BanLiShopGoodsClassService;
import com.yeshi.fanli.service.inter.shop.BanLiShopGoodsService;
import com.yeshi.fanli.tag.PageEntity;
import com.yeshi.fanli.util.Constant;
@@ -37,6 +39,9 @@
   @Resource
   private BanLiShopGoodsService banLiShopGoodsService;
   @Resource
   private BanLiShopGoodsClassService banLiShopGoodsClassService;
   /**
    * 保存信息
@@ -117,6 +122,14 @@
            JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("暂无数据"));
            return;
         }
         for (BanLiShopGoods shopGoods: list) {
            BanLiShopGoodsClass goodsClass = shopGoods.getGoodsClass();
            if (goodsClass != null) {
               shopGoods.setGoodsClass(banLiShopGoodsClassService.selectByPrimaryKey(goodsClass.getId()));
            }
         }
         long count = banLiShopGoodsService.countGoods(key, state);