Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
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
hujun
tl_estate
Commits
d93bea2b
Commit
d93bea2b
authored
Aug 02, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺库存判断
parent
92f8a798
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
22 deletions
+4
-22
GHouses.php
application/model/GHouses.php
+4
-22
No files found.
application/model/GHouses.php
View file @
d93bea2b
...
@@ -1203,29 +1203,11 @@ class GHouses extends BaseModel
...
@@ -1203,29 +1203,11 @@ class GHouses extends BaseModel
$house_data
=
$this
->
field
(
'id,internal_title,residue_num,total'
)
->
where
(
'id'
,
$params
[
'id'
])
->
where
(
'status'
,
'<>'
,
3
)
->
find
();
$house_data
=
$this
->
field
(
'id,internal_title,residue_num,total'
)
->
where
(
'id'
,
$params
[
'id'
])
->
where
(
'status'
,
'<>'
,
3
)
->
find
();
if
(
!
empty
(
$house_data
[
'id'
]))
{
if
(
!
empty
(
$house_data
[
'id'
]))
{
//剩余商铺为0下架
//剩余商铺为0下架
if
(
isset
(
$params
[
'residue_num'
]))
{
if
(
empty
(
$params
[
'residue_num'
])
||
empty
(
$params
[
'total'
]))
{
$params
[
'status'
]
=
2
;
}
else
{
$params
[
'status'
]
=
1
;
}
}
//商铺总数为0下架
if
(
empty
(
$params
[
'residue_num'
])
||
empty
(
$params
[
'total'
]))
{
if
(
isset
(
$params
[
'total'
]))
{
$params
[
'status'
]
=
2
;
if
(
empty
(
$params
[
'total'
]))
{
}
else
{
$params
[
'status'
]
=
2
;
$params
[
'status'
]
=
1
;
}
else
{
$params
[
'status'
]
=
1
;
}
}
if
(
!
isset
(
$params
[
"status"
]))
{
if
(
$house_data
[
"residue_num"
]
==
0
||
$house_data
[
"total"
]
==
0
)
{
$params
[
'status'
]
=
2
;
}
else
{
$params
[
'status'
]
=
1
;
}
}
}
$params
[
'operation_id'
]
=
$params
[
'userId'
];
$params
[
'operation_id'
]
=
$params
[
'userId'
];
...
...
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