Преглед изворни кода

成本报表 费用支出供应商

liuchaohui пре 2 година
родитељ
комит
4f4650117b

+ 6 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/cost/service/impl/SyCostAllocationServiceImpl.java

@@ -808,10 +808,12 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
                     "  sp.cMaker as preparedBy, " +
                     "  sps.cExpCode as expenseItem, " +
                     "  sps.iMoney as disbursedLocalmoney, " +
+                    "  v.cVenName as processUnit," +
                     "  sps.INatMoney as disbursedOriginalmoney  " +
                     "FROM " +
                     "  UFDATA_901_2021.dbo.SalePayVouch sp " +
                     "  INNER JOIN UFDATA_901_2021.dbo.SalePayVouchs sps ON sp.id = sps.id " +
+                    "  LEFT JOIN Vendor v ON sp.cvencode= v.cVenCode  " +
                     "  where sp.cSOCode " +
                     "in (   " +
                     "  SELECT s.cSOCode FROM UFDATA_901_2021.dbo.SO_SODetails s  " +
@@ -829,10 +831,12 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
                     "       sp.cMaker as preparedBy, " +
                     "       sps.cExpCode as expenseItem, " +
                     "       sps.iMoney as disbursedLocalmoney, " +
+                    "       v.cVenName as processUnit," +
                     "       sps.INatMoney as disbursedOriginalmoney  " +
                     "     FROM " +
                     "       UFDATA_902_2021.dbo.SalePayVouch sp " +
                     "       INNER JOIN UFDATA_902_2021.dbo.SalePayVouchs sps ON sp.id = sps.id " +
+                    "       LEFT JOIN Vendor v ON sp.cvencode= v.cVenCode  " +
                     "       where sp.cSOCode " +
                     "     in (   " +
                     "       SELECT s.cSOCode FROM SO_SODetails s  " +
@@ -850,10 +854,12 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
                     "       sp.cMaker as preparedBy, " +
                     "       sps.cExpCode as expenseItem, " +
                     "       sps.iMoney as disbursedLocalmoney, " +
+                    "       v.cVenName as processUnit," +
                     "       sps.INatMoney as disbursedOriginalmoney  " +
                     "     FROM " +
                     "       UFDATA_903_2021.dbo.SalePayVouch sp " +
                     "       INNER JOIN UFDATA_903_2021.dbo.SalePayVouchs sps ON sp.id = sps.id " +
+                    "       LEFT JOIN Vendor v ON sp.cvencode= v.cVenCode  " +
                     "       where sp.cSOCode " +
                     "     in (   " +
                     "       SELECT s.cSOCode FROM SO_SODetails s  " +