瀏覽代碼

测试修改1

yusm 2 月之前
父節點
當前提交
7616788514

+ 2 - 0
fhKeeper/formulahousekeeper/management-crm/src/main/java/com/management/platform/mapper/BusinessItemProductMapper.java

@@ -19,4 +19,6 @@ public interface BusinessItemProductMapper extends BaseMapper<BusinessItemProduc
     List<BusinessItemProduct> selectListToBoId(Integer id);
     List<BusinessItemProduct> selectListToBoId(Integer id);
 
 
     List<BusinessItemProduct> getUnDelBIPListByBId(@Param("busOppId") Integer busOppId);
     List<BusinessItemProduct> getUnDelBIPListByBId(@Param("busOppId") Integer busOppId);
+
+    List<BusinessItemProduct> getUnDelBIPListByBIdInfo(@Param("busOppId") Integer busOppId);
 }
 }

+ 1 - 1
fhKeeper/formulahousekeeper/management-crm/src/main/java/com/management/platform/service/impl/BusinessOpportunityServiceImpl.java

@@ -126,7 +126,7 @@ public class BusinessOpportunityServiceImpl extends ServiceImpl<BusinessOpportun
         }
         }
         businessOpportunity.setTaskList(tasks);
         businessOpportunity.setTaskList(tasks);
 //        List<BusinessItemProduct> businessItemProducts = bipMapper.selectList(new QueryWrapper<BusinessItemProduct>().eq("business_id", bo.getId()));
 //        List<BusinessItemProduct> businessItemProducts = bipMapper.selectList(new QueryWrapper<BusinessItemProduct>().eq("business_id", bo.getId()));
-        List<BusinessItemProduct> businessItemProducts  = bipMapper.getUnDelBIPListByBId(bo.getId());
+        List<BusinessItemProduct> businessItemProducts  = bipMapper.getUnDelBIPListByBIdInfo(bo.getId());
         if (businessItemProducts.size() > 0) {
         if (businessItemProducts.size() > 0) {
 
 
             List<Integer> productIds = businessItemProducts.stream()
             List<Integer> productIds = businessItemProducts.stream()

+ 7 - 0
fhKeeper/formulahousekeeper/management-crm/src/main/resources/mapper/BusinessItemProductMapper.xml

@@ -38,5 +38,12 @@
         where bip.product_id = #{busOppId}
         where bip.product_id = #{busOppId}
           and p.is_delete = 0
           and p.is_delete = 0
     </select>
     </select>
+    <select id="getUnDelBIPListByBIdInfo" resultType="com.management.platform.entity.BusinessItemProduct">
+        select bip.*
+        from business_item_product bip
+                 left join product p on bip.product_id = p.id
+        where bip.business_id = #{busOppId}
+          and p.is_delete = 0
+    </select>
 
 
 </mapper>
 </mapper>