mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
分析页统计:x轴长度缩短;
This commit is contained in:
+8
-8
@@ -128,16 +128,16 @@
|
|||||||
select
|
select
|
||||||
count(p.id) as count
|
count(p.id) as count
|
||||||
<if test="req.unit != null and req.unit == @com.cf.imes.module.executor.enums.OrderStatisticsUnit@QUARTER.getValue()">
|
<if test="req.unit != null and req.unit == @com.cf.imes.module.executor.enums.OrderStatisticsUnit@QUARTER.getValue()">
|
||||||
,QUARTER(p.create_time) as date
|
,CONCAT(YEAR(p.create_time), '-', QUARTER(p.create_time)) as date
|
||||||
</if>
|
</if>
|
||||||
<if test="req.unit != null and req.unit == @com.cf.imes.module.executor.enums.OrderStatisticsUnit@MONTH.getValue()">
|
<if test="req.unit != null and req.unit == @com.cf.imes.module.executor.enums.OrderStatisticsUnit@MONTH.getValue()">
|
||||||
,MONTH(p.create_time) as date
|
,CONCAT(YEAR(p.create_time), '-', MONTH(p.create_time)) as date
|
||||||
</if>
|
</if>
|
||||||
<if test="req.unit != null and req.unit == @com.cf.imes.module.executor.enums.OrderStatisticsUnit@WEEK.getValue()">
|
<if test="req.unit != null and req.unit == @com.cf.imes.module.executor.enums.OrderStatisticsUnit@WEEK.getValue()">
|
||||||
,FLOOR((DayOfMonth(p.create_time)-1)/7)+1 AS date
|
,CONCAT(YEAR(p.create_time), '-', MONTH(p.create_time), '-', FLOOR((DayOfMonth(p.create_time)-1)/7)+1) AS date
|
||||||
</if>
|
</if>
|
||||||
<if test="req.unit != null and req.unit == @com.cf.imes.module.executor.enums.OrderStatisticsUnit@DAY.getValue()">
|
<if test="req.unit != null and req.unit == @com.cf.imes.module.executor.enums.OrderStatisticsUnit@DAY.getValue()">
|
||||||
,DAY(p.create_time) as date
|
,CONCAT(YEAR(p.create_time), '-', MONTH(p.create_time), '-', DAY(p.create_time)) as date
|
||||||
</if>
|
</if>
|
||||||
from order_plan p
|
from order_plan p
|
||||||
where p.organ_id = #{req.organId}
|
where p.organ_id = #{req.organId}
|
||||||
@@ -150,16 +150,16 @@
|
|||||||
resultType="com.cf.imes.module.executor.controller.admin.plan.vo.OrderPlanStatisticsAreaRespVO">
|
resultType="com.cf.imes.module.executor.controller.admin.plan.vo.OrderPlanStatisticsAreaRespVO">
|
||||||
select sum(op.area) areaSum
|
select sum(op.area) areaSum
|
||||||
<if test="req.unit != null and req.unit == @com.cf.imes.module.executor.enums.OrderStatisticsUnit@QUARTER.getValue()">
|
<if test="req.unit != null and req.unit == @com.cf.imes.module.executor.enums.OrderStatisticsUnit@QUARTER.getValue()">
|
||||||
,QUARTER(p.create_time) as date
|
,CONCAT(YEAR(p.create_time), '-', QUARTER(p.create_time)) as date
|
||||||
</if>
|
</if>
|
||||||
<if test="req.unit != null and req.unit == @com.cf.imes.module.executor.enums.OrderStatisticsUnit@MONTH.getValue()">
|
<if test="req.unit != null and req.unit == @com.cf.imes.module.executor.enums.OrderStatisticsUnit@MONTH.getValue()">
|
||||||
,MONTH(p.create_time) as date
|
,CONCAT(YEAR(p.create_time), '-', MONTH(p.create_time)) as date
|
||||||
</if>
|
</if>
|
||||||
<if test="req.unit != null and req.unit == @com.cf.imes.module.executor.enums.OrderStatisticsUnit@WEEK.getValue()">
|
<if test="req.unit != null and req.unit == @com.cf.imes.module.executor.enums.OrderStatisticsUnit@WEEK.getValue()">
|
||||||
,FLOOR((DayOfMonth(p.create_time)-1)/7)+1 AS date
|
,CONCAT(YEAR(p.create_time), '-', MONTH(p.create_time), '-', FLOOR((DayOfMonth(p.create_time)-1)/7)+1) AS date
|
||||||
</if>
|
</if>
|
||||||
<if test="req.unit != null and req.unit == @com.cf.imes.module.executor.enums.OrderStatisticsUnit@DAY.getValue()">
|
<if test="req.unit != null and req.unit == @com.cf.imes.module.executor.enums.OrderStatisticsUnit@DAY.getValue()">
|
||||||
,DAY(p.create_time) as date
|
,CONCAT(YEAR(p.create_time), '-', MONTH(p.create_time), '-', DAY(p.create_time)) as date
|
||||||
</if>
|
</if>
|
||||||
from order_plan p
|
from order_plan p
|
||||||
join order_plan_item opi on p.id = opi.plan_id and opi.organ_id = #{req.organId}
|
join order_plan_item opi on p.id = opi.plan_id and opi.organ_id = #{req.organId}
|
||||||
|
|||||||
Reference in New Issue
Block a user