Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
ruer_cms
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蔡闯
ruer_cms
Commits
358676e5
Commit
358676e5
authored
Mar 02, 2021
by
蔡闯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20201-3-2
parent
0b940e82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
app/shequ/controller/Vacancy.php
app/shequ/controller/Vacancy.php
+5
-3
No files found.
app/shequ/controller/Vacancy.php
View file @
358676e5
...
@@ -77,9 +77,8 @@ class Vacancy extends Base
...
@@ -77,9 +77,8 @@ class Vacancy extends Base
}
else
{
}
else
{
$res
=
$this
->
checkVacancyCode
(
$vacancy_code
,
0
,
$data
[
'layout_id'
]
);
$res
=
$this
->
checkVacancyCode
(
$vacancy_code
,
0
,
$data
[
'layout_id'
]
);
}
}
if
(
$res
[
'code'
]
!=
200
)
{
if
(
$res
[
'code'
]
!=
200
)
{
echo
-
1
;
return
$this
->
returnJson
([],
$res
[
'msg'
],
400
);
return
$this
->
returnJson
([],
$res
[
'msg'
],
400
);
}
}
$data
[
'vacancy_code'
]
=
$vacancy_code
;
$data
[
'vacancy_code'
]
=
$vacancy_code
;
...
@@ -94,6 +93,7 @@ class Vacancy extends Base
...
@@ -94,6 +93,7 @@ class Vacancy extends Base
//判断物业服务开始时间和结束时间是否合理
//判断物业服务开始时间和结束时间是否合理
$res
=
$this
->
checkVacancyPropertyTime
(
$data
[
'property_start_time'
],
$data
[
'property_end_time'
]);
$res
=
$this
->
checkVacancyPropertyTime
(
$data
[
'property_start_time'
],
$data
[
'property_end_time'
]);
if
(
$res
[
'code'
]
!=
200
)
{
if
(
$res
[
'code'
]
!=
200
)
{
echo
0
;
return
$this
->
returnJson
([],
$res
[
'msg'
],
400
);
return
$this
->
returnJson
([],
$res
[
'msg'
],
400
);
}
}
}
}
...
@@ -130,9 +130,11 @@ class Vacancy extends Base
...
@@ -130,9 +130,11 @@ class Vacancy extends Base
if
(
$vacancy_id
)
{
//修改
if
(
$vacancy_id
)
{
//修改
$operation
=
Db
::
name
(
'house_vacancy'
)
->
where
([
'vacancy_id'
=>
$vacancy_id
])
->
save
(
$data
);
$operation
=
Db
::
name
(
'house_vacancy'
)
->
where
([
'vacancy_id'
=>
$vacancy_id
])
->
save
(
$data
);
$change
=
Db
::
name
(
'house_user_bind'
)
->
where
([
'vacancy_id'
=>
$vacancy_id
])
->
save
(
$add
);
$change
=
Db
::
name
(
'house_user_bind'
)
->
where
([
'vacancy_id'
=>
$vacancy_id
])
->
save
(
$add
);
if
(
$operation
||
$change
)
{
if
(
$operation
||
$change
)
{
echo
1
;
return
$this
->
returnJson
([],
'success'
);
return
$this
->
returnJson
([],
'success'
);
}
else
{
}
else
{
echo
2
;
return
$this
->
returnJson
([],
'error'
,
400
);
return
$this
->
returnJson
([],
'error'
,
400
);
}
}
}
else
{
}
else
{
...
...
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