|
@@ -29,7 +29,7 @@ import java.util.Map;
|
|
|
* @author : Charles
|
|
|
* @date : 2021/8/5
|
|
|
*/
|
|
|
-@Api(tags="供应商发货API")
|
|
|
+@Api(tags = "供应商发货API")
|
|
|
@RestController
|
|
|
@RequiredArgsConstructor
|
|
|
@RequestMapping("/order/shop")
|
|
@@ -52,9 +52,10 @@ public class ShipApi {
|
|
|
@ApiImplicitParam(required = false, name = "pageSize", value = "每页数量")
|
|
|
})
|
|
|
@GetMapping("/list")
|
|
|
- public ResponseJson<PageInfo<ShopOrderVo>> getShopOrderList(Integer shopId, Integer sendOutStatus, Integer payStatus, String shopOrderNo, String receiver, Integer organizeId,
|
|
|
- @RequestParam(value = "pageNum", defaultValue = "1") int pageNum,
|
|
|
- @RequestParam(value = "pageSize", defaultValue = "10") int pageSize) {
|
|
|
+ public ResponseJson<PageInfo<ShopOrderVo>> getShopOrderList(Integer shopId, Integer sendOutStatus, Integer payStatus,
|
|
|
+ String shopOrderNo, String receiver, Integer organizeId,
|
|
|
+ @RequestParam(value = "pageNum", defaultValue = "1") int pageNum,
|
|
|
+ @RequestParam(value = "pageSize", defaultValue = "10") int pageSize) {
|
|
|
if (null == shopId) {
|
|
|
return ResponseJson.error("供应商Id不能为空!", null);
|
|
|
}
|
|
@@ -77,7 +78,8 @@ public class ShipApi {
|
|
|
@ApiImplicitParam(required = false, name = "pageSize", value = "每页数量")
|
|
|
})
|
|
|
@GetMapping("/settlement/list")
|
|
|
- public ResponseJson<PageInfo<SettlementVo>> getSettlementList(Integer shopId, String shopOrderNo, Integer payStatus, String name, String beginTime, String endTime, Integer refundStatus,
|
|
|
+ public ResponseJson<PageInfo<SettlementVo>> getSettlementList(Integer shopId, String shopOrderNo, Integer payStatus,
|
|
|
+ String name, String beginTime, String endTime, Integer refundStatus,
|
|
|
@RequestParam(value = "pageNum", defaultValue = "1") int pageNum,
|
|
|
@RequestParam(value = "pageSize", defaultValue = "10") int pageSize) {
|
|
|
if (null == shopId) {
|
|
@@ -105,7 +107,7 @@ public class ShipApi {
|
|
|
@ApiOperation("供应商售货清单(旧:/supplier/salesList)")
|
|
|
@ApiImplicitParam(required = true, name = "shopOrderId", value = "子订单Id")
|
|
|
@GetMapping("/sales/list")
|
|
|
- public ResponseJson<Map<String, Object>> getSalesList(Integer shopOrderId){
|
|
|
+ public ResponseJson<Map<String, Object>> getSalesList(Integer shopOrderId) {
|
|
|
if (null == shopOrderId) {
|
|
|
return ResponseJson.error("参数不能为空!", null);
|
|
|
}
|
|
@@ -143,13 +145,13 @@ public class ShipApi {
|
|
|
* note: 备注信息,
|
|
|
* image: 图片备注以##隔开,
|
|
|
* logistics:[ // 物流信息
|
|
|
- * {number:'45646464646',logisticsCompanyName:'顺丰物流',logisticsCompanyCode:'物流英文代码'},
|
|
|
- * {number:'45646464646',logisticsCompanyName:'顺丰物流',logisticsCompanyCode:'物流英文代码'}
|
|
|
- * ],
|
|
|
+ * {number:'45646464646',logisticsCompanyName:'顺丰物流',logisticsCompanyCode:'物流英文代码'},
|
|
|
+ * {number:'45646464646',logisticsCompanyName:'顺丰物流',logisticsCompanyCode:'物流英文代码'}
|
|
|
+ * ],
|
|
|
* products:[ // 商品信息
|
|
|
- * {orderProductId:订单商品id,num:此次发货数量},
|
|
|
- * {orderProductId:订单商品id,num:此次发货数量}
|
|
|
- * ],
|
|
|
+ * {orderProductId:订单商品id,num:此次发货数量},
|
|
|
+ * {orderProductId:订单商品id,num:此次发货数量}
|
|
|
+ * ],
|
|
|
* }
|
|
|
*/
|
|
|
@ApiOperation("供应商发货(旧:/supplier/addLogistics)")
|
|
@@ -190,7 +192,7 @@ public class ShipApi {
|
|
|
* 供应商撤销发货
|
|
|
*
|
|
|
* @param logisticsBatchDto {
|
|
|
- * logisticsBatchId: 发货批次表Id
|
|
|
+ * logisticsBatchId: 发货批次表Id
|
|
|
* }
|
|
|
*/
|
|
|
@ApiOperation("供应商撤销发货(旧:/supplier/cancelShipment)")
|
|
@@ -219,13 +221,13 @@ public class ShipApi {
|
|
|
* 发货记录-添加物流
|
|
|
*
|
|
|
* @param logisticsBatchDto {
|
|
|
- * logisticsBatchId: 发货批次表Id,
|
|
|
- * remark: 备注,
|
|
|
- * remarkImage: 图片备注,
|
|
|
- * logistics:[ // 物流信息
|
|
|
- * {number:'45646464646',logisticsCompanyName:'顺丰物流',logisticsCompanyCode:'物流英文代码'},
|
|
|
- * {number:'45646464646',logisticsCompanyName:'顺丰物流',logisticsCompanyCode:'物流英文代码'}
|
|
|
- * ]
|
|
|
+ * logisticsBatchId: 发货批次表Id,
|
|
|
+ * remark: 备注,
|
|
|
+ * remarkImage: 图片备注,
|
|
|
+ * logistics:[ // 物流信息
|
|
|
+ * {number:'45646464646',logisticsCompanyName:'顺丰物流',logisticsCompanyCode:'物流英文代码'},
|
|
|
+ * {number:'45646464646',logisticsCompanyName:'顺丰物流',logisticsCompanyCode:'物流英文代码'}
|
|
|
+ * ]
|
|
|
* }
|
|
|
*/
|
|
|
@ApiOperation("发货记录-添加物流(旧:/supplier/addLogisticsInfo)")
|
|
@@ -239,8 +241,9 @@ public class ShipApi {
|
|
|
|
|
|
/**
|
|
|
* 扫码添加物流
|
|
|
- * @param number 快递单号
|
|
|
- * @param mobile 收/寄件人的电话号码(顺丰必填)
|
|
|
+ *
|
|
|
+ * @param number 快递单号
|
|
|
+ * @param mobile 收/寄件人的电话号码(顺丰必填)
|
|
|
*/
|
|
|
@ApiOperation("扫码添加物流(旧:/supplier/scanLogistics)")
|
|
|
@ApiImplicitParams({
|
|
@@ -313,7 +316,8 @@ public class ShipApi {
|
|
|
@ApiImplicitParam(required = false, name = "iv", value = "微信加密算法的初始向量")
|
|
|
})
|
|
|
@GetMapping("/share/code/check")
|
|
|
- public ResponseJson<Map<String, Object>> checkShipShareCode( Integer source, Integer shopOrderId, String shareCode, String code, String encryptedData, String iv, @RequestHeader HttpHeaders headers) {
|
|
|
+ public ResponseJson<Map<String, Object>> checkShipShareCode(Integer source, Integer shopOrderId, String shareCode,
|
|
|
+ String code, String encryptedData, String iv, @RequestHeader HttpHeaders headers) {
|
|
|
if (null == source) {
|
|
|
return ResponseJson.error("来源不能为空!", null);
|
|
|
}
|
|
@@ -348,11 +352,11 @@ public class ShipApi {
|
|
|
* 保存商品资质
|
|
|
*
|
|
|
* @param jsonParamsDto params:[{
|
|
|
- * recordId: 商品发货记录id,
|
|
|
- * sn: sn码,
|
|
|
- * files: [{fileName:"文件名称",ossName:"oss文件名称"},{fileName:"文件名称",ossName:"oss文件名称"}...]
|
|
|
- * images: ["图片","图片",...]
|
|
|
- * }, {}]
|
|
|
+ * recordId: 商品发货记录id,
|
|
|
+ * sn: sn码,
|
|
|
+ * files: [{fileName:"文件名称",ossName:"oss文件名称"},{fileName:"文件名称",ossName:"oss文件名称"}...]
|
|
|
+ * images: ["图片","图片",...]
|
|
|
+ * }, {}]
|
|
|
*/
|
|
|
@ApiOperation("上传商品资质(旧:/supplier/qualification)")
|
|
|
@PostMapping("/qualification/save")
|
|
@@ -362,6 +366,7 @@ public class ShipApi {
|
|
|
|
|
|
/**
|
|
|
* 更改收款状态
|
|
|
+ *
|
|
|
* @param amount
|
|
|
* @param shopOrderId
|
|
|
* @return
|
|
@@ -376,18 +381,20 @@ public class ShipApi {
|
|
|
|
|
|
/**
|
|
|
* 订单备注详情
|
|
|
+ *
|
|
|
* @param shopOrderId
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation("订单备注详情")
|
|
|
@GetMapping(value = "/remarksView")
|
|
|
- public ResponseJson<List<OrderRemarkDto>> remarksView( Integer shopOrderId) {
|
|
|
+ public ResponseJson<List<OrderRemarkDto>> remarksView(Integer shopOrderId) {
|
|
|
List<OrderRemarkDto> remarksList = shipService.findList(shopOrderId);
|
|
|
return ResponseJson.success(remarksList);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 添加订单备注
|
|
|
+ *
|
|
|
* @param remark
|
|
|
* @return
|
|
|
*/
|
|
@@ -400,6 +407,7 @@ public class ShipApi {
|
|
|
|
|
|
/**
|
|
|
* 上传备注文件
|
|
|
+ *
|
|
|
* @param file
|
|
|
* @param orderId
|
|
|
* @return
|
|
@@ -412,6 +420,7 @@ public class ShipApi {
|
|
|
|
|
|
/**
|
|
|
* 下载备注文件
|
|
|
+ *
|
|
|
* @param fileId
|
|
|
* @param request
|
|
|
* @param response
|
|
@@ -421,7 +430,7 @@ public class ShipApi {
|
|
|
@GetMapping("/download/remark")
|
|
|
public ResponseJson<Map<String, Object>> downFile(Integer fileId, HttpServletRequest request, HttpServletResponse response) throws IOException {
|
|
|
if (null == fileId) {
|
|
|
- return ResponseJson.error(-1,"id不能为空", null);
|
|
|
+ return ResponseJson.error(-1, "id不能为空", null);
|
|
|
}
|
|
|
return shipService.downFile(fileId, request, response);
|
|
|
}
|