浏览代码

ccr信息

yumeng 1 年之前
父节点
当前提交
bb18cb300e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      ruixuan-live/src/main/resources/mapper/isc/SupplyChainMapper.xml

+ 2 - 2
ruixuan-live/src/main/resources/mapper/isc/SupplyChainMapper.xml

@@ -190,7 +190,7 @@
         t1.item_commission_rate as 'itemCommissionRate',
         t1.item_commission_rate as 'itemCommissionRate',
         t3.ccr_value as 'ccrValue',
         t3.ccr_value as 'ccrValue',
         (case
         (case
-        when t3.ccr_value = '-'
+        when t3.ccr_value = '-' or t3.ccr_value is null
         then 0
         then 0
         else replace( t3.ccr_value,'%','')
         else replace( t3.ccr_value,'%','')
         end
         end
@@ -1083,7 +1083,7 @@
         t2.item_commission_rate as 'itemCommissionRate',
         t2.item_commission_rate as 'itemCommissionRate',
         t3.ccr_value as 'ccrValue',
         t3.ccr_value as 'ccrValue',
         (case
         (case
-        when t3.ccr_value = '-'
+        when t3.ccr_value = '-' or t3.ccr_value is null
         then 0
         then 0
         else replace(t3.ccr_value,'%','')
         else replace(t3.ccr_value,'%','')
         end
         end