RealtimeInfoServiceImpl.java 1.25 KB
/**
 * 
 */
package com.zteits.pay.biz;

import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;

import com.zteits.clouds.api.apibase.bean.BizResult;
import com.zteits.clouds.api.dto.govclouds.dto.EscapesPaymentDataDTO;
import com.zteits.clouds.api.dto.govclouds.param.EscapePaymentRequest;
import com.zteits.clouds.api.service.govclouds.RealtimeInfoService;
import com.zteits.pay.dao.RealtimeInfoDao;
import com.zteits.pay.domain.EscapesPaymentDataDO;
import org.springframework.stereotype.Service;

/**
 * @author hxz
 *
 */
@Service("com.zteits.pay.biz.RealtimeInfoServiceImpl")
public class RealtimeInfoServiceImpl implements RealtimeInfoService {
	
	@Autowired
	private RealtimeInfoDao realtimeInfoServiceDao;

	@Override
	public BizResult<EscapesPaymentDataDTO> getEscapePaymentInfoDuring24hs(EscapePaymentRequest request) throws Exception {
		EscapesPaymentDataDTO escapesPaymentDataDTO = new EscapesPaymentDataDTO();
		EscapesPaymentDataDO escapesPaymentDataDO = realtimeInfoServiceDao.getEscapePaymentInfoDuring24hs();
        if (null != escapesPaymentDataDO) {
            BeanUtils.copyProperties(escapesPaymentDataDO, escapesPaymentDataDTO);
        }
        return new BizResult<>(escapesPaymentDataDTO);
	}

}