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 72e982234..d1ac5a745 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java @@ -111,11 +111,11 @@ public class WxFlowServiceImpl implements WxFlowService { @Override public void updateBusinessStatus(Map mapInfo,Integer applyStatus){ Long businessId = Long.parseLong(mapInfo.get("businessId").toString()); - Integer flowType = (Integer)mapInfo.get("flowType"); + Integer flowType = getIngeter(mapInfo.get("flowType")); List> variables = (List)mapInfo.get("variables"); Integer contractType = 0; String str = (String)getVariableByKey(variables,"contractType"); - Integer operateType = (Integer)getVariableByKey(variables,"approvalType"); + Integer operateType = getIngeter(getVariableByKey(variables,"approvalType")); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); if(StringUtils.isNotBlank(str)){ contractType = Integer.parseInt(str); @@ -179,7 +179,7 @@ public class WxFlowServiceImpl implements WxFlowService { rent.setStatus(EnumRentContractStatus.CONTRACT_TERMINATE.getCode()); //终止租赁合同,同时终止物业合同 - Integer endProperty = (Integer)getVariableByKey(variables,"endProperty"); + Integer endProperty = getIngeter(getVariableByKey(variables,"endProperty")); rent.setEndProperty(endProperty); wxRentContractService.endContract(rent); } @@ -203,7 +203,7 @@ public class WxFlowServiceImpl implements WxFlowService { //账单审批 Integer billType = getIngeter(getVariableByKey(variables, "billType")); MallUserInfo user = (MallUserInfo) SecurityUtils.getSubject().getSession().getAttribute("userSession"); - Integer billUpdateType = (Integer) getVariableByKey(variables, "billUpdateType"); + Integer billUpdateType = getIngeter(getVariableByKey(variables, "billUpdateType")); Long oldPrice = Long.parseLong(getVariableByKey(variables, "oldPrice").toString()); Long newPrice = Long.parseLong(getVariableByKey(variables, "newPrice").toString()); WxBillAll wxBillAll = new WxBillAll();