|
@@ -4,6 +4,8 @@ import com.zfire.jiasm.syncdata.constant.TaskConfigEnum;
|
|
|
import com.zfire.jiasm.syncdata.service.AddInstallBusiness;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
+import org.springframework.scheduling.annotation.Scheduled;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.text.SimpleDateFormat;
|
|
@@ -13,7 +15,7 @@ import java.util.Date;
|
|
|
* 自建工单用户完工评价回复,生成平价信息 + 差评申诉信息
|
|
|
*/
|
|
|
@Slf4j
|
|
|
-// @Component
|
|
|
+@Component
|
|
|
public class SaleOrderEvaluate {
|
|
|
@Value("${smsinselfc}")
|
|
|
private String smsinselfc = "";
|
|
@@ -23,7 +25,7 @@ public class SaleOrderEvaluate {
|
|
|
|
|
|
|
|
|
// 自建工单短信回复 生成评价信息 + 申诉
|
|
|
- // @Scheduled(fixedDelayString = "${smsinself}")
|
|
|
+ @Scheduled(fixedDelayString = "${smsinself}")
|
|
|
public void orderAppraise() {
|
|
|
if (smsinselfc.equals(TaskConfigEnum.FALSE.getCode())){
|
|
|
return;
|