|
|
|
@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="enterpriseName" column="enterprise_name" /> |
|
|
|
<result property="enterpriseNumber" column="enterprise_number" /> |
|
|
|
<result property="enterpriseType" column="enterprise_type" /> |
|
|
|
<result property="companyOrgType" column="company_org_type" /> |
|
|
|
<result property="enterpriseAddress" column="enterprise_address" /> |
|
|
|
<result property="legalPerson" column="legal_person" /> |
|
|
|
<result property="registeredCapital" column="registered_capital" /> |
|
|
|
@ -26,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectEnterpriseInformationVo"> |
|
|
|
select id, enterprise_name, enterprise_number, enterprise_type, enterprise_address, legal_person, registered_capital, establishment_time, |
|
|
|
select id, enterprise_name, enterprise_number, enterprise_type, company_org_type, enterprise_address, legal_person, registered_capital, establishment_time, |
|
|
|
operating_term, business_scope, create_time, create_by, user_id, dept_id,is_unsubscribe ,is_delete,salt,enterprise_tel from enterprise_information |
|
|
|
</sql> |
|
|
|
|
|
|
|
@ -36,6 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="enterpriseName != null and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if> |
|
|
|
<if test="enterpriseNumber != null and enterpriseNumber != ''"> and enterprise_number like concat('%', #{enterpriseNumber}, '%')</if> |
|
|
|
<if test="enterpriseType != null and enterpriseType != ''"> and enterprise_type = #{enterpriseType}</if> |
|
|
|
<if test="companyOrgType != null and companyOrgType != ''"> and company_org_type = #{companyOrgType}</if> |
|
|
|
<if test="enterpriseAddress != null and enterpriseAddress != ''"> and enterprise_address = #{enterpriseAddress}</if> |
|
|
|
<if test="legalPerson != null and legalPerson != ''"> and legal_person = #{legalPerson}</if> |
|
|
|
<if test="registeredCapital != null and registeredCapital != ''"> and registered_capital = #{registeredCapital}</if> |
|
|
|
@ -71,6 +73,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="enterpriseName != null and enterpriseName != ''">enterprise_name,</if> |
|
|
|
<if test="enterpriseNumber != null and enterpriseNumber != ''">enterprise_number,</if> |
|
|
|
<if test="enterpriseType != null and enterpriseType != ''">enterprise_type,</if> |
|
|
|
<if test="companyOrgType != null and companyOrgType != ''">company_org_type,</if> |
|
|
|
<if test="enterpriseAddress != null and enterpriseAddress != ''">enterprise_address,</if> |
|
|
|
<if test="legalPerson != null and legalPerson != ''">legal_person,</if> |
|
|
|
<if test="registeredCapital != null and registeredCapital != ''">registered_capital,</if> |
|
|
|
@ -90,6 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="enterpriseName != null and enterpriseName != ''">#{enterpriseName},</if> |
|
|
|
<if test="enterpriseNumber != null and enterpriseNumber != ''">#{enterpriseNumber},</if> |
|
|
|
<if test="enterpriseType != null and enterpriseType != ''">#{enterpriseType},</if> |
|
|
|
<if test="companyOrgType != null and companyOrgType != ''">#{companyOrgType},</if> |
|
|
|
<if test="enterpriseAddress != null and enterpriseAddress != ''">#{enterpriseAddress},</if> |
|
|
|
<if test="legalPerson != null and legalPerson != ''">#{legalPerson},</if> |
|
|
|
<if test="registeredCapital != null and registeredCapital != ''">#{registeredCapital},</if> |
|
|
|
@ -112,6 +116,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
<if test="enterpriseName != null and enterpriseName != ''">enterprise_name = #{enterpriseName},</if> |
|
|
|
<if test="enterpriseType != null and enterpriseType != ''">enterprise_type = #{enterpriseType},</if> |
|
|
|
<if test="companyOrgType != null and companyOrgType != ''">company_org_type = #{companyOrgType},</if> |
|
|
|
<if test="enterpriseAddress != null and enterpriseAddress != ''">enterprise_address = #{enterpriseAddress},</if> |
|
|
|
<if test="legalPerson != null and legalPerson != ''">legal_person = #{legalPerson},</if> |
|
|
|
<if test="registeredCapital != null and registeredCapital != ''">registered_capital = #{registeredCapital},</if> |
|
|
|
@ -130,6 +135,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
<if test="enterpriseName != null and enterpriseName != ''">enterprise_name = #{enterpriseName},</if> |
|
|
|
<if test="enterpriseType != null and enterpriseType != ''">enterprise_type = #{enterpriseType},</if> |
|
|
|
<if test="companyOrgType != null and companyOrgType != ''">company_org_type = #{companyOrgType},</if> |
|
|
|
<if test="enterpriseAddress != null and enterpriseAddress != ''">enterprise_address = #{enterpriseAddress},</if> |
|
|
|
<if test="legalPerson != null and legalPerson != ''">legal_person = #{legalPerson},</if> |
|
|
|
<if test="registeredCapital != null and registeredCapital != ''">registered_capital = #{registeredCapital},</if> |
|
|
|
|