晏有为
2024-05-23 10de56ca16261e6a4eec49dfd32f0a6b232f7baf
framework/src/main/java/com/yuanchu/mom/utils/GiveCode.java
@@ -1,7 +1,6 @@
package com.yuanchu.mom.utils;
import com.yuanchu.mom.mapper.SystemLogMapper;
import lombok.Builder;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
@@ -21,7 +20,7 @@
        String nums = num + "";
        if(nums.length() == 1) nums = "00" + num;
        else if(nums.length() == 2) nums = "0" + num;
        return code + date2 + symbol + nums;
        return code + (date2==null?date:date2) + symbol + nums;
    }
}