|
|
@@ -67,6 +67,66 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
+ <select id="selectQwCompanyMiniProgramList" resultType="com.fs.qw.domain.QwCompany">
|
|
|
+ SELECT
|
|
|
+ qc.id,
|
|
|
+ qc.corp_id,
|
|
|
+ qc.corp_name,
|
|
|
+ qc.open_secret,
|
|
|
+ qc.open_corp_id,
|
|
|
+ qc.server_agent_id,
|
|
|
+ qc.server_book_corp_id,
|
|
|
+ qc.server_book_secret,
|
|
|
+ qc.token,
|
|
|
+ qc.encoding_aes_key,
|
|
|
+ qc.provider_secret,
|
|
|
+ qc.realm_name_url,
|
|
|
+ qc.notify_url,
|
|
|
+ qc.chat_toolbar,
|
|
|
+ qc.chat_toolbar_oauth,
|
|
|
+ qc.company_ids,
|
|
|
+ qc.STATUS,
|
|
|
+ qc.create_time,
|
|
|
+ qc.update_time,
|
|
|
+ qc.create_by,
|
|
|
+ qc.is_buy,
|
|
|
+ qc.mini_app_id,
|
|
|
+ qc.company_server_num,
|
|
|
+ qc.share_app_id,
|
|
|
+ qc.share_agent_id,
|
|
|
+ qc.share_schema,
|
|
|
+ sc.`name` AS mini_name
|
|
|
+ FROM
|
|
|
+ qw_company qc
|
|
|
+ LEFT JOIN
|
|
|
+ fs_course_play_source_config sc ON qc.mini_app_id = sc.appid
|
|
|
+ <where>
|
|
|
+ <if test="corpId != null and corpId != ''"> and qc.corp_id = #{corpId}</if>
|
|
|
+ <if test="corpName != null and corpName != ''"> and qc.corp_name like concat('%', #{corpName}, '%')</if>
|
|
|
+ <if test="openSecret != null and openSecret != ''"> and qc.open_secret = #{openSecret}</if>
|
|
|
+ <if test="openCorpId != null and openCorpId != ''"> and qc.open_corp_id = #{openCorpId}</if>
|
|
|
+ <if test="serverAgentId != null and serverAgentId != ''"> and qc.server_agent_id = #{serverAgentId}</if>
|
|
|
+ <if test="serverBookCorpId != null and serverBookCorpId != ''"> and qc.server_book_corp_id = #{serverBookCorpId}</if>
|
|
|
+ <if test="serverBookSecret != null and serverBookSecret != ''"> and qc.server_book_secret = #{serverBookSecret}</if>
|
|
|
+ <if test="token != null and token != ''"> and qc.token = #{token}</if>
|
|
|
+ <if test="encodingAesKey != null and encodingAesKey != ''"> and qc.encoding_aes_key = #{encodingAesKey}</if>
|
|
|
+ <if test="providerSecret != null and providerSecret != ''"> and qc.provider_secret = #{providerSecret}</if>
|
|
|
+ <if test="realmNameUrl != null and realmNameUrl != ''"> and qc.realm_name_url = #{realmNameUrl}</if>
|
|
|
+ <if test="notifyUrl != null and notifyUrl != ''"> and qc.notify_url = #{notifyUrl}</if>
|
|
|
+ <if test="chatToolbar != null and chatToolbar != ''"> and qc.chat_toolbar = #{chatToolbar}</if>
|
|
|
+ <if test="chatToolbarOauth != null and chatToolbarOauth != ''"> and qc.chat_toolbar_oauth = #{chatToolbarOauth}</if>
|
|
|
+ <if test="companyIds != null and companyIds != ''"> and FIND_IN_SET(#{companyIds}, qc.company_ids) > 0</if>
|
|
|
+ <if test="status != null "> and qc.status = #{status}</if>
|
|
|
+ <if test="isBuy != null "> and qc.isBuy = #{isBuy}</if>
|
|
|
+ <if test="createDeptId != null "> and qc.create_dept_id = #{createDeptId}</if>
|
|
|
+ <if test="createUserId != null "> and qc.create_user_id = #{createUserId}</if>
|
|
|
+ <if test="shareAppId != null and shareAppId != ''"> and qc.share_app_id = #{shareAppId}</if>
|
|
|
+ <if test="shareAgentId != null and shareAgentId != ''"> and qc.share_agent_id = #{shareAgentId}</if>
|
|
|
+ <if test="shareSchema != null and shareSchema != ''"> and qc.share_schema = #{shareSchema}</if>
|
|
|
+ <if test="miniName != null and miniName != ''">and sc.`name` like concat('%', #{miniName}, '%') </if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="selectQwCompanyById" parameterType="Long" resultMap="QwCompanyResult">
|
|
|
<include refid="selectQwCompanyVo"/>
|
|
|
where id = #{id}
|