|
@@ -1503,7 +1503,7 @@
|
|
|
select creator_id,project_id,sum(ifnull(working_time,0)) projectTotalCost
|
|
|
from report
|
|
|
where
|
|
|
- company_id = 10
|
|
|
+ company_id = #{companyId} and state = 1
|
|
|
and create_date between str_to_date(#{startDate},'%Y-%m-%d') and str_to_date(#{endDate},'%Y-%m-%d')
|
|
|
and creator_id in
|
|
|
<foreach collection="userIds" item="userId" separator="," open="(" close=")">
|
|
@@ -1516,7 +1516,7 @@
|
|
|
select creator_id,substr(create_date,1,7) as ym,project_id,sum(ifnull(working_time,0)) projectYMCost
|
|
|
from report
|
|
|
where
|
|
|
- company_id = 10
|
|
|
+ company_id = #{companyId} and state = 1
|
|
|
and create_date between str_to_date(#{startDate},'%Y-%m-%d') and str_to_date(#{endDate},'%Y-%m-%d')
|
|
|
and creator_id in
|
|
|
<foreach collection="userIds" item="userId" separator="," open="(" close=")">
|
|
@@ -1547,7 +1547,7 @@
|
|
|
select creator_id,substr(create_date,1,7) as ym,project_id,sum(ifnull(working_time,0)) projectYMCost
|
|
|
from report
|
|
|
where
|
|
|
- company_id = 10
|
|
|
+ company_id = #{companyId}
|
|
|
and create_date between str_to_date(#{startDate},'%Y-%m-%d') and str_to_date(#{endDate},'%Y-%m-%d')
|
|
|
and creator_id in
|
|
|
<foreach collection="userIds" item="userId" separator="," open="(" close=")">
|
|
@@ -1560,7 +1560,7 @@
|
|
|
select creator_id,project_id,create_date,working_time
|
|
|
from report
|
|
|
where
|
|
|
- company_id = 10
|
|
|
+ company_id = #{companyId}
|
|
|
and create_date between str_to_date(#{startDate},'%Y-%m-%d') and str_to_date(#{endDate},'%Y-%m-%d')
|
|
|
and creator_id in
|
|
|
<foreach collection="userIds" item="userId" separator="," open="(" close=")">
|