|
|
|
@ -1,5 +1,6 @@ |
|
|
|
|
package com.hai.service.impl; |
|
|
|
|
|
|
|
|
|
import com.hai.common.utils.DateUtil; |
|
|
|
|
import com.hai.dao.OutRechargeOrderMapper; |
|
|
|
|
import com.hai.dao.OutRechargeOrderMapperExt; |
|
|
|
|
import com.hai.entity.*; |
|
|
|
@ -7,12 +8,15 @@ import com.hai.model.OutOrderModel; |
|
|
|
|
import com.hai.model.OutRechargeOrderModel; |
|
|
|
|
import com.hai.service.OutRechargeOrderService; |
|
|
|
|
import org.apache.commons.collections4.MapUtils; |
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
import org.springframework.transaction.annotation.Propagation; |
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
|
import java.util.Calendar; |
|
|
|
|
import java.util.Date; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
@ -122,7 +126,38 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public List<OutOrderModel> getListOrderCount(Map<String, String> map) { |
|
|
|
|
return outRechargeOrderMapperExt.getListOrderCount(map); |
|
|
|
|
public List<OutOrderModel> getListOrderCount(Map<String, String> map) throws Exception { |
|
|
|
|
String finishTimeS = map.get("finishTimeS"); |
|
|
|
|
String finishTimeE = map.get("finishTimeE"); |
|
|
|
|
String fTimeS; |
|
|
|
|
String fTimeE; |
|
|
|
|
if (StringUtils.isNotBlank(finishTimeS)) { |
|
|
|
|
Calendar calendar = Calendar.getInstance(); |
|
|
|
|
calendar.setTime(new Date(Long.parseLong(finishTimeS))); |
|
|
|
|
//时
|
|
|
|
|
calendar.set(Calendar.HOUR_OF_DAY, 00); |
|
|
|
|
//分
|
|
|
|
|
calendar.set(Calendar.MINUTE, 00); |
|
|
|
|
//秒
|
|
|
|
|
calendar.set(Calendar.SECOND, 00); |
|
|
|
|
fTimeS = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(calendar.getTime()); |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
fTimeS = "2010-09-13 22:36:01"; |
|
|
|
|
} |
|
|
|
|
if (StringUtils.isNotBlank(finishTimeE)) { |
|
|
|
|
Calendar calendar = Calendar.getInstance(); |
|
|
|
|
calendar.setTime(new Date(Long.parseLong(finishTimeE))); |
|
|
|
|
//时
|
|
|
|
|
calendar.set(Calendar.HOUR_OF_DAY, 00); |
|
|
|
|
//分
|
|
|
|
|
calendar.set(Calendar.MINUTE, 00); |
|
|
|
|
//秒
|
|
|
|
|
calendar.set(Calendar.SECOND, 00); |
|
|
|
|
fTimeE = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(calendar.getTime()); |
|
|
|
|
} else { |
|
|
|
|
fTimeE = DateUtil.date2String(new Date(), "yyyy-MM-dd HH:mm:ss"); |
|
|
|
|
} |
|
|
|
|
return outRechargeOrderMapperExt.getListOrderCount(fTimeS , fTimeE); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|