Commit 4d5eb10e by 高宇强

gyq

parent 6b193860
...@@ -309,6 +309,7 @@ class LaoActionApi extends APIBase { ...@@ -309,6 +309,7 @@ class LaoActionApi extends APIBase {
parm.cur_status = "审核未通过"; parm.cur_status = "审核未通过";
} }
parm.publish_date = (new Date()).Format("yyyy-MM-dd"); parm.publish_date = (new Date()).Format("yyyy-MM-dd");
parm.pic_path = obj.pic_path;
var result = await this.labourSve.SaveLabourInfo(parm); var result = await this.labourSve.SaveLabourInfo(parm);
return system.getResult(result.data.dataValues); return system.getResult(result.data.dataValues);
...@@ -681,7 +682,7 @@ class LaoActionApi extends APIBase { ...@@ -681,7 +682,7 @@ class LaoActionApi extends APIBase {
} }
} }
async ParamRecruitExcel(obj) { async ParamRecruitExcel(obj) {//批量导入招聘信息
if (!obj.userId || !obj.ossUrl) { if (!obj.userId || !obj.ossUrl) {
return system.getResult(null, "参数不能为空"); return system.getResult(null, "参数不能为空");
} }
......
...@@ -16,6 +16,7 @@ module.exports = (db, DataTypes) => { ...@@ -16,6 +16,7 @@ module.exports = (db, DataTypes) => {
cur_type: DataTypes.INTEGER, cur_type: DataTypes.INTEGER,
cur_status: DataTypes.STRING(16), cur_status: DataTypes.STRING(16),
publish_date: DataTypes.DATE, publish_date: DataTypes.DATE,
pic_path: DataTypes.STRING(2000),
},{ },{
paranoid: true,//假的删除 paranoid: true,//假的删除
underscored: true, underscored: true,
......
...@@ -28,6 +28,7 @@ class LabourService extends ServiceBase { ...@@ -28,6 +28,7 @@ class LabourService extends ServiceBase {
labour.phone_no = params.phone_no; labour.phone_no = params.phone_no;
labour.user_id = params.user_id; labour.user_id = params.user_id;
labour.publish_date = params.publish_date; labour.publish_date = params.publish_date;
labour.pic_path = params.pic_path;
labour = await labour.save(); labour = await labour.save();
labour = await this.dao.findById(id); labour = await this.dao.findById(id);
} else { } else {
......
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