guhongwei 3 rokov pred
rodič
commit
3c9602dd64

+ 4 - 2
app/controller/user/config/.expert.js

@@ -26,6 +26,7 @@ module.exports = {
       "undertakingproject",
       "scienceaward",
       "social",
+      "personal_id",
       "status",
       "openid",
       "isdel",
@@ -65,6 +66,7 @@ module.exports = {
       "undertakingproject",
       "scienceaward",
       "social",
+      "personal_id",
       "status",
       "openid",
       "isdel",
@@ -74,7 +76,7 @@ module.exports = {
   },
   show: {
     parameters: {
-      params: ["!user_id"],
+      params: ["!id"],
     },
     service: "fetch",
   },
@@ -87,7 +89,7 @@ module.exports = {
         role: "role",
         juris: "juris",
         status: "status",
-        profession:"profession",
+        profession: "profession",
         company: "company",
         "create_time@start": "create_time@start",
         "create_time@end": "create_time@end",

+ 1 - 1
app/model/user/expert.js

@@ -33,7 +33,7 @@ const expert = {
   undertakingproject: { type: String, required: false, maxLength: 500 }, // 承担项目
   scienceaward: { type: String, required: false, maxLength: 500 }, // 科技奖励
   social: { type: String, required: false, maxLength: 500 }, // 社会任职
-
+  personal_id: { type: String, required: false, maxLength: 500 }, // 升级专家个人用户关联id
   status: { type: String, required: false, default: "0", maxLength: 500 }, // 审核状态,0-注册,1-通过,2-拒绝
   openid: { type: String, required: false }, // 微信openid
   isdel: { type: String, required: false, default: "0" }, // 0=>未删除;1=>已删除