guhongwei hace 3 años
padre
commit
595afd45bf
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. 6 6
      app/service/users/personal.js

+ 6 - 6
app/service/users/personal.js

@@ -91,12 +91,12 @@ class PersonalService extends CrudService {
     return token;
   }
 
-  async delete({ id }) {
-    const object = await this.model.findById(id);
-    if (!object) throw new BusinessError(ErrorCode.DATA_NOT_EXIST, '未找到用户的信息');
-    object.isdel = '1';
-    await object.save();
-  }
+  // async delete({ id }) {
+  //   const object = await this.model.findById(id);
+  //   if (!object) throw new BusinessError(ErrorCode.DATA_NOT_EXIST, '未找到用户的信息');
+  //   object.isdel = '1';
+  //   await object.save();
+  // }
   /**
    * 个人升变专家
    * @param {Object} body 升变数据