Commit 9c6ffc3b authored by luhongguang's avatar luhongguang

update:审核逻辑

parent 1a96c6df
......@@ -331,9 +331,11 @@ class GoodsService
throw new GoodsException(["cus" => 10]);
}
$goodsSkuId = $sku["goods_sku_id"];
$rejectedReason = empty($params["rejected_reason"]) ? "" : $params["rejected_reason"];
GoodsSku::save([
"audit_status" => $status,
"rejected_reason" => $params["rejected_reason"]
"rejected_reason" => $rejectedReason
], ["goods_sku_id" => $sku["goods_sku_id"]]);
//todo:: info to es
......@@ -352,7 +354,7 @@ class GoodsService
"online_status" => $sku["online_status"],
"before_version" => $sku["goods_version"],
"after_version" => $sku["goods_version"],
"note" => empty($params["rejected_reason"]) ? "" : $params["rejected_reason"],
"note" => $rejectedReason,
];
GoodsOperationRecord::insertRecord($record);
}
......
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