Ver código fonte

记账共同方法

fubin 2 anos atrás
pai
commit
0f0865ff40

+ 8 - 0
src/main/java/com/dk/mdm/service/mac/AccountService.java

@@ -230,6 +230,8 @@ public class AccountService extends BaseService<Account> {
             LambdaUpdateWrapper<Outbound> updateWrapper = new LambdaUpdateWrapper<>();
             updateWrapper.set(Outbound::getReceivableId, UUID.fromString(accountItemInsert.getItemId())).eq(Outbound::getOutId, UUID.fromString(invoiceId));
             outboundMapper.update(null, updateWrapper);
+        } else if ("t_mac_income".equals(biznisType)) {
+            // 其它收入单 todo
         }
 
         // 更新账款总表上的总应收账款和总剩余应收
@@ -271,6 +273,8 @@ public class AccountService extends BaseService<Account> {
             LambdaUpdateWrapper<Outbound> updateWrapper = new LambdaUpdateWrapper<>();
             updateWrapper.set(Outbound::getReceivableId, null).eq(Outbound::getOutId, UUID.fromString(invoiceId));
             outboundMapper.update(null, updateWrapper);
+        } else if ("t_mac_income".equals(biznisType)) {
+            // 其它支出单 todo
         }
 
         // 删除账款明细
@@ -321,6 +325,8 @@ public class AccountService extends BaseService<Account> {
             LambdaUpdateWrapper<Inbound> updateWrapper = new LambdaUpdateWrapper<>();
             updateWrapper.set(Inbound::getReceivableId, UUID.fromString(accountItemInsert.getItemId())).eq(Inbound::getIntoId, UUID.fromString(invoiceId));
             inboundMapper.update(null, updateWrapper);
+        } else if ("t_mac_outlay".equals(biznisType)) {
+            // 其它支出单 todo
         }
 
         // 更新账款总表上的总应收账款和总剩余应收
@@ -362,6 +368,8 @@ public class AccountService extends BaseService<Account> {
             LambdaUpdateWrapper<Inbound> updateWrapper = new LambdaUpdateWrapper<>();
             updateWrapper.set(Inbound::getReceivableId, null).eq(Inbound::getIntoId, UUID.fromString(invoiceId));
             inboundMapper.update(null, updateWrapper);
+        } else if ("t_mac_outlay".equals(biznisType)) {
+            // 其它支出单 todo
         }
 
         // 删除账款明细