|
@@ -3,7 +3,7 @@
|
|
<mapper namespace="vip.xiaonuo.money.mapper.MoneyCostMapper">
|
|
<mapper namespace="vip.xiaonuo.money.mapper.MoneyCostMapper">
|
|
|
|
|
|
<select id="getMoneyDetailMonth" resultType="vip.xiaonuo.money.param.DsBusSaleMoneyParam">
|
|
<select id="getMoneyDetailMonth" resultType="vip.xiaonuo.money.param.DsBusSaleMoneyParam">
|
|
- SELECT ROUND(IFNULL(SUM(sale), 0)/10000, 2) saleMoney , ROUND(IFNULL(SUM(manage), 0)/10000, 2) guanLiMoney , ROUND(IFNULL(SUM(finance), 0)/10000, 2) caiWuMoney ,
|
|
|
|
|
|
+ SELECT ROUND(IFNULL(SUM(sale), 0) , 2) saleMoney , ROUND(IFNULL(SUM(manage), 0), 2) guanLiMoney , ROUND(IFNULL(SUM(finance), 0), 2) caiWuMoney ,
|
|
DATE_FORMAT(create_time, '%Y-%m') AS ymonth
|
|
DATE_FORMAT(create_time, '%Y-%m') AS ymonth
|
|
FROM `money_cost`
|
|
FROM `money_cost`
|
|
${ew.customSqlSegment}
|
|
${ew.customSqlSegment}
|
|
@@ -12,7 +12,7 @@
|
|
|
|
|
|
|
|
|
|
<select id="getMoneyDetailYear" resultType="vip.xiaonuo.money.param.DsBusSaleMoneyParam">
|
|
<select id="getMoneyDetailYear" resultType="vip.xiaonuo.money.param.DsBusSaleMoneyParam">
|
|
- SELECT ROUND(IFNULL(SUM(sale), 0)/10000, 2) saleMoney , ROUND(IFNULL(SUM(manage), 0)/10000, 2) guanLiMoney , ROUND(IFNULL(SUM(finance), 0)/10000, 2) caiWuMoney ,
|
|
|
|
|
|
+ SELECT ROUND(IFNULL(SUM(sale), 0), 2) saleMoney , ROUND(IFNULL(SUM(manage), 0), 2) guanLiMoney , ROUND(IFNULL(SUM(finance), 0), 2) caiWuMoney ,
|
|
DATE_FORMAT(create_time, '%Y') AS ymonth
|
|
DATE_FORMAT(create_time, '%Y') AS ymonth
|
|
FROM `money_cost`
|
|
FROM `money_cost`
|
|
${ew.customSqlSegment}
|
|
${ew.customSqlSegment}
|