Browse Source

月指标报表

develop
bobol 11 months ago
parent
commit
2446689dea
  1. 7
      lzbi-module/src/main/java/com/lzbi/draft/service/ReportService.java

7
lzbi-module/src/main/java/com/lzbi/draft/service/ReportService.java

@ -14,7 +14,6 @@ import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.lang.reflect.Field;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CountDownLatch;
@Slf4j
@ -36,7 +35,7 @@ public class ReportService {
TargetDraftMonthReportReq req = JSONObject.parseObject(JSONObject.toJSONString(targetDraftMonthReportReq), TargetDraftMonthReportReq.class);
req.setTargetModelCode(targetModelCode);
List<TargetDraftMonthReportValueDTO> targetDraftMonthReportValueDTOS = dcBusiTargetDraftMonthMapper.selectTargetDraftMonthReportValue(req);
log.info("{} 执行完成,结果是 {}", targetModelCode, JSONArray.toJSONString(targetDraftMonthReportValueDTOS));
log.info("{} 执行完成,结果是 {}", targetModelCode, targetDraftMonthReportValueDTOS);
for (int i = 0, len = list.size(); i < len; i++) {
TargetDraftMonthReportVO targetDraftMonthReportVO = list.get(i);
for (int j = targetDraftMonthReportValueDTOS.size() - 1; j >= 0; j--) {
@ -48,9 +47,7 @@ public class ReportService {
declaredField.setAccessible(true);
}
declaredField.set(targetDraftMonthReportVO, targetDraftMonthReportValueDTO.getValue());
} catch (NoSuchFieldException e) {
throw new RuntimeException(e);
} catch (IllegalAccessException e) {
} catch (NoSuchFieldException | IllegalAccessException e) {
throw new RuntimeException(e);
}
targetDraftMonthReportValueDTOS.remove(j);

Loading…
Cancel
Save