Commit 47249efc authored by libin's avatar libin

推广*邀请

parent c2a44c03
...@@ -105,7 +105,7 @@ public class UserBusinessBiz { ...@@ -105,7 +105,7 @@ public class UserBusinessBiz {
promoteBO.setActivatedNumber(memberStateAndCountMap.get(1)); promoteBO.setActivatedNumber(memberStateAndCountMap.get(1));
BigDecimal totalIncome = appUserSellingWaterBiz.selectTotalIncomeByUserId(userId); BigDecimal totalIncome = appUserSellingWaterBiz.selectTotalIncomeByUserId(userId);
promoteBO.setTotalIncome(totalIncome); promoteBO.setTotalIncome(totalIncome==null?new BigDecimal(0):totalIncome);
return promoteBO; return promoteBO;
} }
} }
...@@ -17,7 +17,7 @@ WHERE ...@@ -17,7 +17,7 @@ WHERE
</foreach> </foreach>
</select> </select>
<select id="selectTotalIncomeByUserId"> <select id="selectTotalIncomeByUserId" resultType="java.math.BigDecimal">
SELECT SUM(commission) FROM app_user_selling_water WHERE `user_id`=#{userId} SELECT SUM(commission) FROM app_user_selling_water WHERE `user_id`=#{userId}
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment