Fancy
2024-09-10 939d5f3d5e17e5ca0bfeec9c23c7c926b4cb1684
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.dy.pmsOther.dyFm;
 
import com.dy.common.util.DateTime;
 
public class FileName {
 
    
    public static String createFileName(boolean useYmdhms, String id, String fileExtName){
        if(useYmdhms){
            return DateTime.yyyyMMddHHmmss() + "_" + id + "." + fileExtName ;
        }else{
            return id + "." + fileExtName ;
        }
    }
    
    public static String createIconName(String clientId, String fileExtName){
        return clientId + "_" + DateTime.yyyyMMddHHmmss() + "." + fileExtName ;
    }
    
}