f69fd42a3ae2d11713dcd284ae3db57e449ae6dd..e845f2033e1be42896f891ee12b866d174214529
2021-07-16 xiaoyong931011
Merge branch 'score-shop' of http://120.27.238.55:7000/r/xzx into score-shop
e845f2 diff | tree
2021-07-16 xiaoyong931011
202107016
4f60ff diff | tree
2 files modified
6 ■■■■ changed files
gc-user/src/main/java/com/xzx/gc/user/vo/UserHeadInfoVo.java 3 ●●●●● patch | view | raw | blame | history
gc-user/src/main/resources/mapper/user/AccountMapper.xml 3 ●●●● patch | view | raw | blame | history
gc-user/src/main/java/com/xzx/gc/user/vo/UserHeadInfoVo.java
@@ -22,6 +22,9 @@
    @ApiModelProperty(value="累计金额")
    private BigDecimal amount;
    @ApiModelProperty(value="累计积分")
    private BigDecimal score;
    @ApiModelProperty(value="累计单数")
    private Integer orderCnt;
gc-user/src/main/resources/mapper/user/AccountMapper.xml
@@ -227,7 +227,8 @@
            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