mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 07:46:40 +08:00
bugfix
This commit is contained in:
@@ -13,8 +13,8 @@ import java.time.LocalDate;
|
||||
|
||||
@Data
|
||||
@Entity
|
||||
|
||||
@Subselect("""
|
||||
@Subselect(
|
||||
"""
|
||||
|
||||
|
||||
select gen_random_uuid()::text as id,
|
||||
@@ -40,15 +40,14 @@ select gen_random_uuid()::text as id,
|
||||
'' as create_user_id,
|
||||
'' as update_user_id,
|
||||
null as file_ids,
|
||||
count(distinct d.date) as days
|
||||
from t_coal_washing_daily_analysis d
|
||||
sum(d.xx) as days
|
||||
from ((select 1.0 / count(1) over (partition by date_trunc('day', date)) as xx , *
|
||||
from t_coal_washing_daily_analysis)) d
|
||||
group by d.organization_id, d.name, date_trunc('month', d.date)
|
||||
|
||||
""")
|
||||
public class CoalWashingMonthReportEntity extends OrgCommonEntity {
|
||||
|
||||
|
||||
|
||||
@Comment("日期")
|
||||
private LocalDate date;
|
||||
private String remark1;
|
||||
|
||||
Reference in New Issue
Block a user