admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelGoodsServiceImpl.java
@@ -65,8 +65,7 @@
      
      if (ids != null && ids.size() > 0) {
         for (String gid: ids) {
            Long goodsId = Long.parseLong(gid);
            labelGoodsMapper.deleteByGoodsId(goodsId);
            labelGoodsMapper.deleteByGoodsId(gid);
         }
      }
   }
@@ -79,7 +78,7 @@
    * @return
    */
   @Override
   public   int deleteByGoodsIdAndLabId(Long goodsId, Long labId){
   public   int deleteByGoodsIdAndLabId(String goodsId, Long labId){
      return  labelGoodsMapper.deleteByGoodsIdAndLabId(goodsId, labId);
   }
@@ -96,18 +95,18 @@
   
   
   @Override
   public List<LabelGoods> queryByGoodsId(int start, int count, Long goodsId) throws LabelClassException {
   public List<LabelGoods> queryByGoodsId(int start, int count, String goodsId) throws LabelClassException {
      return labelGoodsMapper.queryByGoodsId(start, count, goodsId);
   }
   
   @Override
   public   int getCountQueryByGoodsId(Long goodsId){
   public   int getCountQueryByGoodsId(String goodsId){
      return labelGoodsMapper.getCountQueryByGoodsId(goodsId);
   }
   
   
   @Override
   public int getCountByGoodsId(Long goodsId){
   public int getCountByGoodsId(String goodsId){
      return labelGoodsMapper.getCountByGoodsId(goodsId);
   }
   
@@ -119,7 +118,7 @@
    * @return
    */
   @Override
   public   Long isExistence(Long goodsId, Long labId){
   public   Long isExistence(String goodsId, Long labId){
      return  labelGoodsMapper.isExistence(goodsId, labId);
   }
   
@@ -156,7 +155,7 @@
   
   @Override
   @Transactional(rollbackFor=Exception.class)
   public void batchGoodsAddLables(List<Long> goodsIdList, List<Long> labIdList, AdminUser admin) throws Exception {
   public void batchGoodsAddLables(List<String> goodsIdList, List<Long> labIdList, AdminUser admin) throws Exception {
      
      /* 商品id 为空  不处理   */ 
      if (goodsIdList == null || goodsIdList.size() == 0) {
@@ -190,9 +189,9 @@
         } 
         
         
         for (Long goodsId: goodsIdList) {
         for (String goodsId: goodsIdList) {
            
            TaoBaoGoodsBrief goodsBrief =  taoBaoGoodsBriefService.selectByPrimaryKey(goodsId);
            TaoBaoGoodsBrief goodsBrief =  taoBaoGoodsBriefService.selectByGoodsId(goodsId);
            
            if (goodsBrief != null) {
               /*  贴上标签 : 已贴不处理则   */
@@ -218,7 +217,7 @@
   @Override
   @Transactional(rollbackFor=Exception.class)
   public void singleGoodsAddLables(Long goodsId, List<Long> labIdList, AdminUser admin) throws Exception {
   public void singleGoodsAddLables(String goodsId, List<Long> labIdList, AdminUser admin) throws Exception {
      
      /* 商品id 为空  不处理   */ 
      if (goodsId == null) {
@@ -234,7 +233,7 @@
         return;
      }
      
      TaoBaoGoodsBrief goodsBrief =  taoBaoGoodsBriefService.selectByPrimaryKey(goodsId);
      TaoBaoGoodsBrief goodsBrief =  taoBaoGoodsBriefService.selectByGoodsId(goodsId);
      if (goodsBrief == null) {
         return;
      }