CustIncomeServiceImpl.java
6.6 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
//package com.zteits.pay.biz;
//
//import java.text.SimpleDateFormat;
//import java.util.ArrayList;
//import java.util.Date;
//import java.util.List;
//
//import org.apache.commons.lang3.StringUtils;
//
//import com.clouds.common.utils.ListCopyUtil;
//import com.zteits.clouds.api.apibase.bean.BizResult;
//import com.zteits.clouds.api.apibase.constants.ErrorType;
//import com.zteits.clouds.api.apibase.exception.BizException;
//import com.zteits.clouds.api.dto.clouds.dto.CustIncomeForPayTypeDTO;
//import com.zteits.clouds.api.dto.clouds.dto.CustIncomeTotalDTO;
//import com.zteits.clouds.api.dto.clouds.dto.CustIncomeTotalParkDTO;
//import com.zteits.clouds.api.dto.clouds.dto.InComeOfDayDTO;
//import com.zteits.clouds.api.dto.clouds.dto.ParkingCountDTO;
//import com.zteits.clouds.api.dto.clouds.param.CustIncomeTotalQueryRequset;
//import com.zteits.clouds.api.dto.clouds.param.QueryInComeOfDayRequest;
//import com.zteits.clouds.api.service.clouds.CustIncomeService;
//import com.zteits.pay.dao.CustIncomeDao;
//import com.zteits.pay.domain.CustIncomeForPayTypeDO;
//import com.zteits.pay.domain.CustIncomeTotalDO;
//import com.zteits.pay.domain.ParkingCountDO;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.BeanUtils;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
///**
// * 企业客户下停车场收入情况-首页.<br/>
// *
// * Copyright: Copyright (c) 2017 zteits
// *
// * @ClassName: CustIncomeService.java
// * @Description:
// * @version: v1.0.0
// * @author: wangfs
// * @date: 2017年6月16日 下午2:55:20
// * Modification History:
// * Date Author Version Description
// * ---------------------------------------------------------*
// * 2017年6月16日 wangfs v1.0.0 创建
// */
//@Service("com.zteits.pay.biz.CustIncomeServiceImpl")
//public class CustIncomeServiceImpl implements CustIncomeService {
//
// private static final Logger logger = LoggerFactory.getLogger(CustIncomeServiceImpl.class);
// @Autowired
// private CustIncomeDao custIncomeDao;
//
// //private SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
// private SimpleDateFormat formatDate = new SimpleDateFormat("yyyy-MM-dd");
//
// @Override
// public BizResult<CustIncomeTotalDTO> queryCustIncomeTotal(CustIncomeTotalQueryRequset custIncomeTotalQueryRequset)
// throws Exception {
//
// CustIncomeTotalDTO custIncomeTotalDTO = new CustIncomeTotalDTO();
// if (custIncomeTotalQueryRequset != null) {
// if (StringUtils.isEmpty(custIncomeTotalQueryRequset.getBeginTime())) {
// custIncomeTotalQueryRequset.setBeginTime(formatDate.format(new Date()) + " 00:00:00");
// }
// if (StringUtils.isEmpty(custIncomeTotalQueryRequset.getEndTime())) {
// custIncomeTotalQueryRequset.setEndTime(formatDate.format(new Date()) + " 23:59:59");
// }
// CustIncomeTotalDO custIncomeTotalDO = custIncomeDao.queryCustIncomeTotal(custIncomeTotalQueryRequset);
// if (custIncomeTotalDO != null) {
// BeanUtils.copyProperties(custIncomeTotalDO, custIncomeTotalDTO);
// }
// } else {
// logger.info("入参为空");
// throw new BizException(ErrorType.PARAMM_NULL, "入参不能为空!");
// }
//
// return new BizResult<CustIncomeTotalDTO>(custIncomeTotalDTO);
// }
//
// @Override
// public BizResult<CustIncomeTotalParkDTO> queryCustIncomeTotalForPark(
// CustIncomeTotalQueryRequset custIncomeTotalQueryRequset) throws Exception {
// CustIncomeTotalParkDTO custIncomeTotalDTO = new CustIncomeTotalParkDTO();
// if (custIncomeTotalQueryRequset != null) {
// if (StringUtils.isEmpty(custIncomeTotalQueryRequset.getBeginTime())) {
// custIncomeTotalQueryRequset.setBeginTime(formatDate.format(new Date()) + " 00:00:00");
// }
// if (StringUtils.isEmpty(custIncomeTotalQueryRequset.getEndTime())) {
// custIncomeTotalQueryRequset.setEndTime(formatDate.format(new Date()) + " 23:59:59");
// }
// CustIncomeTotalDO custIncomeTotalDO = custIncomeDao.queryCustIncomeTotal(custIncomeTotalQueryRequset);
// if (custIncomeTotalDO != null) {
// BeanUtils.copyProperties(custIncomeTotalDO, custIncomeTotalDTO);
// }
// } else {
// logger.info("入参为空");
// throw new BizException(ErrorType.PARAMM_NULL, "入参不能为空!");
// }
// return new BizResult<CustIncomeTotalParkDTO>(custIncomeTotalDTO);
// }
//
// @Override
// public BizResult<List<CustIncomeForPayTypeDTO>> queryCustIncomeForPayType(
// CustIncomeTotalQueryRequset custIncomeTotalQueryRequset) throws Exception {
// List<CustIncomeForPayTypeDTO> listDTO = new ArrayList<CustIncomeForPayTypeDTO>();
//
// if (custIncomeTotalQueryRequset != null) {
// if (StringUtils.isEmpty(custIncomeTotalQueryRequset.getBeginTime())) {
// custIncomeTotalQueryRequset.setBeginTime(formatDate.format(new Date()) + " 00:00:00");
// }
// if (StringUtils.isEmpty(custIncomeTotalQueryRequset.getEndTime())) {
// custIncomeTotalQueryRequset.setEndTime(formatDate.format(new Date()) + " 23:59:59");
// }
// List<CustIncomeForPayTypeDO> list = custIncomeDao.queryCustIncomeForPayType(
// custIncomeTotalQueryRequset);
// ListCopyUtil.listCopyProperties(list, listDTO, CustIncomeForPayTypeDTO.class);
// } else {
// logger.info("入参为空");
// throw new BizException(ErrorType.PARAMM_NULL, "入参不能为空!");
// }
//
// return new BizResult<List<CustIncomeForPayTypeDTO>>(listDTO);
// }
//
// @Override
// public BizResult<List<ParkingCountDTO>> queryParingCount(CustIncomeTotalQueryRequset custIncomeTotalQueryRequset)
// throws Exception {
// List<ParkingCountDTO> list = new ArrayList<ParkingCountDTO>();
// List<ParkingCountDO> doList = custIncomeDao.queryParingCount(custIncomeTotalQueryRequset);
// ListCopyUtil.listCopyProperties(doList, list, ParkingCountDTO.class);
// return new BizResult<List<ParkingCountDTO>>(list);
// }
//
// @Override
// public BizResult<List<InComeOfDayDTO>> queryIncomeOfDay(QueryInComeOfDayRequest request) {
// List<InComeOfDayDTO> dtos = custIncomeDao.queryIncomeOfDay(request);
//
// return new BizResult<>(dtos);
// }
//
//}
//