Commit 1f0e18b8 authored by 张永's avatar 张永

11

parent d853389f
......@@ -1917,14 +1917,28 @@ public class OrderServiceImpl implements OrderService {
if(isHave170) { //存在分账支付
//检查是否要推疏东波
String sql111 = "exec up_B2BSalesOrderPayCallBack '" + salesOrderID + "'";
List<Map<String, Object>> returnMap = jdbcTemplate.executeMutil(sql111).getDatas().get(0);
String sql111 = "select 1 from tSalesOrder a with(nolock), tSalesOrderDtl b with(nolock), tAgent t with(nolock) \r\n" +
" where a.sSalesOrderID = b.sSalesOrderID\r\n" +
" and b.nAgentID = t.nAgentID\r\n" +
" and a.sSalesOrderID = '"+salesOrderID+"'\r\n" +
" and t.sAgentNO in (select sItems from dbo.fn_Split((select sValue2 from tSystemCtrl with(nolock) where sCode = 'OrderToSudongPoUrl'),','))";
try {
int count = jdbcTemplate.queryForInt(sql111); //有值为1,则需要推送
if(count >0) {
logger.info("订单单号 :"+salesOrderID+" 存在分账支付检查需要推送蔬东坡-------"+count);
this.doPushOrderToSdongPo(salesOrderID,"1","0");
}
} catch (Exception e) {
logger.info("订单单号 :"+salesOrderID+" 存在分账支付检查不需要推送蔬东坡-------");
}
/*List<Map<String, Object>> returnMap = jdbcTemplate.executeMutil(sql111).getDatas().get(0);
Map<String,Object> orderMap = returnMap.get(0);
logger.info("订单单号 :"+salesOrderID+" 存在分账支付检查是否要推送蔬东坡-------"+GsonUtil.toJson(returnMap));
String IsPush = orderMap.get("IsPush")+"";
if(IsPush.equals("1")) {
this.doPushOrderToSdongPo(salesOrderID,IsPush,"0");
}
}*/
return Rjx.jsonOk().setData(jdbcTemplate.queryForMap(sqlOrderQuery, salesOrderID)).toJson();
}else {
......
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