From 8e705f6dea2b6a7d1d68c8d1501f4001368aaca2 Mon Sep 17 00:00:00 2001 From: luozukai Date: Wed, 23 Jan 2019 18:49:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=81=9C=E8=BD=A6=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iformall/service/impl/WxFlowServiceImpl.java | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java index ca9ee6008..645748ec6 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java @@ -88,13 +88,13 @@ public class WxFlowServiceImpl implements WxFlowService { @Override public void updateBusinessStatus(Long businessId,Integer flowType,Integer contractType,Integer applyStatus){ if(1 == flowType){ - WxRentContract rent = new WxRentContract(); - rent.setId(businessId); - rent.setApplyStatus(applyStatus); - wxRentContractService.updateApplyStatus(rent); - // 1租赁合同 2点位合同wx_rent_contract 3物业wx_property_contract 4点位物业合同 - if(contractType == 3){ + if(contractType == 1 || contractType == 2){ + WxRentContract rent = new WxRentContract(); + rent.setId(businessId); + rent.setApplyStatus(applyStatus); + wxRentContractService.updateApplyStatus(rent); + }else if(contractType == 3 || contractType == 4){ WxPropertyContract wxPropertyContract = new WxPropertyContract(); wxPropertyContract.setId(businessId); wxPropertyContract.setApplyStatus(applyStatus); @@ -167,10 +167,6 @@ public class WxFlowServiceImpl implements WxFlowService { return new ResultData(); } - public static void main(String[] args) { - System.out.println(11%11); - } - @Override public ResultData list(Integer flowType, Integer pageNum, Integer pageSize,Long userId) { String flowKey = getFlowKeyByType(flowType);