可开发票的时间由3个月数据放宽至12个月
This commit is contained in:
parent
68bcc1aeda
commit
d8a6be7b08
@ -274,7 +274,7 @@ public class XhpcInvoiceServiceImpl implements XhpcInvoiceService {
|
||||
*/
|
||||
@Override
|
||||
public InvoicedOrderResponse findUserHistoryOrders(InvoicedOrdersRequest invoicedOrdersRequest) {
|
||||
|
||||
System.out.println("<<<<<<<<<<111<<<<<<<<<查询开票信息>>>>>>>>>>111>>>>>>>>"+invoicedOrdersRequest.toString());
|
||||
//自动生成当前时间
|
||||
if (invoicedOrdersRequest.getCurrentTime() == null || "".equals(invoicedOrdersRequest.getCurrentTime())) {
|
||||
Date currentDate = new Date();
|
||||
@ -283,8 +283,10 @@ public class XhpcInvoiceServiceImpl implements XhpcInvoiceService {
|
||||
}
|
||||
//先查询该用户被锁定了的订单,过滤掉它
|
||||
List<Integer> lockOrderNumberList = xhpcInvoiceMapHistoryOrderMapper.findLockOrdersByUserIdAndUserType(invoicedOrdersRequest);
|
||||
System.out.println("<<<<<<<<<<111<<<<<<<<<询该用户被锁定了的订单>>>>>>>>>>111>>>>>>>>");
|
||||
//查询该用户3个月内可以开发票的历史订单
|
||||
List<Map<String, Object>> xhpcHistoryOrderList = xhpcHistoryOrderMapper.findByCondition(invoicedOrdersRequest, lockOrderNumberList);
|
||||
System.out.println("<<<<<<<<<<111<<<<<<<<<用户3个月内可以开发票>>>>>>>>>>111>>>>>>>>");
|
||||
InvoicedOrderResponse invoicedOrderResponse = new InvoicedOrderResponse();
|
||||
//没有则直接返回空对象出去
|
||||
if (xhpcHistoryOrderList.size() == 0) {
|
||||
@ -329,7 +331,7 @@ public class XhpcInvoiceServiceImpl implements XhpcInvoiceService {
|
||||
int count = 0;
|
||||
for (String key : keyList) {
|
||||
count++;
|
||||
if (count == 4) {
|
||||
if (count == 13) {
|
||||
break;
|
||||
}
|
||||
ItemsDTO itemsDTO = new ItemsDTO();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user