陶杰
2024-12-16 7c8da7766dfe845c19847a9d5e8ec9b93d2a9392
1.阿里云服务器欠费异常处理
2.行政区划部分数据有问题-临时性修改
已修改3个文件
30 ■■■■ 文件已修改
src/main/java/com/mzl/flower/service/UploadService.java 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/LocList.xml 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/payment/OrderMapper.xml 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/mzl/flower/service/UploadService.java
@@ -3,6 +3,7 @@
import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClientBuilder;
import com.mzl.flower.config.OssProperties;
import com.mzl.flower.config.exception.ValidationException;
import com.mzl.flower.utils.UUIDGenerator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -42,10 +43,12 @@
            // 把上传之后文件路径返回,需手动拼接上传到阿里云的oss路径
            // https://edu-mys.oss-cn-chengdu.aliyuncs.com/yy.JPG
            String url = bucketName + "." + endPoint + "/" + filename;
            return url;
        } catch (Exception e) {
            e.printStackTrace();
            return null;
            throw new ValidationException("上传到云服务器发生异常");
//            return null;
        }
    }
}
src/main/resources/LocList.xml
@@ -26,7 +26,7 @@
        <Region Name="河东" Code="2" />
        <Region Name="河西" Code="3" />
        <Region Name="南开" Code="4" />
        <Region Name="河北" Code="5" />
        <Region Name="河北区" Code="5" />
        <Region Name="红桥" Code="6" />
        <Region Name="滨海新区" Code="26" />
        <Region Name="东丽" Code="10" />
@@ -618,7 +618,7 @@
        <Region Name="调兵山市" Code="81" />
        <Region Name="开原市" Code="82" />
      </City>
      <City Name="朝阳" Code="13">
      <City Name="朝阳市" Code="13">
        <Region Name="双塔区" Code="2" />
        <Region Name="龙城区" Code="3" />
        <Region Name="朝阳县" Code="21" />
src/main/resources/mapper/payment/OrderMapper.xml
@@ -203,13 +203,6 @@
                and  o.transfer_id is null
                and o.status in ('COLLECTION','SEND')
            )
--             AND exists(
--                 select 1 from t_order_item oi
--                 where oi.order_id = q.id
--                 and oi.status in ('abnormal','reduce','lack','back')
--             )
--             and q.transfer_id is null
--             and q.status in ('COLLECTION', 'SEND')
        </if>
        <if test="condition.abnormalOrderStatus != null and condition.abnormalOrderStatus != '' and condition.abnormalOrderStatus == 'PROCESSED'">
@@ -225,20 +218,6 @@
                and  o.transfer_id is null
                and o.status in ('COLLECTION','SEND')
            )
--             AND  exists(
--                 select 1 from t_order_item oi
--                 where oi.order_id = q.id
--                 and oi.status in ('abnormal','reduce','lack','back')
--             )
--             AND not exists(
--                 select 1 from t_order_item oi
--                 where oi.order_id = q.id
--                 and oi.status in ('abnormal','reduce','lack','back')
--                 and q.transfer_id is null
--                 and q.status in ('COLLECTION', 'SEND')
--             )
        </if>
        ORDER BY q.create_time desc, q.payment_time desc