|
@@ -37,6 +37,7 @@ import com.chelvc.framework.database.entity.ModifyEntity;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.context.annotation.Lazy;
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
@@ -53,7 +54,7 @@ import java.util.stream.Collectors;
|
|
|
**/
|
|
|
@Slf4j
|
|
|
@Service
|
|
|
-@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
|
|
+@RequiredArgsConstructor(onConstructor = @__({@Lazy, @Autowired}))
|
|
|
public class AssessServiceImpl extends ServiceImpl<GoodsAssessMapper, GoodsAssess> implements AssessService {
|
|
|
private final UserClient userService;
|
|
|
private static final SimpleDateFormat SDF = new SimpleDateFormat("yyyy-MM-dd");
|