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
873c6ead
Commit
873c6ead
authored
Dec 20, 2019
by
高宇强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gyq
parent
675699c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
42 deletions
+47
-42
laowubao/app/base/api/impl/operator/laoActionApi.js
+43
-38
laowubao/app/base/service/impl/operator/userlabourSve.js
+4
-4
No files found.
laowubao/app/base/api/impl/operator/laoActionApi.js
View file @
873c6ead
...
...
@@ -322,12 +322,12 @@ class LaoActionApi extends APIBase {
}
var
parm
=
{};
parm
.
id
=
obj
.
id
;
parm
.
com_id
=
obj
.
com
_id
;
parm
.
user_id
=
obj
.
user
_id
;
if
(
obj
.
labour_id
){
parm
.
labour_id
=
obj
.
labour_id
;
}
parm
.
recruit_id
=
obj
.
recruit_id
;
parm
.
user_id
=
obj
.
user_id
;
parm
.
labour_user_id
=
obj
.
labour_
user_id
;
if
(
obj
.
ecid
){
parm
.
ecid
=
obj
.
ecid
;
}
...
...
@@ -426,43 +426,48 @@ class LaoActionApi extends APIBase {
temp_info
=
await
this
.
userlabourSve
.
finduserlabourByWhere
(
parm
);
if
(
temp_info
.
status
==
0
)
{
try
{
var
cominfo
=
await
this
.
usersSve
.
findListByUserid
(
temp_info
.
data
.
user_id
);
if
(
cominfo
.
status
==
0
){
temp_info
.
data
.
com_name
=
cominfo
.
data
.
com_name
;
}
else
{
temp_info
.
data
.
com_name
=
""
;
}
var
recruiinfo
=
await
this
.
recruitSve
.
findListByUserid
(
temp_info
.
data
.
recruit_id
);
if
(
recruiinfo
.
status
==
0
){
temp_info
.
data
.
recruit_name
=
recruiinfo
.
data
.
recruit_name
;
temp_info
.
data
.
work_address
=
recruiinfo
.
data
.
work_address
;
}
else
{
temp_info
.
data
.
recruit_name
=
""
;
temp_info
.
data
.
work_address
=
""
;
}
var
userinfo
=
await
this
.
usersSve
.
findListByUserid
(
temp_info
.
data
.
labour_user_id
);
if
(
userinfo
.
status
==
0
){
temp_info
.
data
.
phone_no
=
userinfo
.
data
.
phone_no
;
temp_info
.
data
.
user_name
=
userinfo
.
data
.
user_name
;;
temp_info
.
data
.
id_card
=
userinfo
.
data
.
id_card
;;
}
else
{
temp_info
.
data
.
phone_no
=
""
;
temp_info
.
data
.
user_name
=
""
;
temp_info
.
data
.
id_card
=
""
;
for
(
var
i
=
0
;
i
<
temp_info
.
data
.
rows
.
length
;
i
++
){
var
cominfo
=
await
this
.
usersSve
.
findUserInfoByid
(
temp_info
.
data
.
rows
[
i
].
user_id
);
if
(
cominfo
){
temp_info
.
data
.
rows
[
i
].
com_name
=
cominfo
.
com_name
;
}
else
{
temp_info
.
data
.
rows
[
i
].
com_name
=
""
;
}
var
recruiinfo
=
await
this
.
recruitSve
.
findListByUserid
(
temp_info
.
data
.
rows
[
i
].
recruit_id
);
if
(
recruiinfo
.
status
==
0
){
temp_info
.
data
.
rows
[
i
].
recruit_name
=
recruiinfo
.
data
.
recruit_name
;
temp_info
.
data
.
rows
[
i
].
work_address
=
recruiinfo
.
data
.
work_address
;
}
else
{
temp_info
.
data
.
rows
[
i
].
recruit_name
=
""
;
temp_info
.
data
.
rows
[
i
].
work_address
=
""
;
}
var
userinfo
=
await
this
.
usersSve
.
findUserInfoByid
(
temp_info
.
data
.
rows
[
i
].
labour_user_id
);
if
(
userinfo
){
temp_info
.
data
.
rows
[
i
].
phone_no
=
userinfo
.
phone_no
;
temp_info
.
data
.
rows
[
i
].
user_name
=
userinfo
.
user_name
;;
temp_info
.
data
.
rows
[
i
].
id_card
=
userinfo
.
id_card
;;
}
else
{
temp_info
.
data
.
rows
[
i
].
phone_no
=
""
;
temp_info
.
data
.
rows
[
i
].
user_name
=
""
;
temp_info
.
data
.
rows
[
i
].
id_card
=
""
;
}
}
return
temp_info
;
}
catch
catch
(
e
)
{
console
.
log
(
e
);
return
system
.
getResult
(
null
,
"获取数据失败"
);
}
}
else
{
console
.
log
(
e
);
return
system
.
getResult
(
null
,
"获取数据失败"
);
}
}
...
...
@@ -720,7 +725,7 @@ class LaoActionApi extends APIBase {
return
await
this
.
recruitSve
.
findRecruitByWhere
(
parm
);
}
async
u
pdateUserLabourStatusInfo
(
obj
){
//根据id更新应聘信息
async
U
pdateUserLabourStatusInfo
(
obj
){
//根据id更新应聘信息
if
(
!
obj
.
id
||
!
obj
.
apply_stauts
){
return
system
.
getResult
(
null
,
"参数错误"
);
}
...
...
@@ -1241,17 +1246,18 @@ module.exports = LaoActionApi;
// var tesk = new LaoActionApi();
// var parm = {
// userId:4,
// ossUrl:"https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_wxapplet_1576396810278.xlsx"
// //id:2,
// id:12,
// apply_stauts:"邀请面试"
// //ossUrl:"https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_wxapplet_1576396810278.xlsx"
// //labour_user_id:2,
// //apply_stauts:"已申请"
// //cur_status:"已过期"
// //memo_text:"sssssssss"
// //user_name:"高",
// //com_name:"京东"
// };
// tesk.
ParamRecruitExcel
(parm).then(function(result){
// tesk.
UpdateUserLabourStatusInfo
(parm).then(function(result){
// console.log(result);
// //console.log(result.data.rows);
// }).catch(function(e){
// console.log(e);
// });
\ No newline at end of file
laowubao/app/base/service/impl/operator/userlabourSve.js
View file @
873c6ead
...
...
@@ -12,12 +12,12 @@ class UserlabourService extends ServiceBase {
var
userlabour
;
if
(
id
){
userlabour
=
await
this
.
dao
.
findById
(
id
);
userlabour
.
user_id
=
params
.
com
_id
;
userlabour
.
user_id
=
params
.
user
_id
;
if
(
params
.
labour_id
){
userlabour
.
labour_id
=
params
.
labour_id
;
}
userlabour
.
recruit_id
=
params
.
recruit_id
;
userlabour
.
labour_user_id
=
params
.
user_id
;
userlabour
.
labour_user_id
=
params
.
labour_
user_id
;
if
(
params
.
ecid
){
userlabour
.
ecid
=
params
.
ecid
;
}
...
...
@@ -116,7 +116,7 @@ class UserlabourService extends ServiceBase {
}
else
if
(
obj
.
apply_stauts
==
"邀请面试"
){
setobj
.
apply_stauts
=
20
;
where
.
interview_time
=
(
new
Date
()).
Format
(
"yyyy-MM-dd"
);
setobj
.
interview_time
=
(
new
Date
()).
Format
(
"yyyy-MM-dd"
);
}
else
if
(
obj
.
apply_stauts
==
"面试成功"
){
setobj
.
apply_stauts
=
30
;
...
...
@@ -129,7 +129,7 @@ class UserlabourService extends ServiceBase {
}
else
if
(
obj
.
apply_stauts
==
"签约成功"
){
setobj
.
apply_stauts
=
60
;
where
.
sign_at
=
(
new
Date
()).
Format
(
"yyyy-MM-dd"
);
setobj
.
sign_at
=
(
new
Date
()).
Format
(
"yyyy-MM-dd"
);
}
var
self
=
this
;
...
...
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