| | |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import com.java110.core.smo.IComputeFeeSMO; |
| | | import com.java110.dto.RoomDto; |
| | | import com.java110.dto.room.RoomDto; |
| | | import com.java110.dto.account.AccountDto; |
| | | import com.java110.dto.couponPropertyPool.CouponPropertyPoolDto; |
| | | import com.java110.dto.couponPropertyPoolConfig.CouponPropertyPoolConfigDto; |
| | | import com.java110.dto.couponPropertyUser.CouponPropertyUserDto; |
| | | import com.java110.dto.fee.FeeAttrDto; |
| | | import com.java110.dto.fee.FeeDetailDto; |
| | | import com.java110.dto.fee.FeeDto; |
| | | import com.java110.dto.integralRuleConfig.IntegralRuleConfigDto; |
| | | import com.java110.dto.integralRuleFee.IntegralRuleFeeDto; |
| | | import com.java110.dto.logSystemError.LogSystemErrorDto; |
| | | import com.java110.dto.integral.IntegralRuleConfigDto; |
| | | import com.java110.dto.integral.IntegralRuleFeeDto; |
| | | import com.java110.dto.log.LogSystemErrorDto; |
| | | import com.java110.dto.owner.OwnerDto; |
| | | import com.java110.entity.order.Business; |
| | | import com.java110.dto.system.Business; |
| | | import com.java110.intf.acct.*; |
| | | import com.java110.intf.community.ICommunityInnerServiceSMO; |
| | | import com.java110.intf.community.IRoomV1InnerServiceSMO; |
| | |
| | | import com.java110.intf.user.IOwnerV1InnerServiceSMO; |
| | | import com.java110.job.adapt.DatabusAdaptImpl; |
| | | import com.java110.po.account.AccountPo; |
| | | import com.java110.po.accountDetail.AccountDetailPo; |
| | | import com.java110.po.couponPropertyPool.CouponPropertyPoolPo; |
| | | import com.java110.po.couponPropertyPoolDetail.CouponPropertyPoolDetailPo; |
| | | import com.java110.po.couponPropertyUser.CouponPropertyUserPo; |
| | | import com.java110.po.fee.PayFeeConfigPo; |
| | | import com.java110.po.account.AccountDetailPo; |
| | | import com.java110.po.fee.PayFeeDetailPo; |
| | | import com.java110.po.integralGiftDetail.IntegralGiftDetailPo; |
| | | import com.java110.po.logSystemError.LogSystemErrorPo; |
| | | import com.java110.po.integral.IntegralGiftDetailPo; |
| | | import com.java110.po.log.LogSystemErrorPo; |
| | | import com.java110.service.smo.ISaveSystemErrorSMO; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.lock.DistributedLock; |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | |
| | | Assert.listOnlyOne(feeDtos, "未查询到费用信息"); |
| | | |
| | | if(businessPayFeeDetail.containsKey("receivedAmount") |
| | | && businessPayFeeDetail.getDoubleValue("receivedAmount")<0){ |
| | | return ; |
| | | } |
| | | |
| | | IntegralRuleFeeDto integralRuleFeeDto = new IntegralRuleFeeDto(); |
| | | integralRuleFeeDto.setFeeConfigId(feeDtos.get(0).getConfigId()); |
| | | integralRuleFeeDto.setCurTime(DateUtil.getNow(DateUtil.DATE_FORMATE_STRING_A)); |
| | |
| | | //向积分账户中充值积分 |
| | | AccountDto accountDto = new AccountDto(); |
| | | accountDto.setObjId(ownerId); |
| | | accountDto.setObjType(AccountDto.ACCT_TYPE_INTEGRAL); |
| | | accountDto.setAcctType(AccountDto.ACCT_TYPE_INTEGRAL); |
| | | List<AccountDto> accountDtos = accountInnerServiceSMOImpl.queryAccounts(accountDto); |
| | | |
| | | if (accountDtos == null || accountDtos.size() < 1) { |
| | |
| | | } catch (Exception e) { |
| | | LogSystemErrorPo logSystemErrorPo = new LogSystemErrorPo(); |
| | | logSystemErrorPo.setErrId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_errId)); |
| | | logSystemErrorPo.setErrType(LogSystemErrorDto.ERR_TYPE_COUPON); |
| | | logSystemErrorPo.setErrType(LogSystemErrorDto.ERR_TYPE_INTEGRAL); |
| | | logSystemErrorPo.setMsg(ExceptionUtil.getStackTrace(e)); |
| | | saveSystemErrorSMOImpl.saveLog(logSystemErrorPo); |
| | | logger.error("通知异常", e); |
| | |
| | | Assert.listOnlyOne(ownerDtos, "业主不存在"); |
| | | accountPo.setAcctName(ownerDtos.get(0).getName()); |
| | | accountPo.setPartId(ownerDtos.get(0).getCommunityId()); |
| | | accountPo.setLink(ownerDtos.get(0).getLink()); |
| | | accountInnerServiceSMOImpl.saveAccount(accountPo); |
| | | List<AccountDto> accountDtos = accountInnerServiceSMOImpl.queryAccounts(accountDto); |
| | | return accountDtos; |