1.1
陶杰
2024-10-15 db033597433fa6e6a5793567d9e1c45f09841797
1.1
已修改2个文件
8 ■■■■■ 文件已修改
src/main/resources/application-test.yml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/report/OrderReportMapper.xml 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application-test.yml
@@ -3,7 +3,7 @@
    active: test,swagger
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    url: jdbc:mysql://47.99.58.211:3306/flower?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2b8&allowMultiQueries=true
    url: jdbc:mysql://47.99.58.211:3306/flower4?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2b8&allowMultiQueries=true
    username: root
    password: Hmy@2024!*@&
    druid:
src/main/resources/mapper/report/OrderReportMapper.xml
@@ -229,7 +229,7 @@
        IFNULL(sum(order_lack_num),0) as order_lack_num,
        IFNULL(sum(order_num)-sum(order_lack_num),0) as real_sale_num
        from (
        select t2.payment_date,t2.id,t2.order_no,t2.create_by,ci.partner_id,p.name as partner_name,r2.* from (
        select t2.payment_date,t2.id,t2.order_no,t2.create_by,t2.partner_id,p.name as partner_name,r2.* from (
            SELECT t.*,
            CASE
            WHEN t.payment_time > DATE(t.payment_time) + INTERVAL 17 HOUR THEN DATE(t.payment_time) + INTERVAL 1 DAY
@@ -242,10 +242,8 @@
            )t2
            left join  ( <include refid="baseSqlWithDate"></include> ) r2
            on t2.id = r2.order_id
            left join t_customer_info ci
            on t2.create_by=ci.user_id
            left join t_partner_info p
            on ci.partner_id=p.id
            on t2.partner_id=p.id
        )t3
        where t3.partner_id is not null
        <if test="dto.paymentDateStart != null">