|
|
|
@ -36,10 +36,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
<result property="administrativeApprovalBureau" column="administrative_approval_bureau" /> |
|
|
|
|
<result property="registrationAuthorityProvince" column="registration_authority_province" /> |
|
|
|
|
<result property="dataSources" column="data_sources" /> |
|
|
|
|
<result property="dataSources" column="data_sources" /> |
|
|
|
|
<result property="representativePhone" column="representative_phone" /> |
|
|
|
|
<result property="organizationPhone" column="organization_phone" /> |
|
|
|
|
</resultMap> |
|
|
|
|
|
|
|
|
|
<sql id="selectUnitMemberVo"> |
|
|
|
|
select id, company_name,data_sources, unit_residence, unified_social_credit_code, date_of_establishment, registration_authority_city, registration_authority_area, registered_capital, legal_representative, head_of_an_unincorporated_organization, unit_type, application_level, legal_authority_name, legal_authority_sex, legal_authority_nationality, legal_authority_political_status, legal_authority_working_department, legal_authority_position, legal_authority_id_number, contact_number, basic_information_of_the_unit, create_by, create_time, update_by, update_time, corporate, unincorporated_organizations,word_url,approval_status,administrative_approval_bureau,registration_authority_province from unit_member |
|
|
|
|
select id, company_name,data_sources, unit_residence, unified_social_credit_code, date_of_establishment, registration_authority_city, registration_authority_area, registered_capital, legal_representative, head_of_an_unincorporated_organization, |
|
|
|
|
unit_type, application_level, legal_authority_name, legal_authority_sex, |
|
|
|
|
legal_authority_nationality, legal_authority_political_status, |
|
|
|
|
legal_authority_working_department, legal_authority_position, |
|
|
|
|
legal_authority_id_number, contact_number, |
|
|
|
|
basic_information_of_the_unit, create_by, |
|
|
|
|
create_time, update_by, update_time, corporate, |
|
|
|
|
unincorporated_organizations,word_url,approval_status, |
|
|
|
|
administrative_approval_bureau,registration_authority_province, |
|
|
|
|
representative_phone,organization_phone |
|
|
|
|
from unit_member |
|
|
|
|
</sql> |
|
|
|
|
|
|
|
|
|
<select id="selectUnitMemberList" parameterType="UnitMember" resultMap="UnitMemberResult"> |
|
|
|
@ -81,7 +94,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
t2.region_name as registrationAuthorityProvinceName, |
|
|
|
|
t3.region_name as registrationAuthorityCityName, |
|
|
|
|
t4.region_name as registrationAuthorityAreaName, |
|
|
|
|
t1.data_sources |
|
|
|
|
t1.data_sources, |
|
|
|
|
t1.representative_phone, |
|
|
|
|
t1.organization_phone |
|
|
|
|
from unit_member t1 |
|
|
|
|
left join region t2 on t2.region_id = t1.registration_authority_province |
|
|
|
|
left join region t3 on t3.region_id = t1.registration_authority_city |
|
|
|
@ -113,6 +128,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
<if test="createBy != null and createBy != ''"> and t1.create_by = #{createBy}</if> |
|
|
|
|
<if test="dataSources != null and dataSources != ''"> and t1.data_sources = #{dataSources}</if> |
|
|
|
|
</where> |
|
|
|
|
order by create_time desc |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="newSelectUnitMemberList" parameterType="UnitMember" resultMap="UnitMemberResult"> |
|
|
|
@ -219,6 +235,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
<if test="administrativeApprovalBureau != null">administrative_approval_bureau,</if> |
|
|
|
|
<if test="registrationAuthorityProvince != null">registration_authority_province,</if> |
|
|
|
|
<if test="dataSources != null">data_sources,</if> |
|
|
|
|
<if test="representativePhone != null">representative_phone,</if> |
|
|
|
|
<if test="organizationPhone != null">organization_phone,</if> |
|
|
|
|
</trim> |
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
|
<if test="companyName != null">#{companyName},</if> |
|
|
|
@ -252,6 +270,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
<if test="administrativeApprovalBureau != null">#{administrativeApprovalBureau},</if> |
|
|
|
|
<if test="registrationAuthorityProvince != null">#{registrationAuthorityProvince},</if> |
|
|
|
|
<if test="dataSources != null">#{dataSources},</if> |
|
|
|
|
<if test="representativePhone != null">#{representativePhone},</if> |
|
|
|
|
<if test="organizationPhone != null">#{organizationPhone},</if> |
|
|
|
|
</trim> |
|
|
|
|
</insert> |
|
|
|
|
|
|
|
|
@ -288,6 +308,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
<if test="approvalStatus != null">approval_status = #{approvalStatus},</if> |
|
|
|
|
<if test="administrativeApprovalBureau != null">administrative_approval_bureau = #{administrativeApprovalBureau},</if> |
|
|
|
|
<if test="registrationAuthorityProvince != null">registration_authority_province = #{registrationAuthorityProvince},</if> |
|
|
|
|
<if test="representativePhone != null">representative_phone = #{representativePhone},</if> |
|
|
|
|
<if test="organizationPhone != null">organization_phone = #{organizationPhone},</if> |
|
|
|
|
</trim> |
|
|
|
|
where id = #{id} |
|
|
|
|
</update> |
|
|
|
|