<iftest="bo.isTeam != null"> and leader_name is <iftest="bo.isTeam == 1">not</if> null </if>
<iftest="bo.isTeam != null"> and leader_name is <iftest="bo.isTeam == 1">not</if> null </if>
order by approve_date2 desc
order by approve_date2 desc
</select>
</select>
...
@@ -114,29 +114,28 @@
...
@@ -114,29 +114,28 @@
<iftest="bo.customerName != null and bo.customerName != '' ">
<iftest="bo.customerName != null and bo.customerName != '' ">
and customer_name like concat('%',#{bo.customerName},'%')
and customer_name like concat('%',#{bo.customerName},'%')
</if>
</if>
<iftest="bo.registerProvince != null and bo.registerCity == null">
<iftest="bo.registerRegion != null and bo.registerRegion.size > 0 or (bo.registerProvince != null and bo.registerProvince.size > 0) or (bo.registerCity != null and bo.registerCity.size > 0)">
left join d_subcontract org on org.customer_id = dc.customer_id
left join d_subcontract org on org.customer_id = dc.customer_id
left join d_subcontract project on project.customer_id = dc.customer_id
left join d_subcontract project on project.customer_id = dc.customer_id
...
@@ -45,13 +45,28 @@
...
@@ -45,13 +45,28 @@
<iftest="bo.customerName != null and bo.customerName != ''">
<iftest="bo.customerName != null and bo.customerName != ''">
and ds.customer_name =#{bo.customerName}
and ds.customer_name =#{bo.customerName}
</if>
</if>
<iftest="bo.areaName != null and bo.areaName.size > 0">
<iftest="bo.areaName != null and bo.areaName.size > 0 or (bo.provinceName != null and bo.provinceName.size > 0) or (bo.cityName != null and bo.cityName.size > 0)">
and (
and
ds.areaName in
<trimprefix="("suffix=")"prefixOverrides="or">
<iftest="bo.areaName != null and bo.areaName.size > 0 ">