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
133702e6
Commit
133702e6
authored
Apr 23, 2020
by
zhaoxiqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
3630c543
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
2 deletions
+45
-2
laowubao/app/base/api/impl/operator/laoActionApi.js
+33
-2
laowubao/app/base/db/models/operator/userlabour.js
+11
-0
laowubao/app/base/db/models/operator/users.js
+1
-0
No files found.
laowubao/app/base/api/impl/operator/laoActionApi.js
View file @
133702e6
...
@@ -606,7 +606,7 @@ class LaoActionApi extends APIBase {
...
@@ -606,7 +606,7 @@ class LaoActionApi extends APIBase {
}
}
// userId=5&ecid=495
// userId=5&ecid=495
if
(
userinfo
&&
temp_info
.
data
.
rows
[
i
].
ecid
&&
temp_info
.
data
.
rows
[
i
].
apply_stauts
==
50
)
{
if
(
userinfo
&&
temp_info
.
data
.
rows
[
i
].
ecid
&&
temp_info
.
data
.
rows
[
i
].
apply_stauts
in
[
45
,
50
]
)
{
temp_info
.
data
.
rows
[
i
].
signUrl
=
this
.
signUrl
+
`&userId=
${
userinfo
.
id
}
&&ecid=
${
temp_info
.
data
.
rows
[
i
].
ecid
}
`
;
temp_info
.
data
.
rows
[
i
].
signUrl
=
this
.
signUrl
+
`&userId=
${
userinfo
.
id
}
&&ecid=
${
temp_info
.
data
.
rows
[
i
].
ecid
}
`
;
}
}
}
}
...
@@ -681,13 +681,44 @@ class LaoActionApi extends APIBase {
...
@@ -681,13 +681,44 @@ class LaoActionApi extends APIBase {
if
(
userlabour
.
apply_stauts
!=
30
)
{
if
(
userlabour
.
apply_stauts
!=
30
)
{
return
system
.
getResult
(
null
,
"已发起签约"
);
return
system
.
getResult
(
null
,
"已发起签约"
);
}
}
userlabour
.
apply_stauts
=
50
;
userlabour
.
apply_stauts
=
50
;
var
userInfo
=
await
this
.
usersSve
.
findById
(
userlabour
.
user_id
);
if
(
userInfo
.
information
){
userlabour
.
apply_stauts
=
45
;
}
userlabour
.
ecid
=
ecid
;
userlabour
.
ecid
=
ecid
;
await
userlabour
.
save
();
await
userlabour
.
save
();
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
}
}
//添加信息
async
addComplete
(
obj
){
if
(
!
obj
){
return
system
.
getResult
(
null
,
"参数不能为空"
);
}
if
(
!
obj
){
return
system
.
getResult
(
null
,
"招聘id不能为空"
);
}
var
userlabour
=
await
this
.
userlabourSve
.
findById
(
obj
.
id
);
if
(
userlabour
){
userlabour
.
nation
=
obj
.
nation
;
userlabour
.
marital_status
=
obj
.
marital_status
;
userlabour
.
is_children
=
obj
.
is_children
;
userlabour
.
opening_bank
=
obj
.
opening_bank
;
userlabour
.
education_back
=
obj
.
education_back
;
userlabour
.
graduate_ins
=
obj
.
graduate_ins
;
userlabour
.
place_domicile
=
obj
.
place_domicile
;
userlabour
.
current_residence
=
obj
.
current_residence
;
userlabour
.
urgency_person
=
obj
.
urgency_person
;
userlabour
.
contact_way
=
obj
.
contact_way
;
userlabour
.
save
();
}
return
system
.
getResult
(
userlabour
);
}
async
FindRecruitInfo
(
obj
)
{
//获取招聘信息
async
FindRecruitInfo
(
obj
)
{
//获取招聘信息
if
(
!
obj
)
{
if
(
!
obj
)
{
return
system
.
getResult
(
null
,
"参数不能为空"
);
return
system
.
getResult
(
null
,
"参数不能为空"
);
...
...
laowubao/app/base/db/models/operator/userlabour.js
View file @
133702e6
...
@@ -12,6 +12,17 @@ module.exports = (db, DataTypes) => {
...
@@ -12,6 +12,17 @@ module.exports = (db, DataTypes) => {
interview_time
:
DataTypes
.
DATE
,
interview_time
:
DataTypes
.
DATE
,
sign_at
:
DataTypes
.
DATE
,
sign_at
:
DataTypes
.
DATE
,
contract_url
:
DataTypes
.
STRING
(
300
),
contract_url
:
DataTypes
.
STRING
(
300
),
nation
:
DataTypes
.
INTEGER
,
marital_status
:
DataTypes
.
INTEGER
,
is_children
:
DataTypes
.
INTEGER
,
opening_bank
:
DataTypes
.
INTEGER
,
education_back
:
DataTypes
.
INTEGER
,
graduate_ins
:
DataTypes
.
INTEGER
,
place_domicile
:
DataTypes
.
INTEGER
,
current_residence
:
DataTypes
.
INTEGER
,
urgency_person
:
DataTypes
.
INTEGER
,
contact_way
:
DataTypes
.
INTEGER
},
{
},
{
paranoid
:
true
,
//假的删除
paranoid
:
true
,
//假的删除
underscored
:
true
,
underscored
:
true
,
...
...
laowubao/app/base/db/models/operator/users.js
View file @
133702e6
...
@@ -22,6 +22,7 @@ module.exports = (db, DataTypes) => {
...
@@ -22,6 +22,7 @@ module.exports = (db, DataTypes) => {
com_path
:
DataTypes
.
STRING
(
255
),
com_path
:
DataTypes
.
STRING
(
255
),
card_path
:
DataTypes
.
STRING
(
2000
),
card_path
:
DataTypes
.
STRING
(
2000
),
cert_path
:
DataTypes
.
STRING
(
2000
),
cert_path
:
DataTypes
.
STRING
(
2000
),
information
:
DataTypes
.
STRING
,
reg_time
:
DataTypes
.
DATE
,
reg_time
:
DataTypes
.
DATE
,
mtchId
:
DataTypes
.
STRING
,
mtchId
:
DataTypes
.
STRING
,
cattes_time
:
DataTypes
.
DATE
,
cattes_time
:
DataTypes
.
DATE
,
...
...
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