|
@@ -134,7 +134,7 @@ public class RegisteredOrderService {
|
|
// 把日期往后增加一天.整数往后推,负数往前移动
|
|
// 把日期往后增加一天.整数往后推,负数往前移动
|
|
Calendar calendar = new GregorianCalendar();
|
|
Calendar calendar = new GregorianCalendar();
|
|
calendar.setTime(date);
|
|
calendar.setTime(date);
|
|
- calendar.add(calendar.DATE, 1);
|
|
|
|
|
|
+ calendar.add(Calendar.DATE, 1);
|
|
// 这个时间就是日期往后推一天的结果
|
|
// 这个时间就是日期往后推一天的结果
|
|
date = calendar.getTime();
|
|
date = calendar.getTime();
|
|
|
|
|
|
@@ -157,7 +157,7 @@ public class RegisteredOrderService {
|
|
// 把日期往后增加一天.整数往后推,负数往前移动
|
|
// 把日期往后增加一天.整数往后推,负数往前移动
|
|
Calendar calendar = new GregorianCalendar();
|
|
Calendar calendar = new GregorianCalendar();
|
|
calendar.setTime(date);
|
|
calendar.setTime(date);
|
|
- calendar.add(calendar.DATE, 1);
|
|
|
|
|
|
+ calendar.add(Calendar.DATE, 1);
|
|
// 这个时间就是日期往后推一天的结果
|
|
// 这个时间就是日期往后推一天的结果
|
|
date = calendar.getTime();
|
|
date = calendar.getTime();
|
|
|
|
|
|
@@ -285,7 +285,7 @@ public class RegisteredOrderService {
|
|
// 把日期往后增加一天.整数往后推,负数往前移动
|
|
// 把日期往后增加一天.整数往后推,负数往前移动
|
|
Calendar calendar = new GregorianCalendar();
|
|
Calendar calendar = new GregorianCalendar();
|
|
calendar.setTime(date);
|
|
calendar.setTime(date);
|
|
- calendar.add(calendar.DATE, 1);
|
|
|
|
|
|
+ calendar.add(Calendar.DATE, 1);
|
|
// 这个时间就是日期往后推一天的结果
|
|
// 这个时间就是日期往后推一天的结果
|
|
date = calendar.getTime();
|
|
date = calendar.getTime();
|
|
paramList.add(date);
|
|
paramList.add(date);
|
|
@@ -310,6 +310,14 @@ public class RegisteredOrderService {
|
|
whereSql += " and ( order_id = -1 )";
|
|
whereSql += " and ( order_id = -1 )";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ String paymentno = request.getPaymentno();
|
|
|
|
+ if (!Checker.isNull(paymentno)) {
|
|
|
|
+ whereSql += " and ( payment_no like ?)";
|
|
|
|
+ paramList.add("%" + paymentno.trim() + "%");
|
|
|
|
+ }
|
|
|
|
+
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
logger.error("queryRegisteredOrderList:{},{}", e.getMessage(), e);
|
|
logger.error("queryRegisteredOrderList:{},{}", e.getMessage(), e);
|
|
@@ -344,7 +352,7 @@ public class RegisteredOrderService {
|
|
String[] columns = new String[]{col0, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10,
|
|
String[] columns = new String[]{col0, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10,
|
|
col11, col12, col13, col14, col15};
|
|
col11, col12, col13, col14, col15};
|
|
if (hosp > 0) {
|
|
if (hosp > 0) {
|
|
- columns = new String[]{col0, col1, col3, col4, col5, col6, col7, col8, col9, col10,
|
|
|
|
|
|
+ columns = new String[]{col0, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10,
|
|
col11};
|
|
col11};
|
|
}
|
|
}
|
|
List<RegisteredOrder> registeredOrderList = queryRegisteredOrderList(request);
|
|
List<RegisteredOrder> registeredOrderList = queryRegisteredOrderList(request);
|
|
@@ -397,7 +405,7 @@ public class RegisteredOrderService {
|
|
if (hosp > 0) {
|
|
if (hosp > 0) {
|
|
map.getStringListSafely(col0).add(p.getOrderNo());
|
|
map.getStringListSafely(col0).add(p.getOrderNo());
|
|
map.getStringListSafely(col1).add(p.getPaymentNo());
|
|
map.getStringListSafely(col1).add(p.getPaymentNo());
|
|
-// map.getStringListSafely(col2).add(transactionId);
|
|
|
|
|
|
+ map.getStringListSafely(col2).add(transactionId);
|
|
map.getStringListSafely(col3).add(p.getPatientName());
|
|
map.getStringListSafely(col3).add(p.getPatientName());
|
|
map.getStringListSafely(col4).add(patientMobile);
|
|
map.getStringListSafely(col4).add(patientMobile);
|
|
map.getStringListSafely(col5).add(cardNo);
|
|
map.getStringListSafely(col5).add(cardNo);
|
|
@@ -566,7 +574,8 @@ public class RegisteredOrderService {
|
|
String col3 = "交易日期*";
|
|
String col3 = "交易日期*";
|
|
String col4 = "订单号";
|
|
String col4 = "订单号";
|
|
String col5 = "类型";
|
|
String col5 = "类型";
|
|
- String[] columns = new String[]{col0, col1, col2, col3, col4, col5};
|
|
|
|
|
|
+ String col6 = "支付渠道";
|
|
|
|
+ String[] columns = new String[]{col0, col1, col2, col3, col4, col5, col6};
|
|
|
|
|
|
List<RegisteredOrder> registeredOrderList = queryRegisteredOrderList(request);
|
|
List<RegisteredOrder> registeredOrderList = queryRegisteredOrderList(request);
|
|
ExcelDataMap map = new ExcelDataMap(columns);
|
|
ExcelDataMap map = new ExcelDataMap(columns);
|
|
@@ -596,8 +605,9 @@ public class RegisteredOrderService {
|
|
// 类型
|
|
// 类型
|
|
int typeInt = Checker.getIntegerValue(p.getRegisteredType());
|
|
int typeInt = Checker.getIntegerValue(p.getRegisteredType());
|
|
String typeName = RegisteredTypeEnum.valueOf(typeInt).getDisplayName();
|
|
String typeName = RegisteredTypeEnum.valueOf(typeInt).getDisplayName();
|
|
-
|
|
|
|
-// String[] bodyStr = {type, transactionId, totalStr, paymentTimeStr, orderNo, typeName};
|
|
|
|
|
|
+ // 支付渠道
|
|
|
|
+ int paymentChannelInt = Checker.getIntegerValue(p.getPaymentChannel());
|
|
|
|
+ String paymentChannel = PaymentChannelEnum.getDisplayName(paymentChannelInt);
|
|
|
|
|
|
map.getStringListSafely(col0).add(type);
|
|
map.getStringListSafely(col0).add(type);
|
|
map.getStringListSafely(col1).add(transactionId);
|
|
map.getStringListSafely(col1).add(transactionId);
|
|
@@ -605,6 +615,7 @@ public class RegisteredOrderService {
|
|
map.getStringListSafely(col3).add(paymentTimeStr);
|
|
map.getStringListSafely(col3).add(paymentTimeStr);
|
|
map.getStringListSafely(col4).add(orderNo);
|
|
map.getStringListSafely(col4).add(orderNo);
|
|
map.getStringListSafely(col5).add(typeName);
|
|
map.getStringListSafely(col5).add(typeName);
|
|
|
|
+ map.getStringListSafely(col6).add(paymentChannel);
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|