From dd9759eaa3dabd3d55943fc0c741fd5018d2d76e Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期三, 31 五月 2023 16:43:29 +0800
Subject: [PATCH] optimize dining
---
service-store/src/main/java/com/java110/store/cmd/assetInventory/SaveAssetInventoryCmd.java | 54 +++++++++++++++++++++++++++---------------------------
1 files changed, 27 insertions(+), 27 deletions(-)
diff --git a/service-store/src/main/java/com/java110/store/cmd/assetInventory/SaveAssetInventoryCmd.java b/service-store/src/main/java/com/java110/store/cmd/assetInventory/SaveAssetInventoryCmd.java
index dbe3475..4ac81eb 100644
--- a/service-store/src/main/java/com/java110/store/cmd/assetInventory/SaveAssetInventoryCmd.java
+++ b/service-store/src/main/java/com/java110/store/cmd/assetInventory/SaveAssetInventoryCmd.java
@@ -88,33 +88,33 @@
public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
AssetInventoryPo assetInventoryPo = BeanConvertUtil.covertBean(reqJson, AssetInventoryPo.class);
- PurchaseApplyDto purchaseApplyDto = new PurchaseApplyDto();
- purchaseApplyDto.setCommunityId(assetInventoryPo.getCommunityId());
- purchaseApplyDto.setState(purchaseApplyDto.STATE_DEALING);//瀹℃牳涓�
- List<PurchaseApplyDto> purchaseApplyDtos = purchaseApplyInnerServiceSMOImpl.queryPurchaseApplyAndDetails(purchaseApplyDto);
- for (PurchaseApplyDto applyDto : purchaseApplyDtos){
- List<PurchaseApplyDetailVo> purchaseApplyDetailVos = applyDto.getPurchaseApplyDetailVo();
- for (PurchaseApplyDetailVo applyDetailVo : purchaseApplyDetailVos) {
- if (applyDetailVo.getShId() != null && assetInventoryPo.getShId() != null && applyDetailVo.getShId().equals(assetInventoryPo.getShId())) {
- String resOrderType = applyDto.getResOrderType().equals("10000")? "鍏ュ簱":"鍑哄簱";
- throw new CmdException("鐩樺瓨澶辫触"+applyDetailVo.getShName() + "鏈�"+ resOrderType +"鐗╁搧");
- }
- }
- }
- AllocationStorehouseDto allocationStorehouseDto = new AllocationStorehouseDto();
- allocationStorehouseDto.setShIda(assetInventoryPo.getShId());
- allocationStorehouseDto.setState(allocationStorehouseDto.STATE_AUDIT);
- List<AllocationStorehouseDto> allocationStorehouseDtosa = allocationStorehouseInnerServiceSMOImpl.queryAllocationStorehouses(allocationStorehouseDto);
- if (allocationStorehouseDtosa.size() > 0){
- //cmdDataFlowContext.setResponseEntity(ResultVo.error("鐩樺瓨澶辫触"+assetInventoryPo.getShName() + "鏈夎皟鎷ㄧ墿鍝併��" ));
- throw new CmdException("鐩樺瓨澶辫触"+assetInventoryPo.getShName() + "鏈夎皟鎷ㄧ墿鍝併��");
- }
- allocationStorehouseDto.setShIdz(assetInventoryPo.getShId());
- allocationStorehouseDtosa = allocationStorehouseInnerServiceSMOImpl.queryAllocationStorehouses(allocationStorehouseDto);
- if (allocationStorehouseDtosa.size() > 0){
- //cmdDataFlowContext.setResponseEntity(ResultVo.error("鐩樺瓨澶辫触"+assetInventoryPo.getShName() + "鏈夎皟鎷ㄧ墿鍝併��" ));
- throw new CmdException("鐩樺瓨澶辫触"+assetInventoryPo.getShName() + "鏈夎皟鎷ㄧ墿鍝併��");
- }
+// PurchaseApplyDto purchaseApplyDto = new PurchaseApplyDto();
+// purchaseApplyDto.setCommunityId(assetInventoryPo.getCommunityId());
+// purchaseApplyDto.setState(purchaseApplyDto.STATE_DEALING);//瀹℃牳涓�
+// List<PurchaseApplyDto> purchaseApplyDtos = purchaseApplyInnerServiceSMOImpl.queryPurchaseApplyAndDetails(purchaseApplyDto);
+// for (PurchaseApplyDto applyDto : purchaseApplyDtos){
+// List<PurchaseApplyDetailVo> purchaseApplyDetailVos = applyDto.getPurchaseApplyDetailVo();
+// for (PurchaseApplyDetailVo applyDetailVo : purchaseApplyDetailVos) {
+// if (applyDetailVo.getShId() != null && assetInventoryPo.getShId() != null && applyDetailVo.getShId().equals(assetInventoryPo.getShId())) {
+// String resOrderType = applyDto.getResOrderType().equals("10000")? "鍏ュ簱":"鍑哄簱";
+// throw new CmdException("鐩樺瓨澶辫触"+applyDetailVo.getShName() + "鏈�"+ resOrderType +"鐗╁搧");
+// }
+// }
+// }
+// AllocationStorehouseDto allocationStorehouseDto = new AllocationStorehouseDto();
+// allocationStorehouseDto.setShIda(assetInventoryPo.getShId());
+// allocationStorehouseDto.setState(allocationStorehouseDto.STATE_AUDIT);
+// List<AllocationStorehouseDto> allocationStorehouseDtosa = allocationStorehouseInnerServiceSMOImpl.queryAllocationStorehouses(allocationStorehouseDto);
+// if (allocationStorehouseDtosa.size() > 0){
+// //cmdDataFlowContext.setResponseEntity(ResultVo.error("鐩樺瓨澶辫触"+assetInventoryPo.getShName() + "鏈夎皟鎷ㄧ墿鍝併��" ));
+// throw new CmdException("鐩樺瓨澶辫触"+assetInventoryPo.getShName() + "鏈夎皟鎷ㄧ墿鍝併��");
+// }
+// allocationStorehouseDto.setShIdz(assetInventoryPo.getShId());
+// allocationStorehouseDtosa = allocationStorehouseInnerServiceSMOImpl.queryAllocationStorehouses(allocationStorehouseDto);
+// if (allocationStorehouseDtosa.size() > 0){
+// //cmdDataFlowContext.setResponseEntity(ResultVo.error("鐩樺瓨澶辫触"+assetInventoryPo.getShName() + "鏈夎皟鎷ㄧ墿鍝併��" ));
+// throw new CmdException("鐩樺瓨澶辫触"+assetInventoryPo.getShName() + "鏈夎皟鎷ㄧ墿鍝併��");
+// }
//淇濆瓨鐩樼偣 浜у搧
if (!reqJson.containsKey("resourceStores")) {
--
Gitblit v1.8.0