|
|
@@ -97,5 +97,21 @@ public interface FastGptRoleMapper
|
|
|
|
|
|
List<FastgptEventLogTotalVo> selectFastGptRoleAppKeyList();
|
|
|
|
|
|
-
|
|
|
+ @Select("<script> " +
|
|
|
+ "select fr.*,qc.corp_name as corpName from fastgpt_role fr left join qw_company qc on fr.bind_corp_id=qc.corp_id " +
|
|
|
+ " <where> \n" +
|
|
|
+ " <if test=\"roleName != null and roleName != ''\"> and role_name like concat('%', #{roleName}, '%')</if>\n" +
|
|
|
+ " <if test=\"companyId != null \"> and company_id = #{companyId}</if>\n" +
|
|
|
+ " <if test=\"roleType != null \"> and role_type = #{roleType}</if>\n" +
|
|
|
+ " <if test=\"modeConfigJson != null and modeConfigJson != ''\"> and mode_config_json = #{modeConfigJson}</if>\n" +
|
|
|
+ " <if test=\"mode != null \"> and mode = #{mode}</if>\n" +
|
|
|
+ " <if test=\"kfId != null and kfId != ''\"> and kf_id = #{kfId}</if>\n" +
|
|
|
+ " <if test=\"kfUrl != null and kfUrl != ''\"> and kf_url = #{kfUrl}</if>\n" +
|
|
|
+ " <if test=\"avatar != null and avatar != ''\"> and avatar = #{avatar}</if>\n" +
|
|
|
+ " <if test=\"kfMediaId != null and kfMediaId != ''\"> and kf_media_id = #{kfMediaId}</if>\n" +
|
|
|
+ " <if test=\"reminderWords != null and reminderWords != ''\"> and reminder_words = #{reminderWords}</if>\n" +
|
|
|
+ " <if test=\"bindCorpId != null and bindCorpId != ''\"> and (bind_corp_id = #{bindCorpId} or bind_corp_id is null)</if>\n" +
|
|
|
+ " </where>" +
|
|
|
+ "</script> ")
|
|
|
+ List<FastGptRoleVO> selectFastGptRoleListVONew(FastGptRole fastGptRole);
|
|
|
}
|