|
@@ -20,24 +20,12 @@
|
|
|
<result column="pc_web_url" property="pcWebUrl" />
|
|
|
<result column="oa_manager_dingid" property="oaManagerDingid" />
|
|
|
<result column="sync_contact" property="syncContact" />
|
|
|
+ <result column="contact_need_translate" property="contactNeedTranslate" />
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 通用查询结果列 -->
|
|
|
<sql id="Base_Column_List">
|
|
|
- corpid, corp_name, auth_user_id, indate, company_id, access_token, expire_time, agent_id, inner_appkey, inner_appsecret, inner_token, inner_expire_time, web_url, pc_web_url, oa_manager_dingid, sync_contact
|
|
|
+ corpid, corp_name, auth_user_id, indate, company_id, access_token, expire_time, agent_id, inner_appkey, inner_appsecret, inner_token, inner_expire_time, web_url, pc_web_url, oa_manager_dingid, sync_contact, contact_need_translate
|
|
|
</sql>
|
|
|
|
|
|
- <select id="getDingdingCompanyList" resultType="com.management.platform.entity.CompanyDingding">
|
|
|
- select *
|
|
|
- from company_dingding
|
|
|
- left join company
|
|
|
- ON company_dingding.company_id = company.id
|
|
|
- where company.expiration_date >= now()
|
|
|
- <if test="companyIds.size()>0">
|
|
|
- and company.id in
|
|
|
- <foreach collection="companyIds" item="item" separator="," open="(" close=")">
|
|
|
- #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- </select>
|
|
|
</mapper>
|