张涛 1 год назад
Родитель
Сommit
ecdf26ccd9

+ 1
- 1
deploy/.s/1636896505560465-cn-shanghai-stategrid-service-invoice-filling-httpTrigger.json Просмотреть файл

@@ -22,7 +22,7 @@
22 22
       "disableURLInternet": false
23 23
     },
24 24
     "createdTime": "2022-07-18T02:02:16Z",
25
-    "lastModifiedTime": "2023-09-11T09:38:02Z",
25
+    "lastModifiedTime": "2023-09-11T10:40:24Z",
26 26
     "status": null,
27 27
     "targetArn": null,
28 28
     "name": "httpTrigger"

+ 3
- 3
deploy/.s/1636896505560465-cn-shanghai-stategrid-service-invoice-filling.json Просмотреть файл

@@ -8,13 +8,13 @@
8 8
     "timeout": 30,
9 9
     "initializer": "",
10 10
     "initializationTimeout": 3,
11
-    "codeSize": 69229221,
12
-    "codeChecksum": "3053493131185536708",
11
+    "codeSize": 69224674,
12
+    "codeChecksum": "6416792759513366220",
13 13
     "memorySize": 1024,
14 14
     "gpuMemorySize": null,
15 15
     "environmentVariables": {},
16 16
     "createdTime": "2022-07-18T02:02:16Z",
17
-    "lastModifiedTime": "2023-09-11T09:37:59Z",
17
+    "lastModifiedTime": "2023-09-11T10:40:21Z",
18 18
     "instanceConcurrency": 1,
19 19
     "instanceSoftConcurrency": null,
20 20
     "customContainerConfig": null,

+ 1
- 1
deploy/.s/1636896505560465-cn-shanghai-stategrid-service.json Просмотреть файл

@@ -12,7 +12,7 @@
12 12
     },
13 13
     "serviceId": "6e96fa7b-9988-4908-b06a-0aa7e510c881",
14 14
     "createdTime": "2022-02-26T04:50:56Z",
15
-    "lastModifiedTime": "2023-09-11T09:38:02Z",
15
+    "lastModifiedTime": "2023-09-11T10:40:24Z",
16 16
     "vpcConfig": {
17 17
       "vpcId": "",
18 18
       "vSwitchIds": [],

+ 1
- 1
deploy/.s/invoice-filling.stategrid.njyunzhi.com.json Просмотреть файл

@@ -36,7 +36,7 @@
36 36
     ]
37 37
   },
38 38
   "createdTime": "2022-07-18T02:03:47Z",
39
-  "lastModifiedTime": "2023-09-11T09:38:03Z",
39
+  "lastModifiedTime": "2023-09-11T10:40:24Z",
40 40
   "keepFullPath": null,
41 41
   "subdomainCount": null,
42 42
   "wafConfig": null

+ 1
- 1
deploy/s.prod.yaml Просмотреть файл

@@ -49,7 +49,7 @@ services:
49 49
       function:
50 50
         name: invoice-filling
51 51
         description: '发票确认'
52
-        codeUri: ../target/invoice-0.0.7.jar
52
+        codeUri: ../target/invoice-0.0.8.jar
53 53
         runtime: custom
54 54
         memorySize: 1024
55 55
         timeout: 30

+ 1
- 1
pom.xml Просмотреть файл

@@ -10,7 +10,7 @@
10 10
 	</parent>
11 11
 	<groupId>com.njyunzhi</groupId>
12 12
 	<artifactId>invoice</artifactId>
13
-	<version>0.0.6</version>
13
+	<version>0.0.8</version>
14 14
 	<name>invoice-fill</name>
15 15
 	<description>发票填报</description>
16 16
 	<properties>

+ 2
- 2
src/main/java/com/njyunzhi/invoice/config/cros/CorsConfig.java Просмотреть файл

@@ -28,9 +28,9 @@ public class CorsConfig implements WebMvcConfigurer {
28 28
 //        registration.allowCredentials(true);
29 29
         // 域名
30 30
         String origin = request.getHeader("Origin");
31
-        registration.allowedOrigins(origin);
31
+        registration.allowedOrigins(toArray(crosProperties.getOrigins()));
32 32
         //放行哪些请求方式
33
-        registration.allowedMethods("*");
33
+        registration.allowedMethods(toArray(crosProperties.getMethods()));
34 34
         //放行哪些原始请求头部信息
35 35
         registration.allowedHeaders("*");
36 36
         //暴露哪些原始请求头部信息

+ 9
- 0
src/main/java/com/njyunzhi/invoice/entity/TaInvoiceDetail.java Просмотреть файл

@@ -10,6 +10,7 @@ import com.baomidou.mybatisplus.annotation.TableId;
10 10
 import java.io.Serializable;
11 11
 import java.util.List;
12 12
 
13
+import com.njyunzhi.invoice.common.excel.IsNeedLodqingCoverter;
13 14
 import io.swagger.annotations.ApiModel;
14 15
 import io.swagger.annotations.ApiModelProperty;
15 16
 import lombok.Data;
@@ -108,6 +109,14 @@ public class TaInvoiceDetail implements Serializable {
108 109
     @ApiModelProperty(value = "住宿清单")
109 110
     private String stayRemark;
110 111
 
112
+        @ExcelProperty(index = 12, converter = IsNeedLodqingCoverter.class)
113
+    @ApiModelProperty(value = "0不需要 1需要 是否需要住宿清单")
114
+    private String isNeedLodging;
115
+
116
+    @ExcelProperty(index = 13)
117
+    @ApiModelProperty(value = "房号")
118
+    private String roomCode;
119
+
111 120
     @ApiModelProperty(value = "收件人姓名")
112 121
     private String mailUser;
113 122
 

+ 1
- 1
src/main/resources/application-dev.yml Просмотреть файл

@@ -8,7 +8,7 @@ spring:
8 8
   datasource:
9 9
     url: jdbc:mysql://112.2.2.154:3394/invoice_fill?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
10 10
     username: invoice_fill
11
-    password: invoice_fill@ABCD1234
11
+    password: invoice_fill
12 12
 
13 13
 wx:
14 14
   mp:

Двоичные данные
src/main/resources/excel/invoice_tpl.xlsx Просмотреть файл


+ 3
- 1
src/main/resources/mapper/TaInvoiceDetailMapper.xml Просмотреть файл

@@ -104,7 +104,9 @@
104 104
             t.`mail_phone`,
105 105
             t.`mail_address`,
106 106
             t.`status`,
107
-            t.`create_date`
107
+            t.`create_date`,
108
+            t.`is_need_lodging`,
109
+            t.`room_code`
108 110
         FROM
109 111
             ta_invoice_detail t
110 112
                 INNER JOIN ta_invoice_item s ON t.invoice_id = s.invoice_id AND t.invoice_person_id = s.invoice_person_id