Ver código fonte

对账单数据补全

skyline 2 anos atrás
pai
commit
5565dc60ed

+ 2 - 2
admin-web/src/views/admin/station/statment/dialog.vue

@@ -115,9 +115,9 @@
 
             注意:乙方通过运营平台收取扣除相应费用以后的“实际收取的充电服务费收益”*甲方分成比例,甲方收益分成比例为{{(state.ruleForm.splittingProportion*100).toFixed(2)}}%。<br>
 
-            结算账户:{{ state.ruleForm.adminUserName }}          &nbsp;&nbsp;  联系电话:{{ state.ruleForm.adminUserName }}   <br>
+            结算账户:{{ state.ruleForm.accountName }}          &nbsp;&nbsp;  联系电话:{{ state.ruleForm.telephone }}   <br>
 
-            开户行:{{ state.ruleForm.adminUserName }}      &nbsp;&nbsp;     银行账号:{{ state.ruleForm.adminUserName }}   <br>
+            开户行:{{ state.ruleForm.bankName }}      &nbsp;&nbsp;     银行账号:{{ state.ruleForm.bankCardNo }}   <br>
           </td>
         </tr>
         </tbody>

+ 1 - 1
admin/src/main/java/com/kym/admin/controller/StatementsController.java

@@ -44,7 +44,7 @@ public class StatementsController {
      */
     @GetMapping("/preview/{statId}")
     R<?> preview(@PathVariable("statId") String statId) {
-        return R.success(statementsService.getById(statId));
+        return R.success(statementsService.preview(statId));
     }
 
     /**

+ 0 - 1551
admin/src/main/resources/template/statement.html

@@ -1,1551 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
-<html>
-<head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-    <meta name="generator" content="PhpSpreadsheet, https://github.com/PHPOffice/PhpSpreadsheet">
-    <title>Untitled Spreadsheet</title>
-    <meta name="title" content="Untitled Spreadsheet"/>
-    <meta name="company" content="Microsoft Corporation"/>
-    <style type="text/css">
-        html {
-            font-family: Calibri, Arial, Helvetica, sans-serif;
-            font-size: 11pt;
-            background-color: white
-        }
-
-        a.comment-indicator:hover + div.comment {
-            background: #ffd;
-            position: absolute;
-            display: block;
-            border: 1px solid black;
-            padding: 0.5em
-        }
-
-        a.comment-indicator {
-            background: red;
-            display: inline-block;
-            border: 1px solid black;
-            width: 0.5em;
-            height: 0.5em
-        }
-
-        div.comment {
-            display: none
-        }
-
-        table {
-            border-collapse: collapse;
-            page-break-after: always
-        }
-
-        .gridlines td {
-            border: 1px dotted black
-        }
-
-        .gridlines th {
-            border: 1px dotted black
-        }
-
-        .b {
-            text-align: center
-        }
-
-        .e {
-            text-align: center
-        }
-
-        .f {
-            text-align: right
-        }
-
-        .inlineStr {
-            text-align: left
-        }
-
-        .n {
-            text-align: right
-        }
-
-        .s {
-            text-align: left
-        }
-
-        td.style0 {
-            vertical-align: middle;
-            border-bottom: none #000000;
-            border-top: none #000000;
-            border-left: none #000000;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style0 {
-            vertical-align: middle;
-            border-bottom: none #000000;
-            border-top: none #000000;
-            border-left: none #000000;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style1 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: none #000000;
-            border-top: none #000000;
-            border-left: none #000000;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style1 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: none #000000;
-            border-top: none #000000;
-            border-left: none #000000;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style2 {
-            vertical-align: middle;
-            border-bottom: none #000000;
-            border-top: none #000000;
-            border-left: none #000000;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style2 {
-            vertical-align: middle;
-            border-bottom: none #000000;
-            border-top: none #000000;
-            border-left: none #000000;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style3 {
-            vertical-align: middle;
-            border-bottom: none #000000;
-            border-top: none #000000;
-            border-left: none #000000;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style3 {
-            vertical-align: middle;
-            border-bottom: none #000000;
-            border-top: none #000000;
-            border-left: none #000000;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style4 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            font-weight: bold;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 16pt;
-            background-color: #DDEBF7
-        }
-
-        th.style4 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            font-weight: bold;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 16pt;
-            background-color: #DDEBF7
-        }
-
-        td.style5 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: none #000000;
-            font-weight: bold;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 16pt;
-            background-color: #DDEBF7
-        }
-
-        th.style5 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: none #000000;
-            font-weight: bold;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 16pt;
-            background-color: #DDEBF7
-        }
-
-        td.style6 {
-            vertical-align: middle;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style6 {
-            vertical-align: middle;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style7 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style7 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style8 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style8 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style9 {
-            vertical-align: middle;
-            text-align: left;
-            padding-left: 0px;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: #DDEBF7
-        }
-
-        th.style9 {
-            vertical-align: middle;
-            text-align: left;
-            padding-left: 0px;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: #DDEBF7
-        }
-
-        td.style10 {
-            vertical-align: middle;
-            text-align: left;
-            padding-left: 0px;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: #DDEBF7
-        }
-
-        th.style10 {
-            vertical-align: middle;
-            text-align: left;
-            padding-left: 0px;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: #DDEBF7
-        }
-
-        td.style11 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style11 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style12 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: 'Microsoft YaHei';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style12 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: 'Microsoft YaHei';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style13 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: #FFFFFF
-        }
-
-        th.style13 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: #FFFFFF
-        }
-
-        td.style14 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style14 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style15 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style15 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style16 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: #FFFFFF
-        }
-
-        th.style16 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: #FFFFFF
-        }
-
-        td.style17 {
-            vertical-align: middle;
-            text-align: left;
-            padding-left: 0px;
-            border-bottom: none #000000;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: #DDEBF7
-        }
-
-        th.style17 {
-            vertical-align: middle;
-            text-align: left;
-            padding-left: 0px;
-            border-bottom: none #000000;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: #DDEBF7
-        }
-
-        td.style18 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: none #000000;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style18 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: none #000000;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style19 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style19 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style20 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: none #000000;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            color: #000000;
-            font-family: 'Microsoft YaHei';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style20 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: none #000000;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            color: #000000;
-            font-family: 'Microsoft YaHei';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style21 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: none #000000;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style21 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: none #000000;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style22 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: 'Microsoft YaHei';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style22 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: 'Microsoft YaHei';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style23 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style23 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style24 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style24 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style25 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style25 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style26 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style26 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style27 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style27 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style28 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style28 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style29 {
-            vertical-align: middle;
-            text-align: left;
-            padding-left: 0px;
-            border-bottom: 1px solid #000000 !important;
-            border-top: none #000000;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: #DDEBF7
-        }
-
-        th.style29 {
-            vertical-align: middle;
-            text-align: left;
-            padding-left: 0px;
-            border-bottom: 1px solid #000000 !important;
-            border-top: none #000000;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: #DDEBF7
-        }
-
-        td.style30 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style30 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style31 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style31 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style32 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style32 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style33 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style33 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style34 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style34 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style35 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style35 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style36 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style36 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style37 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style37 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style38 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style38 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style39 {
-            vertical-align: middle;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style39 {
-            vertical-align: middle;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style40 {
-            vertical-align: middle;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style40 {
-            vertical-align: middle;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: 1px solid #000000 !important;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style41 {
-            vertical-align: middle;
-            border-bottom: none #000000;
-            border-top: none #000000;
-            border-left: none #000000;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style41 {
-            vertical-align: middle;
-            border-bottom: none #000000;
-            border-top: none #000000;
-            border-left: none #000000;
-            border-right: none #000000;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style42 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: 1px solid #000000 !important;
-            font-weight: bold;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 16pt;
-            background-color: #DDEBF7
-        }
-
-        th.style42 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: 1px solid #000000 !important;
-            font-weight: bold;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 16pt;
-            background-color: #DDEBF7
-        }
-
-        td.style43 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        th.style43 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: white
-        }
-
-        td.style44 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: #FFFFFF
-        }
-
-        th.style44 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: #FFFFFF
-        }
-
-        td.style45 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: #FFFFFF
-        }
-
-        th.style45 {
-            vertical-align: middle;
-            text-align: center;
-            border-bottom: 1px solid #000000 !important;
-            border-top: 1px solid #000000 !important;
-            border-left: none #000000;
-            border-right: 1px solid #000000 !important;
-            color: #000000;
-            font-family: '微软雅黑';
-            font-size: 12pt;
-            background-color: #FFFFFF
-        }
-
-        table.sheet0 col.col0 {
-            width: 80.65555463pt
-        }
-
-        table.sheet0 col.col1 {
-            width: 117.25555421pt
-        }
-
-        table.sheet0 col.col2 {
-            width: 100.31110996pt
-        }
-
-        table.sheet0 col.col3 {
-            width: 82.68888794pt
-        }
-
-        table.sheet0 col.col4 {
-            width: 96.24444334pt
-        }
-
-        table.sheet0 col.col5 {
-            width: 122.67777637pt
-        }
-
-        table.sheet0 col.col6 {
-            width: 94.21111003pt
-        }
-
-        table.sheet0 col.col7 {
-            width: 80.65555463pt
-        }
-
-        table.sheet0 col.col8 {
-            width: 80.65555463pt
-        }
-
-        table.sheet0 col.col9 {
-            width: 42pt
-        }
-
-        table.sheet0 col.col10 {
-            width: 42pt
-        }
-
-        table.sheet0 col.col11 {
-            width: 48.79999944pt
-        }
-
-        table.sheet0 tr {
-            height: 14.25pt
-        }
-
-        table.sheet0 tr.row0 {
-            height: 40pt
-        }
-
-        table.sheet0 tr.row1 {
-            height: 35pt
-        }
-
-        table.sheet0 tr.row2 {
-            height: 35pt
-        }
-
-        table.sheet0 tr.row3 {
-            height: 30pt
-        }
-
-        table.sheet0 tr.row4 {
-            height: 35pt
-        }
-
-        table.sheet0 tr.row5 {
-            height: 35pt
-        }
-
-        table.sheet0 tr.row6 {
-            height: 30pt
-        }
-
-        table.sheet0 tr.row7 {
-            height: 35pt
-        }
-
-        table.sheet0 tr.row8 {
-            height: 35pt
-        }
-
-        table.sheet0 tr.row9 {
-            height: 30pt
-        }
-
-        table.sheet0 tr.row10 {
-            height: 35pt
-        }
-
-        table.sheet0 tr.row11 {
-            height: 35pt
-        }
-
-        table.sheet0 tr.row12 {
-            height: 30pt
-        }
-
-        table.sheet0 tr.row13 {
-            height: 123pt
-        }
-
-        table.sheet0 tr.row14 {
-            height: 22pt
-        }
-
-        table.sheet0 tr.row15 {
-            height: 14.25pt
-        }
-
-        table.sheet0 tr.row16 {
-            height: 14.25pt
-        }
-
-        table.sheet0 tr.row17 {
-            height: 14.25pt
-        }
-
-        table.sheet0 tr.row18 {
-            height: 14.25pt
-        }
-
-        table.sheet0 tr.row19 {
-            height: 14.25pt
-        }
-
-        table.sheet0 tr.row20 {
-            height: 14.25pt
-        }
-
-        table.sheet0 tr.row21 {
-            height: 14.25pt
-        }
-
-        table.sheet0 tr.row22 {
-            height: 14.25pt
-        }
-
-        table.sheet0 tr.row23 {
-            height: 14.25pt
-        }
-
-        table.sheet0 tr.row24 {
-            height: 14.25pt
-        }
-
-        @page {
-            margin-left: 0.75in;
-            margin-right: 0.75in;
-            margin-top: 1in;
-            margin-bottom: 1in;
-        }
-
-        body {
-            margin-left: 0.75in;
-            margin-right: 0.75in;
-            margin-top: 1in;
-            margin-bottom: 1in;
-        }
-    </style>
-</head>
-
-<body>
-
-<table border="0" cellpadding="0" cellspacing="0" id="sheet0" class="sheet0 gridlines">
-    <col class="col0">
-    <col class="col1">
-    <col class="col2">
-    <col class="col3">
-    <col class="col4">
-    <col class="col5">
-    <col class="col6">
-    <col class="col7">
-    <col class="col8">
-    <col class="col9">
-    <col class="col10">
-    <col class="col11">
-    <tbody>
-    <tr class="row0">
-        <td class="column0 style4 s style42" colspan="9">深圳市快与慢充电桩服务有限公司—阳光科创中心对账单</td>
-    </tr>
-    <tr class="row1">
-        <td class="column0 style6 s">客户名称</td>
-        <td class="column1 style7 s style43" colspan="8">邱XX</td>
-    </tr>
-    <tr class="row2">
-        <td class="column0 style6 s">所属期间</td>
-        <td class="column1 style7 s style43" colspan="8">2023年8月1日—2023年8月31日</td>
-    </tr>
-    <tr class="row3">
-        <td class="column0 style9 s style10" colspan="9">
-            一、APP后台数据(含税,订单总金额为电费金额,实际电费为快与慢代收代付)(电量单位为“度”,电费和服务费以及金额单位为“元”)
-        </td>
-    </tr>
-    <tr class="row4">
-        <td class="column0 style11 s">站点名称</td>
-        <td class="column1 style11 s">充电电量</td>
-        <td class="column2 style12 s">①<span
-                style="color:#000000; font-family:'微软雅黑'; font-size:12pt">订单电费</span>
-        </td>
-        <td class="column3 style11 s">电表电量</td>
-        <td class="column4 style12 s">②<span
-                style="color:#000000; font-family:'微软雅黑'; font-size:12pt">电表电费</span>
-        </td>
-        <td class="column5 style11 s">电损金额=②-①</td>
-        <td class="column6 style11 s">对账服务费</td>
-        <td class="column7 style13 s style44" colspan="2">订单总金额</td>
-    </tr>
-    <tr class="row5">
-        <td class="column0 style11 s">阳光科创中心</td>
-        <td class="column1 style14 n">10441.30</td>
-        <td class="column2 style15 n">6874.05</td>
-        <td class="column3 style14 n">10800.00</td>
-        <td class="column4 style14 n">7182.57</td>
-        <td class="column5 style15 f">308.52</td>
-        <td class="column6 style15 n">8331.78</td>
-        <td class="column7 style16 f style45" colspan="2">15205.83</td>
-    </tr>
-    <tr class="row6">
-        <td class="column0 style9 s style17" colspan="9">二、客户结算数据(含税)(电费和服务费以及金额单位为“元”)</td>
-    </tr>
-    <tr class="row7">
-        <td class="column0 style18 s">站点名称</td>
-        <td class="column1 style18 s">①对账服务费</td>
-        <td class="column2 style19 s">②电损金额</td>
-        <td class="column3 style20 s style21" colspan="2">③<span
-                style="color:#000000; font-family:'微软雅黑'; font-size:12pt">实际服务费收入=</span><span
-                style="color:#000000; font-family:'Microsoft YaHei'; font-size:12pt">①</span><span
-                style="color:#000000; font-family:'微软雅黑'; font-size:12pt">-</span><span
-                style="color:#000000; font-family:'Microsoft YaHei'; font-size:12pt">②</span></td>
-        <td class="column5 style22 s">④<span
-                style="color:#000000; font-family:'微软雅黑'; font-size:12pt">分成比例</span>
-        </td>
-        <td class="column6 style19 s style19" colspan="3">分成金额=<span
-                style="color:#000000; font-family:'Microsoft YaHei'; font-size:12pt">③</span><span
-                style="color:#000000; font-family:'微软雅黑'; font-size:12pt">*</span><span
-                style="color:#000000; font-family:'Microsoft YaHei'; font-size:12pt">④</span></td>
-    </tr>
-    <tr class="row8">
-        <td class="column0 style23 s">阳光科创中心</td>
-        <td class="column1 style24 f">8331.78</td>
-        <td class="column2 style15 f">308.52</td>
-        <td class="column3 style25 f style26" colspan="2">8023.26</td>
-        <td class="column5 style27 n">45%</td>
-        <td class="column6 style28 f style28" colspan="3">3610.47</td>
-    </tr>
-    <tr class="row9">
-        <td class="column0 style9 s style29" colspan="9">三、客户结算数据(不含税)(税额和金额单位为“元”)</td>
-    </tr>
-    <tr class="row10">
-        <td class="column0 style23 s style30" colspan="2">①分成金额</td>
-        <td class="column2 style23 s style31" colspan="2">增值税率</td>
-        <td class="column4 style23 s style31" colspan="2">②应纳增值税额</td>
-        <td class="column6 style23 s style31" colspan="3">应付金额=①-②</td>
-    </tr>
-    <tr class="row11">
-        <td class="column0 style33 f style34" colspan="2">3610.47</td>
-        <td class="column2 style35 n style31" colspan="2">6%</td>
-        <td class="column4 style36 f style37" colspan="2">228.89</td>
-        <td class="column6 style36 f style37" colspan="3">3381.58</td>
-    </tr>
-    <tr class="row12">
-        <td class="column0 style9 s style10" colspan="9">备注:</td>
-    </tr>
-    <tr class="row13">
-        <td class="column0 style39 s style40" colspan="9">分成金额=实际服务费收入*分成比例<br/>
-            <br/>
-            <span style="color:#000000; font-family:'微软雅黑'; font-size:12pt">注意:乙方通过运营平台收取扣除相应费用以后的“实际收取的充电服务费收益”*甲方分成比例,甲方收益分成比例为45%。<br/>
-</span><span style="color:#000000; font-family:'微软雅黑'; font-size:12pt"><br/>
-结算账户:邱XX                        联系电话:15519381000<br/>
-<br/>
-开户行:建设银行应城支行              银行账号:6217002720009460000</span></td>
-    </tr>
-    </tbody>
-</table>
-</body>
-</html>

+ 149 - 0
entity/src/main/java/com/kym/entity/admin/vo/StatementsVo.java

@@ -0,0 +1,149 @@
+package com.kym.entity.admin;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.kym.entity.BaseEntity;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 客户对账单
+ * </p>
+ *
+ * @author skyline
+ * @since 2023-12-27
+ */
+@Getter
+@Setter
+@TableName("t_statements")
+@Accessors(chain = true)
+public class Statements extends BaseEntity {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 客户用户id
+     */
+    private Long adminUserId;
+
+    /**
+     * 客户姓名
+     */
+    private String adminUserName;
+
+    /**
+     * 站点id
+     */
+    private String stationId;
+
+    /**
+     * 站点名称
+     */
+    private String stationName;
+
+    /**
+     * 统计时间(月)
+     */
+    private String statMonth;
+
+    /**
+     * 订单电量
+     */
+    private Double totalPower;
+
+    /**
+     * 实际抄表电量
+     */
+    private Double actualPower;
+
+    /**
+     * 电损电量
+     */
+    private Double elecLossPower;
+
+    /**
+     * 订单金额(分)
+     */
+    private Integer totalMoney;
+
+    /**
+     * 订单电费金额(分)
+     */
+    private Integer elecMoney;
+
+    /**
+     * 实际抄表电费金额(分)
+     */
+    private Integer actualElecMoney;
+
+    /**
+     * 电损电费金额(分)
+     */
+    private Integer elecLossMoney;
+
+    /**
+     * 服务费金额(分)
+     */
+    private Integer serviceMoney;
+
+    /**
+     * 优惠金额(分)
+     */
+    private Integer discountAmount;
+
+    /**
+     * 服务费优惠金额(分)
+     */
+    private Integer serviceMoneyDiscount;
+
+    /**
+     * 实际参与分成的服务费(分)
+     */
+    private Integer actualServiceMoney;
+
+    /**
+     * 分成比例 0.45表示45%
+     */
+    private Double splittingProportion;
+
+    /**
+     * 分成金额(分)
+     */
+    private Integer splittingAmount;
+
+    /**
+     * 电损承担比例 0.30代表30%
+     */
+    private Double elecLossProportion;
+
+    /**
+     * 电损承担金额(分)
+     */
+    private Integer elecLossAmount;
+
+    /**
+     * 增值税率 0.06表示6%
+     */
+    private Double vatRate;
+
+    /**
+     * 增值税额(分)
+     */
+    private Integer vatAmount;
+
+    /**
+     * 实际分成金额
+     */
+    private Integer actualSplittingAmount;
+
+    /**
+     * 状态:0-无效,1-有效
+     */
+    private Byte status;
+
+    /**
+     * 备注
+     */
+    private String remark;
+}

+ 3 - 0
service/src/main/java/com/kym/service/admin/StatementsService.java

@@ -3,6 +3,7 @@ package com.kym.service.admin;
 import com.baomidou.mybatisplus.extension.service.IService;
 import com.kym.entity.admin.Statements;
 import com.kym.entity.admin.queryParams.StatementsQueryParam;
+import com.kym.entity.admin.vo.StatementsVo;
 import com.kym.entity.common.PageBean;
 
 /**
@@ -18,4 +19,6 @@ public interface StatementsService extends IService<Statements> {
     void createStatements(String statMonthId);
 
     PageBean<Statements> listStatements(StatementsQueryParam params);
+
+    StatementsVo preview(String statId);
 }

+ 12 - 0
service/src/main/java/com/kym/service/admin/impl/StatementsServiceImpl.java

@@ -8,12 +8,14 @@ import com.kym.entity.admin.InvestorInfo;
 import com.kym.entity.admin.Statements;
 import com.kym.entity.admin.StationStatMonth;
 import com.kym.entity.admin.queryParams.StatementsQueryParam;
+import com.kym.entity.admin.vo.StatementsVo;
 import com.kym.entity.common.PageBean;
 import com.kym.mapper.admin.StatementsMapper;
 import com.kym.service.admin.InvestorInfoService;
 import com.kym.service.admin.StatementsService;
 import com.kym.service.admin.StationStatMonthService;
 import com.kym.service.cache.KymCache;
+import org.springframework.beans.BeanUtils;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 
@@ -109,4 +111,14 @@ public class StatementsServiceImpl extends ServiceImpl<StatementsMapper, Stateme
                 .list();
         return new PageBean<>(res);
     }
+
+    @Override
+    public StatementsVo preview(String statId) {
+        var statements = getById(statId);
+        var investorInfo = investorInfoService.lambdaQuery().eq(InvestorInfo::getAdminUserId, statements.getAdminUserId()).one();
+        var statementsVo = new StatementsVo();
+        BeanUtils.copyProperties(statements, statementsVo);
+        BeanUtils.copyProperties(investorInfo, statementsVo);
+        return statementsVo;
+    }
 }