<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="com.panzhihua.service_community.dao.ComActSocialOrgDao">
|
|
<resultMap type="com.panzhihua.service_community.entity.ComActSocialOrg" id="ComActSocialOrgBaseResultMap">
|
<result property="id" column="id"/>
|
<result property="name" column="name"/>
|
<result property="businessNumber" column="business_number"/>
|
<result property="buildDate" column="build_date"/>
|
<result property="agencyCode" column="agency_code"/>
|
<result property="weixinOfficialAccounts" column="weixin_official_accounts"/>
|
<result property="companyType" column="company_type"/>
|
<result property="registFee" column="regist_fee"/>
|
<result property="assetsTotal" column="assets_total"/>
|
<result property="assetsNet" column="assets_net"/>
|
<result property="salesFee" column="sales_fee"/>
|
<result property="taxesLastYear" column="taxes_last_year"/>
|
<result property="staffCount" column="staff_count"/>
|
<result property="maillingAddr" column="mailling_addr"/>
|
<result property="postCode" column="post_code"/>
|
<result property="officialUrl" column="official_url"/>
|
<result property="corporationName" column="corporation_name"/>
|
<result property="corporationGen" column="corporation_gen"/>
|
<result property="corporationOfficePhone" column="corporation_office_phone"/>
|
<result property="corporationPosition" column="corporation_position"/>
|
<result property="corporationPhone" column="corporation_phone"/>
|
<result property="corporationEmail" column="corporation_email"/>
|
<result property="contactName" column="contact_name"/>
|
<result property="contactGen" column="contact_gen"/>
|
<result property="contactOfficePhone" column="contact_office_phone"/>
|
<result property="contactPosition" column="contact_position"/>
|
<result property="contactPhone" column="contact_phone"/>
|
<result property="contactEmail" column="contact_email"/>
|
<result property="businessScope" column="business_scope"/>
|
<result property="businessImpact" column="business_impact"/>
|
<result property="attachUrl" column="attach_url"/>
|
<result property="createBy" column="create_by"/>
|
<result property="createAt" column="create_at"/>
|
<result property="updateBy" column="update_by"/>
|
<result property="updateAt" column="update_at"/>
|
<result property="communityId" column="community_id"/>
|
<result property="userId" column="user_id"/>
|
</resultMap>
|
|
<select id="pageList" resultType="com.panzhihua.common.model.vos.community.ComActSocialOrgVO">
|
select t.*,t1.account,t1.password,t2.role_id as roleId from com_act_social_org t
|
left join sys_user t1 on t.user_id = t1.user_id
|
left join sys_user_role t2 on t.user_id = t2.user_id
|
<where>
|
1=1
|
<if test="commonPage.type!=null">
|
and t.company_type =#{commonPage.type}
|
</if>
|
<if test="commonPage.name!=null and commonPage.name!=''">
|
and t.name like concat(#{commonPage.name},'%')
|
</if>
|
<if test="commonPage.serialNo!=null and commonPage.serialNo!=''">
|
and t.agency_code like concat(#{commonPage.serialNo},'%')
|
</if>
|
<if test="commonPage.username!=null and commonPage.username!=''">
|
and t.corporation_name like concat(#{commonPage.username},'%')
|
</if>
|
<if test="commonPage.systemName!=null and commonPage.systemName!=''">
|
and t.contact_name like concat(#{commonPage.systemName},'%')
|
</if>
|
<if test="commonPage.paramId!=null">
|
and t.community_id =#{commonPage.paramId}
|
</if>
|
<if test="commonPage.phone!=null and commonPage.phone!=''">
|
and t.contact_phone like concat(#{commonPage.phone},'%')
|
</if>
|
</where>
|
order by t.create_at desc
|
</select>
|
|
</mapper>
|