String sql = "if not exists (select * from tSalesOrderPay where sTransTraceNO = '" + sTransTraceNO + "') "
+ 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 = ?",
sSalesOrderID);
try{
...
...
@@ -361,6 +372,10 @@ public class OrderServiceImpl implements OrderService {
}catch(Exceptione){
e.printStackTrace();
}
}else{
logger.info("支付单号:"+sOutTradeNO+"未找到对应的订单号。");
}
returnreturnMap;
}
...
...
@@ -1097,20 +1112,7 @@ public class OrderServiceImpl implements OrderService {