| | |
| | | @ApiModelProperty(value="累计金额") |
| | | private BigDecimal amount; |
| | | |
| | | @ApiModelProperty(value="累计积分") |
| | | private BigDecimal score; |
| | | |
| | | @ApiModelProperty(value="累计单数") |
| | | private Integer orderCnt; |
| | | |
| | |
| | | b.mobile_phone phone, |
| | | a.CREATED_TIME createTime, |
| | | (select IFNULL(count(1), 0) from xzx_user_head_details where user_id = a.user_id and head_user_id = #{id}) orderCnt, |
| | | (select IFNULL(sum(amount), 0) from xzx_user_head_details where user_id = a.user_id and head_user_id = #{id}) amount |
| | | (select IFNULL(sum(amount), 0) from xzx_user_head_details where user_id = a.user_id and head_user_id = #{id}) amount, |
| | | (select IFNULL(sum(score), 0) from xzx_user_head_details where user_id = a.user_id and head_user_id = #{id}) score |
| | | FROM |
| | | xzx_user_head_relate a |
| | | LEFT JOIN xzx_user_info b on a.user_id = b.user_id |