fix(crm-admin): 解决Excel导出和数据库连接问题

- 增加导出接口的produces属性,指定响应内容类型为application/octet-stream,以确保浏览器正确处理Excel文件。
- 更新应用配置,更改数据库和Redis连接信息。
This commit is contained in:
mzr 2024-08-22 11:35:19 +08:00
parent 4980dc2e8d
commit 802e339ecf
3 changed files with 5 additions and 5 deletions

View File

@ -163,7 +163,7 @@ public class BankCardExcel {
**/
@ResponseBody
@RequestMapping(value = "/exportBankCard", method = RequestMethod.GET)
@ApiOperation(value = "导出银行卡档案")
@ApiOperation(value = "导出银行卡档案", produces = "application/octet-stream")
public void exportBankCard(
@ApiParam(required = true, value = "token") @RequestParam(required = true) String token,
@ApiParam(required = false, value = "行政区域") @RequestParam(required = false) String region,

View File

@ -49,7 +49,7 @@ public class CollectionRecordsExcel {
**/
@ResponseBody
@RequestMapping(value = "/exportCollectionRecords", method = RequestMethod.GET)
@ApiOperation(value = "导出收款记录")
@ApiOperation(value = "导出收款记录", produces = "application/octet-stream")
public void exportCollectionRecords(
@ApiParam(required = false, value = "客户编码") @RequestParam(required = false) String customerCode,
@ApiParam(required = false, value = "客户名称") @RequestParam(required = false) String customerName,

View File

@ -2,13 +2,13 @@ spring:
#redis
redis:
# 地址
host: 192.168.0.124
host: 121.37.179.211
# 端口默认为6379
port: 6379
# 数据库索引
database: 15
# 密码
password: 123456
password: yunjiaokj123
# 连接超时时间
timeout: 1000
@ -23,7 +23,7 @@ spring:
datasource-oracle:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: oracle.jdbc.OracleDriver
url: jdbc:oracle:thin:@60.204.129.13:1521:ORCL
url: jdbc:oracle:thin:@121.37.179.211:1521:ORCL
username: kesai
password: kesai