|
|
@@ -33,10 +33,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="shareAppId" column="share_app_id" />
|
|
|
<result property="shareAgentId" column="share_agent_id" />
|
|
|
<result property="shareSchema" column="share_schema" />
|
|
|
+ <result property="allowOfficial" column="allow_official" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectQwCompanyVo">
|
|
|
- select id, corp_id, corp_name, open_secret, open_corp_id, server_agent_id, server_book_corp_id, server_book_secret, token, encoding_aes_key, provider_secret, realm_name_url, notify_url, chat_toolbar, chat_toolbar_oauth, company_ids, status, create_time, update_time, create_by,is_buy,mini_app_id,company_server_num,share_app_id,share_agent_id,share_schema from qw_company
|
|
|
+ select id, corp_id, corp_name, open_secret, open_corp_id, server_agent_id, server_book_corp_id, server_book_secret, token, encoding_aes_key, provider_secret, realm_name_url, notify_url, chat_toolbar, chat_toolbar_oauth, company_ids, status, create_time, update_time, create_by,is_buy,mini_app_id,company_server_num,share_app_id,share_agent_id,share_schema,allow_official from qw_company
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectQwCompanyList" parameterType="QwCompany" resultMap="QwCompanyResult">
|
|
|
@@ -64,6 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="shareAppId != null and shareAppId != ''"> and share_app_id = #{shareAppId}</if>
|
|
|
<if test="shareAgentId != null and shareAgentId != ''"> and share_agent_id = #{shareAgentId}</if>
|
|
|
<if test="shareSchema != null and shareSchema != ''"> and share_schema = #{shareSchema}</if>
|
|
|
+ <if test="allowOfficial != null"> and allow_official = #{allowOfficial}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -95,6 +97,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
qc.share_app_id,
|
|
|
qc.share_agent_id,
|
|
|
qc.share_schema,
|
|
|
+ qc.allow_official,
|
|
|
sc.`name` AS mini_name,
|
|
|
qc.qw_api_url
|
|
|
FROM
|
|
|
@@ -124,6 +127,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<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="allowOfficial != null"> and qc.allow_official = #{allowOfficial}</if>
|
|
|
<if test="miniName != null and miniName != ''">and sc.`name` like concat('%', #{miniName}, '%') </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
@@ -164,11 +168,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isBuy != null">is_buy,</if>
|
|
|
<if test="miniAppId != null">mini_app_id,</if>
|
|
|
<if test="companyServerNum != null">company_server_num,</if>
|
|
|
- <if test="createUserId != null != null">create_user_id,</if>
|
|
|
+ <if test="createUserId != null">create_user_id,</if>
|
|
|
<if test="createDeptId != null">create_dept_id,</if>
|
|
|
<if test="shareAppId != null">share_app_id,</if>
|
|
|
<if test="shareAgentId != null">share_agent_id,</if>
|
|
|
<if test="shareSchema != null">share_schema,</if>
|
|
|
+ <if test="allowOfficial != null">allow_official,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="corpId != null">#{corpId},</if>
|
|
|
@@ -198,6 +203,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="shareAppId != null">#{shareAppId},</if>
|
|
|
<if test="shareAgentId != null">#{shareAgentId},</if>
|
|
|
<if test="shareSchema != null">#{shareSchema},</if>
|
|
|
+ <if test="allowOfficial != null">#{allowOfficial},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -229,6 +235,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="shareAppId != null">share_app_id = #{shareAppId},</if>
|
|
|
<if test="shareAgentId != null">share_agent_id = #{shareAgentId},</if>
|
|
|
<if test="shareSchema != null">share_schema = #{shareSchema},</if>
|
|
|
+ <if test="allowOfficial != null">allow_official = #{allowOfficial},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|