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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
7 deletions
+49
-7
laowubao/app/base/api/impl/operator/laoActionApi.js
+37
-7
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
...
...
@@ -152,7 +152,7 @@ class LaoActionApi extends APIBase {
let
key
=
AES_conf
.
key
;
let
iv
=
AES_conf
.
iv
;
// let padding = AES_conf.padding;
var
cipherChunks
=
[];
var
cipher
=
crypto
.
createCipheriv
(
'aes-128-cbc'
,
key
,
iv
);
cipher
.
setAutoPadding
(
true
);
...
...
@@ -169,7 +169,7 @@ class LaoActionApi extends APIBase {
let
key
=
AES_conf
.
key
;
let
iv
=
AES_conf
.
iv
;
// let padding = AES_conf.padding;
var
cipherChunks
=
[];
var
decipher
=
crypto
.
createDecipheriv
(
'aes-128-cbc'
,
key
,
iv
);
decipher
.
setAutoPadding
(
true
);
...
...
@@ -177,7 +177,7 @@ class LaoActionApi extends APIBase {
cipherChunks
.
push
(
decipher
.
final
(
'utf8'
));
return
cipherChunks
.
join
(
''
);
}
async
test
(
pobj
,
query
)
{
return
system
.
getResultSuccess
({
hello
:
"ok"
...
...
@@ -606,7 +606,7 @@ class LaoActionApi extends APIBase {
}
// 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
}
`
;
}
}
...
...
@@ -681,13 +681,44 @@ class LaoActionApi extends APIBase {
if
(
userlabour
.
apply_stauts
!=
30
)
{
return
system
.
getResult
(
null
,
"已发起签约"
);
}
userlabour
.
apply_stauts
=
50
;
var
userInfo
=
await
this
.
usersSve
.
findById
(
userlabour
.
user_id
);
if
(
userInfo
.
information
){
userlabour
.
apply_stauts
=
45
;
}
userlabour
.
ecid
=
ecid
;
await
userlabour
.
save
();
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
)
{
//获取招聘信息
if
(
!
obj
)
{
return
system
.
getResult
(
null
,
"参数不能为空"
);
...
...
@@ -1534,4 +1565,4 @@ tesk.taxinfoListByIdnoAndYear(parm).then(function (result) {
console
.
log
(
result
.
data
.
rows
[
0
]);
}).
catch
(
function
(
e
)
{
console
.
log
(
e
);
});
\ No newline at end of file
});
laowubao/app/base/db/models/operator/userlabour.js
View file @
133702e6
...
...
@@ -12,6 +12,17 @@ module.exports = (db, DataTypes) => {
interview_time
:
DataTypes
.
DATE
,
sign_at
:
DataTypes
.
DATE
,
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
,
//假的删除
underscored
:
true
,
...
...
laowubao/app/base/db/models/operator/users.js
View file @
133702e6
...
...
@@ -22,6 +22,7 @@ module.exports = (db, DataTypes) => {
com_path
:
DataTypes
.
STRING
(
255
),
card_path
:
DataTypes
.
STRING
(
2000
),
cert_path
:
DataTypes
.
STRING
(
2000
),
information
:
DataTypes
.
STRING
,
reg_time
:
DataTypes
.
DATE
,
mtchId
:
DataTypes
.
STRING
,
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