Browse Source
refactor(user): 移除蒸馏词扩展功能并优化统计逻辑
refactor(user): 移除蒸馏词扩展功能并优化统计逻辑
- 删除 DistillationExpandWord 模型及相关 DAO 类 - 移除 DataBoardService 中对扩展词的依赖 - 修改统计逻辑,使用 questions_count 替代 expand_count - 更新排序字段为 questions_count 并调整相关查询 - 在 DistillationWordService 中移除扩展词操作逻辑 - 将扩展词插入替换为问题插入操作 - 删除批量删除中的扩展词表更新逻辑master
5 changed files with 5 additions and 67 deletions
-
17app/dao/user/DistillationExpandWordDao.php
-
33app/model/user/DistillationExpandWord.php
-
5app/model/user/DistillationWord.php
-
11app/service/user/DataBoardService.php
-
6app/service/user/DistillationWordService.php
@ -1,17 +0,0 @@ |
|||
<?php |
|||
|
|||
namespace app\dao\user; |
|||
|
|||
use app\model\user\DistillationExpandWord; |
|||
use plugin\piadmin\app\base\UserBaseDao; |
|||
|
|||
class DistillationExpandWordDao extends UserBaseDao |
|||
{ |
|||
|
|||
protected function setModel(): string |
|||
{ |
|||
return DistillationExpandWord::class; |
|||
} |
|||
|
|||
|
|||
} |
|||
@ -1,33 +0,0 @@ |
|||
<?php |
|||
|
|||
namespace app\model\user; |
|||
|
|||
use plugin\piadmin\app\base\BaseModel; |
|||
|
|||
/** |
|||
* 蒸馏词关联扩展词模型 |
|||
*/ |
|||
class DistillationExpandWord extends BaseModel |
|||
{ |
|||
/** |
|||
* The table associated with the model. |
|||
* |
|||
* @var string |
|||
*/ |
|||
protected $table = 'geo_distillation_expand_word'; |
|||
|
|||
/** |
|||
* The primary key associated with the table. |
|||
* |
|||
* @var string |
|||
*/ |
|||
protected $primaryKey = 'id'; |
|||
|
|||
/** |
|||
* Indicates if the model should be timestamped. |
|||
* |
|||
* @var bool |
|||
*/ |
|||
public $timestamps = true; |
|||
|
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue