|
|
|
@@ -2,6 +2,7 @@ package com.iformall.controller.contract; |
|
|
|
|
|
|
|
import com.iformall.controller.base.BaseController; |
|
|
|
import com.iformall.domain.po.WxFlowModel; |
|
|
|
import com.iformall.domain.po.WxMerchant; |
|
|
|
import com.iformall.domain.po.WxPropertyContract; |
|
|
|
import com.iformall.domain.po.WxRentContract; |
|
|
|
import com.iformall.domain.vo.WxRentPropertyContractVo; |
|
|
|
@@ -11,6 +12,8 @@ import com.iformall.enums.EnumFlowKey; |
|
|
|
import com.iformall.enums.EnumRentAgileType; |
|
|
|
import com.iformall.enums.EnumRentShopType; |
|
|
|
import com.iformall.service.WxFlowService; |
|
|
|
import com.iformall.service.WxShopService; |
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
@@ -25,8 +28,11 @@ public class WxContractBaseController extends BaseController{ |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private WxFlowService wxFlowService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private WxShopService wxShopService; |
|
|
|
|
|
|
|
protected Map<String,Object> generateFlowParams(EnumFlowKey flowType,EnumFlowContractType contractType,EnumRentAgileType agileType,String remark,Long contractId,Long wholeProperyId) { |
|
|
|
protected Map<String,Object> generateFlowParams(WxMerchant merchant,EnumFlowKey flowType,EnumFlowContractType contractType,EnumRentAgileType agileType,String remark,Long contractId,Long wholeProperyId) { |
|
|
|
Map<String,Object> map = new HashMap<String,Object>(); |
|
|
|
map.put("businessType", flowType.getCode()); |
|
|
|
map.put("remark", remark); |
|
|
|
@@ -60,6 +66,11 @@ public class WxContractBaseController extends BaseController{ |
|
|
|
variablesList.add(agileTypeMap); |
|
|
|
} |
|
|
|
|
|
|
|
Map rentNameMap = new HashMap<String,Object>(); |
|
|
|
rentNameMap.put("key","rentName"); |
|
|
|
rentNameMap.put("value",wxShopService.getRentName(merchant)); |
|
|
|
variablesList.add(rentNameMap); |
|
|
|
|
|
|
|
map.put("variables", variablesList); |
|
|
|
return map; |
|
|
|
} |
|
|
|
|