Commit 893cc6eb by 赵庆

gsb

parent f5d68718
......@@ -243,6 +243,9 @@ class LaoActionApi extends APIBase {
if (vcode != code) {
return system.getResult(null, "验证码错误,请重新输入");
}
var parm = {
phone_no: phone_no
}
......@@ -507,7 +510,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 == 50) {
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 {
return await this.transactioninfoSve.findListByIdno(parm);
}
async taxinfoListByIdnoAndYear(obj){
async taxinfoListByIdnoAndYear(obj) {
var parm = obj;
if (obj.id_no) {
parm.id_no = obj.id_no;
}
if (obj.tax_year){
if (obj.tax_year) {
parm.tax_year = obj.tax_year
}
......@@ -1021,9 +1024,8 @@ class LaoActionApi extends APIBase {
await this.restClient.execDownload("'" + ossurl + "'", filePath);
var sheets = xlsx.parse(filePath);
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];
if (cells[0]) {
var data = {};
data.recruit_name = "" + cells[1];
data.recruit_type = "" + cells[2];
......@@ -1103,29 +1105,30 @@ class LaoActionApi extends APIBase {
temp = "" + cells[12];
if (temp && temp != "undefined") {
if (temp == "长期") {
if (temp == "长期招聘") {
data.end_date = "1970-01-01";
} else {
data.end_date = temp;
data.end_date = new Date(1900, 0, temp - 1);;
}
} else {
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") {
data.recrui_require = temp;
} else {
data.recrui_require = null;
}
temp = "" + cells[16];
temp = "" + cells[15];
if (temp && temp != "undefined") {
data.phone_no = temp;
......@@ -1134,7 +1137,7 @@ class LaoActionApi extends APIBase {
//data.user_id = null;
}
temp = "" + cells[14];
temp = "" + cells[13];
if (temp && temp != "undefined") {
var parm = {
user_name: temp,
......@@ -1161,7 +1164,6 @@ class LaoActionApi extends APIBase {
data.cur_status = "展示中";
dataList.push(data)
}
}
obj.dataList = dataList;
var re = await this.recruitSve.ParamRecruitExcel(obj)
......@@ -1397,8 +1399,8 @@ module.exports = LaoActionApi;
var tesk = new LaoActionApi();
var parm = {
id_no:"140321199307270014",
tax_year:"2019"
id_no: "140321199307270014",
tax_year: "2019"
//apply_stauts:"邀请面试"
//ossUrl:"https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_wxapplet_1576396810278.xlsx"
//labour_user_id:2,
......@@ -1407,10 +1409,10 @@ var parm = {
//memo_text:"sssssssss"
//user_name:"高",
//com_name:"京东"
};
tesk.taxinfoListByIdnoAndYear(parm).then(function(result){
};
tesk.taxinfoListByIdnoAndYear(parm).then(function (result) {
console.log(result);
console.log(result.data.rows[0]);
}).catch(function(e){
}).catch(function (e) {
console.log(e);
});
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment