|
|
@@ -90,10 +90,10 @@ public interface IProjectStatusChangeService extends IService<ProjectStatusChang |
|
|
|
|
|
|
|
default long count(Collection<String> projectCodes, ProjectStateChangeEvent event) { |
|
|
|
QueryWrapper<ProjectStatusChange> query = Wrappers.query(); |
|
|
|
query.select("count(distinct project_code) cnt") |
|
|
|
.in("project_code", projectCodes) |
|
|
|
.eq("event", event); |
|
|
|
return MapUtil.getLong(getMap(query), "cnt"); |
|
|
|
query.select("COUNT(DISTINCT PROJECT_CODE) CNT") |
|
|
|
.in("PROJECT_CODE", projectCodes) |
|
|
|
.eq("EVENT", event); |
|
|
|
return MapUtil.getLong(getMap(query), "CNT"); |
|
|
|
} |
|
|
|
|
|
|
|
} |