|
|
@@ -0,0 +1,15 @@
|
|
|
+SELECT
|
|
|
+b.Id,
|
|
|
+ a.SupplierName,
|
|
|
+ ProjectOwner,
|
|
|
+ case a.Status when 1 then "未开始" when 2 then "履行中" when 3 then "履行完毕" end as ConStatus,
|
|
|
+ sum(c.Score),
|
|
|
+ GROUP_CONCAT(DISTINCT c.Remark) re,
|
|
|
+ b.CreateBy
|
|
|
+FROM
|
|
|
+ OilContract a
|
|
|
+ LEFT JOIN OilContractReview b ON b.ContractId = a.Id
|
|
|
+ LEFT JOIN OilContractEvaluationItems c on (c.ContentReviewId=b.Id and c.Category=0 and c.LevelCode=2)
|
|
|
+
|
|
|
+where a.ContractClass="03" and b.ThirdAudit=100000657
|
|
|
+GROUP BY b.Id;
|