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
893cc6eb
Commit
893cc6eb
authored
Jan 17, 2020
by
赵庆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
f5d68718
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
22 deletions
+25
-22
laowubao/app/base/api/impl/operator/laoActionApi.js
+25
-22
No files found.
laowubao/app/base/api/impl/operator/laoActionApi.js
View file @
893cc6eb
...
@@ -243,6 +243,9 @@ class LaoActionApi extends APIBase {
...
@@ -243,6 +243,9 @@ class LaoActionApi extends APIBase {
if
(
vcode
!=
code
)
{
if
(
vcode
!=
code
)
{
return
system
.
getResult
(
null
,
"验证码错误,请重新输入"
);
return
system
.
getResult
(
null
,
"验证码错误,请重新输入"
);
}
}
var
parm
=
{
var
parm
=
{
phone_no
:
phone_no
phone_no
:
phone_no
}
}
...
@@ -507,7 +510,7 @@ class LaoActionApi extends APIBase {
...
@@ -507,7 +510,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
==
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
}
`
;
}
}
}
}
...
@@ -840,12 +843,12 @@ class LaoActionApi extends APIBase {
...
@@ -840,12 +843,12 @@ class LaoActionApi extends APIBase {
return
await
this
.
transactioninfoSve
.
findListByIdno
(
parm
);
return
await
this
.
transactioninfoSve
.
findListByIdno
(
parm
);
}
}
async
taxinfoListByIdnoAndYear
(
obj
)
{
async
taxinfoListByIdnoAndYear
(
obj
)
{
var
parm
=
obj
;
var
parm
=
obj
;
if
(
obj
.
id_no
)
{
if
(
obj
.
id_no
)
{
parm
.
id_no
=
obj
.
id_no
;
parm
.
id_no
=
obj
.
id_no
;
}
}
if
(
obj
.
tax_year
)
{
if
(
obj
.
tax_year
)
{
parm
.
tax_year
=
obj
.
tax_year
parm
.
tax_year
=
obj
.
tax_year
}
}
...
@@ -1021,9 +1024,8 @@ class LaoActionApi extends APIBase {
...
@@ -1021,9 +1024,8 @@ class LaoActionApi extends APIBase {
await
this
.
restClient
.
execDownload
(
"'"
+
ossurl
+
"'"
,
filePath
);
await
this
.
restClient
.
execDownload
(
"'"
+
ossurl
+
"'"
,
filePath
);
var
sheets
=
xlsx
.
parse
(
filePath
);
var
sheets
=
xlsx
.
parse
(
filePath
);
var
rows
=
sheets
[
0
].
data
;
var
rows
=
sheets
[
0
].
data
;
for
(
var
i
=
5
;
i
<
rows
.
length
;
i
++
)
{
for
(
var
i
=
2
;
i
<
rows
.
length
;
i
++
)
{
var
cells
=
rows
[
i
];
var
cells
=
rows
[
i
];
if
(
cells
[
0
])
{
var
data
=
{};
var
data
=
{};
data
.
recruit_name
=
""
+
cells
[
1
];
data
.
recruit_name
=
""
+
cells
[
1
];
data
.
recruit_type
=
""
+
cells
[
2
];
data
.
recruit_type
=
""
+
cells
[
2
];
...
@@ -1103,29 +1105,30 @@ class LaoActionApi extends APIBase {
...
@@ -1103,29 +1105,30 @@ class LaoActionApi extends APIBase {
temp
=
""
+
cells
[
12
];
temp
=
""
+
cells
[
12
];
if
(
temp
&&
temp
!=
"undefined"
)
{
if
(
temp
&&
temp
!=
"undefined"
)
{
if
(
temp
==
"长期
"
)
{
if
(
temp
==
"长期招聘
"
)
{
data
.
end_date
=
"1970-01-01"
;
data
.
end_date
=
"1970-01-01"
;
}
else
{
}
else
{
data
.
end_date
=
temp
;
data
.
end_date
=
new
Date
(
1900
,
0
,
temp
-
1
);
;
}
}
}
else
{
}
else
{
data
.
end_date
=
null
;
data
.
end_date
=
null
;
}
}
temp
=
""
+
cells
[
14
];
if
(
temp
&&
temp
!=
"undefined"
)
{
data
.
pic_path
=
temp
;
}
else
{
data
.
pic_path
=
null
;
}
temp
=
""
+
cells
[
15
];
// temp = "" + cells[14];
// if (temp && temp != "undefined") {
// data.pic_path = temp;
// } else {
// data.pic_path = null;
// }
temp
=
""
+
cells
[
14
];
if
(
temp
&&
temp
!=
"undefined"
)
{
if
(
temp
&&
temp
!=
"undefined"
)
{
data
.
recrui_require
=
temp
;
data
.
recrui_require
=
temp
;
}
else
{
}
else
{
data
.
recrui_require
=
null
;
data
.
recrui_require
=
null
;
}
}
temp
=
""
+
cells
[
16
];
temp
=
""
+
cells
[
15
];
if
(
temp
&&
temp
!=
"undefined"
)
{
if
(
temp
&&
temp
!=
"undefined"
)
{
data
.
phone_no
=
temp
;
data
.
phone_no
=
temp
;
...
@@ -1134,7 +1137,7 @@ class LaoActionApi extends APIBase {
...
@@ -1134,7 +1137,7 @@ class LaoActionApi extends APIBase {
//data.user_id = null;
//data.user_id = null;
}
}
temp
=
""
+
cells
[
14
];
temp
=
""
+
cells
[
13
];
if
(
temp
&&
temp
!=
"undefined"
)
{
if
(
temp
&&
temp
!=
"undefined"
)
{
var
parm
=
{
var
parm
=
{
user_name
:
temp
,
user_name
:
temp
,
...
@@ -1161,7 +1164,6 @@ class LaoActionApi extends APIBase {
...
@@ -1161,7 +1164,6 @@ class LaoActionApi extends APIBase {
data
.
cur_status
=
"展示中"
;
data
.
cur_status
=
"展示中"
;
dataList
.
push
(
data
)
dataList
.
push
(
data
)
}
}
}
obj
.
dataList
=
dataList
;
obj
.
dataList
=
dataList
;
var
re
=
await
this
.
recruitSve
.
ParamRecruitExcel
(
obj
)
var
re
=
await
this
.
recruitSve
.
ParamRecruitExcel
(
obj
)
...
@@ -1397,8 +1399,8 @@ module.exports = LaoActionApi;
...
@@ -1397,8 +1399,8 @@ module.exports = LaoActionApi;
var
tesk
=
new
LaoActionApi
();
var
tesk
=
new
LaoActionApi
();
var
parm
=
{
var
parm
=
{
id_no
:
"140321199307270014"
,
id_no
:
"140321199307270014"
,
tax_year
:
"2019"
tax_year
:
"2019"
//apply_stauts:"邀请面试"
//apply_stauts:"邀请面试"
//ossUrl:"https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_wxapplet_1576396810278.xlsx"
//ossUrl:"https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_wxapplet_1576396810278.xlsx"
//labour_user_id:2,
//labour_user_id:2,
...
@@ -1407,10 +1409,10 @@ var parm = {
...
@@ -1407,10 +1409,10 @@ var parm = {
//memo_text:"sssssssss"
//memo_text:"sssssssss"
//user_name:"高",
//user_name:"高",
//com_name:"京东"
//com_name:"京东"
};
};
tesk
.
taxinfoListByIdnoAndYear
(
parm
).
then
(
function
(
result
)
{
tesk
.
taxinfoListByIdnoAndYear
(
parm
).
then
(
function
(
result
)
{
console
.
log
(
result
);
console
.
log
(
result
);
console
.
log
(
result
.
data
.
rows
[
0
]);
console
.
log
(
result
.
data
.
rows
[
0
]);
}).
catch
(
function
(
e
)
{
}).
catch
(
function
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
);
});
});
\ No newline at end of file
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