Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
php_frq_api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c3dbf68c
authored
Mar 30, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
m
parents
eddb3936
44eedc4f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
app/Model/InquiryItemsModel.php
app/Model/InquiryModel.php
app/Model/InquiryItemsModel.php
View file @
c3dbf68c
...
@@ -334,7 +334,7 @@ class InquiryItemsModel extends Model
...
@@ -334,7 +334,7 @@ class InquiryItemsModel extends Model
$assignInfo
=
(
new
InquiryItemsAssignModel
())
->
select
(
"assign_uid"
)
->
where
(
"inquiry_items_id"
,
$inquiry_items_id
)
->
get
();
$assignInfo
=
(
new
InquiryItemsAssignModel
())
->
select
(
"assign_uid"
)
->
where
(
"inquiry_items_id"
,
$inquiry_items_id
)
->
get
();
if
(
$assignInfo
){
if
(
$assignInfo
){
$assignInfoArr
=
$assignInfo
->
toArray
();
$assignInfoArr
=
$assignInfo
->
toArray
();
$currency
=
$
item
Arr
[
"currency"
]
==
1
?
"¥"
:
"$"
;
$currency
=
$
main
Arr
[
"currency"
]
==
1
?
"¥"
:
"$"
;
$msg
=
$b
[
"user_name"
]
.
'已修改询价,询价单号:'
.
$mainArr
[
"inquiry_sn"
]
.
',型号:'
.
$updateArr
[
"goods_name"
]
.
' 修改内容:价格:'
.
$currency
.
$itemArr
[
"target_price"
]
.
',目标价:'
.
$currency
.
$updateArr
[
"target_price"
];
$msg
=
$b
[
"user_name"
]
.
'已修改询价,询价单号:'
.
$mainArr
[
"inquiry_sn"
]
.
',型号:'
.
$updateArr
[
"goods_name"
]
.
' 修改内容:价格:'
.
$currency
.
$itemArr
[
"target_price"
]
.
',目标价:'
.
$currency
.
$updateArr
[
"target_price"
];
foreach
(
$assignInfoArr
as
$k
=>
$v
){
foreach
(
$assignInfoArr
as
$k
=>
$v
){
$CommonModel
->
send_msg
(
$v
[
"assign_uid"
],
$msg
);
$CommonModel
->
send_msg
(
$v
[
"assign_uid"
],
$msg
);
...
...
app/Model/InquiryModel.php
View file @
c3dbf68c
...
@@ -165,6 +165,8 @@ class InquiryModel extends Model
...
@@ -165,6 +165,8 @@ class InquiryModel extends Model
}
}
}
}
$v
[
'inquiry_sn_origin'
]
=
$v
[
"inquiry_sn"
];
// 在Redis集合中检查是否有新的报价
// 在Redis集合中检查是否有新的报价
if
(
$export
==
0
){
if
(
$export
==
0
){
$res
=
$Redis
->
SISMEMBER
(
'frq_quote_urge'
,
$v
[
'id'
]);
$res
=
$Redis
->
SISMEMBER
(
'frq_quote_urge'
,
$v
[
'id'
]);
...
@@ -172,6 +174,8 @@ class InquiryModel extends Model
...
@@ -172,6 +174,8 @@ class InquiryModel extends Model
$v
[
'inquiry_sn'
]
=
$v
[
'inquiry_sn'
]
.
"<span style='color:red;'> *</span>"
;
$v
[
'inquiry_sn'
]
=
$v
[
'inquiry_sn'
]
.
"<span style='color:red;'> *</span>"
;
}
}
}
}
}
}
$data
=
$list
[
'data'
];
$data
=
$list
[
'data'
];
if
(
@
$input
[
"is_export"
]
==
1
)
{
#如果是导出
if
(
@
$input
[
"is_export"
]
==
1
)
{
#如果是导出
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment