|
@@ -1,6 +1,7 @@
|
|
|
package com.pj.current.config;
|
|
|
|
|
|
import com.pj.common.core.utils.DateUtils;
|
|
|
+import com.pj.face.factory.FaceFactory;
|
|
|
import com.pj.sms.factory.SmsFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
@@ -54,6 +55,12 @@ public class SystemObject {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ public static FaceFactory factory;
|
|
|
+ @Autowired
|
|
|
+ void setConfig(FaceFactory factory) {
|
|
|
+ SystemObject.factory = factory;
|
|
|
+ }
|
|
|
+
|
|
|
// ===================================== 生成订单号工具类 ===================================================
|
|
|
|
|
|
public static String getREFcode(String rex, Date date) {
|