|
@@ -581,6 +581,7 @@
|
|
|
FROM
|
|
FROM
|
|
|
ins_area_company iac
|
|
ins_area_company iac
|
|
|
WHERE
|
|
WHERE
|
|
|
|
|
+ iac.orderstatus = 3 and
|
|
|
iac.createtime >= #{beginTime} and iac.createtime <= #{endTime}
|
|
iac.createtime >= #{beginTime} and iac.createtime <= #{endTime}
|
|
|
GROUP BY CONCAT(YEAR(iac.createtime),'-',LPAD(MONTH(iac.createtime), 2, '0'))
|
|
GROUP BY CONCAT(YEAR(iac.createtime),'-',LPAD(MONTH(iac.createtime), 2, '0'))
|
|
|
</select>
|
|
</select>
|
|
@@ -594,6 +595,7 @@
|
|
|
FROM
|
|
FROM
|
|
|
ins_area_company iac
|
|
ins_area_company iac
|
|
|
WHERE
|
|
WHERE
|
|
|
|
|
+ iac.orderstatus = 3 and
|
|
|
iac.createtime >= #{beginTime} and iac.createtime <= #{endTime}
|
|
iac.createtime >= #{beginTime} and iac.createtime <= #{endTime}
|
|
|
GROUP BY CONCAT(YEAR(iac.createtime),'-',LPAD(MONTH(iac.createtime), 2, '0'),'-',LPAD(Day(iac.createtime), 2, '0'))
|
|
GROUP BY CONCAT(YEAR(iac.createtime),'-',LPAD(MONTH(iac.createtime), 2, '0'),'-',LPAD(Day(iac.createtime), 2, '0'))
|
|
|
</select>
|
|
</select>
|
|
@@ -608,7 +610,19 @@
|
|
|
FROM
|
|
FROM
|
|
|
ins_area_company iac
|
|
ins_area_company iac
|
|
|
WHERE
|
|
WHERE
|
|
|
|
|
+ iac.orderstatus = 3 and
|
|
|
iac.createtime >= #{beginTime} and iac.createtime <= #{endTime}
|
|
iac.createtime >= #{beginTime} and iac.createtime <= #{endTime}
|
|
|
GROUP BY CONCAT(YEAR ( iac.createtime ),'-',LPAD( MONTH ( iac.createtime ), 2, '0' ),'-',LPAD( DAY ( iac.createtime ), 2, '0' ),' ',LPAD( HOUR ( iac.createtime ), 2, '0' ))
|
|
GROUP BY CONCAT(YEAR ( iac.createtime ),'-',LPAD( MONTH ( iac.createtime ), 2, '0' ),'-',LPAD( DAY ( iac.createtime ), 2, '0' ),' ',LPAD( HOUR ( iac.createtime ), 2, '0' ))
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="getAllpremium" resultType="com.ydtech.modules.admin.model.dto.AllpremiumDto">
|
|
|
|
|
+ SELECT
|
|
|
|
|
+ ifnull(sum( sumpremium ),0) as sumPremium,
|
|
|
|
|
+ count( 0 ) as sumCount
|
|
|
|
|
+ FROM
|
|
|
|
|
+ ins_area_company
|
|
|
|
|
+ WHERE
|
|
|
|
|
+ orderstatus = 3
|
|
|
|
|
+ AND YEAR (createtime) = #{year}
|
|
|
|
|
+ </select>
|
|
|
</mapper>
|
|
</mapper>
|