Commit 4c1f6468 authored by wanglong's avatar wanglong

修复 项目资源bug

parent 8429b8da
...@@ -185,7 +185,10 @@ ...@@ -185,7 +185,10 @@
LEFT JOIN tz_ugp_project AS project ON project.sequence_nbr = resource.project_id LEFT JOIN tz_ugp_project AS project ON project.sequence_nbr = resource.project_id
LEFT JOIN tz_ugp_equipment AS equipment ON equipment.sequence_nbr = resource.resource_id LEFT JOIN tz_ugp_equipment AS equipment ON equipment.sequence_nbr = resource.resource_id
<where> <where>
<if test="type!=null">
resource.type = #{type} resource.type = #{type}
</if>
<if test="projectResourceDto !=null"> <if test="projectResourceDto !=null">
<if test="projectResourceDto.name !=null and projectResourceDto.name != ''"> <if test="projectResourceDto.name !=null and projectResourceDto.name != ''">
and equipment.`name` LIKE CONCAT("%",#{projectResourceDto.name},"%") and equipment.`name` LIKE CONCAT("%",#{projectResourceDto.name},"%")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment