Commit 72707b3e authored by 张永's avatar 张永

需求 #17488

parent 3c5b309b
...@@ -246,6 +246,7 @@ public class OrderController { ...@@ -246,6 +246,7 @@ public class OrderController {
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(paramType = "query", name="orgNo", dataType = "String", required = true), @ApiImplicitParam(paramType = "query", name="orgNo", dataType = "String", required = true),
@ApiImplicitParam(paramType = "query", name="shopNo", dataType = "String", required = true, value = "店铺编号"), @ApiImplicitParam(paramType = "query", name="shopNo", dataType = "String", required = true, value = "店铺编号"),
@ApiImplicitParam(paramType = "query", name = "agentID", dataType = "String", required = true),
@ApiImplicitParam(paramType = "query", name="refundStatus", dataType = "int", required = true, value = "退单状态,1=申请售后、2=平台确认、3=退货/退款、4=售后完成"), @ApiImplicitParam(paramType = "query", name="refundStatus", dataType = "int", required = true, value = "退单状态,1=申请售后、2=平台确认、3=退货/退款、4=售后完成"),
@ApiImplicitParam(paramType = "query", name = "terminal", dataType = "String", required = true, value = "终端标识", defaultValue = "wechat"), @ApiImplicitParam(paramType = "query", name = "terminal", dataType = "String", required = true, value = "终端标识", defaultValue = "wechat"),
@ApiImplicitParam(paramType = "query", name = "langID", dataType = "String", required = true, value = "语言", defaultValue = "936"), @ApiImplicitParam(paramType = "query", name = "langID", dataType = "String", required = true, value = "语言", defaultValue = "936"),
...@@ -254,13 +255,13 @@ public class OrderController { ...@@ -254,13 +255,13 @@ public class OrderController {
}) })
@RequestMapping(value = "/getRefundOrderList",method=RequestMethod.GET) @RequestMapping(value = "/getRefundOrderList",method=RequestMethod.GET)
@IDCLogResource(name="B2B售后退单列表") @IDCLogResource(name="B2B售后退单列表")
public RespObject getRefundOrderList(String orgNo, String shopNo, Integer refundStatus, String langID, Integer index, Integer limit) { public RespObject getRefundOrderList(String orgNo,String agentID, String shopNo, Integer refundStatus, String langID, Integer index, Integer limit) {
Page page = new Page(); Page page = new Page();
page.setIndex(Long.valueOf(index)); page.setIndex(Long.valueOf(index));
page.setLimit(Long.valueOf(limit)); page.setLimit(Long.valueOf(limit));
page.setLimitKey("OrderDate desc"); page.setLimitKey("OrderDate desc");
return orderService.queryRefundOrderList(orgNo, shopNo, refundStatus, langID, page); return orderService.queryRefundOrderList(orgNo, shopNo,agentID, refundStatus, langID, page);
} }
......
...@@ -45,7 +45,7 @@ public interface OrderService { ...@@ -45,7 +45,7 @@ public interface OrderService {
public List<Map<String, Object>> getDeliverSubDetail(String aocOrderID); public List<Map<String, Object>> getDeliverSubDetail(String aocOrderID);
public RespObject queryRefundOrderList(String orgNo, String shopNo, Integer refundStatus, String langID, Page page); public RespObject queryRefundOrderList(String orgNo, String shopNo,String agentID, Integer refundStatus, String langID, Page page);
public List<Map<String, Object>> createSalesOrderDebtPay(String shopNO, String salesOrderID,String subOrderID,String payTypeID,String payType,String payAmount,String payCardNO) ; public List<Map<String, Object>> createSalesOrderDebtPay(String shopNO, String salesOrderID,String subOrderID,String payTypeID,String payType,String payAmount,String payCardNO) ;
......
...@@ -1155,7 +1155,7 @@ public class OrderServiceImpl implements OrderService { ...@@ -1155,7 +1155,7 @@ public class OrderServiceImpl implements OrderService {
} }
@Override @Override
public RespObject queryRefundOrderList(String orgNo, String shopNo, Integer refundStatus, String langID, public RespObject queryRefundOrderList(String orgNo, String shopNo,String agentID, Integer refundStatus, String langID,
Page page) { Page page) {
List<Map<String, Object>> sortList = new ArrayList<Map<String, Object>>(); List<Map<String, Object>> sortList = new ArrayList<Map<String, Object>>();
...@@ -1176,7 +1176,7 @@ public class OrderServiceImpl implements OrderService { ...@@ -1176,7 +1176,7 @@ public class OrderServiceImpl implements OrderService {
+ " ExpressFee = a.nExpressFee," + " OrderStatus = a.nOrderStatus," + " ExpressFee = a.nExpressFee," + " OrderStatus = a.nOrderStatus,"
+ " OrderStatusName = a.nOrderStatusName," + " OrderMemo = a.sOrderMemo" + " " + " OrderStatusName = a.nOrderStatusName," + " OrderMemo = a.sOrderMemo" + " "
+ " from tSalesOrderSub a join tSalesOrderSubDtl b on a.sSubOrderID = b.sSubOrderID " + " from tSalesOrderSub a join tSalesOrderSubDtl b on a.sSubOrderID = b.sSubOrderID "
+ " where a.sShopNO = '" + shopNo + "' "; + " where a.sShopNO = '" + shopNo + "' and a.nAgentID = "+agentID+" ";
if (refundStatus == 1) { /* 查询指定状态订单:1=申请售后 */ if (refundStatus == 1) { /* 查询指定状态订单:1=申请售后 */
sql += " and a.sSalesOrderTypeID = '0' " + " and a.sB2BOrderTypeID = '1' " + " and a.nOrderStatus&1 = 0 " sql += " and a.sSalesOrderTypeID = '0' " + " and a.sB2BOrderTypeID = '1' " + " and a.nOrderStatus&1 = 0 "
...@@ -1250,7 +1250,7 @@ public class OrderServiceImpl implements OrderService { ...@@ -1250,7 +1250,7 @@ public class OrderServiceImpl implements OrderService {
+ " from tSalesOrderSubDtl a join tSalesOrderSub b on a.sSubOrderID = b.sSubOrderID left join tAgentContractGoods ag on a.nAgentID = ag.nAgentID " + " from tSalesOrderSubDtl a join tSalesOrderSub b on a.sSubOrderID = b.sSubOrderID left join tAgentContractGoods ag on a.nAgentID = ag.nAgentID "
+ " and a.sAgentContractNO = ag.sAgentContractNO and a.nGoodsID = ag.nGoodsID " + " and a.sAgentContractNO = ag.sAgentContractNO and a.nGoodsID = ag.nGoodsID "
+ " left join V_GetminAgentGoodsPic gp on a.nAgentID = gp.nAgentID and a.nGoodsID = gp.nGoodsID " + " left join V_GetminAgentGoodsPic gp on a.nAgentID = gp.nAgentID and a.nGoodsID = gp.nGoodsID "
+ " where a.sSubOrderID in (" + StringUtil.join("', '", "'", "'", orderIdList) + ") " + " where a.sSubOrderID in (" + StringUtil.join("', '", "'", "'", orderIdList) + ") and a.nAgentID= "+agentID+" "
+ " order by a.nIdx"; + " order by a.nIdx";
List<Map<String, Object>> goodsList = readJdbcTemplate.queryForList(detailSql); List<Map<String, Object>> goodsList = readJdbcTemplate.queryForList(detailSql);
......
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