Commit 5ceb9b60 authored by 张永's avatar 张永

V1.1.7

parent 8fd412bc
...@@ -331,34 +331,19 @@ public class OrderServiceImpl implements OrderService { ...@@ -331,34 +331,19 @@ public class OrderServiceImpl implements OrderService {
"where sod.sSalesOrderID = ? "; "where sod.sSalesOrderID = ? ";
orderDtlList = jdbcTemplate.queryForList(sql2, salesOrderId); orderDtlList = jdbcTemplate.queryForList(sql2, salesOrderId);
} }
/* Map<String, Object> payMap = new HashMap<String,Object>(); Map<String, Object> payMap = new HashMap<String,Object>();
try { try {
String sqlPay = "select sPayTypeID, sPayType, nPayAmount, sOutTradeNO, sTransTraceNO, dPayDateTime, sStatusID = case when nTag&2=2 then '1' else '0' end, sStatus = case when nTag&2=2 then '已付款' else '未付款' end " String sqlPay = "select sPayTypeID, sPayType, nPayAmount, sOutTradeNO, sTransTraceNO, dPayDateTime, sStatusID = case when nTag&2=2 then '1' else '0' end, sStatus = case when nTag&2=2 then '已付款' else '未付款' end "
+ ", create_time = replace(convert(varchar(10),dCreateDate,120),'-','') + replace(convert(varchar(10),dCreateDate,108),':','') " + ", create_time = replace(convert(varchar(10),dCreateDate,120),'-','') + replace(convert(varchar(10),dCreateDate,108),':','') "
+ "from tSalesOrderPay " + "from tSalesOrderPay "
+ "where sSalesOrderID = ? "; + "where sSalesOrderID = ? and sOutTradeNO not like '%_D' ";
payMap = jdbcTemplate.queryForMap(sqlPay, salesOrderId); payMap = jdbcTemplate.queryForMap(sqlPay, salesOrderId);
payMap.put("nOrderTotalAmount", orderMap.get("nTotalSaleAmount")); payMap.put("nOrderTotalAmount", orderMap.get("nTotalSaleAmount"));
} catch (Exception e) { } catch (Exception e) {
}*/
List<Map<String, Object>> payList = new ArrayList<Map<String, Object>>();
try {
String sqlPay = "select sPayTypeID, sPayType, nPayAmount, sOutTradeNO, sTransTraceNO, dPayDateTime, sStatusID = case when nTag&2=2 then '1' else '0' end, sStatus = case when nTag&2=2 then '已付款' else '未付款' end "
+ ", create_time = replace(convert(varchar(10),dCreateDate,120),'-','') + replace(convert(varchar(10),dCreateDate,108),':','') "
+ "from tSalesOrderPay "
+ "where sSalesOrderID = ? ";
payList = jdbcTemplate.queryForList(sqlPay, salesOrderId);
if(payList != null && payList.size()>0) {
for(int i =0;i<payList.size();i++) {
Map<String, Object> payMap = payList.get(i);
payMap.put("nOrderTotalAmount", orderMap.get("nTotalSaleAmount"));
}
}
} catch (Exception e) {
} }
return Rjx.jsonOk().set("payData", payList).set("list", orderMap).set("detail", orderDtlList).toJson();
return Rjx.jsonOk().set("payData", payMap).set("list", orderMap).set("detail", orderDtlList).toJson();
} }
@Override @Override
...@@ -535,24 +520,19 @@ public class OrderServiceImpl implements OrderService { ...@@ -535,24 +520,19 @@ public class OrderServiceImpl implements OrderService {
String sql3 = "select sSubOrderID, nOrderMoney, sAocOrderID, sAocOrderNumber, nOrderNum, nPickupNum, sExpressNO, sExpressName from tSalesOrderDeliverSub where nTag&1 = 0 and sSubOrderID = ?"; String sql3 = "select sSubOrderID, nOrderMoney, sAocOrderID, sAocOrderNumber, nOrderNum, nPickupNum, sExpressNO, sExpressName from tSalesOrderDeliverSub where nTag&1 = 0 and sSubOrderID = ?";
List<Map<String, Object>> deliverSubList = jdbcTemplate.queryForList(sql3, subOrderID); List<Map<String, Object>> deliverSubList = jdbcTemplate.queryForList(sql3, subOrderID);
List<Map<String, Object>> payList = new ArrayList<Map<String, Object>>();
Map<String, Object> payMap = new HashMap<String,Object>();
try { try {
String sqlPay = "select sPayTypeID, sPayType, nPayAmount, sOutTradeNO, sTransTraceNO, dPayDateTime, sStatusID = case when nTag&2=2 then '1' else '0' end, sStatus = case when nTag&2=2 then '已付款' else '未付款' end " String sqlPay = "select sPayTypeID, sPayType, nPayAmount, sOutTradeNO, sTransTraceNO, dPayDateTime, sStatusID = case when nTag&2=2 then '1' else '0' end, sStatus = case when nTag&2=2 then '已付款' else '未付款' end "
+ "from tSalesOrderPay " + "from tSalesOrderPay "
+ "where sSalesOrderID = ? "; + "where sSalesOrderID = ? and sOutTradeNO not like '%_D' ";
payList = jdbcTemplate.queryForList(sqlPay, subOrderMap.get("sSalesOrderID")); payMap = jdbcTemplate.queryForMap(sqlPay, subOrderMap.get("sSalesOrderID"));
if(payList != null && payList.size()>0) {
for(int i =0;i<payList.size();i++) {
Map<String, Object> payMap = payList.get(i);
payMap.put("nOrderTotalAmount", orderMap.get("nTotalSaleAmount")); payMap.put("nOrderTotalAmount", orderMap.get("nTotalSaleAmount"));
}
}
} catch (Exception e) { } catch (Exception e) {
} }
return Rjx.jsonOk().set("deliver", deliver).set("deliverList", deliverSubList).set("order", orderMap).set("payData", payList) return Rjx.jsonOk().set("deliver", deliver).set("deliverList", deliverSubList).set("order", orderMap).set("payData", payMap)
.set("subOrder", subOrderMap).set("list", dtlList).toJson(); .set("subOrder", subOrderMap).set("list", dtlList).toJson();
} }
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<body> <body>
<div id="app"> <div id="app">
<el-divider content-position="left">V1.1.7 2024-1-11</el-divider> <el-divider content-position="left">V1.1.7 2024-1-11</el-divider>
<p class="title">1.订单详情返回payData改为多条返回</p> <p class="title">1.订单详情返回payData改为过滤补款记录</p>
<el-divider content-position="left">V1.1.6 2024-1-4</el-divider> <el-divider content-position="left">V1.1.6 2024-1-4</el-divider>
<p class="title">1.Bug #16271 增加了处理非当前经销商的数据,但是用户无法知道商品为啥被删掉了</p> <p class="title">1.Bug #16271 增加了处理非当前经销商的数据,但是用户无法知道商品为啥被删掉了</p>
<p class="title">1.需求 #16303 订单详情显示重复商品BUG</p> <p class="title">1.需求 #16303 订单详情显示重复商品BUG</p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment