|
@@ -125,6 +125,23 @@ public class PrintServiceImpl implements PrintService {
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
|
+ public Result getPrintConfigByTableId(String reportTableId) {
|
|
|
|
+ Print print = printDao.getPrintByReportId(reportTableId);
|
|
|
|
+ if (Blank.isEmpty(print)) {
|
|
|
|
+ return Result.ok(new PrintConfig());
|
|
|
|
+ }
|
|
|
|
+ Integer printConfigId = print.getPrintConfigId();
|
|
|
|
+ if (Blank.isEmpty(printConfigId)) {
|
|
|
|
+ return Result.ok(new PrintConfig());
|
|
|
|
+ }
|
|
|
|
+ PrintConfig printConfig = printDao.getPrintConfigById(printConfigId);
|
|
|
|
+ if (Blank.isEmpty(printConfig)) {
|
|
|
|
+ return Result.ok(new PrintConfig());
|
|
|
|
+ }
|
|
|
|
+ return Result.ok(printConfig);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
public Result getPrintConfigById(Integer id) {
|
|
public Result getPrintConfigById(Integer id) {
|
|
return Result.ok(printDao.getPrintConfigById(id));
|
|
return Result.ok(printDao.getPrintConfigById(id));
|
|
}
|
|
}
|