|
@@ -1,6 +1,7 @@
|
|
|
package com.cpp.web.service.datafactory.impl;
|
|
|
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
+import com.cpp.common.utils.spring.SpringUtils;
|
|
|
import com.cpp.web.domain.datafactory.BaseParsing;
|
|
|
import com.cpp.web.domain.datafactory.dto.ParsingResultDto;
|
|
|
import com.cpp.web.domain.datafactory.enums.FileTypeEnum;
|
|
@@ -13,6 +14,7 @@ import com.cpp.web.utils.LogUtil;
|
|
|
import com.cpp.web.utils.ParsingFileUtil;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.Data;
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -31,11 +33,10 @@ import java.util.List;
|
|
|
*/
|
|
|
@Service("statusParsing")
|
|
|
@Slf4j
|
|
|
-@AllArgsConstructor
|
|
|
+@RequiredArgsConstructor
|
|
|
@Transactional
|
|
|
public class ParsingStatusServiceImpl implements ParsingInterface {
|
|
|
|
|
|
- private final OverhaulPlanService overhaulPlanService;
|
|
|
|
|
|
@Override
|
|
|
public boolean save(BaseParsing parsingInfo) {
|
|
@@ -121,7 +122,7 @@ public class ParsingStatusServiceImpl implements ParsingInterface {
|
|
|
overhaulPlans.add(overhaulPlan);
|
|
|
}
|
|
|
|
|
|
- overhaulPlanService.saveBatch(overhaulPlans);
|
|
|
+ SpringUtils.getBean(OverhaulPlanService.class).saveBatch(overhaulPlans);
|
|
|
}
|
|
|
|
|
|
}
|