|
|
@ -130,9 +130,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
|
|
|
|
</where> |
|
|
</where> |
|
|
ORDER BY ei.create_time DESC |
|
|
ORDER BY ei.create_time DESC |
|
|
<if test="params.pageNum != null and params.pageSize != null"><!-- 开始时间检索 --> |
|
|
<!-- <if test="pageNum != null and pageSize != null"><!– 开始时间检索 –>--> |
|
|
LIMIT #{params.pageNum}, #{params.pageSize} |
|
|
<!-- LIMIT #{pageNum}, #{pageSize}--> |
|
|
</if> |
|
|
<!-- </if>--> |
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<select id="selectEnterpriseInformationAndQrInfoCount" resultType="int"> |
|
|
|
|
|
SELECT |
|
|
|
|
|
count(1) |
|
|
|
|
|
FROM |
|
|
|
|
|
enterprise_information ei |
|
|
|
|
|
<where> |
|
|
|
|
|
and ei.is_delete = 0 |
|
|
|
|
|
<if test="searchValue != null and searchValue != ''"> |
|
|
|
|
|
AND (ei.enterprise_name like concat('%', #{searchValue}, '%') |
|
|
|
|
|
or ei.enterprise_number like concat('%', #{searchValue}, '%')) |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="enterpriseName != null and enterpriseName != ''"> and ei.enterprise_name like concat('%', #{enterpriseName}, '%')</if> |
|
|
|
|
|
|
|
|
|
|
|
</where> |
|
|
|
|
|
ORDER BY ei.create_time DESC |
|
|
|
|
|
<!-- <if test="pageNum != null and pageSize != null"><!– 开始时间检索 –>--> |
|
|
|
|
|
<!-- LIMIT #{pageNum}, #{pageSize}--> |
|
|
|
|
|
<!-- </if>--> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="selectEnterpriseInformationById" parameterType="String" resultMap="EnterpriseInformationResult"> |
|
|
<select id="selectEnterpriseInformationById" parameterType="String" resultMap="EnterpriseInformationResult"> |
|
|
|