Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SooonerHotel
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴贤德
SooonerHotel
Commits
0e686ad5
Commit
0e686ad5
authored
Sep 20, 2019
by
吴贤德
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
酒店片库冗余media_code:修复创建酒店时未冗余media_code
parent
455c0219
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
HotelAction.class.php
SooonerHotel/App/Lib/Action/Hotel/HotelAction.class.php
+2
-2
No files found.
SooonerHotel/App/Lib/Action/Hotel/HotelAction.class.php
View file @
0e686ad5
...
@@ -91,8 +91,8 @@ class HotelAction extends CommonAction{
...
@@ -91,8 +91,8 @@ class HotelAction extends CommonAction{
$spinfo
=
D
(
"Sp"
)
->
field
(
"site_id"
)
->
where
(
array
(
"id"
=>
$spid
))
->
find
();
$spinfo
=
D
(
"Sp"
)
->
field
(
"site_id"
)
->
where
(
array
(
"id"
=>
$spid
))
->
find
();
$siteid
=
$spinfo
[
"site_id"
];
$siteid
=
$spinfo
[
"site_id"
];
if
(
$siteid
){
if
(
$siteid
){
$sql
=
"INSERT INTO sh_hotel_media_map_
$spid
(media_id,hotel_id,status,status_inject)"
$sql
=
"INSERT INTO sh_hotel_media_map_
$spid
(media_id,hotel_id,status,status_inject
,media_code
)"
.
" SELECT id,
$id
,status,0 FROM sh_media_wasu WHERE site_id=
$siteid
;"
;
.
" SELECT id,
$id
,status,0
,code
FROM sh_media_wasu WHERE site_id=
$siteid
;"
;
$model
->
execute
(
$sql
);
$model
->
execute
(
$sql
);
}
}
}
}
...
...
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