Blame view

parking-module-pay/src/main/java/com/zteits/pay/biz/RealtimeInfoServiceImpl.java 1.25 KB
55f68655   王彪总   新项目
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
  /**
   * 
   */
  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);
  	}
  
  }