|
|
|
@ -34,6 +34,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
operating_term, business_scope, create_time, create_by, user_id, dept_id, is_unsubscribe, is_delete, salt, enterprise_tel, industry, operating_term_end |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="selectEnterpriseInformationColumnsWithAlias"> |
|
|
|
ei.id, ei.enterprise_name, ei.enterprise_number, ei.enterprise_type, ei.company_org_type, ei.enterprise_address, ei.legal_person, ei.registered_capital, ei.establishment_time, |
|
|
|
ei.operating_term, ei.business_scope, ei.create_time, ei.create_by, ei.user_id, ei.dept_id, ei.is_unsubscribe, ei.is_delete, ei.salt, ei.enterprise_tel, ei.industry, ei.operating_term_end |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="selectEnterpriseInformationVo"> |
|
|
|
select <include refid="selectEnterpriseInformationColumns"/> from enterprise_information |
|
|
|
</sql> |
|
|
|
@ -111,7 +116,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</select> |
|
|
|
<select id="selectEnterpriseInformationAndQrInfo" parameterType="EnterpriseInformation" resultMap="EnterpriseInformationResult"> |
|
|
|
SELECT |
|
|
|
<include refid="selectEnterpriseInformationColumns"/>, gh.qr_code_url |
|
|
|
<include refid="selectEnterpriseInformationColumnsWithAlias"/>, gh.qr_code_url |
|
|
|
FROM |
|
|
|
enterprise_information ei |
|
|
|
LEFT JOIN ( |
|
|
|
@ -130,7 +135,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
AND (ei.enterprise_name like concat('%', #{searchValue}, '%') |
|
|
|
or ei.enterprise_number like concat('%', #{searchValue}, '%')) |
|
|
|
</if> |
|
|
|
<if test="enterpriseName != null and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if> |
|
|
|
<if test="enterpriseName != null and enterpriseName != ''"> and ei.enterprise_name like concat('%', #{enterpriseName}, '%')</if> |
|
|
|
|
|
|
|
</where> |
|
|
|
ORDER BY ei.create_time DESC |
|
|
|
|