| @@ -59,11 +59,7 @@ public class WxContractBaseController extends BaseController{ | |||||
| protected boolean rentPropertyHasWorkFlow(WxRentPropertyContractVo rpvo) { | protected boolean rentPropertyHasWorkFlow(WxRentPropertyContractVo rpvo) { | ||||
| WxFlowModel wxFlowModel = new WxFlowModel(); | WxFlowModel wxFlowModel = new WxFlowModel(); | ||||
| if (rpvo.getRentShopType().intValue() == EnumRentShopType.SHOP.getCode().intValue()) { | |||||
| wxFlowModel.setFlowType(EnumFlowKey.NNEW_RENT_CONTRACT.getCode()); | |||||
| }else if (rpvo.getRentShopType().intValue() == EnumRentShopType.POINT.getCode().intValue()) { | |||||
| wxFlowModel.setFlowType(EnumFlowKey.NEW_RENT_POINT_CONTRACT.getCode()); | |||||
| } | |||||
| wxFlowModel.setFlowType(EnumFlowKey.NNEW_RENT_CONTRACT.getCode()); | |||||
| wxFlowModel.updateTenantInfo(rpvo); | wxFlowModel.updateTenantInfo(rpvo); | ||||
| List<WxFlowModel> flows = wxFlowService.getModelBybusiness(wxFlowModel); | List<WxFlowModel> flows = wxFlowService.getModelBybusiness(wxFlowModel); | ||||
| if (null != flows && flows.size() > 0) { | if (null != flows && flows.size() > 0) { | ||||
| @@ -77,17 +73,9 @@ public class WxContractBaseController extends BaseController{ | |||||
| WxFlowModel wxFlowModel = new WxFlowModel(); | WxFlowModel wxFlowModel = new WxFlowModel(); | ||||
| if(wxRentContract.getOperationType().intValue() == EnumContractOperationType.PART.getCode().intValue() || | if(wxRentContract.getOperationType().intValue() == EnumContractOperationType.PART.getCode().intValue() || | ||||
| wxRentContract.getOperationType().intValue() == EnumContractOperationType.JINMAO.getCode().intValue()) { | wxRentContract.getOperationType().intValue() == EnumContractOperationType.JINMAO.getCode().intValue()) { | ||||
| if (wxRentContract.getRentShopType().intValue() == EnumRentShopType.SHOP.getCode().intValue()) { | |||||
| wxFlowModel.setFlowType(EnumFlowKey.NEW_RENT_CONTRACT.getCode()); | |||||
| }else if (wxRentContract.getRentShopType().intValue() == EnumRentShopType.POINT.getCode().intValue()) { | |||||
| wxFlowModel.setFlowType(EnumFlowKey.NEW_SHOP_CONTRACT.getCode()); | |||||
| } | |||||
| wxFlowModel.setFlowType(EnumFlowKey.NEW_RENT_CONTRACT.getCode()); | |||||
| }else { | }else { | ||||
| if (wxRentContract.getRentShopType().intValue() == EnumRentShopType.SHOP.getCode().intValue()) { | |||||
| wxFlowModel.setFlowType(EnumFlowKey.NNEW_RENT_CONTRACT.getCode()); | |||||
| }else if (wxRentContract.getRentShopType().intValue() == EnumRentShopType.POINT.getCode().intValue()) { | |||||
| wxFlowModel.setFlowType(EnumFlowKey.NEW_RENT_POINT_CONTRACT.getCode()); | |||||
| } | |||||
| wxFlowModel.setFlowType(EnumFlowKey.NNEW_RENT_CONTRACT.getCode()); | |||||
| } | } | ||||
| wxFlowModel.updateTenantInfo(wxRentContract); | wxFlowModel.updateTenantInfo(wxRentContract); | ||||
| List<WxFlowModel> flows = wxFlowService.getModelBybusiness(wxFlowModel); | List<WxFlowModel> flows = wxFlowService.getModelBybusiness(wxFlowModel); | ||||
| @@ -100,17 +88,9 @@ public class WxContractBaseController extends BaseController{ | |||||
| protected boolean propertyContractHasWorkFlow(WxPropertyContract wxPropertyContract) { | protected boolean propertyContractHasWorkFlow(WxPropertyContract wxPropertyContract) { | ||||
| WxFlowModel wxFlowModel = new WxFlowModel(); | WxFlowModel wxFlowModel = new WxFlowModel(); | ||||
| if(wxPropertyContract.getOperationType().intValue() == EnumContractOperationType.PART.getCode().intValue()) { | if(wxPropertyContract.getOperationType().intValue() == EnumContractOperationType.PART.getCode().intValue()) { | ||||
| if (wxPropertyContract.getRentShopType().intValue() == EnumRentShopType.SHOP.getCode().intValue()) { | |||||
| wxFlowModel.setFlowType(EnumFlowKey.NEW_PRO_CONTRACT.getCode()); | |||||
| }else if (wxPropertyContract.getRentShopType().intValue() == EnumRentShopType.POINT.getCode().intValue()) { | |||||
| wxFlowModel.setFlowType(EnumFlowKey.NEW_PRO_POINT_CONTRACT.getCode()); | |||||
| } | |||||
| wxFlowModel.setFlowType(EnumFlowKey.NEW_PRO_CONTRACT.getCode()); | |||||
| }else { | }else { | ||||
| if (wxPropertyContract.getRentShopType().intValue() == EnumRentShopType.SHOP.getCode().intValue()) { | |||||
| wxFlowModel.setFlowType(EnumFlowKey.NNEW_RENT_CONTRACT.getCode()); | |||||
| }else if (wxPropertyContract.getRentShopType().intValue() == EnumRentShopType.POINT.getCode().intValue()) { | |||||
| wxFlowModel.setFlowType(EnumFlowKey.NEW_RENT_POINT_CONTRACT.getCode()); | |||||
| } | |||||
| wxFlowModel.setFlowType(EnumFlowKey.NNEW_RENT_CONTRACT.getCode()); | |||||
| } | } | ||||
| wxFlowModel.updateTenantInfo(wxPropertyContract); | wxFlowModel.updateTenantInfo(wxPropertyContract); | ||||
| List<WxFlowModel> flows = wxFlowService.getModelBybusiness(wxFlowModel); | List<WxFlowModel> flows = wxFlowService.getModelBybusiness(wxFlowModel); | ||||
| @@ -150,9 +150,6 @@ public class WxPropertyContractController extends WxContractBaseController { | |||||
| if (null == wxPropertyContract.getOperationType()) { | if (null == wxPropertyContract.getOperationType()) { | ||||
| return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "operationType不能为空"); | return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "operationType不能为空"); | ||||
| } | } | ||||
| if (null == wxPropertyContract.getRentShopType()) { | |||||
| return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "rentShopType不能为空"); | |||||
| } | |||||
| if (null == wxPropertyContract.getAdjustPeriod()) { | if (null == wxPropertyContract.getAdjustPeriod()) { | ||||
| return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "adjustPeriod不能为空"); | return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "adjustPeriod不能为空"); | ||||
| } | } | ||||
| @@ -200,7 +197,6 @@ public class WxPropertyContractController extends WxContractBaseController { | |||||
| wxPropertyContract.setSignDate(rentContract.getSignDate()); | wxPropertyContract.setSignDate(rentContract.getSignDate()); | ||||
| wxPropertyContract.setRentInfo(rentContract.getRentInfo()); | wxPropertyContract.setRentInfo(rentContract.getRentInfo()); | ||||
| wxPropertyContract.setShopNumbers(rentContract.getRentInfoShopNumber()); | wxPropertyContract.setShopNumbers(rentContract.getRentInfoShopNumber()); | ||||
| wxPropertyContract.setRentShopType(rentContract.getRentShopType()); | |||||
| } | } | ||||
| WxMerchant merchant = wxMerchantService.selectById(wxPropertyContract.getMerchantId()); | WxMerchant merchant = wxMerchantService.selectById(wxPropertyContract.getMerchantId()); | ||||
| @@ -215,8 +211,6 @@ public class WxPropertyContractController extends WxContractBaseController { | |||||
| wxPropertyContract.setLinkPhone(merchant.getLinkPhone()); | wxPropertyContract.setLinkPhone(merchant.getLinkPhone()); | ||||
| //wxPropertyContract.setRentShopType(merchant.getType()); | //wxPropertyContract.setRentShopType(merchant.getType()); | ||||
| Integer contractType = wxRentPropertyContractService.getContractType(wxPropertyContract.getRentShopType(), wxPropertyContract.getOperationType(), EnumContractType.PROPERTY.getCode()); | |||||
| wxPropertyContract.setContractType(contractType); | |||||
| wxPropertyContract.setRentStartType(EnumRentStartType.RENTTIME.getCode()); | wxPropertyContract.setRentStartType(EnumRentStartType.RENTTIME.getCode()); | ||||
| return wxPropertyContractService.save(wxPropertyContract, user, user.getName(),false); | return wxPropertyContractService.save(wxPropertyContract, user, user.getName(),false); | ||||
| } | } | ||||
| @@ -474,17 +468,9 @@ public class WxPropertyContractController extends WxContractBaseController { | |||||
| remark = (String) map.get("remark"); | remark = (String) map.get("remark"); | ||||
| } | } | ||||
| if(contract.getOperationType().intValue() == EnumContractOperationType.PART.getCode().intValue()) { | if(contract.getOperationType().intValue() == EnumContractOperationType.PART.getCode().intValue()) { | ||||
| if (contract.getRentShopType().intValue() == EnumRentShopType.SHOP.getCode().intValue()) { | |||||
| contract.setFlowParams(generateFlowParams(EnumFlowKey.NEW_PRO_CONTRACT, EnumFlowContractType.PROPERTY, remark, contract.getId(),null)); | |||||
| }else if (contract.getRentShopType().intValue() == EnumRentShopType.POINT.getCode().intValue()) { | |||||
| contract.setFlowParams(generateFlowParams(EnumFlowKey.NEW_PRO_POINT_CONTRACT, EnumFlowContractType.PROPERTY_POINT, remark, contract.getId(),null)); | |||||
| } | |||||
| contract.setFlowParams(generateFlowParams(EnumFlowKey.NEW_PRO_CONTRACT, EnumFlowContractType.PROPERTY, remark, contract.getId(),null)); | |||||
| }else { | }else { | ||||
| if (contract.getRentShopType().intValue() == EnumRentShopType.SHOP.getCode().intValue()) { | |||||
| contract.setFlowParams(generateFlowParams(EnumFlowKey.NEW_PRO_CONTRACT, EnumFlowContractType.WHOLE_SHOP, remark, contract.getId(),null)); | |||||
| }else if (contract.getRentShopType().intValue() == EnumRentShopType.POINT.getCode().intValue()) { | |||||
| contract.setFlowParams(generateFlowParams(EnumFlowKey.NEW_PRO_POINT_CONTRACT, EnumFlowContractType.WHOLE_POINT, remark, contract.getId(),null)); | |||||
| } | |||||
| contract.setFlowParams(generateFlowParams(EnumFlowKey.NEW_PRO_CONTRACT, EnumFlowContractType.WHOLE_SHOP, remark, contract.getId(),null)); | |||||
| } | } | ||||
| return wxPropertyContractService.apply(contract,user); | return wxPropertyContractService.apply(contract,user); | ||||
| } | } | ||||
| @@ -104,8 +104,6 @@ public class WxRentContractController extends WxContractBaseController { | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxRentContract wxRentContract) { | public ResultData add(@RequestBody WxRentContract wxRentContract) { | ||||
| logger.debug("[" + getIpAddr() + "] WxRentContractController::add"); | logger.debug("[" + getIpAddr() + "] WxRentContractController::add"); | ||||
| Integer contractType = wxRentPropertyContractService.getContractType(wxRentContract.getRentShopType(), wxRentContract.getOperationType(), EnumContractType.RENT.getCode()); | |||||
| wxRentContract.setContractType(contractType); | |||||
| //WxMerchant wxMerchant = new WxMerchant(); | //WxMerchant wxMerchant = new WxMerchant(); | ||||
| //wxMerchant.setName(wxRentContract.getMerchantName()); | //wxMerchant.setName(wxRentContract.getMerchantName()); | ||||
| //wxMerchant.setId(wxRentContract.getMerchantId()); | //wxMerchant.setId(wxRentContract.getMerchantId()); | ||||
| @@ -174,7 +172,6 @@ public class WxRentContractController extends WxContractBaseController { | |||||
| if(wxRentContract.getRentStartType()!=null &&wxRentContract.getRentStartType().equals(EnumRentStartType.STARTTIME.getCode())){ | if(wxRentContract.getRentStartType()!=null &&wxRentContract.getRentStartType().equals(EnumRentStartType.STARTTIME.getCode())){ | ||||
| wxRentContract.setRentalStartDate(wxRentContract.getStartDate()); | wxRentContract.setRentalStartDate(wxRentContract.getStartDate()); | ||||
| } | } | ||||
| wxRentContract.setRentShopType(null); | |||||
| wxRentContract.setOperationType(null); | wxRentContract.setOperationType(null); | ||||
| if (null == wxRentContract.getDayPriceCalcute()){ | if (null == wxRentContract.getDayPriceCalcute()){ | ||||
| wxRentContract.setDayPriceCalcute(EnumRentDayPriceCalcute.REAL_DAYS.getCode()); | wxRentContract.setDayPriceCalcute(EnumRentDayPriceCalcute.REAL_DAYS.getCode()); | ||||
| @@ -612,17 +609,9 @@ public class WxRentContractController extends WxContractBaseController { | |||||
| if(rentContract.getOperationType().intValue() == EnumContractOperationType.PART.getCode().intValue() || | if(rentContract.getOperationType().intValue() == EnumContractOperationType.PART.getCode().intValue() || | ||||
| rentContract.getOperationType().intValue() == EnumContractOperationType.JINMAO.getCode().intValue()) { | rentContract.getOperationType().intValue() == EnumContractOperationType.JINMAO.getCode().intValue()) { | ||||
| if (rentContract.getRentShopType().intValue() == EnumRentShopType.SHOP.getCode().intValue()) { | |||||
| rentContract.setFlowParams(generateFlowParams(EnumFlowKey.NEW_RENT_CONTRACT, EnumFlowContractType.RENT, wxRentContract.getRemark(), wxRentContract.getId(),null)); | |||||
| }else if (rentContract.getRentShopType().intValue() == EnumRentShopType.POINT.getCode().intValue()) { | |||||
| rentContract.setFlowParams(generateFlowParams(EnumFlowKey.NEW_SHOP_CONTRACT, EnumFlowContractType.RENT_POINT, wxRentContract.getRemark(), wxRentContract.getId(),null)); | |||||
| } | |||||
| rentContract.setFlowParams(generateFlowParams(EnumFlowKey.NEW_RENT_CONTRACT, EnumFlowContractType.RENT, wxRentContract.getRemark(), wxRentContract.getId(),null)); | |||||
| }else if(rentContract.getOperationType().intValue() == EnumContractOperationType.WHOLE.getCode().intValue()){ | }else if(rentContract.getOperationType().intValue() == EnumContractOperationType.WHOLE.getCode().intValue()){ | ||||
| if (rentContract.getRentShopType().intValue() == EnumRentShopType.SHOP.getCode().intValue()) { | |||||
| rentContract.setFlowParams(generateFlowParams(EnumFlowKey.NNEW_RENT_CONTRACT, EnumFlowContractType.WHOLE_SHOP, wxRentContract.getRemark(), wxRentContract.getId(),wxRentContract.getPropertyId())); | |||||
| }else if (rentContract.getRentShopType().intValue() == EnumRentShopType.POINT.getCode().intValue()) { | |||||
| rentContract.setFlowParams(generateFlowParams(EnumFlowKey.NEW_RENT_POINT_CONTRACT, EnumFlowContractType.WHOLE_POINT, wxRentContract.getRemark(), wxRentContract.getId(),wxRentContract.getPropertyId())); | |||||
| } | |||||
| rentContract.setFlowParams(generateFlowParams(EnumFlowKey.NNEW_RENT_CONTRACT, EnumFlowContractType.WHOLE_SHOP, wxRentContract.getRemark(), wxRentContract.getId(),wxRentContract.getPropertyId())); | |||||
| }else { | }else { | ||||
| return new ResultData(Result.ERROR,"合同操作类型非法。"); | return new ResultData(Result.ERROR,"合同操作类型非法。"); | ||||
| } | } | ||||
| @@ -104,3 +104,113 @@ ALTER TABLE wx_finance_receive_97 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_finance_receive_98 DROP COLUMN rent_shop_type; | ALTER TABLE wx_finance_receive_98 DROP COLUMN rent_shop_type; | ||||
| ALTER TABLE wx_finance_receive_99 DROP COLUMN rent_shop_type; | ALTER TABLE wx_finance_receive_99 DROP COLUMN rent_shop_type; | ||||
| ALTER TABLE wx_all_bill_0 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_1 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_2 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_3 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_4 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_5 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_6 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_7 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_8 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_9 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_10 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_11 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_12 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_13 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_14 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_15 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_16 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_17 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_18 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_19 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_20 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_21 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_22 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_23 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_24 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_25 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_26 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_27 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_28 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_29 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_30 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_31 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_32 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_33 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_34 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_35 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_36 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_37 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_38 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_39 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_40 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_41 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_42 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_43 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_44 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_45 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_46 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_47 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_48 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_49 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_50 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_51 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_52 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_53 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_54 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_55 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_56 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_57 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_58 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_59 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_60 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_61 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_62 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_63 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_64 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_65 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_66 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_67 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_68 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_69 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_70 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_71 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_72 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_73 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_74 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_75 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_76 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_77 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_78 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_79 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_80 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_81 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_82 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_83 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_84 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_85 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_86 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_87 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_88 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_89 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_90 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_91 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_92 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_93 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_94 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_95 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_96 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_97 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_98 DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_all_bill_99 DROP COLUMN rent_shop_type; | |||||
| DELETE FROM wx_flow_config WHERE NAME IN ('多经点位租金合同签约','多经点位租金合同终止','多经点位物业合同签约','多经点位物业合同终止','多经点位租金+物业合同签约','多经点位租金+物业合同终止'); | |||||
| ALTER TABLE wx_rent_contract DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_rent_contract DROP COLUMN contract_type; | |||||
| ALTER TABLE wx_property_contract DROP COLUMN rent_shop_type; | |||||
| ALTER TABLE wx_property_contract DROP COLUMN contract_type; | |||||
| @@ -158,9 +158,6 @@ public class WxPropertyContract extends TenantEntity { | |||||
| @io.swagger.annotations.ApiModelProperty(value = "终止时间", name = "endContractTime") | @io.swagger.annotations.ApiModelProperty(value = "终止时间", name = "endContractTime") | ||||
| private Date endContractTime; | private Date endContractTime; | ||||
| @io.swagger.annotations.ApiModelProperty(value = "租赁商铺类型", name = "rentShopType") | |||||
| private Integer rentShopType; | |||||
| @io.swagger.annotations.ApiModelProperty(value = "计租周期EnumRentContractAdjustPeriod", name = "计租周期") | @io.swagger.annotations.ApiModelProperty(value = "计租周期EnumRentContractAdjustPeriod", name = "计租周期") | ||||
| private Integer adjustPeriod; | private Integer adjustPeriod; | ||||
| @@ -365,11 +362,7 @@ public class WxPropertyContract extends TenantEntity { | |||||
| } | } | ||||
| return null; | return null; | ||||
| } | } | ||||
| @io.swagger.annotations.ApiModelProperty(value = "合同类型", name = "contractType") | |||||
| private Integer contractType; | |||||
| @TableField(exist = false) | @TableField(exist = false) | ||||
| private List<Long> merchantIds; | private List<Long> merchantIds; | ||||
| @@ -350,8 +350,8 @@ public class WxRentContract extends TenantEntity { | |||||
| @io.swagger.annotations.ApiModelProperty(value = "终止时间", name = "endContractTime") | @io.swagger.annotations.ApiModelProperty(value = "终止时间", name = "endContractTime") | ||||
| private Date endContractTime; | private Date endContractTime; | ||||
| @io.swagger.annotations.ApiModelProperty(value = "租赁商铺类型", name = "rentShopType") | |||||
| private Integer rentShopType; | |||||
| // @io.swagger.annotations.ApiModelProperty(value = "租赁商铺类型", name = "rentShopType") | |||||
| // private Integer rentShopType; | |||||
| @TableField(exist = false) | @TableField(exist = false) | ||||
| @io.swagger.annotations.ApiModelProperty(value = "审批流参数", name = "flowParams") | @io.swagger.annotations.ApiModelProperty(value = "审批流参数", name = "flowParams") | ||||
| @@ -517,8 +517,8 @@ public class WxRentContract extends TenantEntity { | |||||
| } | } | ||||
| @io.swagger.annotations.ApiModelProperty(value = "合同类型", name = "contractType") | |||||
| private Integer contractType; | |||||
| // @io.swagger.annotations.ApiModelProperty(value = "合同类型", name = "contractType") | |||||
| // private Integer contractType; | |||||
| //联营扣点跳点设置 | //联营扣点跳点设置 | ||||
| @TableField(exist = false) | @TableField(exist = false) | ||||
| @@ -7,12 +7,12 @@ package com.iformall.enums; | |||||
| public enum EnumContract { | public enum EnumContract { | ||||
| SHOP_RENT(1, "店铺租赁合同"), | |||||
| SHOP_PROPERTY(3, "店铺物业合同"), | |||||
| SHOP_RENT_PROPERTY(5, "店铺租赁物业合同"), | |||||
| POINT_RENT(2, "多经租赁合同"), | |||||
| POINT_PROPERTY(4, "多经物业合同"), | |||||
| POINT_RENT_PROPERTY(6, "多经租赁物业合同"),; | |||||
| SHOP_RENT(1, "租赁合同"), | |||||
| SHOP_PROPERTY(3, "物业合同"), | |||||
| SHOP_RENT_PROPERTY(5, "租赁物业合同"); | |||||
| //POINT_RENT(2, "多经租赁合同"), | |||||
| //POINT_PROPERTY(4, "多经物业合同"), | |||||
| //POINT_RENT_PROPERTY(6, "多经租赁物业合同"),; | |||||
| public static EnumContract getEnum(Integer code) { | public static EnumContract getEnum(Integer code) { | ||||
| for (EnumContract value : values()) { | for (EnumContract value : values()) { | ||||
| @@ -9,7 +9,7 @@ public enum EnumContractOperationType { | |||||
| PART(1, "区分租赁物业"), | PART(1, "区分租赁物业"), | ||||
| WHOLE(2, "合并租赁物业"), | WHOLE(2, "合并租赁物业"), | ||||
| JINMAO(3, "金茂"),;; | |||||
| JINMAO(3, "金茂"); | |||||
| public static EnumContractOperationType getEnum(Integer code) { | public static EnumContractOperationType getEnum(Integer code) { | ||||
| for (EnumContractOperationType value : values()) { | for (EnumContractOperationType value : values()) { | ||||
| @@ -9,11 +9,8 @@ public enum EnumFlowContractType { | |||||
| // 1租赁合同 2点位合同 3物业 4点位物业合同 | // 1租赁合同 2点位合同 3物业 4点位物业合同 | ||||
| RENT(1, "租赁合同"), | RENT(1, "租赁合同"), | ||||
| RENT_POINT(2, "租赁点位合同"), | |||||
| PROPERTY(3,"物业合同"), | PROPERTY(3,"物业合同"), | ||||
| PROPERTY_POINT(4, "点位物业合同"), | |||||
| WHOLE_SHOP(5, "合并合同(店铺)"), | |||||
| WHOLE_POINT(6, "合并合同(点位)") | |||||
| WHOLE_SHOP(5, "合并合同(店铺)") | |||||
| ; | ; | ||||
| public static EnumFlowContractType getEnum(Integer code) { | public static EnumFlowContractType getEnum(Integer code) { | ||||
| @@ -9,10 +9,10 @@ public enum EnumFlowKey { | |||||
| BILL(2, "end_bill_flow"),//账单审批 | BILL(2, "end_bill_flow"),//账单审批 | ||||
| END_CONTRACT(3, "end_contract_flow"),//终止合同审批 | END_CONTRACT(3, "end_contract_flow"),//终止合同审批 | ||||
| NEW_RENT_CONTRACT(4, "商铺租金合同签约"), | |||||
| NEW_SHOP_CONTRACT(5, "多经点位租金合同签约"), | |||||
| NEW_RENT_END_CONTRACT(6, "商铺租金合同终止"), | |||||
| NEW_SHOP_END_CONTRACT(7, "多经点位租金合同终止"), | |||||
| NEW_RENT_CONTRACT(4, "租金合同签约"), | |||||
| //NEW_SHOP_CONTRACT(5, "多经点位租金合同签约"), | |||||
| NEW_RENT_END_CONTRACT(6, "租金合同终止"), | |||||
| //NEW_SHOP_END_CONTRACT(7, "多经点位租金合同终止"), | |||||
| NEW_BILL_CHANGE(8, "账单应收金额变更"), | NEW_BILL_CHANGE(8, "账单应收金额变更"), | ||||
| @@ -26,15 +26,15 @@ public enum EnumFlowKey { | |||||
| NEW_COUPON_DISTRIBUTION_UPLINE(25,"配送商品审批"), | NEW_COUPON_DISTRIBUTION_UPLINE(25,"配送商品审批"), | ||||
| NEW_COUPON_CREDIT_UPLINE(26,"积分券审批"), | NEW_COUPON_CREDIT_UPLINE(26,"积分券审批"), | ||||
| NEW_PRO_CONTRACT(13, "商铺物业合同签约"), | |||||
| NEW_PRO_END(14, "商铺物业合同终止"), | |||||
| NEW_PRO_POINT_CONTRACT(15, "多经点位物业合同签约"), | |||||
| NEW_PRO_POINT_CONTRACT_END(16, "多经点位物业合同终止"), | |||||
| NEW_PRO_CONTRACT(13, "物业合同签约"), | |||||
| NEW_PRO_END(14, "物业合同终止"), | |||||
| //NEW_PRO_POINT_CONTRACT(15, "多经点位物业合同签约"), | |||||
| //NEW_PRO_POINT_CONTRACT_END(16, "多经点位物业合同终止"), | |||||
| NNEW_RENT_CONTRACT(17, "商铺租金+物业合同签约"), | |||||
| NEW_RENT_END(18, "商铺租金+物业合同合同终止"), | |||||
| NEW_RENT_POINT_CONTRACT(19, "多经点位商铺租金+物业合同签约"), | |||||
| NEW_RENT_POINT_CONTRACT_END(20, "多经点位商铺租金+物业合同终止"), | |||||
| NNEW_RENT_CONTRACT(17, "租金+物业合同签约"), | |||||
| NEW_RENT_END(18, "租金+物业合同合同终止"), | |||||
| //NEW_RENT_POINT_CONTRACT(19, "多经点位商铺租金+物业合同签约"), | |||||
| //NEW_RENT_POINT_CONTRACT_END(20, "多经点位商铺租金+物业合同终止"), | |||||
| SETTLE(21,"结算单审批"), | SETTLE(21,"结算单审批"), | ||||
| BILL_FINISH(30,"商户账单完结审批"), | BILL_FINISH(30,"商户账单完结审批"), | ||||
| @@ -57,17 +57,6 @@ public interface WxPropertyContractService { | |||||
| void download(HttpServletRequest request, HttpServletResponse response); | void download(HttpServletRequest request, HttpServletResponse response); | ||||
| //Object getRentContractStatusInfo(WxPropertyContract record); | |||||
| //ResultData endRentContract(Long id); | |||||
| //Object getRentContractList(WxPropertyContract record); | |||||
| //ResultData endPropertyContractByRentContractId(Long rentContractId); | |||||
| ResultData hasRentContract(Long rentContractId); | |||||
| ResultData updatePropertyContractStatus(Long id); | ResultData updatePropertyContractStatus(Long id); | ||||
| void endContract(WxPropertyContract wxPropertyContract,MallUserInfo userInfo); | void endContract(WxPropertyContract wxPropertyContract,MallUserInfo userInfo); | ||||
| @@ -76,8 +65,6 @@ public interface WxPropertyContractService { | |||||
| List<WxAllBill> getWxBillPropertyPreview(TenantEntity tenantEntity,Long id); | List<WxAllBill> getWxBillPropertyPreview(TenantEntity tenantEntity,Long id); | ||||
| //Map<String, Object> updateStatus(WxPropertyContract record); | |||||
| List<WxAllBill> buildProperty(WxMerchant wxMerchant, MallUserInfo user, WxPropertyContract propertyContract, Integer isPreview,boolean saveDb); | List<WxAllBill> buildProperty(WxMerchant wxMerchant, MallUserInfo user, WxPropertyContract propertyContract, Integer isPreview,boolean saveDb); | ||||
| WxPropertyContract getByBill(WxAllBill billRent); | WxPropertyContract getByBill(WxAllBill billRent); | ||||
| @@ -18,6 +18,4 @@ public interface WxRentPropertyContractService { | |||||
| ResultData insertRentForCreate(WxRentContract wxRentContract); | ResultData insertRentForCreate(WxRentContract wxRentContract); | ||||
| Integer getContractType(Integer rentShopType, Integer operationType, Integer contract); | |||||
| } | } | ||||
| @@ -183,17 +183,12 @@ public class WxFlowServiceImpl implements WxFlowService { | |||||
| if(EnumFlowKey.CONTRACT.getCode().equals(flowType) || | if(EnumFlowKey.CONTRACT.getCode().equals(flowType) || | ||||
| EnumFlowKey.NEW_RENT_CONTRACT.getCode().equals(flowType) || | EnumFlowKey.NEW_RENT_CONTRACT.getCode().equals(flowType) || | ||||
| EnumFlowKey.NEW_SHOP_CONTRACT.getCode().equals(flowType)|| | |||||
| EnumFlowKey.NEW_PRO_CONTRACT.getCode().equals(flowType)|| | EnumFlowKey.NEW_PRO_CONTRACT.getCode().equals(flowType)|| | ||||
| EnumFlowKey.NEW_PRO_POINT_CONTRACT.getCode().equals(flowType)|| | |||||
| EnumFlowKey.NNEW_RENT_CONTRACT.getCode().equals(flowType)|| | |||||
| EnumFlowKey.NEW_RENT_POINT_CONTRACT.getCode().equals(flowType) | |||||
| EnumFlowKey.NNEW_RENT_CONTRACT.getCode().equals(flowType) | |||||
| ){ | ){ | ||||
| // 1租赁合同 2点位合同 3物业 4点位物业合同 5 合并合同-店铺 6 合并合同-多经点位 | // 1租赁合同 2点位合同 3物业 4点位物业合同 5 合并合同-店铺 6 合并合同-多经点位 | ||||
| if (EnumFlowContractType.RENT.getCode().equals(contractType) || | if (EnumFlowContractType.RENT.getCode().equals(contractType) || | ||||
| EnumFlowContractType.RENT_POINT.getCode().equals(contractType) || | |||||
| EnumFlowContractType.WHOLE_SHOP.getCode().equals(contractType) || | |||||
| EnumFlowContractType.WHOLE_POINT.getCode().equals(contractType)) { | |||||
| EnumFlowContractType.WHOLE_SHOP.getCode().equals(contractType)) { | |||||
| WxRentContract rent = new WxRentContract(); | WxRentContract rent = new WxRentContract(); | ||||
| //租金+合同的bussinessId 特殊 | //租金+合同的bussinessId 特殊 | ||||
| @@ -254,7 +249,7 @@ public class WxFlowServiceImpl implements WxFlowService { | |||||
| wxPropertyContractMapper.updateApplyStatusByRentContractId(wxPropertyContract); | wxPropertyContractMapper.updateApplyStatusByRentContractId(wxPropertyContract); | ||||
| } | } | ||||
| }else if(EnumFlowContractType.PROPERTY.getCode().equals(contractType) || EnumFlowContractType.PROPERTY_POINT.getCode().equals(contractType)){ | |||||
| }else if(EnumFlowContractType.PROPERTY.getCode().equals(contractType)){ | |||||
| WxPropertyContract wxPropertyContract = new WxPropertyContract(); | WxPropertyContract wxPropertyContract = new WxPropertyContract(); | ||||
| wxPropertyContract.setId(Long.parseLong(businessId)); | wxPropertyContract.setId(Long.parseLong(businessId)); | ||||
| wxPropertyContract.setApplyStatus(applyStatus); | wxPropertyContract.setApplyStatus(applyStatus); | ||||
| @@ -276,17 +271,11 @@ public class WxFlowServiceImpl implements WxFlowService { | |||||
| } | } | ||||
| }else if(EnumFlowKey.END_CONTRACT.getCode().equals(flowType) | }else if(EnumFlowKey.END_CONTRACT.getCode().equals(flowType) | ||||
| || EnumFlowKey.NEW_RENT_END_CONTRACT.getCode().equals(flowType) | || EnumFlowKey.NEW_RENT_END_CONTRACT.getCode().equals(flowType) | ||||
| || EnumFlowKey.NEW_SHOP_END_CONTRACT.getCode().equals(flowType) | |||||
| || EnumFlowKey.NEW_PRO_END.getCode().equals(flowType) | || EnumFlowKey.NEW_PRO_END.getCode().equals(flowType) | ||||
| || EnumFlowKey.NEW_PRO_POINT_CONTRACT_END.getCode().equals(flowType) | |||||
| || EnumFlowKey.NEW_RENT_END.getCode().equals(flowType) | || EnumFlowKey.NEW_RENT_END.getCode().equals(flowType) | ||||
| || EnumFlowKey.NEW_RENT_POINT_CONTRACT_END.getCode().equals(flowType) | |||||
| ){ | ){ | ||||
| if(EnumFlowContractType.RENT.getCode().equals(contractType) || | if(EnumFlowContractType.RENT.getCode().equals(contractType) || | ||||
| EnumFlowContractType.RENT_POINT.getCode().equals(contractType) || | |||||
| EnumFlowContractType.RENT_POINT.getCode().equals(contractType) || | |||||
| EnumFlowContractType.WHOLE_SHOP.getCode().equals(contractType) || | |||||
| EnumFlowContractType.WHOLE_POINT.getCode().equals(contractType)){ | |||||
| EnumFlowContractType.WHOLE_SHOP.getCode().equals(contractType)) { | |||||
| WxRentContract rent = new WxRentContract(); | WxRentContract rent = new WxRentContract(); | ||||
| //租金+合同的bussinessId 特殊 | //租金+合同的bussinessId 特殊 | ||||
| Long bsId ; | Long bsId ; | ||||
| @@ -311,7 +300,7 @@ public class WxFlowServiceImpl implements WxFlowService { | |||||
| wxRentContractService.endContract(rent,null); | wxRentContractService.endContract(rent,null); | ||||
| } | } | ||||
| wxRentContractService.updateApplyStatus(rent); | wxRentContractService.updateApplyStatus(rent); | ||||
| }else if(EnumFlowContractType.PROPERTY.getCode().equals(contractType) || EnumFlowContractType.PROPERTY_POINT.getCode().equals(contractType)){ | |||||
| }else if(EnumFlowContractType.PROPERTY.getCode().equals(contractType)){ | |||||
| WxPropertyContract wxPropertyContract = new WxPropertyContract(); | WxPropertyContract wxPropertyContract = new WxPropertyContract(); | ||||
| wxPropertyContract.setId(Long.parseLong(businessId)); | wxPropertyContract.setId(Long.parseLong(businessId)); | ||||
| wxPropertyContract.setApplyStatus(applyStatus); | wxPropertyContract.setApplyStatus(applyStatus); | ||||
| @@ -774,17 +763,11 @@ public class WxFlowServiceImpl implements WxFlowService { | |||||
| if(EnumFlowKey.CONTRACT.getCode().equals(flowType) | if(EnumFlowKey.CONTRACT.getCode().equals(flowType) | ||||
| ||EnumFlowKey.END_CONTRACT.getCode().equals(flowType) | ||EnumFlowKey.END_CONTRACT.getCode().equals(flowType) | ||||
| || EnumFlowKey.NEW_RENT_CONTRACT.getCode().equals(flowType) | || EnumFlowKey.NEW_RENT_CONTRACT.getCode().equals(flowType) | ||||
| || EnumFlowKey.NEW_SHOP_CONTRACT.getCode().equals(flowType) | |||||
| || EnumFlowKey.NEW_RENT_END_CONTRACT.getCode().equals(flowType) | || EnumFlowKey.NEW_RENT_END_CONTRACT.getCode().equals(flowType) | ||||
| || EnumFlowKey.NEW_SHOP_END_CONTRACT.getCode().equals(flowType) | |||||
| || EnumFlowKey.NEW_PRO_CONTRACT.getCode().equals(flowType) | || EnumFlowKey.NEW_PRO_CONTRACT.getCode().equals(flowType) | ||||
| || EnumFlowKey.NEW_PRO_POINT_CONTRACT.getCode().equals(flowType) | |||||
| || EnumFlowKey.NEW_PRO_END.getCode().equals(flowType) | || EnumFlowKey.NEW_PRO_END.getCode().equals(flowType) | ||||
| || EnumFlowKey.NEW_PRO_POINT_CONTRACT_END.getCode().equals(flowType) | |||||
| || EnumFlowKey.NNEW_RENT_CONTRACT.getCode().equals(flowType) | || EnumFlowKey.NNEW_RENT_CONTRACT.getCode().equals(flowType) | ||||
| || EnumFlowKey.NEW_RENT_END.getCode().equals(flowType) | || EnumFlowKey.NEW_RENT_END.getCode().equals(flowType) | ||||
| || EnumFlowKey.NEW_RENT_POINT_CONTRACT.getCode().equals(flowType) | |||||
| || EnumFlowKey.NEW_RENT_POINT_CONTRACT_END.getCode().equals(flowType) | |||||
| ){ | ){ | ||||
| return true; | return true; | ||||
| } | } | ||||
| @@ -1051,121 +1051,6 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService | |||||
| } | } | ||||
| } | } | ||||
| // @Override | |||||
| // @Transactional(rollbackFor = {Exception.class}) | |||||
| // public Object getRentContractStatusInfo(WxPropertyContract record) { | |||||
| // | |||||
| // Map<String, Object> resultData = new HashMap(); | |||||
| // //商铺信息 | |||||
| // WxShop wxShop = new WxShop(); | |||||
| // wxShop.updateTenantInfo(record); | |||||
| // wxShop.setType(record.getRentShopType()); | |||||
| // wxShop.setStatus(EnumShopStatus.RENT.getCode()); | |||||
| // List<WxShop> rentedList = wxShopMapper.findList(wxShop); | |||||
| // wxShop.setStatus(EnumShopStatus.NOT_RENT.getCode()); | |||||
| // List<WxShop> unrentedList = wxShopMapper.findList(wxShop); | |||||
| // | |||||
| // HashMap<String, Object> shopMap = new HashMap<>(3); | |||||
| // int rentedCount = rentedList.size(); | |||||
| // int unrentedCount = unrentedList.size(); | |||||
| // shopMap.put("rentedCount",rentedCount); | |||||
| // shopMap.put("unrentedCount",unrentedCount); | |||||
| // shopMap.put("allCount",rentedCount+unrentedCount); | |||||
| // resultData.put("shopCountInfo", shopMap); | |||||
| // | |||||
| // //需要更新的状态 | |||||
| // resultData.putAll(updateStatus(record)); | |||||
| // return resultData; | |||||
| // } | |||||
| // @Override | |||||
| // public Object getRentContractList(WxPropertyContract record) { | |||||
| // Map<String, Object> params = new HashMap<>(); | |||||
| // params.put("tenantId", record.getTenantId()); | |||||
| // params.put("rentShopType", record.getRentShopType()); | |||||
| // List<WxRentContract> contractList; | |||||
| // if (record.getRentShopType().equals(EnumRentShopType.SHOP.getCode())) { | |||||
| // contractList = wxPropertyContractMapper.getRentContractListByShop(params); | |||||
| // } else { | |||||
| // contractList = wxPropertyContractMapper.getRentContractListByPoint(params); | |||||
| // } | |||||
| // return contractList; | |||||
| // } | |||||
| @Override | |||||
| public ResultData hasRentContract(Long rentContractId) { | |||||
| if (null == rentContractId) { | |||||
| return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL, "rentContractId不能为空"); | |||||
| } | |||||
| WxRentContract wxRentContract = wxRentContractMapper.selectById(rentContractId); | |||||
| if (wxRentContract != null) { | |||||
| WxPropertyContract wxPropertyContract = new WxPropertyContract(); | |||||
| wxPropertyContract.updateTenantInfo(wxRentContract); | |||||
| if (wxRentContract.getRentShopType().equals(EnumRentShopType.SHOP.getCode())) { | |||||
| wxPropertyContract.setMerchantId(wxRentContract.getMerchantId()); | |||||
| } | |||||
| // if (wxRentContract.shopIdsByRentInfo().size()==0) { | |||||
| // wxPropertyContract.setShopId(wxRentContract.shopIdsByRentInfo().get(0)); | |||||
| // } | |||||
| List<WxPropertyContract> select = wxPropertyContractMapper.selectList(new QueryWrapper(wxPropertyContract)); | |||||
| if (select.size() > 0) { | |||||
| // long count = select.stream().filter(propertyContract -> propertyContract.getStatus().equals(EnumRentContractStatus.SIGNED_RENT_UNPAID.getCode()) || | |||||
| // propertyContract.getStatus().equals(EnumRentContractStatus.RENT_PAID.getCode()) || | |||||
| // propertyContract.getStatus().equals(EnumRentContractStatus.CONTRACT_END_SOON.getCode())).count(); | |||||
| long count = select.stream().filter(propertyContract -> EnumRentContractStatus.getValidStatus().contains(propertyContract.getStatus())).count(); | |||||
| if (count > 0) { | |||||
| return new ResultData(true); | |||||
| } | |||||
| } | |||||
| } | |||||
| return new ResultData(false); | |||||
| } | |||||
| // @Override | |||||
| // public Map<String, Object> updateStatus(WxPropertyContract record) { | |||||
| // Map<String, Object> resultData = new HashMap(); | |||||
| // WxPropertyContract wxPropertyContract = new WxPropertyContract(); | |||||
| // wxPropertyContract.updateTenantInfo(record); | |||||
| // wxPropertyContract.setRentShopType(record.getRentShopType()); | |||||
| // | |||||
| // int allCount = wxPropertyContractMapper.selectCount(new QueryWrapper(wxPropertyContract)); | |||||
| // resultData.put("allCount", allCount); | |||||
| // | |||||
| // //作废合同 | |||||
| // wxPropertyContract.setStatus(EnumRentContractStatus.INVALID.getCode()); | |||||
| // wxPropertyContractMapper.updateRentInvalidStatus(wxPropertyContract); | |||||
| // | |||||
| // //待签约 | |||||
| // //wxPropertyContract.setStatus(EnumRentContractStatus.WAIT_SIGN.getCode()); | |||||
| // //wxPropertyContractMapper.updateRentWaitSignStatus(wxPropertyContract); | |||||
| // //int waitSignCount = wxPropertyContractMapper.queryRentContractWaitSignStatus(wxPropertyContract); | |||||
| // resultData.put("waitSignCount", 0); | |||||
| // | |||||
| // //计租中 | |||||
| // wxPropertyContract.setStatus(EnumRentContractStatus.PAING.getCode()); | |||||
| // wxPropertyContractMapper.updateRentContractPaidStatus(wxPropertyContract); | |||||
| // int rendPaidCount = wxPropertyContractMapper.queryRentContractPaidStatus(wxPropertyContract); | |||||
| // resultData.put("rendPaidCount", rendPaidCount); | |||||
| // | |||||
| // //将到期 | |||||
| // //wxPropertyContract.setStatus(EnumRentContractStatus.CONTRACT_END_SOON.getCode()); | |||||
| // //wxPropertyContractMapper.updateRentContractEndSoonStatus(wxPropertyContract); | |||||
| // //int endSoonCount = wxPropertyContractMapper.queryRentContractEndSoonStatus(wxPropertyContract); | |||||
| // resultData.put("endSoonCount", 0); | |||||
| // | |||||
| // //到期 | |||||
| // wxPropertyContract.setStatus(EnumRentContractStatus.OUT_DATE.getCode()); | |||||
| // int endCount = wxPropertyContractMapper.queryRentContractEndStatus(wxPropertyContract); | |||||
| // wxPropertyContractMapper.updateRentContractEndStatus(wxPropertyContract); | |||||
| // resultData.put("endCount", endCount); | |||||
| // | |||||
| // return resultData; | |||||
| // } | |||||
| public static void downLoadFromUrl(String urlStr, String fileName, String savePath) throws IOException { | public static void downLoadFromUrl(String urlStr, String fileName, String savePath) throws IOException { | ||||
| URL url = new URL(urlStr); | URL url = new URL(urlStr); | ||||
| HttpURLConnection conn = (HttpURLConnection) url.openConnection(); | HttpURLConnection conn = (HttpURLConnection) url.openConnection(); | ||||
| @@ -790,7 +790,6 @@ public class WxRentContractServiceImpl implements WxRentContractService { | |||||
| } | } | ||||
| //重新查一次 | //重新查一次 | ||||
| wxRentContract = wxRentContractMapper.selectById(record.getId()); | wxRentContract = wxRentContractMapper.selectById(record.getId()); | ||||
| record.setRentShopType(wxRentContract.getRentShopType()); | |||||
| return new ResultData(Result.SUCCESS, "保存租赁合同信息成功", wxRentContract); | return new ResultData(Result.SUCCESS, "保存租赁合同信息成功", wxRentContract); | ||||
| } | } | ||||
| @@ -869,18 +868,16 @@ public class WxRentContractServiceImpl implements WxRentContractService { | |||||
| wxBillDeposit.setUpdateByName(user.getName()); | wxBillDeposit.setUpdateByName(user.getName()); | ||||
| } | } | ||||
| //wxBillDeposit.setIsDel(EnumDelStatus.NOT_DEL.getCode()); | //wxBillDeposit.setIsDel(EnumDelStatus.NOT_DEL.getCode()); | ||||
| if (wxRentContract.getRentShopType().equals(EnumRentShopType.SHOP.getCode())) { | |||||
| String rentInfo = wxRentContract.getRentInfo(); | |||||
| if (rentInfo != null) { | |||||
| JSONArray rentInfoArray = JSONArray.parseArray(rentInfo); | |||||
| Map<String, Object> shopInfo = new HashMap<>(); | |||||
| for (int i = 0, size = rentInfoArray.size(); i < size; i++) { | |||||
| JSONObject rentInfoObject = rentInfoArray.getJSONObject(i); | |||||
| shopInfo.put(rentInfoObject.getString("shopNumber"), rentInfoObject.get("deposit")); | |||||
| } | |||||
| wxBillDeposit.setShopInfo(JSONObject.toJSONString(shopInfo)); | |||||
| } | |||||
| } | |||||
| String rentInfo = wxRentContract.getRentInfo(); | |||||
| if (rentInfo != null) { | |||||
| JSONArray rentInfoArray = JSONArray.parseArray(rentInfo); | |||||
| Map<String, Object> shopInfo = new HashMap<>(); | |||||
| for (int i = 0, size = rentInfoArray.size(); i < size; i++) { | |||||
| JSONObject rentInfoObject = rentInfoArray.getJSONObject(i); | |||||
| shopInfo.put(rentInfoObject.getString("shopNumber"), rentInfoObject.get("deposit")); | |||||
| } | |||||
| wxBillDeposit.setShopInfo(JSONObject.toJSONString(shopInfo)); | |||||
| } | |||||
| wxBillDeposit.setEnergyFeesId(energyFeesId); | wxBillDeposit.setEnergyFeesId(energyFeesId); | ||||
| insertList.add(wxBillDeposit); | insertList.add(wxBillDeposit); | ||||
| @@ -956,33 +953,21 @@ public class WxRentContractServiceImpl implements WxRentContractService { | |||||
| logger.info("合同id:{},开始停止...", id); | logger.info("合同id:{},开始停止...", id); | ||||
| //结束审批流 by luozukai | //结束审批流 by luozukai | ||||
| WxFlowModel flowModel = wxFlowService.getModelByType(EnumFlowKey.NEW_RENT_CONTRACT.getCode().intValue(),record); | WxFlowModel flowModel = wxFlowService.getModelByType(EnumFlowKey.NEW_RENT_CONTRACT.getCode().intValue(),record); | ||||
| WxFlowModel flowModelPoint = wxFlowService.getModelByType(EnumFlowKey.NEW_SHOP_CONTRACT.getCode().intValue(),record); | |||||
| WxFlowModel flowModel_pro = wxFlowService.getModelByType(EnumFlowKey.NEW_PRO_CONTRACT.getCode().intValue(),record); | WxFlowModel flowModel_pro = wxFlowService.getModelByType(EnumFlowKey.NEW_PRO_CONTRACT.getCode().intValue(),record); | ||||
| WxFlowModel flowModelPoint_pro = wxFlowService.getModelByType(EnumFlowKey.NEW_PRO_POINT_CONTRACT.getCode().intValue(),record); | |||||
| WxFlowModel flowModel_rent = wxFlowService.getModelByType(EnumFlowKey.NNEW_RENT_CONTRACT.getCode().intValue(),record); | WxFlowModel flowModel_rent = wxFlowService.getModelByType(EnumFlowKey.NNEW_RENT_CONTRACT.getCode().intValue(),record); | ||||
| WxFlowModel flowModelPoint_rent = wxFlowService.getModelByType(EnumFlowKey.NEW_RENT_POINT_CONTRACT.getCode().intValue(),record); | |||||
| List<String> keyList = new ArrayList<>(); | List<String> keyList = new ArrayList<>(); | ||||
| if(flowModel != null){ | if(flowModel != null){ | ||||
| keyList.add(flowModel.getFlowId()); | keyList.add(flowModel.getFlowId()); | ||||
| } | } | ||||
| if(flowModelPoint != null){ | |||||
| keyList.add(flowModelPoint.getFlowId()); | |||||
| } | |||||
| if(flowModel_pro != null){ | if(flowModel_pro != null){ | ||||
| keyList.add(flowModel_pro.getFlowId()); | keyList.add(flowModel_pro.getFlowId()); | ||||
| } | } | ||||
| if(flowModelPoint_pro != null){ | |||||
| keyList.add(flowModelPoint_pro.getFlowId()); | |||||
| } | |||||
| if(flowModel_rent != null){ | if(flowModel_rent != null){ | ||||
| keyList.add(flowModel_rent.getFlowId()); | keyList.add(flowModel_rent.getFlowId()); | ||||
| } | } | ||||
| if(flowModelPoint_rent != null){ | |||||
| keyList.add(flowModelPoint_rent.getFlowId()); | |||||
| } | |||||
| keyList.add(EnumFlowKey.CONTRACT.getMessage()); | keyList.add(EnumFlowKey.CONTRACT.getMessage()); | ||||
| List<Task> tasks = taskService.createTaskQuery() | List<Task> tasks = taskService.createTaskQuery() | ||||
| .processDefinitionKeyIn(keyList) | .processDefinitionKeyIn(keyList) | ||||
| @@ -120,45 +120,6 @@ public class WxRentPropertyContractServiceImpl implements WxRentPropertyContract | |||||
| public ResultData insertRentForCreate(WxRentContract wxRentContract) { | public ResultData insertRentForCreate(WxRentContract wxRentContract) { | ||||
| return null; | return null; | ||||
| } | } | ||||
| @Override | |||||
| public Integer getContractType(Integer rentShopType, Integer operationType, Integer contract) { | |||||
| //店铺租赁合同 | |||||
| if (contract.equals(EnumContractType.RENT.getCode()) | |||||
| && rentShopType.equals(EnumRentShopType.SHOP.getCode()) | |||||
| && operationType.equals(EnumContractOperationType.PART.getCode())) { | |||||
| return EnumContract.SHOP_RENT.getCode(); | |||||
| } | |||||
| //多经租赁合同 | |||||
| if (contract.equals(EnumContractType.RENT.getCode()) | |||||
| && rentShopType.equals(EnumRentShopType.POINT.getCode()) | |||||
| && operationType.equals(EnumContractOperationType.PART.getCode())) { | |||||
| return EnumContract.POINT_RENT.getCode(); | |||||
| } | |||||
| //店铺物业合同 | |||||
| if (contract.equals(EnumContractType.PROPERTY.getCode()) | |||||
| && rentShopType.equals(EnumRentShopType.SHOP.getCode()) | |||||
| && operationType.equals(EnumContractOperationType.PART.getCode())) { | |||||
| return EnumContract.SHOP_PROPERTY.getCode(); | |||||
| } | |||||
| //多经物业合同 | |||||
| if (contract.equals(EnumContractType.PROPERTY.getCode()) | |||||
| && rentShopType.equals(EnumRentShopType.POINT.getCode()) | |||||
| && operationType.equals(EnumContractOperationType.PART.getCode())) { | |||||
| return EnumContract.POINT_PROPERTY.getCode(); | |||||
| } | |||||
| //店铺租赁物业合同 | |||||
| if (rentShopType.equals(EnumRentShopType.SHOP.getCode()) | |||||
| && operationType.equals(EnumContractOperationType.WHOLE.getCode())) { | |||||
| return EnumContract.SHOP_RENT_PROPERTY.getCode(); | |||||
| } | |||||
| //多经租赁物业合同 | |||||
| if (rentShopType.equals(EnumRentShopType.POINT.getCode()) | |||||
| && operationType.equals(EnumContractOperationType.WHOLE.getCode())) { | |||||
| return EnumContract.POINT_RENT_PROPERTY.getCode(); | |||||
| } | |||||
| return 0; | |||||
| } | |||||
| } | } | ||||
| @@ -12,13 +12,13 @@ import lombok.extern.slf4j.Slf4j; | |||||
| public class EventUtil { | public class EventUtil { | ||||
| public static void publistRentEvent(WxRentContractService rentContractService, WxRentContract rentContract) { | public static void publistRentEvent(WxRentContractService rentContractService, WxRentContract rentContract) { | ||||
| try { | |||||
| RentEventInfo rentEventInfo = RentEventInfo | |||||
| .of(rentContract.getId(), rentContractService.getShopIds(rentContract), EnumRentContractStatus.getEnum(rentContract.getStatus()),rentContract.getContractType()); | |||||
| InvestEvent event = new InvestEvent(rentEventInfo); | |||||
| SpringContextUtils.pulish(event); | |||||
| } catch (Exception e) { | |||||
| log.error("publistRentEvent error", e); | |||||
| } | |||||
| // try { | |||||
| // RentEventInfo rentEventInfo = RentEventInfo | |||||
| // .of(rentContract.getId(), rentContractService.getShopIds(rentContract), EnumRentContractStatus.getEnum(rentContract.getStatus()),rentContract.getContractType()); | |||||
| // InvestEvent event = new InvestEvent(rentEventInfo); | |||||
| // SpringContextUtils.pulish(event); | |||||
| // } catch (Exception e) { | |||||
| // log.error("publistRentEvent error", e); | |||||
| // } | |||||
| } | } | ||||
| } | } | ||||
| @@ -45,7 +45,6 @@ | |||||
| <result column="rent_price" property="rentPrice"/> | <result column="rent_price" property="rentPrice"/> | ||||
| <result column="subject_name" property="subjectName"/> | <result column="subject_name" property="subjectName"/> | ||||
| <result column="rent_start_type" property="rentStartType"/> | <result column="rent_start_type" property="rentStartType"/> | ||||
| <result column="rent_shop_type" jdbcType="INTEGER" property="rentShopType"/> | |||||
| <result column="fixed_price" jdbcType="INTEGER" property="fixedPrice"/> | <result column="fixed_price" jdbcType="INTEGER" property="fixedPrice"/> | ||||
| <result column="create_by" jdbcType="BIGINT" property="createBy"/> | <result column="create_by" jdbcType="BIGINT" property="createBy"/> | ||||
| <result column="update_by" jdbcType="BIGINT" property="updateBy"/> | <result column="update_by" jdbcType="BIGINT" property="updateBy"/> | ||||
| @@ -75,7 +74,7 @@ | |||||
| `id`,`merchant_id`,`decimal_size`,`price`,`rental_start_date`,`rental_end_date`,`create_type`,`shop_ids`,`shop_numbers`, | `id`,`merchant_id`,`decimal_size`,`price`,`rental_start_date`,`rental_end_date`,`create_type`,`shop_ids`,`shop_numbers`, | ||||
| `sign_date`,`receive_period`,`tenant_id`,`parent_tenant_id`,`filepath`,`status`,`contract_number`,`price_detail`, | `sign_date`,`receive_period`,`tenant_id`,`parent_tenant_id`,`filepath`,`status`,`contract_number`,`price_detail`, | ||||
| `deposit`,`pay_date`,`is_del`,`merchant_name`,`brand`,`business_id`,`receive_period_unit`,`create_by`,`update_by`,`first_bill_receive_date`, | `deposit`,`pay_date`,`is_del`,`merchant_name`,`brand`,`business_id`,`receive_period_unit`,`create_by`,`update_by`,`first_bill_receive_date`, | ||||
| `shop_type`,`updatetime`,`createtime`,`rent_area`,`rent_shop_type`,`fees_standards_info`,`first_bill_date_start`,`first_bill_date_end`, | |||||
| `shop_type`,`updatetime`,`createtime`,`rent_area`,`fees_standards_info`,`first_bill_date_start`,`first_bill_date_end`, | |||||
| `link_person`,`link_phone`,`pay_account`,`filename`,`lease`,`rent_contract_id`,`day_price_calcute`,`month_average_days`, | `link_person`,`link_phone`,`pay_account`,`filename`,`lease`,`rent_contract_id`,`day_price_calcute`,`month_average_days`, | ||||
| `start_date`,`end_date`,`apply_status`,`adjust_period`,`business_type`,adjust_ratio,`rent_info`,fixed_price,`pay_period_rate`, | `start_date`,`end_date`,`apply_status`,`adjust_period`,`business_type`,adjust_ratio,`rent_info`,fixed_price,`pay_period_rate`, | ||||
| `file_names`,price_unit,rent_price,subject_name,rent_start_type,`operation_type`,late_pay_ratio,late_pay_day,end_contract_time,out_date_notify_days,out_date_notify_phone | `file_names`,price_unit,rent_price,subject_name,rent_start_type,`operation_type`,late_pay_ratio,late_pay_day,end_contract_time,out_date_notify_days,out_date_notify_phone | ||||
| @@ -121,7 +120,6 @@ | |||||
| <if test=" null != rentContractId ">and `rent_contract_id` = #{rentContractId}</if> | <if test=" null != rentContractId ">and `rent_contract_id` = #{rentContractId}</if> | ||||
| <if test=" null != startDate ">and `start_date` = #{startDate}</if> | <if test=" null != startDate ">and `start_date` = #{startDate}</if> | ||||
| <if test=" null != endDate ">and `end_date` = #{endDate}</if> | <if test=" null != endDate ">and `end_date` = #{endDate}</if> | ||||
| <if test=" null != rentShopType">and `rent_shop_type` = #{rentShopType}</if> | |||||
| <if test=" null != operationType ">and `operation_type` = #{operationType}</if> | <if test=" null != operationType ">and `operation_type` = #{operationType}</if> | ||||
| <if test=" null != createType ">and `create_type` = #{createType}</if> | <if test=" null != createType ">and `create_type` = #{createType}</if> | ||||
| <if test=" null != dayPriceCalcute ">and `day_price_calcute` = #{dayPriceCalcute}</if> | <if test=" null != dayPriceCalcute ">and `day_price_calcute` = #{dayPriceCalcute}</if> | ||||
| @@ -129,9 +127,6 @@ | |||||
| <if test=" null != businessForRule and '' != businessForRule "> | <if test=" null != businessForRule and '' != businessForRule "> | ||||
| and business_id in (${businessForRule}) | and business_id in (${businessForRule}) | ||||
| </if> | </if> | ||||
| <if test=" null != shopTypeForRule and '' != shopTypeForRule "> | |||||
| and rent_shop_type in (${shopTypeForRule}) | |||||
| </if> | |||||
| <if test=" null != queryShopNumber and queryShopNumber!=''"> | <if test=" null != queryShopNumber and queryShopNumber!=''"> | ||||
| and concat(',',shop_numbers,',') like concat('%,',#{queryShopNumber},',%') | and concat(',',shop_numbers,',') like concat('%,',#{queryShopNumber},',%') | ||||
| </if> | </if> | ||||
| @@ -172,86 +167,6 @@ | |||||
| <include refid="dynamicWhereConditions"/> | <include refid="dynamicWhereConditions"/> | ||||
| </select> | </select> | ||||
| <!-- <select id="queryPropertyContractData" resultType="hashmap" parameterType="com.iformall.domain.po.WxRentContract"> | |||||
| select rc.id,rc.merchant_name merchantName,rc.rental_start_date rentalStartDate,rc.rental_end_date | |||||
| rentalEndDate,rc.`status`,rc.price,rc.contract_number contractNumber,s.shop_number shopNumber, | |||||
| f.floor_name floorName,b.building_name buildingName,receive_period receivePeriod, | |||||
| rc.lease,rc.filepath,rc.filename,rc.pay_account payAccount,rc.sign_date signDate, | |||||
| start_date startDate,end_date endDate,rc.rent_contract_id rentContractId,br.`name` brandName, | |||||
| s.addr,rc.apply_status applyStatus,rc.adjust_period adjustPeriod,rc.business_type businessType, | |||||
| rc.adjust_ratio adjustRatio,rc.rent_info rentInfo, rc.file_names fileNames,rc.price_unit,rc.subject_name | |||||
| subjectName | |||||
| from wx_property_contract rc | |||||
| left join wx_shop s on rc.shop_id=s.id | |||||
| left join wx_mall_floor f on s.floor=f.id | |||||
| left join wx_mall_building b on s.building=b.id | |||||
| left join wx_brand br on rc.brand=br.id | |||||
| <where> | |||||
| <if test=" null != tenantId and '' != tenantId"> | |||||
| and rc.`tenant_id` = #{tenantId} | |||||
| </if> | |||||
| <if test=" null != parentTenantId and '' != parentTenantId"> | |||||
| and rc.`parent_tenant_id` = #{parentTenantId} | |||||
| </if> | |||||
| <if test=" null != merchantName and merchantName!=''">and rc.`merchant_name` like | |||||
| concat('%',#{merchantName},'%') | |||||
| </if> | |||||
| <if test=" null != shopNumber and shopNumber!='' and null != rentShopType and rentShopType==1"> | |||||
| and json_extract(rc.rent_info,'$[*].shopNumber') like concat('%',#{shopNumber},'%') | |||||
| </if> | |||||
| <if test=" null != shopNumber and shopNumber!='' and null != rentShopType and rentShopType==2"> | |||||
| and s.`shop_number` like concat('%',#{shopNumber},'%') | |||||
| </if> | |||||
| <if test=" null != status ">and rc.`status` = #{status}</if> | |||||
| <if test=" null != rentContractId">and rc.`rent_contract_id` = #{rentContractId}</if> | |||||
| <if test=" null != id">and rc.`id` = #{id}</if> | |||||
| <if test=" null != rentShopType">and rc.`rent_shop_type` = #{rentShopType}</if> | |||||
| <if test=" null != applyStatus ">and rc.`apply_status` = #{applyStatus}</if> | |||||
| <if test=" null != building and ''!= building">and b.id = #{building}</if> | |||||
| <if test=" null != floor and ''!= floor">and f.id = #{floor}</if> | |||||
| <if test=" null != operationType ">and `operation_type` = #{operationType}</if> | |||||
| <if test=" null != businessForRule and '' != businessForRule "> | |||||
| and rc.business_id in (${businessForRule}) | |||||
| </if> | |||||
| <if test="null != rentShopType and 1 == rentShopType and null != floorForRule and '' != floorForRule "> | |||||
| and rc.`id` in | |||||
| <foreach collection="tempShop" index="idx" separator=" union all " open="(" close=")"> | |||||
| select id from wx_property_contract where 1=1 | |||||
| <if test=" null != tenantId and '' != tenantId"> | |||||
| and `tenant_id` = #{tenantId} | |||||
| </if> | |||||
| <if test=" null != parentTenantId and '' != parentTenantId"> | |||||
| and `parent_tenant_id` = #{parentTenantId} | |||||
| </if> | |||||
| and json_unquote(json_extract(json_extract(rent_info,'$[*].shopId'),concat('$[',#{idx},']'))) in(select | |||||
| id from wx_shop where 1=1 | |||||
| <if test=" null != tenantId and '' != tenantId"> | |||||
| and `tenant_id` = #{tenantId} | |||||
| </if> | |||||
| <if test=" null != parentTenantId and '' != parentTenantId"> | |||||
| and `parent_tenant_id` = #{parentTenantId} | |||||
| </if> | |||||
| and floor in (${floorForRule})) | |||||
| </foreach> | |||||
| </if> | |||||
| <if test="null != rentShopType and 2 == rentShopType and null != floorForRule and '' != floorForRule "> | |||||
| and rc.shop_id in (select id from wx_shop where 1=1 | |||||
| <if test=" null != tenantId and '' != tenantId"> | |||||
| and `tenant_id` = #{tenantId} | |||||
| </if> | |||||
| <if test=" null != parentTenantId and '' != parentTenantId"> | |||||
| and `parent_tenant_id` = #{parentTenantId} | |||||
| </if> | |||||
| and floor in (${floorForRule})) | |||||
| </if> | |||||
| </where> | |||||
| <if test=" null != sortColumns"> order by ${sortColumns} </if> | |||||
| <if test=" null == sortColumns">order by rc.createtime desc,rc.id desc</if> | |||||
| </select> --> | |||||
| <select id="queryRentContractWaitSignStatus" resultType="int" | <select id="queryRentContractWaitSignStatus" resultType="int" | ||||
| parameterType="com.iformall.domain.po.WxPropertyContract"> | parameterType="com.iformall.domain.po.WxPropertyContract"> | ||||
| select count(id) from wx_property_contract where status=#{status} | select count(id) from wx_property_contract where status=#{status} | ||||
| @@ -261,7 +176,6 @@ | |||||
| <if test=" null != parentTenantId and '' != parentTenantId"> | <if test=" null != parentTenantId and '' != parentTenantId"> | ||||
| and `parent_tenant_id` = #{parentTenantId} | and `parent_tenant_id` = #{parentTenantId} | ||||
| </if> | </if> | ||||
| <if test=" null != rentShopType ">and rent_shop_type = #{rentShopType}</if> | |||||
| </select> | </select> | ||||
| <select id="queryRentContractEndSoonStatus" resultType="int" | <select id="queryRentContractEndSoonStatus" resultType="int" | ||||
| @@ -273,7 +187,6 @@ | |||||
| <if test=" null != parentTenantId and '' != parentTenantId"> | <if test=" null != parentTenantId and '' != parentTenantId"> | ||||
| and `parent_tenant_id` = #{parentTenantId} | and `parent_tenant_id` = #{parentTenantId} | ||||
| </if> | </if> | ||||
| <if test=" null != rentShopType ">and rent_shop_type = #{rentShopType}</if> | |||||
| </select> | </select> | ||||
| <select id="queryRentContractPaidStatus" resultType="int" parameterType="com.iformall.domain.po.WxPropertyContract"> | <select id="queryRentContractPaidStatus" resultType="int" parameterType="com.iformall.domain.po.WxPropertyContract"> | ||||
| @@ -284,7 +197,6 @@ | |||||
| <if test=" null != parentTenantId and '' != parentTenantId"> | <if test=" null != parentTenantId and '' != parentTenantId"> | ||||
| and `parent_tenant_id` = #{parentTenantId} | and `parent_tenant_id` = #{parentTenantId} | ||||
| </if> | </if> | ||||
| <if test=" null != rentShopType ">and rent_shop_type = #{rentShopType}</if> | |||||
| </select> | </select> | ||||
| <select id="queryRentContractEndStatus" resultType="int" parameterType="com.iformall.domain.po.WxPropertyContract"> | <select id="queryRentContractEndStatus" resultType="int" parameterType="com.iformall.domain.po.WxPropertyContract"> | ||||
| @@ -295,7 +207,6 @@ | |||||
| <if test=" null != parentTenantId and '' != parentTenantId"> | <if test=" null != parentTenantId and '' != parentTenantId"> | ||||
| and `parent_tenant_id` = #{parentTenantId} | and `parent_tenant_id` = #{parentTenantId} | ||||
| </if> | </if> | ||||
| <if test=" null != rentShopType ">and rent_shop_type = #{rentShopType}</if> | |||||
| </select> | </select> | ||||
| <update id="updateRentContractEndSoonStatus" parameterType="com.iformall.domain.po.WxPropertyContract"> | <update id="updateRentContractEndSoonStatus" parameterType="com.iformall.domain.po.WxPropertyContract"> | ||||
| @@ -342,68 +253,6 @@ | |||||
| and merchant_id is null | and merchant_id is null | ||||
| </update> | </update> | ||||
| <!-- <update id="updateRentInvalidStatus" parameterType="com.iformall.domain.po.WxPropertyContract"> | |||||
| update wx_property_contract set status=#{status} where shop_id in ( | |||||
| select s.shop_id from (SELECT shop_id FROM wx_property_contract WHERE merchant_id is not null and status!=6 | |||||
| <if test=" null != tenantId and '' != tenantId"> | |||||
| and `tenant_id` = #{tenantId} | |||||
| </if> | |||||
| <if test=" null != parentTenantId and '' != parentTenantId"> | |||||
| and `parent_tenant_id` = #{parentTenantId} | |||||
| </if> | |||||
| )s) and merchant_id is null | |||||
| <if test=" null != tenantId and '' != tenantId"> | |||||
| and `tenant_id` = #{tenantId} | |||||
| </if> | |||||
| <if test=" null != parentTenantId and '' != parentTenantId"> | |||||
| and `parent_tenant_id` = #{parentTenantId} | |||||
| </if> | |||||
| </update> --> | |||||
| <!-- <select id="getRentContractListByShop" parameterType="hashmap" resultType="com.iformall.domain.po.WxRentContract"> | |||||
| select rc.* from wx_rent_contract rc | |||||
| where rc.status not in(0,1,5,6,7,8) | |||||
| <if test=" null != tenantId and '' != tenantId"> | |||||
| and rc.`tenant_id` = #{tenantId} | |||||
| </if> | |||||
| <if test=" null != parentTenantId and '' != parentTenantId"> | |||||
| and rc.`parent_tenant_id` = #{parentTenantId} | |||||
| </if> | |||||
| and rc.id not in (select pc.rent_contract_id from ( | |||||
| select rent_contract_id from wx_property_contract where status not in(5,6,7) | |||||
| <if test=" null != tenantId and '' != tenantId"> | |||||
| and `tenant_id` = #{tenantId} | |||||
| </if> | |||||
| <if test=" null != parentTenantId and '' != parentTenantId"> | |||||
| and `parent_tenant_id` = #{parentTenantId} | |||||
| </if> | |||||
| ) pc) | |||||
| <if test=" null != rentShopType ">and rent_shop_type = #{rentShopType}</if> | |||||
| </select> --> | |||||
| <!-- <select id="getRentContractListByPoint" parameterType="hashmap" resultType="com.iformall.domain.po.WxRentContract"> | |||||
| select rc.*,s.shop_number from wx_rent_contract rc | |||||
| inner join wx_shop s on rc.shop_id=s.id | |||||
| where rc.status not in(0,1,5,6,7,8) | |||||
| <if test=" null != tenantId and '' != tenantId"> | |||||
| and rc.`tenant_id` = #{tenantId} | |||||
| </if> | |||||
| <if test=" null != parentTenantId and '' != parentTenantId"> | |||||
| and rc.`parent_tenant_id` = #{parentTenantId} | |||||
| </if> | |||||
| and rc.id not in (select pc.rent_contract_id from ( | |||||
| select rent_contract_id from wx_property_contract where status not in(5,6,7) | |||||
| <if test=" null != tenantId and '' != tenantId"> | |||||
| and `tenant_id` = #{tenantId} | |||||
| </if> | |||||
| <if test=" null != parentTenantId and '' != parentTenantId"> | |||||
| and `parent_tenant_id` = #{parentTenantId} | |||||
| </if> | |||||
| ) pc) | |||||
| <if test=" null != rentShopType ">and rent_shop_type = #{rentShopType}</if> | |||||
| </select> --> | |||||
| <update id="updateApplyStatus" parameterType="com.iformall.domain.po.WxPropertyContract"> | <update id="updateApplyStatus" parameterType="com.iformall.domain.po.WxPropertyContract"> | ||||
| update wx_property_contract set apply_status=#{applyStatus} | update wx_property_contract set apply_status=#{applyStatus} | ||||
| <if test=" null != businessType ">,business_type=#{businessType}</if> | <if test=" null != businessType ">,business_type=#{businessType}</if> | ||||
| @@ -74,7 +74,6 @@ | |||||
| <result column="end_date" jdbcType="TIMESTAMP" property="endDate"/> | <result column="end_date" jdbcType="TIMESTAMP" property="endDate"/> | ||||
| <result column="apply_status" jdbcType="INTEGER" property="applyStatus"/> | <result column="apply_status" jdbcType="INTEGER" property="applyStatus"/> | ||||
| <result column="bank_name" jdbcType="VARCHAR" property="bankName"/> | <result column="bank_name" jdbcType="VARCHAR" property="bankName"/> | ||||
| <result column="rent_shop_type" jdbcType="INTEGER" property="rentShopType"/> | |||||
| <result column="fix_start_date" property="fixStartDate"/> | <result column="fix_start_date" property="fixStartDate"/> | ||||
| <result column="fix_end_date" property="fixEndDate"/> | <result column="fix_end_date" property="fixEndDate"/> | ||||
| <result column="business_type" property="businessType"/> | <result column="business_type" property="businessType"/> | ||||
| @@ -96,12 +95,6 @@ | |||||
| <result column="end_date" jdbcType="TIMESTAMP" property="endDate"/> | <result column="end_date" jdbcType="TIMESTAMP" property="endDate"/> | ||||
| <result column="apply_status" jdbcType="INTEGER" property="applyStatus"/> | <result column="apply_status" jdbcType="INTEGER" property="applyStatus"/> | ||||
| <result column="bank_name" jdbcType="VARCHAR" property="bankName"/> | <result column="bank_name" jdbcType="VARCHAR" property="bankName"/> | ||||
| <result column="rent_shop_type" jdbcType="INTEGER" property="rentShopType"/> | |||||
| <result column="fix_start_date" property="fixStartDate"/> | |||||
| <result column="fix_end_date" property="fixEndDate"/> | |||||
| <result column="business_type" property="businessType"/> | |||||
| <result column="rent_info" jdbcType="VARCHAR" property="rentInfo"/> | |||||
| <result column="file_names" jdbcType="VARCHAR" property="fileNames"/> | |||||
| <result column="subject_name" property="subjectName"/> | <result column="subject_name" property="subjectName"/> | ||||
| <result column="rent_start_type" property="rentStartType"/> | <result column="rent_start_type" property="rentStartType"/> | ||||
| <result column="shop_name" property="shopName"/> | <result column="shop_name" property="shopName"/> | ||||
| @@ -149,7 +142,7 @@ | |||||
| `brand`,`business_id`,`shop_type`,`shop_type_str`,`updatetime`,`createtime`,`link_person`,`link_phone`,`link_address`, | `brand`,`business_id`,`shop_type`,`shop_type_str`,`updatetime`,`createtime`,`link_person`,`link_phone`,`link_address`, | ||||
| `pay_account`,`filename`,`lease`,`type`,`revenue`,`revenue_ratio`,`revenue_ratio_way`,`revenue_ratio_set`,`adjust_ratio`,`adjust_period`,`pay_ratio`, | `pay_account`,`filename`,`lease`,`type`,`revenue`,`revenue_ratio`,`revenue_ratio_way`,`revenue_ratio_set`,`adjust_ratio`,`adjust_period`,`pay_ratio`, | ||||
| `start_date`,`end_date`,`shop_name`,`from_id`,`end_contract_time`,`revenue_fixed_rent_price`,`revenue_rent_price`, | `start_date`,`end_date`,`shop_name`,`from_id`,`end_contract_time`,`revenue_fixed_rent_price`,`revenue_rent_price`, | ||||
| `apply_status`,`bank_name`,`rent_shop_type`,`fix_start_date`,`fix_end_date`,`pay_period_rate`, | |||||
| `apply_status`,`bank_name`,`fix_start_date`,`fix_end_date`,`pay_period_rate`, | |||||
| `business_type`,`rent_info`, `file_names`,price_unit,rent_price,other_rent_price_info,`subject_name`,rent_start_type, | `business_type`,`rent_info`, `file_names`,price_unit,rent_price,other_rent_price_info,`subject_name`,rent_start_type, | ||||
| `rent_input_way`,`adjust_ratio_way`,`operation_type`,late_pay_ratio,late_pay_day,first_bill_receive_date, | `rent_input_way`,`adjust_ratio_way`,`operation_type`,late_pay_ratio,late_pay_day,first_bill_receive_date, | ||||
| bussiness_management_fee,bussiness_management_fee_ratio_way,bussiness_management_fee_ratio, | bussiness_management_fee,bussiness_management_fee_ratio_way,bussiness_management_fee_ratio, | ||||
| @@ -197,7 +190,6 @@ | |||||
| <if test=" null != type and '' != type">and `type` = #{type}</if> | <if test=" null != type and '' != type">and `type` = #{type}</if> | ||||
| <if test=" null != startDate and '' != startDate">and `start_date` = #{startDate}</if> | <if test=" null != startDate and '' != startDate">and `start_date` = #{startDate}</if> | ||||
| <if test=" null != endDate and '' != endDate">and `end_date` = #{endDate}</if> | <if test=" null != endDate and '' != endDate">and `end_date` = #{endDate}</if> | ||||
| <if test=" null != rentShopType and '' != rentShopType">and `rent_shop_type` = #{rentShopType}</if> | |||||
| <if test=" null != operationType and '' != operationType">and `operation_type` = #{operationType}</if> | <if test=" null != operationType and '' != operationType">and `operation_type` = #{operationType}</if> | ||||
| <if test=" null != queryShopId and '' != queryShopId">and json_contains(json_extract(rent_info,'$[*].id'),concat('"',#{queryShopId},'"'))</if> | <if test=" null != queryShopId and '' != queryShopId">and json_contains(json_extract(rent_info,'$[*].id'),concat('"',#{queryShopId},'"'))</if> | ||||
| <if test=" null != dayPriceCalcute ">and `day_price_calcute` = #{dayPriceCalcute}</if> | <if test=" null != dayPriceCalcute ">and `day_price_calcute` = #{dayPriceCalcute}</if> | ||||
| @@ -214,10 +206,6 @@ | |||||
| and business_id in (${businessForRule}) | and business_id in (${businessForRule}) | ||||
| </if> | </if> | ||||
| <if test=" null != shopTypeForRule and '' != shopTypeForRule "> | |||||
| and rent_shop_type in (${shopTypeForRule}) | |||||
| </if> | |||||
| <if test=" null != merchantIds "> | <if test=" null != merchantIds "> | ||||
| and merchant_id in | and merchant_id in | ||||
| <foreach collection="merchantIds" index="index" item="mItem" open="(" separator="," close=")"> | <foreach collection="merchantIds" index="index" item="mItem" open="(" separator="," close=")"> | ||||
| @@ -263,10 +251,6 @@ | |||||
| <if test=" null != parentTenantId and '' != parentTenantId"> | <if test=" null != parentTenantId and '' != parentTenantId"> | ||||
| and `parent_tenant_id` = #{parentTenantId} | and `parent_tenant_id` = #{parentTenantId} | ||||
| </if> | </if> | ||||
| <if test=" null != rentShopType "> | |||||
| and rent_shop_type = #{rentShopType} | |||||
| </if> | |||||
| </select> | </select> | ||||
| <update id="updateApplyStatus" parameterType="com.iformall.domain.po.WxRentContract"> | <update id="updateApplyStatus" parameterType="com.iformall.domain.po.WxRentContract"> | ||||
| @@ -300,7 +284,6 @@ | |||||
| resultType="com.iformall.domain.po.WxRentContract"> | resultType="com.iformall.domain.po.WxRentContract"> | ||||
| select <include refid="allColumns"/> from wx_rent_contract where status in(2,3,4) | select <include refid="allColumns"/> from wx_rent_contract where status in(2,3,4) | ||||
| and merchant_id not in(select merchant_id from wx_property_contract where status in(2,3,4)) | and merchant_id not in(select merchant_id from wx_property_contract where status in(2,3,4)) | ||||
| <if test=" null != rentShopType ">and rent_shop_type = #{rentShopType}</if> | |||||
| </select> | </select> | ||||
| <select id="selectRentContractCountByShopId" parameterType="java.util.Map" resultType="int"> | <select id="selectRentContractCountByShopId" parameterType="java.util.Map" resultType="int"> | ||||
| @@ -383,7 +366,6 @@ | |||||
| <result column="status" property="status"/> | <result column="status" property="status"/> | ||||
| <result column="apply_status" property="applyStatus"/> | <result column="apply_status" property="applyStatus"/> | ||||
| <result column="operation_type" property="operationType"/> | <result column="operation_type" property="operationType"/> | ||||
| <result column="rent_shop_type" property="rentShopType"/> | |||||
| <result column="merchant_id" property="merchantId"/> | <result column="merchant_id" property="merchantId"/> | ||||
| <result column="property_status" property="propertyStatus"/> | <result column="property_status" property="propertyStatus"/> | ||||
| <result column="rent_price_unit" property="rentPriceUnit"/> | <result column="rent_price_unit" property="rentPriceUnit"/> | ||||
| @@ -402,7 +384,7 @@ | |||||
| <select id="listContractVo" parameterType="com.iformall.domain.vo.WxRentPropertyContractVo" resultMap="contractMap"> | <select id="listContractVo" parameterType="com.iformall.domain.vo.WxRentPropertyContractVo" resultMap="contractMap"> | ||||
| select rc.id,rc.tenant_id,rc.parent_tenant_id,rc.id as rent_id, pc.id as property_id, rc.merchant_name,rc.rental_start_date,rc.rental_end_date,rc.`status`, | select rc.id,rc.tenant_id,rc.parent_tenant_id,rc.id as rent_id, pc.id as property_id, rc.merchant_name,rc.rental_start_date,rc.rental_end_date,rc.`status`, | ||||
| rc.price as rent_price,rc.contract_number,rc.shop_name,rc.type,rc.apply_status,rc.price_detail,rc.revenue_fixed_rent_price,rc.revenue_rent_price, | rc.price as rent_price,rc.contract_number,rc.shop_name,rc.type,rc.apply_status,rc.price_detail,rc.revenue_fixed_rent_price,rc.revenue_rent_price, | ||||
| rc.rent_shop_type,rc.rent_info,pc.price as property_price,rc.merchant_id,pc.`status` as property_status, | |||||
| rc.rent_info,pc.price as property_price,rc.merchant_id,pc.`status` as property_status, | |||||
| rc.price_unit as rent_price_unit,pc.price_unit as property_price_unit,rc.day_price_calcute,rc.free_period_remark, | rc.price_unit as rent_price_unit,pc.price_unit as property_price_unit,rc.day_price_calcute,rc.free_period_remark, | ||||
| rc.business_type businessType,rc.month_average_days,rc.revenue_jumps_remark,rc.first_bill_date_start,rc.first_bill_date_end | rc.business_type businessType,rc.month_average_days,rc.revenue_jumps_remark,rc.first_bill_date_start,rc.first_bill_date_end | ||||
| from wx_rent_contract rc left join wx_property_contract pc on rc.id=pc.rent_contract_id | from wx_rent_contract rc left join wx_property_contract pc on rc.id=pc.rent_contract_id | ||||
| @@ -436,9 +418,6 @@ | |||||
| </if> --> | </if> --> | ||||
| <if test=" null != status ">and rc.`status` = #{status}</if> | <if test=" null != status ">and rc.`status` = #{status}</if> | ||||
| <if test=" null != type ">and rc.`type` = #{type}</if> | <if test=" null != type ">and rc.`type` = #{type}</if> | ||||
| <if test=" null != rentShopType "> | |||||
| and rc.`rent_shop_type` = #{rentShopType} | |||||
| </if> | |||||
| <if test=" null != applyStatus ">and rc.`apply_status` = #{applyStatus}</if> | <if test=" null != applyStatus ">and rc.`apply_status` = #{applyStatus}</if> | ||||
| <if test=" null != operationType ">and rc.`operation_type` = #{operationType}</if> | <if test=" null != operationType ">and rc.`operation_type` = #{operationType}</if> | ||||
| <if test=" null != dayPriceCalcute ">and rc.`day_price_calcute` = #{dayPriceCalcute}</if> | <if test=" null != dayPriceCalcute ">and rc.`day_price_calcute` = #{dayPriceCalcute}</if> | ||||
| @@ -446,9 +425,6 @@ | |||||
| <if test=" null != businessForRule and '' != businessForRule "> | <if test=" null != businessForRule and '' != businessForRule "> | ||||
| and rc.business_id in (${businessForRule}) | and rc.business_id in (${businessForRule}) | ||||
| </if> | </if> | ||||
| <if test=" null != shopTypeForRule and '' != shopTypeForRule "> | |||||
| and rc.rent_shop_type in (${shopTypeForRule}) | |||||
| </if> | |||||
| <if test=" null != merchantIds "> | <if test=" null != merchantIds "> | ||||
| and rc.merchant_id in | and rc.merchant_id in | ||||
| <foreach collection="merchantIds" index="index" item="mItem" open="(" separator="," close=")"> | <foreach collection="merchantIds" index="index" item="mItem" open="(" separator="," close=")"> | ||||
| @@ -507,7 +483,7 @@ | |||||
| rc.`brand`,rc.`business_id`,rc.`shop_type`,rc.`shop_type_str`,rc.`updatetime`,rc.`createtime`,rc.`link_person`,rc.`link_phone`,rc.`link_address`, | rc.`brand`,rc.`business_id`,rc.`shop_type`,rc.`shop_type_str`,rc.`updatetime`,rc.`createtime`,rc.`link_person`,rc.`link_phone`,rc.`link_address`, | ||||
| rc.`pay_account`,rc.`filename`,rc.`lease`,rc.`type`,rc.`revenue`,rc.`revenue_ratio`,rc.`revenue_ratio_way`,rc.`revenue_ratio_set`,rc.`adjust_ratio`,rc.`adjust_period`,rc.`pay_ratio`, | rc.`pay_account`,rc.`filename`,rc.`lease`,rc.`type`,rc.`revenue`,rc.`revenue_ratio`,rc.`revenue_ratio_way`,rc.`revenue_ratio_set`,rc.`adjust_ratio`,rc.`adjust_period`,rc.`pay_ratio`, | ||||
| rc.`start_date`,rc.`end_date`,rc.`shop_name`,rc.`from_id`,`rc.end_contract_time`,rc.`revenue_jumps_remark`, | rc.`start_date`,rc.`end_date`,rc.`shop_name`,rc.`from_id`,`rc.end_contract_time`,rc.`revenue_jumps_remark`, | ||||
| rc.`apply_status`,rc.`bank_name`,rc.`rent_shop_type`,rc.`fix_start_date`,rc.`fix_end_date`, | |||||
| rc.`apply_status`,rc.`bank_name`,rc.`fix_start_date`,rc.`fix_end_date`, | |||||
| rc.`business_type`,rc.`rent_info`, rc.`file_names`,rc.price_unit,rent_price,rc.other_rent_price_info,rc.`subject_name`,rc.rent_start_type, | rc.`business_type`,rc.`rent_info`, rc.`file_names`,rc.price_unit,rent_price,rc.other_rent_price_info,rc.`subject_name`,rc.rent_start_type, | ||||
| rc.`rent_input_way`,rc.`adjust_ratio_way`,rc.`operation_type`,rc.late_pay_ratio,rc.late_pay_day, | rc.`rent_input_way`,rc.`adjust_ratio_way`,rc.`operation_type`,rc.late_pay_ratio,rc.late_pay_day, | ||||
| rc.bussiness_management_fee,rc.bussiness_management_fee_ratio_way,rc.bussiness_management_fee_ratio, | rc.bussiness_management_fee,rc.bussiness_management_fee_ratio_way,rc.bussiness_management_fee_ratio, | ||||
| @@ -534,7 +510,7 @@ | |||||
| rc.`brand`,rc.`business_id`,rc.`shop_type`,rc.`shop_type_str`,rc.`updatetime`,rc.`createtime`,rc.`link_person`,rc.`link_phone`,rc.`link_address`, | rc.`brand`,rc.`business_id`,rc.`shop_type`,rc.`shop_type_str`,rc.`updatetime`,rc.`createtime`,rc.`link_person`,rc.`link_phone`,rc.`link_address`, | ||||
| rc.`pay_account`,rc.`filename`,rc.`lease`,rc.`type`,rc.`revenue`,rc.`revenue_ratio`,rc.`revenue_ratio_way`,rc.`revenue_ratio_set`,rc.`adjust_ratio`,rc.`adjust_period`,rc.`pay_ratio`, | rc.`pay_account`,rc.`filename`,rc.`lease`,rc.`type`,rc.`revenue`,rc.`revenue_ratio`,rc.`revenue_ratio_way`,rc.`revenue_ratio_set`,rc.`adjust_ratio`,rc.`adjust_period`,rc.`pay_ratio`, | ||||
| rc.`start_date`,rc.`end_date`,rc.`shop_name`,rc.`from_id`,rc.`end_contract_time`, | rc.`start_date`,rc.`end_date`,rc.`shop_name`,rc.`from_id`,rc.`end_contract_time`, | ||||
| rc.`apply_status`,rc.`bank_name`,rc.`rent_shop_type`,rc.`fix_start_date`,rc.`fix_end_date`, | |||||
| rc.`apply_status`,rc.`bank_name`,rc.`fix_start_date`,rc.`fix_end_date`, | |||||
| rc.`business_type`,rc.`rent_info`, rc.`file_names`,rc.price_unit,rent_price,rc.other_rent_price_info,rc.`subject_name`,rc.rent_start_type, | rc.`business_type`,rc.`rent_info`, rc.`file_names`,rc.price_unit,rent_price,rc.other_rent_price_info,rc.`subject_name`,rc.rent_start_type, | ||||
| rc.`rent_input_way`,rc.`adjust_ratio_way`,rc.`operation_type`,rc.late_pay_ratio,rc.late_pay_day, | rc.`rent_input_way`,rc.`adjust_ratio_way`,rc.`operation_type`,rc.late_pay_ratio,rc.late_pay_day, | ||||
| rc.bussiness_management_fee,rc.bussiness_management_fee_ratio_way,rc.bussiness_management_fee_ratio, | rc.bussiness_management_fee,rc.bussiness_management_fee_ratio_way,rc.bussiness_management_fee_ratio, | ||||
| @@ -562,7 +538,6 @@ | |||||
| <select id="getUsedRentShopIds" parameterType="com.iformall.domain.po.WxRentContract" resultType="Long"> | <select id="getUsedRentShopIds" parameterType="com.iformall.domain.po.WxRentContract" resultType="Long"> | ||||
| SELECT distinct shop_id FROM wx_rent_contract WHERE status in(1,2,3,4,8) | SELECT distinct shop_id FROM wx_rent_contract WHERE status in(1,2,3,4,8) | ||||
| and rent_shop_type=2 | |||||
| <if test=" null != tenantId and '' != tenantId"> | <if test=" null != tenantId and '' != tenantId"> | ||||
| and `tenant_id` = #{tenantId} | and `tenant_id` = #{tenantId} | ||||
| </if> | </if> | ||||