Commit 133702e6 by zhaoxiqing

gsb

parent 3630c543
...@@ -606,7 +606,7 @@ class LaoActionApi extends APIBase { ...@@ -606,7 +606,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 in [45,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}`;
} }
} }
...@@ -681,13 +681,44 @@ class LaoActionApi extends APIBase { ...@@ -681,13 +681,44 @@ class LaoActionApi extends APIBase {
if (userlabour.apply_stauts != 30) { if (userlabour.apply_stauts != 30) {
return system.getResult(null, "已发起签约"); return system.getResult(null, "已发起签约");
} }
userlabour.apply_stauts = 50; userlabour.apply_stauts = 50;
var userInfo = await this.usersSve.findById(userlabour.user_id);
if(userInfo.information){
userlabour.apply_stauts = 45;
}
userlabour.ecid = ecid; userlabour.ecid = ecid;
await userlabour.save(); await userlabour.save();
return system.getResultSuccess(); 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) { //获取招聘信息 async FindRecruitInfo(obj) { //获取招聘信息
if (!obj) { if (!obj) {
return system.getResult(null, "参数不能为空"); return system.getResult(null, "参数不能为空");
......
...@@ -12,6 +12,17 @@ module.exports = (db, DataTypes) => { ...@@ -12,6 +12,17 @@ module.exports = (db, DataTypes) => {
interview_time: DataTypes.DATE, interview_time: DataTypes.DATE,
sign_at: DataTypes.DATE, sign_at: DataTypes.DATE,
contract_url: DataTypes.STRING(300), 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,//假的删除 paranoid: true,//假的删除
underscored: true, underscored: true,
......
...@@ -22,6 +22,7 @@ module.exports = (db, DataTypes) => { ...@@ -22,6 +22,7 @@ module.exports = (db, DataTypes) => {
com_path: DataTypes.STRING(255), com_path: DataTypes.STRING(255),
card_path: DataTypes.STRING(2000), card_path: DataTypes.STRING(2000),
cert_path: DataTypes.STRING(2000), cert_path: DataTypes.STRING(2000),
information : DataTypes.STRING,
reg_time: DataTypes.DATE, reg_time: DataTypes.DATE,
mtchId: DataTypes.STRING, mtchId: DataTypes.STRING,
cattes_time: DataTypes.DATE, cattes_time: DataTypes.DATE,
......
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