From ae0a82a2f855e3f8d6f4a6886246bd14b5e66780 Mon Sep 17 00:00:00 2001 From: Burce Date: Mon, 28 Oct 2019 13:27:52 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=8B=9B=E5=95=86][=E4=BB=BB=E5=8A=A1]?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iformall/service/invest/impl/InvestBizServiceImpl.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBizServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBizServiceImpl.java index 6a2cfc027..6776c7ce5 100644 --- a/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBizServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBizServiceImpl.java @@ -967,14 +967,15 @@ public class InvestBizServiceImpl implements InvestBizService { // return; //} - if (StringUtils.isNotBlank(investTaskEntity.getOwner())) { - investTaskEntity.setStatus(EnumTaskStatus.NEGOTIATING); + if (StringUtils.isBlank(investTaskEntity.getOwner())) { + investTaskEntity.setStatus(EnumTaskStatus.CREATED); } else { WxShop shop = shopService.getById(investTaskEntity.getTargetId()); Map shopContractMap = getWxRentContractMap(shop); WxRentContract contract = shopContractMap.get(shop.getId()); if (Objects.nonNull(contract)) { InvestHelper.addContractId(investTaskEntity.getContent(), contract.getId(), null); + investTaskEntity.setStatus(EnumTaskStatus.FINISH); } else { WxRentContract contractQuery = new WxRentContract(); contractQuery.setTenantId(InvestUserContext.getUser().getTenantId()); @@ -984,6 +985,8 @@ public class InvestBizServiceImpl implements InvestBizService { int count = rentContractService.selectContractCountByShopId(contractQuery); if (count > 0) { investTaskEntity.setStatus(EnumTaskStatus.INTENTION); + } else { + investTaskEntity.setStatus(EnumTaskStatus.NEGOTIATING); } } }