|
|
@@ -508,4 +508,14 @@ public class ArchiveFileController extends BladeController {
|
|
|
FindAndReplaceDto1 dto1 = new FindAndReplaceDto1(dto, archiveFiles);
|
|
|
return R.status(archiveFileClient.findAndReplace(dto1));
|
|
|
}
|
|
|
+ @PostMapping("/sumPageTotal")
|
|
|
+ @ApiOperationSupport(order = 19)
|
|
|
+ @ApiOperation(value = "统计页数")
|
|
|
+ public R sumPageTotal(@RequestBody List<Integer>list){
|
|
|
+ if(!list.isEmpty()){
|
|
|
+ return R.data(list.stream().mapToInt(Integer::intValue).sum());
|
|
|
+ }else {
|
|
|
+ return R.data(0);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|