|
|
@@ -20,8 +20,8 @@ import com.dk.common.mapper.BaseMapper;
|
|
|
import com.dk.mdm.model.pojo.mac.MacTransferItem;
|
|
|
import com.dk.mdm.model.pojo.mst.MoneyAccount;
|
|
|
import com.dk.mdm.model.pojo.mst.MoneyAccountItem;
|
|
|
-import com.dk.mdm.model.query.mac.MacTransferQuery;
|
|
|
-import com.dk.mdm.model.response.mac.MacTransferResponse;
|
|
|
+import com.dk.mdm.model.query.mac.*;
|
|
|
+import com.dk.mdm.model.response.mac.*;
|
|
|
import com.dk.mdm.model.vo.mac.MacTransferVO;
|
|
|
import com.dk.mdm.model.vo.mac.MacTransferItemVO;
|
|
|
import com.dk.mdm.service.common.CommonService;
|
|
|
@@ -31,6 +31,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
@@ -87,6 +88,22 @@ public class MacTransferService extends BaseService<MacTransfer> {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * @desc : 查询转账明细
|
|
|
+ * @author : 付斌
|
|
|
+ * @date : 2024-02-28 13:25
|
|
|
+ */
|
|
|
+ @Pagination
|
|
|
+ public ResponseResultVO<Map<String, Object>> selectMacTransferInfoById(String id) {
|
|
|
+ Map<String, Object> result = new HashMap<>();
|
|
|
+ // 转账明细
|
|
|
+ List<MacTransferItemResponse> macTransferItemResponse = macTransferItemMapper.selectByCond(new MacTransferItemQuery().setTrfId(id));
|
|
|
+ result.put("macTransferItem", macTransferItemResponse);
|
|
|
+
|
|
|
+ // 附件
|
|
|
+ return ResponseResultUtil.success(result);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* @desc : 条件查询
|
|
|
* @author : 付斌
|
|
|
* @date : 2023/2/29 10:40
|
|
|
@@ -183,8 +200,8 @@ public class MacTransferService extends BaseService<MacTransfer> {
|
|
|
if (!macList.contains(macTransferItem.getTrfOutMac())) {
|
|
|
macList.add(macTransferItem.getTrfOutMac());
|
|
|
}
|
|
|
- if (!macList.contains(macTransferItem.getTrfOutMac())) {
|
|
|
- macList.add(macTransferItem.getTrfOutMac());
|
|
|
+ if (!macList.contains(macTransferItem.getTrfInMac())) {
|
|
|
+ macList.add(macTransferItem.getTrfInMac());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -212,8 +229,8 @@ public class MacTransferService extends BaseService<MacTransfer> {
|
|
|
if (!macList.contains(macTransferItem.getTrfOutMac())) {
|
|
|
macList.add(macTransferItem.getTrfOutMac());
|
|
|
}
|
|
|
- if (!macList.contains(macTransferItem.getTrfOutMac())) {
|
|
|
- macList.add(macTransferItem.getTrfOutMac());
|
|
|
+ if (!macList.contains(macTransferItem.getTrfInMac())) {
|
|
|
+ macList.add(macTransferItem.getTrfInMac());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -230,6 +247,23 @@ public class MacTransferService extends BaseService<MacTransfer> {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * @desc : 查询转账明细(编辑用)
|
|
|
+ * @author : 付斌
|
|
|
+ * @date : 2024-03-02 17:27
|
|
|
+ */
|
|
|
+ public ResponseResultVO<?> getMacTransferForUpdate(String id) {
|
|
|
+ Map<String, Object> dataInfo = new HashMap<>();
|
|
|
+ MacTransferResponse macTransferResponse = macTransferMapper.selectById(id);
|
|
|
+ dataInfo.put("data", macTransferResponse);
|
|
|
+
|
|
|
+ // 转账明细
|
|
|
+ List<MacTransferItemResponse> macTransferItemResponse = macTransferItemMapper.selectByCond(new MacTransferItemQuery().setTrfId(id));
|
|
|
+ dataInfo.put("dataItem", macTransferItemResponse);
|
|
|
+
|
|
|
+ return ResponseResultUtil.success(dataInfo);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* @desc : 作废
|
|
|
* @author : 付斌
|
|
|
* @date : 2024-03-08 16:38
|
|
|
@@ -254,8 +288,8 @@ public class MacTransferService extends BaseService<MacTransfer> {
|
|
|
if (!macList.contains(macTransferItem.getTrfOutMac())) {
|
|
|
macList.add(macTransferItem.getTrfOutMac());
|
|
|
}
|
|
|
- if (!macList.contains(macTransferItem.getTrfOutMac())) {
|
|
|
- macList.add(macTransferItem.getTrfOutMac());
|
|
|
+ if (!macList.contains(macTransferItem.getTrfInMac())) {
|
|
|
+ macList.add(macTransferItem.getTrfInMac());
|
|
|
}
|
|
|
}
|
|
|
|