|
|
@@ -134,11 +134,18 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="findTechWebsiteListByPage" resultType="com.goafanti.techproject.bo.TechWebsiteListBo" parameterType="java.lang.String" >
|
|
|
- select w.id, w.uid, i.unit_name as unitName, i.licence_province as province,
|
|
|
- w.department, w.website, w.account_number as accountNumber,
|
|
|
+ select
|
|
|
+ w.id,
|
|
|
+ w.uid,
|
|
|
+ i.unit_name as unitName,
|
|
|
+ i.licence_province as province,
|
|
|
+ w.department,
|
|
|
+ w.website,
|
|
|
+ w.account_number as accountNumber,
|
|
|
w.password
|
|
|
from tech_website w
|
|
|
- LEFT JOIN organization_identity i on w.uid = i.uid where w.deleted_sign = 0
|
|
|
+ LEFT JOIN organization_identity i on w.uid = i.uid
|
|
|
+ where w.deleted_sign = 0
|
|
|
<if test="province != null">
|
|
|
and i.licence_province = #{province,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
@@ -159,8 +166,8 @@
|
|
|
<if test="province != null">
|
|
|
and i.licence_province = #{province,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
- <if test="uid != null" >
|
|
|
- and w.uid = #{uid,jdbcType=VARCHAR}
|
|
|
+ <if test="unitName != null" >
|
|
|
+ and i.unit_name like CONCAT('%', #{unitName,jdbcType=VARCHAR}, '%')
|
|
|
</if>
|
|
|
</select>
|
|
|
|