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
a0882405
Commit
a0882405
authored
Dec 20, 2019
by
高宇强
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'laowubao' of gitlab.gongsibao.com:jiangyong/zhichan into laowubao
parents
873c6ead
a3deec4b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
122 additions
and
14 deletions
+122
-14
laowubao/app/base/api/impl/operator/laoActionApi.js
+4
-1
laowubao/app/base/api/impl/operator/xbgApi.js
+96
-8
laowubao/app/base/service/impl/operator/labourSve.js
+22
-5
No files found.
laowubao/app/base/api/impl/operator/laoActionApi.js
View file @
a0882405
...
@@ -690,6 +690,10 @@ class LaoActionApi extends APIBase {
...
@@ -690,6 +690,10 @@ class LaoActionApi extends APIBase {
return
system
.
getResult
(
null
,
"人才id不存在"
);
return
system
.
getResult
(
null
,
"人才id不存在"
);
}
}
if
(
!
obj
.
recruit_id
)
{
return
system
.
getResult
(
null
,
"请选择招聘信息"
);
}
try
{
try
{
let
rs
=
await
this
.
labourSve
.
notifyInterview
(
obj
);
let
rs
=
await
this
.
labourSve
.
notifyInterview
(
obj
);
return
system
.
getResultSuccess
(
rs
);
return
system
.
getResultSuccess
(
rs
);
...
@@ -697,7 +701,6 @@ class LaoActionApi extends APIBase {
...
@@ -697,7 +701,6 @@ class LaoActionApi extends APIBase {
console
.
log
(
e
);
console
.
log
(
e
);
return
system
.
getErrResult2
(
"您的网络不稳, 请稍后重试"
)
return
system
.
getErrResult2
(
"您的网络不稳, 请稍后重试"
)
}
}
}
}
async
FindRecruitByWhere
(
obj
)
{
//根据条件获取招聘信息
async
FindRecruitByWhere
(
obj
)
{
//根据条件获取招聘信息
...
...
laowubao/app/base/api/impl/operator/xbgApi.js
View file @
a0882405
...
@@ -6,11 +6,13 @@ class XbgApi extends apiBase {
...
@@ -6,11 +6,13 @@ class XbgApi extends apiBase {
constructor
()
{
constructor
()
{
super
();
super
();
this
.
restClient
=
system
.
getObject
(
"util.restClient"
);
this
.
restClient
=
system
.
getObject
(
"util.restClient"
);
//
this.url = "http://192.168.18.125:3000/api/xbgApi/";
this
.
url
=
"http://192.168.18.125:3000/api/xbgApi/"
;
this
.
url
=
"https://bpohhr.gongsibao.com/api/xbgApi/"
;
//
this.url = "https://bpohhr.gongsibao.com/api/xbgApi/";
this
.
testCompanyIds
=
12
;
this
.
testCompanyIds
=
12
;
this
.
ecompanyId
=
'1103817785420820481'
;
this
.
ecompanyId
=
'1103817785420820481'
;
this
.
recruitSve
=
system
.
getObject
(
"service.operator.recruitSve"
);
this
.
recruitSve
=
system
.
getObject
(
"service.operator.recruitSve"
);
this
.
userlabourSve
=
system
.
getObject
(
"service.operator.userlabourSve"
);
this
.
usersSve
=
system
.
getObject
(
"service.operator.usersSve"
);
this
.
companyConfig
=
{
this
.
companyConfig
=
{
yd
:
{
yd
:
{
signCompanyIds
:
[
10173
],
signCompanyIds
:
[
10173
],
...
@@ -105,7 +107,7 @@ class XbgApi extends apiBase {
...
@@ -105,7 +107,7 @@ class XbgApi extends apiBase {
return
JSON
.
parse
(
rs
.
stdout
);
return
JSON
.
parse
(
rs
.
stdout
);
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
);
return
system
.
getResult
(
"接口异常"
);
return
system
.
getResult
(
null
,
"接口异常"
);
}
}
}
}
...
@@ -121,7 +123,7 @@ class XbgApi extends apiBase {
...
@@ -121,7 +123,7 @@ class XbgApi extends apiBase {
return
JSON
.
parse
(
rs
.
stdout
);
return
JSON
.
parse
(
rs
.
stdout
);
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
);
return
system
.
getResult
(
"接口异常"
);
return
system
.
getResult
(
null
,
"接口异常"
);
}
}
}
}
...
@@ -138,7 +140,7 @@ class XbgApi extends apiBase {
...
@@ -138,7 +140,7 @@ class XbgApi extends apiBase {
return
JSON
.
parse
(
rs
.
stdout
);
return
JSON
.
parse
(
rs
.
stdout
);
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
);
return
system
.
getResult
(
"接口异常"
);
return
system
.
getResult
(
null
,
"接口异常"
);
}
}
}
}
...
@@ -154,7 +156,7 @@ class XbgApi extends apiBase {
...
@@ -154,7 +156,7 @@ class XbgApi extends apiBase {
return
JSON
.
parse
(
rs
.
stdout
);
return
JSON
.
parse
(
rs
.
stdout
);
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
);
return
system
.
getResult
(
"接口异常"
);
return
system
.
getResult
(
null
,
"接口异常"
);
}
}
}
}
...
@@ -171,7 +173,7 @@ class XbgApi extends apiBase {
...
@@ -171,7 +173,7 @@ class XbgApi extends apiBase {
return
JSON
.
parse
(
rs
.
stdout
);
return
JSON
.
parse
(
rs
.
stdout
);
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
);
return
system
.
getResult
(
"接口异常"
);
return
system
.
getResult
(
null
,
"接口异常"
);
}
}
}
}
...
@@ -202,11 +204,97 @@ class XbgApi extends apiBase {
...
@@ -202,11 +204,97 @@ class XbgApi extends apiBase {
return
system
.
getResultSuccess
(
dv
);
return
system
.
getResultSuccess
(
dv
);
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
);
return
system
.
getResult
(
"接口异常"
);
return
system
.
getResult
(
null
,
"接口异常"
);
}
}
}
async
validSign
(
qobj
)
{
let
userlabour_id
=
Number
(
qobj
.
userlabour_id
||
0
);
try
{
let
userlabour
=
await
this
.
userlabourSve
.
findById
(
userlabour_id
);
if
(
!
userlabour
)
{
return
system
.
getResult
(
null
,
"应聘信息不存在"
);
}
if
(
!
userlabour
.
ecid
)
{
return
system
.
getResult
(
null
,
"应聘信息未发起邀请"
);
}
let
userInfo
=
await
this
.
usersSve
.
findById
(
userlabour
.
labour_user_id
);
if
(
!
userInfo
)
{
return
system
.
getResult
(
null
,
"用户信息不存在"
);
}
if
(
!
userInfo
.
id_card
)
{
return
system
.
getResult
(
null
,
"用户未实名认证,身份证不存在"
);
}
let
params
=
{
idNo
:
"222403198301071778"
,
// idNo: userInfo.id_card,
ecid
:
userlabour
.
ecid
,
};
let
rs
=
await
this
.
restClient
.
execPost
(
params
,
this
.
url
+
"validLwbSign"
);
return
JSON
.
parse
(
rs
.
stdout
);
}
catch
(
e
)
{
console
.
log
(
e
);
return
system
.
getResult
(
null
,
"接口异常"
);
}
}
async
contractUrl
(
qobj
)
{
let
userlabour_id
=
Number
(
qobj
.
userlabour_id
||
0
);
try
{
let
userlabour
=
await
this
.
userlabourSve
.
findById
(
userlabour_id
);
if
(
!
userlabour
)
{
return
system
.
getResult
(
null
,
"应聘信息不存在"
);
}
if
(
!
userlabour
.
ecid
)
{
return
system
.
getResult
(
null
,
"应聘信息未发起邀请"
);
}
if
(
userlabour
.
contract_url
)
{
return
system
.
getResultSuccess
(
userlabour
.
contract_url
);
}
let
userInfo
=
await
this
.
usersSve
.
findById
(
userlabour
.
labour_user_id
);
if
(
!
userInfo
)
{
return
system
.
getResult
(
null
,
"用户信息不存在"
);
}
if
(
!
userInfo
.
id_card
)
{
return
system
.
getResult
(
null
,
"用户未实名认证,身份证不存在"
);
}
let
params
=
{
idNo
:
"222403198301071778"
,
// idNo: userInfo.id_card,
ecid
:
userlabour
.
ecid
,
};
var
rs
=
await
this
.
restClient
.
execPost
(
params
,
this
.
url
+
"lwbContractUrl"
);
try
{
rs
=
JSON
.
parse
(
rs
.
stdout
);
if
(
rs
.
status
!==
0
)
{
return
rs
;
}
if
(
rs
.
data
)
{
userlabour
.
contract_url
=
rs
.
data
;
await
userlabour
.
save
();
}
return
rs
;
}
catch
(
e
)
{
console
.
log
(
e
);
return
system
.
getResult
(
null
,
"bpo接口错误"
);
}
}
}
catch
(
e
)
{
console
.
log
(
e
);
return
system
.
getResult
(
null
,
"接口异常"
);
}
}
exam
()
{
exam
()
{
return
"xxx"
;
return
"xxx"
;
...
...
laowubao/app/base/service/impl/operator/labourSve.js
View file @
a0882405
...
@@ -131,11 +131,28 @@ class LabourService extends ServiceBase {
...
@@ -131,11 +131,28 @@ class LabourService extends ServiceBase {
}
}
async
notifyInterview
(
obj
)
{
async
notifyInterview
(
obj
)
{
var
id
=
Number
(
obj
.
id
);
let
id
=
Number
(
obj
.
id
);
var
user_id
=
Number
(
obj
.
userId
);
let
user_id
=
Number
(
obj
.
userId
);
let
recruit_id
=
Number
(
obj
.
recruit_id
);
let
labour
=
await
this
.
userlabourDao
.
create
({
user_id
:
user_id
,
labour_id
:
id
});
return
labour
;
// 查询用户
let
labour
=
await
this
.
dao
.
findById
(
id
);
if
(
!
labour
)
{
return
system
.
getResult
(
null
,
"人才不存在"
);
}
let
userLabour
=
{
user_id
:
user_id
,
labour_id
:
id
,
recruit_id
:
recruit_id
,
labour_user_id
:
labour
.
user_id
,
ecid
:
0
,
apply_stauts
:
"20"
,
interview_time
:
new
Date
(),
contract_url
:
""
,
};
userLabour
=
await
this
.
userlabourDao
.
create
(
userLabour
);
return
userLabour
;
}
}
async
updatestatus
(
obj
)
{
//更新状态信息
async
updatestatus
(
obj
)
{
//更新状态信息
...
...
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