fix
Hentua
2023-04-20 9bd759f5a7ad5fe0b47105efd7cacf3f4bf7e9a8
src/main/resources/mapper/modules/MallAchieveRecordMapper.xml
@@ -13,4 +13,19 @@
        </if>
    </select>
    <select id="selectSumAchieveByMemberIds" resultType="java.math.BigDecimal">
        select IFNULL(sum(IFNULL(amount,0)),0)
        from mall_achieve_record
        where  member_id IN
        <foreach collection = "list" item = "item"  separator=","  open = "(" close = ")" >
            #{item}
        </foreach >
        and date_format(achieve_time, '%Y-%m-%d') = date_format(#{date}, '%Y-%m-%d');
    </select>
    <select id="selectListByDate" resultType="cc.mrbird.febs.mall.entity.MallAchieveRecord">
        select * from mall_achieve_record
        where date_format(achieve_time, '%Y-%m-%d') = date_format(#{date}, '%Y-%m-%d');
    </select>
</mapper>