|
|
@ -1132,6 +1132,12 @@ |
|
|
<if test="query.feedBackDesc != null and query.feedBackDesc != ''"> |
|
|
<if test="query.feedBackDesc != null and query.feedBackDesc != ''"> |
|
|
AND b.FeedBackDesc like '%' +#{query.feedBackDesc}+'%' |
|
|
AND b.FeedBackDesc like '%' +#{query.feedBackDesc}+'%' |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="query.createdStartDate != null "> |
|
|
|
|
|
AND b.CreatedDate >= #{query.createdStartDate} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="query.createdEndDate != null "> |
|
|
|
|
|
AND #{query.createdEndDate} >= b.CreatedDate |
|
|
|
|
|
</if> |
|
|
and a.FunctionType =#{query.functionType} |
|
|
and a.FunctionType =#{query.functionType} |
|
|
</where> |
|
|
</where> |
|
|
ORDER BY a.PlanDate, |
|
|
ORDER BY a.PlanDate, |
|
|
@ -3260,6 +3266,7 @@ |
|
|
a.reach_date, |
|
|
a.reach_date, |
|
|
b.CreatedDate, |
|
|
b.CreatedDate, |
|
|
a.handling_method, |
|
|
a.handling_method, |
|
|
|
|
|
a.repair_reporting_type as repairReportingType, |
|
|
dbo.eam_Get_eamResourceDesc(a.Site, a.ObjectID) as resourceDesc, |
|
|
dbo.eam_Get_eamResourceDesc(a.Site, a.ObjectID) as resourceDesc, |
|
|
CASE |
|
|
CASE |
|
|
WHEN (DATEDIFF(SECOND, b.CreatedDate, a.reach_date) <![CDATA[<]]> 60) THEN DATEDIFF(SECOND, b.CreatedDate, a.reach_date) / 60.0 |
|
|
WHEN (DATEDIFF(SECOND, b.CreatedDate, a.reach_date) <![CDATA[<]]> 60) THEN DATEDIFF(SECOND, b.CreatedDate, a.reach_date) / 60.0 |
|
|
@ -3325,6 +3332,9 @@ |
|
|
<if test="query.documentSource != null and query.documentSource != ''"> |
|
|
<if test="query.documentSource != null and query.documentSource != ''"> |
|
|
AND a.document_source = #{query.documentSource} |
|
|
AND a.document_source = #{query.documentSource} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="query.createdDate != null "> |
|
|
|
|
|
And a.CreatedDate >= #{query.createdDate} |
|
|
|
|
|
</if> |
|
|
<if test="query.startDate != null "> |
|
|
<if test="query.startDate != null "> |
|
|
AND a.PlanDate >= #{query.startDate} |
|
|
AND a.PlanDate >= #{query.startDate} |
|
|
</if> |
|
|
</if> |
|
|
@ -3343,6 +3353,15 @@ |
|
|
<if test="query.itemDesc != null and query.itemDesc != ''"> |
|
|
<if test="query.itemDesc != null and query.itemDesc != ''"> |
|
|
AND ewi.ItemDesc like '%' + #{query.itemDesc} +'%' |
|
|
AND ewi.ItemDesc like '%' + #{query.itemDesc} +'%' |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="query.createdStartDate != null "> |
|
|
|
|
|
AND b.CreatedDate >= #{query.createdStartDate} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="query.createdEndDate != null "> |
|
|
|
|
|
AND #{query.createdEndDate} >= b.CreatedDate |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="query.repairReportingType != null and query.repairReportingType != ''"> |
|
|
|
|
|
AND a.repair_reporting_type like '%' + #{query.repairReportingType} + '%' |
|
|
|
|
|
</if> |
|
|
and a.FunctionType =#{query.functionType} |
|
|
and a.FunctionType =#{query.functionType} |
|
|
</where> |
|
|
</where> |
|
|
</select> |
|
|
</select> |
|
|
|