Commit 9702e09c by 高宇强

gyq

parent bc382b69
......@@ -648,21 +648,21 @@ class LaoActionApi extends APIBase {
}
data.pay_unit = null;//少一个薪资单价
var temp = "" + cells[5];
if (temp && temp != "—" && temp != "面议"){
if (temp && temp != "—" && temp != "面议" && temp != "undefined"){
data.basic_salary = Number(temp) * 100;
}
else{
data.basic_salary = null;
}
temp = "" + cells[6];
if (temp && temp != "—" && temp != "面议"){
if (temp && temp != "—" && temp != "面议" && temp != "undefined"){
data.compre_salary = Number(temp) * 100;
}
else{
data.compre_salary = null;
}
temp = "" + cells[7];
if (temp && temp != "—"){
if (temp && temp != "—" && temp != "undefined"){
data.work_duration = Number(temp);
}
else{
......@@ -688,7 +688,7 @@ class LaoActionApi extends APIBase {
data.rfee_type = null;
}
temp = "" + cells[9];
if (temp && temp != "—"){
if (temp && temp != "—" && temp != "undefined"){
var arr = temp.split("/");
if (arr.length ==2){
data.rfee_duration = arr[0];
......@@ -705,7 +705,7 @@ class LaoActionApi extends APIBase {
}
temp = "" + cells[10];
if (temp){
if (temp && temp != "undefined"){
data.age_range = temp;
}
else{
......@@ -713,7 +713,7 @@ class LaoActionApi extends APIBase {
}
temp = "" + cells[11];
if (temp){
if (temp && temp != "undefined"){
data.work_address = temp;
}
else{
......@@ -722,7 +722,7 @@ class LaoActionApi extends APIBase {
data.publish_date = (new Date()).Format("yyyy-MM-dd");
temp = "" + cells[12];
if (temp){
if (temp && temp != "undefined"){
if (temp == "长期"){
data.end_date = "1970-01-01";
}
......@@ -733,19 +733,25 @@ class LaoActionApi extends APIBase {
else{
data.end_date = null;
}
data.pic_path = null;
temp = "" + cells[14];
if (temp){
temp = "" + cells[14];
if (temp && temp != "undefined"){
data.pic_path = temp;
}
else{
data.pic_path = null;
}
console.log("###############" + data.pic_path + "#############");
temp = "" + cells[15];
if (temp && temp != "undefined"){
data.recrui_require = temp;
}
else{
data.recrui_require = null;
}
temp = "" + cells[15];
if (temp){
temp = "" + cells[16];
if (temp && temp != "undefined"){
data.phone_no = temp;
}
......@@ -755,7 +761,7 @@ class LaoActionApi extends APIBase {
}
temp = "" + cells[14];
if (temp){
if (temp && temp != "undefined"){
var parm = {
user_name: temp,
find_type: 0,
......@@ -868,10 +874,10 @@ class LaoActionApi extends APIBase {
}
module.exports = LaoActionApi;
// var tesk = new LaoActionApi();
var tesk = new LaoActionApi();
// var parm = {
// userId:4,
// ossUrl:"https://gsb-zc.oss-cn-beijing.aliyuncs.com/1111.xlsx"
// ossUrl:"https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_wxapplet_1576396810278.xlsx"
// //id:2,
// //cur_status:"已过期"
// //memo_text:"sssssssss"
......
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