18 lines
286 B
MySQL
18 lines
286 B
MySQL
|
-- dic_片区
|
||
|
|
||
|
SELECT DISTINCT
|
||
|
organ_code AS 片区id,
|
||
|
organ_name AS 片区名称
|
||
|
FROM dim_organ_mapping
|
||
|
|
||
|
|
||
|
-- report_今日收费
|
||
|
|
||
|
|
||
|
select * from dws_finance_today_fees_d
|
||
|
where 1=1
|
||
|
${if(len(p_area) == 0,"","and organ_code = '" + p_area+ "'")}
|
||
|
order by organ_code, comm_id
|
||
|
|
||
|
|