|
|
@ -116,15 +116,19 @@ |
|
|
|
|
|
|
|
</select> |
|
|
|
<select id="listProject" resultMap="EnterpriseInfo"> |
|
|
|
select * from bs_sgc_yxjd_enterprise_info |
|
|
|
select * from bs_sgc_yxjd_enterprise_info ei left join sys_user_enterprise su on ei.id=su.enterprise_id |
|
|
|
<where> |
|
|
|
|
|
|
|
<if test="enterpriseName!=null and enterpriseName!=''"> |
|
|
|
and enterprise_name like concat('%',#{enterpriseName},'%') |
|
|
|
and ei.enterprise_name like concat('%',#{enterpriseName},'%') |
|
|
|
</if> |
|
|
|
<if test="adcd!=null and adcd !=''"> |
|
|
|
and adcd like concat(#{adcd},'%') |
|
|
|
and ei.adcd like concat(#{adcd},'%') |
|
|
|
</if> |
|
|
|
<if test="status!=null and status!=''"> |
|
|
|
and su.status=#{status} |
|
|
|
</if> |
|
|
|
|
|
|
|
</where> |
|
|
|
order by ${orderBy} desc |
|
|
|
</select> |
|
|
|