Commit 996c62df by linboxuan

add diagnosisDao whether_company

parent 6b828e7e
......@@ -22,6 +22,7 @@ class diagnosisDao extends Dao {
"publish_mobile",
"publish_name",
"diagnosis_result",
"whether_company",
"qualifications_pic",
"brand_pic",
"industry_pic"],
......
......@@ -48,6 +48,7 @@ module.exports = (db, DataTypes) => {
diagnosis_result_data: DataTypes.JSON, // 智能诊断结果返回值 人工目前没用到
status_name: DataTypes.STRING,//状态 dcl/gtz/dqrfa/ygb/ywc
main_class: DataTypes.JSON,// 主营类目(一级分类-二级分类)
whether_company: DataTypes.INTEGER,// 是否存在工商信息 20200817 lin 新增
qualifications_pic: DataTypes.JSON,// 基础资质json {}
brand_pic: DataTypes.JSON,// 品牌资质json {}
industry_pic: DataTypes.JSON,// 行业资质json {}
......
......@@ -35,6 +35,7 @@ class DiagnosisService extends ServiceBase {
diagnosis_result: "rgshz", // 创建订单时 人工审核中 前台用
status: "dcl", // 创建订单时 待处理 后台用
main_class: actionBody.mainClass, // 运营后台-诊断详情-主营类目
whether_company: actionBody.whetherCompany ? 1 : 0,
qualifications_pic: actionBody.qualificationsPic,
brand_pic: actionBody.brandPic,
industry_pic: actionBody.industryPic
......@@ -134,6 +135,7 @@ class DiagnosisService extends ServiceBase {
async enterpriseInfo (pobj) {
let diagnosisResult = await this.dao.findOneOrderByCreateAt(pobj.userInfo.channel_userid)
if (diagnosisResult) {
// 2020 0817 lin 新增注释 这里做判断的目的 因为diagnosis_result字段可能还包含rgshz(人工审核中)。所以返回前端要做下处理
diagnosisResult.auth_result_name = "未认证"
if (diagnosisResult.diagnosis_result == "tg") {
diagnosisResult.auth_result_name = "已认证"
......
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