| | |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.dto.CommunityMemberDto; |
| | | import com.java110.dto.community.CommunityDto; |
| | | import com.java110.dto.store.StoreDto; |
| | | import com.java110.dto.workflow.WorkflowDto; |
| | | import com.java110.intf.common.IWorkflowInnerServiceSMO; |
| | | import com.java110.intf.community.ICommunityAttrV1InnerServiceSMO; |
| | |
| | | businessFeeConfig.putAll(paramInJson); |
| | | businessFeeConfig.put("feeTypeCd", FeeTypeConstant.FEE_TYPE_REPAIR); |
| | | businessFeeConfig.put("feeName", "报修费[系统默认]"); |
| | | businessFeeConfig.put("deductFrom", "Y"); |
| | | businessFeeConfig.put("feeFlag", "2006012"); //一次性费用 |
| | | businessFeeConfig.put("startTime", DateUtil.getNow(DateUtil.DATE_FORMATE_STRING_A)); |
| | | businessFeeConfig.put("endTime", DateUtil.LAST_TIME); |
| | |
| | | businessFeeConfig.putAll(paramInJson); |
| | | businessFeeConfig.put("feeTypeCd", FeeTypeConstant.FEE_TYPE_TEMP_DOWN_PARKING_SPACE); |
| | | businessFeeConfig.put("feeName", "临时车费用[系统默认]"); |
| | | businessFeeConfig.put("deductFrom", "Y"); |
| | | businessFeeConfig.put("feeFlag", "2006012"); |
| | | businessFeeConfig.put("startTime", DateUtil.getNow(DateUtil.DATE_FORMATE_STRING_A)); |
| | | businessFeeConfig.put("endTime", DateUtil.LAST_TIME); |
| | |
| | | */ |
| | | public void addCommunityMembers(JSONObject paramInJson, ICmdDataFlowContext dataFlowContext) { |
| | | |
| | | JSONObject businessCommunityMember = new JSONObject(); |
| | | businessCommunityMember.put("communityMemberId", GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_communityMemberId)); |
| | | businessCommunityMember.put("communityId", paramInJson.getString("communityId")); |
| | | businessCommunityMember.put("memberId", paramInJson.getString("storeId")); |
| | | businessCommunityMember.put("memberTypeCd", CommunityMemberTypeConstant.AGENT); |
| | | businessCommunityMember.put("auditStatusCd", StateConstant.AGREE_AUDIT); |
| | | CommunityMemberPo communityMemberPo = BeanConvertUtil.covertBean(businessCommunityMember, CommunityMemberPo.class); |
| | | communityMemberPo.setStartTime(DateUtil.getNow(DateUtil.DATE_FORMATE_STRING_A)); |
| | | communityMemberPo.setEndTime(DateUtil.getLastTime()); |
| | | int flag = communityMemberV1InnerServiceSMOImpl.saveCommunityMember(communityMemberPo); |
| | | |
| | | if (flag < 1) { |
| | | throw new IllegalArgumentException("添加小区成员失败"); |
| | | } |
| | | JSONObject businessCommunityMember = null; |
| | | CommunityMemberPo communityMemberPo = null; |
| | | |
| | | //添加运维商户 |
| | | //添加开发商户 |
| | | businessCommunityMember = new JSONObject(); |
| | | businessCommunityMember.put("communityMemberId", GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_communityMemberId)); |
| | | businessCommunityMember.put("communityId", paramInJson.getString("communityId")); |
| | | businessCommunityMember.put("memberId", "400000000000000001"); |
| | | businessCommunityMember.put("memberId", StoreDto.STORE_ADMIN); |
| | | businessCommunityMember.put("memberTypeCd", CommunityMemberTypeConstant.OPT); |
| | | businessCommunityMember.put("auditStatusCd", StateConstant.AGREE_AUDIT); |
| | | communityMemberPo = BeanConvertUtil.covertBean(businessCommunityMember, CommunityMemberPo.class); |
| | | communityMemberPo.setStartTime(DateUtil.getNow(DateUtil.DATE_FORMATE_STRING_A)); |
| | | communityMemberPo.setEndTime(DateUtil.getLastTime()); |
| | | flag = communityMemberV1InnerServiceSMOImpl.saveCommunityMember(communityMemberPo); |
| | | int flag = communityMemberV1InnerServiceSMOImpl.saveCommunityMember(communityMemberPo); |
| | | if (flag < 1) { |
| | | throw new IllegalArgumentException("添加小区成员失败"); |
| | | } |
| | |
| | | businessCommunityMember = new JSONObject(); |
| | | businessCommunityMember.put("communityMemberId", GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_communityMemberId)); |
| | | businessCommunityMember.put("communityId", paramInJson.getString("communityId")); |
| | | businessCommunityMember.put("memberId", "400000000000000002"); |
| | | businessCommunityMember.put("memberId", StoreDto.STORE_DEV); |
| | | businessCommunityMember.put("memberTypeCd", CommunityMemberTypeConstant.DEV); |
| | | businessCommunityMember.put("auditStatusCd", StateConstant.AGREE_AUDIT); |
| | | communityMemberPo = BeanConvertUtil.covertBean(businessCommunityMember, CommunityMemberPo.class); |