Commit ed8dbff7 by mushishixian

修复更改供应商的问题

parent e5f9cb05
[submodule "common"]
path = common
url = ssh://git@119.23.72.7:22611/yyc/Common.git
[submodule "scm_wms_common"]
path = scm_wms_common
url = ssh://git@119.23.72.7:22611/ymx/scm_wms_common.git
......@@ -78,8 +78,12 @@ class SupplierModel extends Model
*/
public function updateSupplierInfo($arr) {
if(!empty($arr['erp_supplier_sn'])) {
$this->supSn2Redis($arr['erp_supplier_sn'],$arr['supplier_id']);
$this->supId2Redis($arr['supplier_id'],json_encode($arr));
//先去找出supplier_id
$supplierId = $this->where('erp_supplier_id', $arr['erp_supplier_id'])->value('supplier_id');
if ($supplierId) {
$this->supSn2Redis($arr['erp_supplier_sn'],$supplierId);
$this->supId2Redis($supplierId,json_encode($arr));
}
}
return $this->where('erp_supplier_id', '=', $arr)->update($arr);
}
......
common @ a2ccb5e4
Subproject commit a2ccb5e4c01af94885bf8280f5e69802a0070150
scm_wms_common @ c096853c
Subproject commit c096853cde4ffc9ab95ac49577aa03617c6f8fee
33613
\ No newline at end of file
15272
\ No newline at end of file
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 sign in to comment