12345678910111213141516171819 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="vip.xiaonuo.money.mapper.MoneyBusinessMapper">
- <select id="dsBusAll" resultType="vip.xiaonuo.money.entity.MoneyBusiness">
- SELECT
- id,
- org_id,
- ROUND(IFNULL(SUM(business_income), 0), 2) AS business_income,
- ROUND(IFNULL(SUM(business_cost), 0), 2) AS business_cost,
- ROUND(IFNULL(SUM(profit), 0), 2) AS profit,
- ROUND(IFNULL(SUM(taxes), 0), 2) AS taxes,
- ROUND(IFNULL(SUM(balance), 0), 2) AS balance
- FROM
- `money_business`
- ${ew.customSqlSegment}
- </select>
- </mapper>
|