物流添加bugfix
This commit is contained in:
@ -143,15 +143,18 @@ public class StoreAfterSalesController {
|
||||
@ApiImplicitParam(name = "code", value = "快递公司编码", paramType = "query", dataType = "string"),
|
||||
@ApiImplicitParam(name = "name", value = "快递公司名称", paramType = "query", dataType = "string"),
|
||||
@ApiImplicitParam(name = "postalCode", value = "快递编号", paramType = "query", dataType = "string"),
|
||||
@ApiImplicitParam(name = "orderCode", value = "订单编号", paramType = "query", dataType = "string")
|
||||
@ApiImplicitParam(name = "orderCode", value = "订单编号", paramType = "query", dataType = "string"),
|
||||
@ApiImplicitParam(name = "id", value = "售后订单id", paramType = "query", dataType = "long")
|
||||
})
|
||||
@ApiOperation(value = "添加物流信息", notes = "添加物流信息")
|
||||
public ApiResult<Boolean> addLogisticsInformation(@RequestParam String code, @RequestParam String name, @RequestParam String postalCode, @RequestParam String orderCode) {
|
||||
public ApiResult<Boolean> addLogisticsInformation(@RequestParam String code, @RequestParam String name,
|
||||
@RequestParam String postalCode, @RequestParam String orderCode,
|
||||
@RequestParam Long id) {
|
||||
Long uid = LocalUser.getUser().getUid();
|
||||
if (StrUtil.isEmpty(code) || StrUtil.isEmpty(name) || StrUtil.isEmpty(postalCode)) {
|
||||
throw new YshopException("参数错误");
|
||||
}
|
||||
Boolean revoke = storeAfterSalesService.addLogisticsInformation(code, name, postalCode, orderCode);
|
||||
Boolean revoke = storeAfterSalesService.addLogisticsInformation(code, name, postalCode, orderCode, id);
|
||||
return ApiResult.ok(revoke);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user