Skip to content
View SunJiFengPlus's full-sized avatar

Organizations

@DevopsChina

Block or report SunJiFengPlus

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
SunJiFengPlus/README.md

SunJiFengPlus's GitHub

Readme Card Readme Card
Readme Card Readme Card

Pinned Loading

  1. 月订单指标充血模型 月订单指标充血模型
    1
    /**
    2
     * 月订单领域模型, 具备领域自治能力
    3
     *
    4
     * 比率为 null 与 0 有不同的语义
    5
     * null 表示当前数据不足以计算环比或同比, 比如同比需要去年本月份的sales, 但去年本月没有订单, 这时返回 null
  2. 优雅处理按类型排序 优雅处理按类型排序
    1
    @Getter
    2
    @AllArgsConstructor
    3
    public enum CommunitySortType {
    4
    
                  
    5
        /*
  3. 使用正则表达式重构代码 使用正则表达式重构代码
    1
    重构前
    2
    ```java
    3
        private ServerInfo resolveServerInfo(String serverAddress) {
    4
            String property = System.getProperty("nacos.server.port", "8848");
    5
            int serverPort = Integer.parseInt(property);
  4. 使用Stream重构代码 使用Stream重构代码
    1
    重构前
    2
    ```java
    3
        public boolean validate() {
    4
            if (isAllIPs()) {
    5
                return true;