xiaoyong931011
2022-12-23 de78e1c4d9e054a8a72f1786ad44eb2d39c386d8
20221221
3 files modified
10 ■■■■ changed files
src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallOrderInfoServiceImpl.java 4 ●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/mall/vo/ApiMallSubsidyAmountInfoVo.java 2 ●●● patch | view | raw | blame | history
src/main/resources/mapper/modules/MallOrderInfoMapper.xml 4 ●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallOrderInfoServiceImpl.java
@@ -701,8 +701,8 @@
        //今日补贴
        BigDecimal todayAmount = this.baseMapper.selectTodayAmountByCreateTimeAndMemberId(yyyyMMddToday,member.getId());
        apiMallSubsidyAmountInfoVo.setTodayAmount(todayAmount);
        //今日累计接单
        Integer todayTotalCnt = this.baseMapper.selectCountByCreateTimeAndMemberId(yyyyMMddToday,member.getId());
        //累计接单
        Integer todayTotalCnt = this.baseMapper.selectCountByCreateTimeAndMemberId(null,member.getId());
        apiMallSubsidyAmountInfoVo.setTodayTotalCnt(todayTotalCnt);
        //昨日补贴
        BigDecimal yesterdayAmount = this.baseMapper.selectTodayAmountByCreateTimeAndMemberId(yyyyMMddYesterday,member.getId());
src/main/java/cc/mrbird/febs/mall/vo/ApiMallSubsidyAmountInfoVo.java
@@ -16,7 +16,7 @@
    @ApiModelProperty(value = "今日补贴")
    private BigDecimal todayAmount = BigDecimal.ZERO;
    @ApiModelProperty(value = "今日累计接单")
    @ApiModelProperty(value = "累计接单")
    private Integer todayTotalCnt = 0;
    @ApiModelProperty(value = "昨日补贴")
src/main/resources/mapper/modules/MallOrderInfoMapper.xml
@@ -323,7 +323,7 @@
            count(a.id)
        from mall_order_info a
        where
              a.status <![CDATA[>= ]]> 4
              a.status = 4
            and a.member_id = #{memberId}
            <if test="createdTime != null">
                and date_format(a.CREATED_TIME, '%Y-%m-%d') = #{createdTime}
@@ -336,7 +336,7 @@
                ifnull(sum(a.subsidy_amount),0)
            from mall_order_info a
            where
                  a.status <![CDATA[>= ]]> 4
                  a.status = 4
                and a.member_id = #{memberId}
            <if test="createdTime != null">
                and date_format(a.CREATED_TIME, '%Y-%m-%d') = #{createdTime}