修改统计

This commit is contained in:
haozq 2025-01-17 17:30:05 +08:00
parent 24d5e757b3
commit 437add1b67
2 changed files with 17 additions and 0 deletions

View File

@ -124,4 +124,8 @@ public interface HomeIndexMapper {
* @date 2025/1/17 14:18
*/
List<HomeDispatchDetailVo> getDispatchDetails(BackParamsDto dto);
IndexVo getPayMoney(BackParamsDto dto);
IndexVo getNoPayMoney(BackParamsDto dto);
}

View File

@ -200,5 +200,18 @@
<select id="getDispatchDetails"
resultType="com.bonus.gzcar.business.backstage.entity.HomeDispatchDetailVo">
</select>
<select id="getPayMoney" resultType="com.bonus.gzcar.business.backstage.entity.IndexVo">
SELECT count(csp.plan_id) num,sum(csp.money) money
from car_slt_plan csp
left join car_slt_apply sla on csp.slt_id=sla.id
<where>
<if test="startTime!=null and startTime!='' and endTime!=null and endTime!=''">
AND DATE_FORMAT(sla.create_time,'%Y-%m-%d') BETWEEN #{params.startTime} AND #{params.endTime}
</if>
</where>
</select>
<select id="getNoPayMoney" resultType="com.bonus.gzcar.business.backstage.entity.IndexVo">
</select>
</mapper>