Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
f6112ec3
Commit
f6112ec3
authored
Nov 25, 2019
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交上架下架功能
parent
5f845af4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
laowubao/app/base/api/impl/operator/laoActionApi.js
+3
-3
laowubao/app/base/service/impl/operator/recruitSve.js
+1
-5
No files found.
laowubao/app/base/api/impl/operator/laoActionApi.js
View file @
f6112ec3
...
@@ -320,9 +320,9 @@ class LaoActionApi extends APIBase {
...
@@ -320,9 +320,9 @@ class LaoActionApi extends APIBase {
*/
*/
async
UpdateCurStatus
(
obj
){
async
UpdateCurStatus
(
obj
){
//当前状态代码-1:展示中、2:已下架、3:已过期、4:审核未通过 cur_type
//当前状态代码-1:展示中、2:已下架、3:已过期、4:审核未通过 cur_type
if
(
!
this
.
trim
(
obj
.
curStatus
)){
//
if(!this.trim(obj.curStatus)){
return
system
.
getResult
(
-
1
,
`参数错误 状态不能为空`
);
//
return system.getResult(-1,`参数错误 状态不能为空`);
}
//
}
if
(
!
Number
(
this
.
trim
(
obj
.
curType
))){
if
(
!
Number
(
this
.
trim
(
obj
.
curType
))){
return
system
.
getResult
(
-
1
,
`参数错误 状态码不能为空`
);
return
system
.
getResult
(
-
1
,
`参数错误 状态码不能为空`
);
}
}
...
...
laowubao/app/base/service/impl/operator/recruitSve.js
View file @
f6112ec3
...
@@ -110,15 +110,11 @@ class RecruitService extends ServiceBase {
...
@@ -110,15 +110,11 @@ class RecruitService extends ServiceBase {
async
UpdateCurStatus
(
params
){
async
UpdateCurStatus
(
params
){
try
{
try
{
let
cur_type
=
params
.
curType
;
let
cur_type
=
params
.
curType
;
let
cur_status
=
params
.
curStatus
;
let
id
=
Number
(
params
.
id
);
let
id
=
Number
(
params
.
id
);
let
data
=
{};
let
data
=
{};
if
(
cur
T
ype
){
if
(
cur
_t
ype
){
data
.
cur_type
=
cur_type
;
data
.
cur_type
=
cur_type
;
}
}
if
(
curStatus
){
data
.
cur_status
=
cur_status
;
}
let
res
=
await
this
.
dao
.
model
.
update
(
data
,{
where
:{
id
:
id
}});
let
res
=
await
this
.
dao
.
model
.
update
(
data
,{
where
:{
id
:
id
}});
return
system
.
getResult
(
res
);
return
system
.
getResult
(
res
);
}
catch
(
error
)
{
}
catch
(
error
)
{
...
...
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