|
@@ -901,9 +901,18 @@
|
|
<if test="projectDesc != null and projectDesc != ''">
|
|
<if test="projectDesc != null and projectDesc != ''">
|
|
AND a.project_desc LIKE concat('%',#{projectDesc},'%')
|
|
AND a.project_desc LIKE concat('%',#{projectDesc},'%')
|
|
</if>
|
|
</if>
|
|
|
|
+
|
|
<if test="area != null and area.id != null and area.id != ''">
|
|
<if test="area != null and area.id != null and area.id != ''">
|
|
- AND a.area_id = #{area.id}
|
|
|
|
|
|
+ AND (area.parent_ids LIKE
|
|
|
|
+ <if test="dbName == 'oracle'">'%'||#{area.id}||'%'</if>
|
|
|
|
+ <if test="dbName == 'mssql'">'%'+#{area.id}+'%'</if>
|
|
|
|
+ <if test="dbName == 'mysql'">concat('%',#{area.id},'%')</if>
|
|
|
|
+ or a.area_id = #{area.id}
|
|
|
|
+ )
|
|
</if>
|
|
</if>
|
|
|
|
+ <!--<if test="area != null and area.id != null and area.id != ''">
|
|
|
|
+ AND a.area_id = #{area.id}
|
|
|
|
+ </if>-->
|
|
<if test="workContractInfo !=null and workContractInfo.name !=null and workContractInfo.name !=''">
|
|
<if test="workContractInfo !=null and workContractInfo.name !=null and workContractInfo.name !=''">
|
|
AND wci.name like concat(concat('%',#{workContractInfo.name}),'%')
|
|
AND wci.name like concat(concat('%',#{workContractInfo.name}),'%')
|
|
</if>
|
|
</if>
|