|
|
@ -11,7 +11,7 @@ |
|
|
from eam_workOrder a left join eam_object b on a.Site=b.Site and a.ObjectID =b.ObjectID |
|
|
from eam_workOrder a left join eam_object b on a.Site=b.Site and a.ObjectID =b.ObjectID |
|
|
<where> |
|
|
<where> |
|
|
<if test="query.site != null and query.site != ''"> |
|
|
<if test="query.site != null and query.site != ''"> |
|
|
AND site = #{query.site} |
|
|
|
|
|
|
|
|
AND a.site = #{query.site} |
|
|
</if> |
|
|
</if> |
|
|
<if test="query.objectID != null and query.objectID != ''"> |
|
|
<if test="query.objectID != null and query.objectID != ''"> |
|
|
AND a.ObjectID like '%' + #{query.objectID} +'%' |
|
|
AND a.ObjectID like '%' + #{query.objectID} +'%' |
|
|
@ -24,6 +24,9 @@ |
|
|
</if> |
|
|
</if> |
|
|
<if test="query.groupID != null and query.groupID != ''"> |
|
|
<if test="query.groupID != null and query.groupID != ''"> |
|
|
AND b.GroupID = #{query.groupID} |
|
|
AND b.GroupID = #{query.groupID} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="query.functionType != null and query.functionType != ''"> |
|
|
|
|
|
AND a.functionType = #{query.functionType} |
|
|
</if> |
|
|
</if> |
|
|
<if test="query.startDate != null "> |
|
|
<if test="query.startDate != null "> |
|
|
AND a.PlanDate >= #{query.startDate} |
|
|
AND a.PlanDate >= #{query.startDate} |
|
|
|