| @@ -88,13 +88,13 @@ public class WxFlowServiceImpl implements WxFlowService { | |||||
| @Override | @Override | ||||
| public void updateBusinessStatus(Long businessId,Integer flowType,Integer contractType,Integer applyStatus){ | public void updateBusinessStatus(Long businessId,Integer flowType,Integer contractType,Integer applyStatus){ | ||||
| if(1 == flowType){ | 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点位物业合同 | // 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 wxPropertyContract = new WxPropertyContract(); | ||||
| wxPropertyContract.setId(businessId); | wxPropertyContract.setId(businessId); | ||||
| wxPropertyContract.setApplyStatus(applyStatus); | wxPropertyContract.setApplyStatus(applyStatus); | ||||
| @@ -167,10 +167,6 @@ public class WxFlowServiceImpl implements WxFlowService { | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| public static void main(String[] args) { | |||||
| System.out.println(11%11); | |||||
| } | |||||
| @Override | @Override | ||||
| public ResultData list(Integer flowType, Integer pageNum, Integer pageSize,Long userId) { | public ResultData list(Integer flowType, Integer pageNum, Integer pageSize,Long userId) { | ||||
| String flowKey = getFlowKeyByType(flowType); | String flowKey = getFlowKeyByType(flowType); | ||||