Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zptz-sass-kelaidian
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
李大见
zptz-sass-kelaidian
Commits
be5f98ed
提交
be5f98ed
authored
9月 10, 2026
作者:
窦斌
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
edit
上级
8e33e844
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
+2
-2
GoodsController.php
app/Http/Controllers/Common/GoodsController.php
+2
-2
没有找到文件。
app/Http/Controllers/Common/GoodsController.php
浏览文件 @
be5f98ed
...
@@ -287,7 +287,7 @@ class GoodsController extends BaseController
...
@@ -287,7 +287,7 @@ class GoodsController extends BaseController
$result
=
PjGoods
::
where
(
'pg_id'
,
$id
)
->
select
(
'pg_id'
,
'brand_name'
,
'pg_series'
,
'version'
,
'general_version'
,
'gs_bid'
,
'cd_id'
,
'gs_id'
,
'goods_pic_path'
,
'pieces'
,
'sort_directory'
,
'pg_assurance'
,
'pg_parentid'
)
->
first
();
$result
=
PjGoods
::
where
(
'pg_id'
,
$id
)
->
select
(
'pg_id'
,
'brand_name'
,
'pg_series'
,
'version'
,
'general_version'
,
'gs_bid'
,
'cd_id'
,
'gs_id'
,
'goods_pic_path'
,
'pieces'
,
'sort_directory'
,
'pg_assurance'
,
'pg_parentid'
)
->
first
();
$resAttr
=
GoodsAttribute
::
where
(
'ga_goods_id'
,
$id
)
->
select
(
'ga_name'
,
'ga_number'
,
'ga_piece'
)
->
get
();
$resAttr
=
GoodsAttribute
::
where
(
'ga_goods_id'
,
$id
)
->
select
(
'ga_name'
,
'ga_number'
,
'ga_piece'
)
->
get
();
$result
[
'supply_price'
]
=
GhPrice
::
where
(
'goods_id'
,
$id
)
->
orderBy
(
'id'
,
'DESC'
)
->
value
(
'supply_price'
);
$result
[
'supply_price'
]
=
GhPrice
::
where
(
'goods_id'
,
$id
)
->
where
(
"ser_id"
,
0
)
->
orderBy
(
'id'
,
'DESC'
)
->
value
(
'supply_price'
);
$result
[
'goodcode'
]
=
GoodCode
::
where
(
'pgc_pgid'
,
$id
)
->
value
(
'pgc_code'
);
$result
[
'goodcode'
]
=
GoodCode
::
where
(
'pgc_pgid'
,
$id
)
->
value
(
'pgc_code'
);
if
(
$result
){
if
(
$result
){
...
@@ -367,7 +367,7 @@ class GoodsController extends BaseController
...
@@ -367,7 +367,7 @@ class GoodsController extends BaseController
//dump($res);
//dump($res);
// print_r(DB::getQueryLog());
// print_r(DB::getQueryLog());
GhPrice
::
where
(
'goods_id'
,
$id
)
->
update
([
'gh_price_name'
=>
$admin_id
,
'supply_price'
=>
$input
[
'supply_price'
]]);
//
GhPrice::where('goods_id',$id)->update(['gh_price_name' => $admin_id, 'supply_price' => $input['supply_price']]);
//添加统一编码表
//添加统一编码表
if
(
$request
->
filled
(
'goodcode'
)){
if
(
$request
->
filled
(
'goodcode'
)){
GoodCode
::
where
(
'pgc_pgid'
,
$id
)
->
where
(
'pgc_type'
,
1
)
->
update
([
'pgc_code'
=>
$input
[
'goodcode'
],
'new'
=>
'X'
.
$input
[
'goodcode'
]]);
GoodCode
::
where
(
'pgc_pgid'
,
$id
)
->
where
(
'pgc_type'
,
1
)
->
update
([
'pgc_code'
=>
$input
[
'goodcode'
],
'new'
=>
'X'
.
$input
[
'goodcode'
]]);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论