String sql = "if not exists (select * from tSalesOrderPay where sTransTraceNO = '" + sTransTraceNO + "') "
String sql = "if not exists (select * from tSalesOrderPay where sTransTraceNO = '" + sTransTraceNO + "') "
+ sqlDesc.getSql();
+ sqlDesc.getSql();
jdbcTemplate.update(sql,sqlDesc.getArgs());
jdbcTemplate.update(sql, sqlDesc.getArgs());*/
if(StringUtil.isNotBlank(sSalesOrderID)){
jdbcTemplate.update("UPDATE tSalesOrderPay SET sTransTraceNO = ? AND dPayDateTime = ? WHERE sOutTradeNO = ? ",sTransTraceNO,DateUtil.format(dPayDateTime,DateUtil.FMT_DATE_SECOND),sOutTradeNO);
jdbcTemplate.update("update tSalesOrder set nOrderStatus = nOrderStatus|32 where sSalesOrderID = ?",
jdbcTemplate.update("update tSalesOrder set nOrderStatus = nOrderStatus|32 where sSalesOrderID = ?",
sSalesOrderID);
sSalesOrderID);
try{
try{
...
@@ -361,6 +372,10 @@ public class OrderServiceImpl implements OrderService {
...
@@ -361,6 +372,10 @@ public class OrderServiceImpl implements OrderService {
}catch(Exceptione){
}catch(Exceptione){
e.printStackTrace();
e.printStackTrace();
}
}
}else{
logger.info("支付单号:"+sOutTradeNO+"未找到对应的订单号。");
}
returnreturnMap;
returnreturnMap;
}
}
...
@@ -1097,20 +1112,7 @@ public class OrderServiceImpl implements OrderService {
...
@@ -1097,20 +1112,7 @@ public class OrderServiceImpl implements OrderService {