Просмотр исходного кода

采购入库 是否付款标识

changhaoning 2 лет назад
Родитель
Сommit
1290e0715f
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      src/main/java/com/dk/mdm/mapper/ivt/InboundMapper.xml

+ 4 - 4
src/main/java/com/dk/mdm/mapper/ivt/InboundMapper.xml

@@ -336,7 +336,7 @@
         tmd.data_value                                   as into_reason_name,
         tmp.return_address,
         case when tpi.receivable_id is null then false
-        when tmai.amt_should = tmai.amt_residue then false
+        when tmai.amt_handle = 0 then false
         else true end as "paymentFlag"
         FROM dkic_b.t_psi_inbound tpi
         <include refid="Join_Table"/>
@@ -380,7 +380,7 @@
         ,tmw.wh_name as "whName"
         ,tmd.data_value  as into_reason_name
         ,case when tpi.receivable_id is null then false
-        when tmai.amt_should = tmai.amt_residue then false
+        when tmai.amt_handle = 0 then false
         else true end as "paymentFlag"
         FROM dkic_b.t_psi_inbound tpi
         Left join dkic_b.t_mst_org tmo on tmo.org_id = tpi.org_id
@@ -895,7 +895,7 @@
         ,tmp.contact_name
         ,tmp.contact_phone
         ,case when tpi.receivable_id is null then false
-        when tmai.amt_should = tmai.amt_residue then false
+        when tmai.amt_handle = 0 then false
         else true end as "paymentFlag"
         FROM dkic_b.t_psi_inbound tpi
         <include refid="Join_Table_Return"/>
@@ -927,7 +927,7 @@
         ,tmp.contact_name
         ,tmp.contact_phone
         ,case when tpi.receivable_id is null then false
-        when tmai.amt_should = tmai.amt_residue then false
+        when tmai.amt_handle = 0 then false
         else true end as "paymentFlag"
         FROM dkic_b.t_psi_inbound tpi
         Left join dkic_b.t_mst_org tmo on tmo.org_id = tpi.org_id