Commit 9ffc22d9 authored by fangxinjiang's avatar fangxinjiang

B端调优---社保查询BUG & 结算列表调试

parent c4a405a2
...@@ -101,11 +101,13 @@ public class TBusSettleServiceImpl extends ServiceImpl<TBusSettleMapper, TBusSet ...@@ -101,11 +101,13 @@ public class TBusSettleServiceImpl extends ServiceImpl<TBusSettleMapper, TBusSet
File etractFile = null; File etractFile = null;
try { try {
String fileType = FileTypeUtil.getType(file.getInputStream()); String fileType = FileTypeUtil.getType(file.getInputStream());
if (!StringUtils.equalsIgnoreCase(fileType, CommonConstants.ZIP_TYPE)) { if (!StringUtils.equalsIgnoreCase(fileType, CommonConstants.JAR_TYPE)) {
return R.failed("导入的文件格式不正确"); return R.failed("导入的文件格式不正确");
} }
String[] destoryName = StringUtils.split(StringUtils.removeEndIgnoreCase(file.getOriginalFilename() String[] destoryName = StringUtils.split(StringUtils.removeEndIgnoreCase(file.getOriginalFilename()
.replace(".jar","")
.replace(".zip","")
, CommonConstants.SPOT.concat(fileType)), CommonConstants.DOWN_LINE_CHAR); , CommonConstants.SPOT.concat(fileType)), CommonConstants.DOWN_LINE_CHAR);
if (null != destoryName && destoryName.length == 2) { if (null != destoryName && destoryName.length == 2) {
TBusSettle busSettle = this.lambdaQuery() TBusSettle busSettle = this.lambdaQuery()
......
...@@ -46,7 +46,12 @@ mybatis-plus: ...@@ -46,7 +46,12 @@ mybatis-plus:
spring: spring:
application: application:
name: @artifactId@ name: @artifactId@
servlet:
multipart:
#所有上传文件最大大小
max-request-size: 100MB
#单个文件最大大小
max-file-size: 50MB
#swagger 文档 https://springdoc.org/ #swagger 文档 https://springdoc.org/
### OpenAPI3 注解 ### OpenAPI3 注解
# OpenAPI 3 注解位置 # OpenAPI 3 注解位置
......
...@@ -334,6 +334,8 @@ public interface CommonConstants { ...@@ -334,6 +334,8 @@ public interface CommonConstants {
int EIGHT_INT = 8; int EIGHT_INT = 8;
public static final String ZIP_TYPE = "zip"; public static final String ZIP_TYPE = "zip";
public static final String JAR_TYPE = "jar";
int BATCH_COUNT = 100; int BATCH_COUNT = 100;
int BATCH_COUNT1 = 2000; int BATCH_COUNT1 = 2000;
String IMPORT_DATA_ANALYSIS_ERROR = "数据导入解析异常,请检查表数据格式(1.日期格式:yyyy-MM-dd,2.比例为整数且不含%)"; String IMPORT_DATA_ANALYSIS_ERROR = "数据导入解析异常,请检查表数据格式(1.日期格式:yyyy-MM-dd,2.比例为整数且不含%)";
......
...@@ -1423,9 +1423,9 @@ ...@@ -1423,9 +1423,9 @@
a.UNIT_UNEMPLOYMENT_SET, a.UNIT_UNEMPLOYMENT_SET,
a.UNIT_INJURY_SET, a.UNIT_INJURY_SET,
a.UNIT_BIRTH_SET, a.UNIT_BIRTH_SET,
a.PERSONAL_PENSION_SET, a.UNIT_PENSION_SET as PERSONAL_PENSION_SET,
a.PERSONAL_MEDICAL_SET, a.UNIT_MEDICAL_SET as PERSONAL_MEDICAL_SET,
a.PERSONAL_UNEMPLOYMENT_SET, a.UNIT_UNEMPLOYMENT_SET as PERSONAL_UNEMPLOYMENT_SET,
a.UNIT_PENSION_PER, a.UNIT_PENSION_PER,
a.UNIT_MEDICAL_PER, a.UNIT_MEDICAL_PER,
a.UNIT_UNEMPLOYMENT_PER, a.UNIT_UNEMPLOYMENT_PER,
...@@ -1509,12 +1509,12 @@ ...@@ -1509,12 +1509,12 @@
<if test="tPaymentInfo.createTime != null"> <if test="tPaymentInfo.createTime != null">
AND a.CREATE_TIME = #{tPaymentInfo.createTime} AND a.CREATE_TIME = #{tPaymentInfo.createTime}
</if> </if>
<if test="tPaymentInfo.lastUpdateUser != null and tPaymentInfo.lastUpdateUser.trim() != ''"> <!--<if test="tPaymentInfo.lastUpdateUser != null and tPaymentInfo.lastUpdateUser.trim() != ''">
AND a.UPDATE_BY = #{tPaymentInfo.lastUpdateUser} AND a.UPDATE_BY = #{tPaymentInfo.lastUpdateUser}
</if> </if>
<if test="tPaymentInfo.lastUpdateTime != null"> <if test="tPaymentInfo.lastUpdateTime != null">
AND a.UPDATE_TIME = #{tPaymentInfo.lastUpdateTime} AND a.UPDATE_TIME = #{tPaymentInfo.lastUpdateTime}
</if> </if>-->
<if test="tPaymentInfo.lockStatus != null and tPaymentInfo.lockStatus.trim() != ''"> <if test="tPaymentInfo.lockStatus != null and tPaymentInfo.lockStatus.trim() != ''">
AND a.LOCK_STATUS = #{tPaymentInfo.lockStatus} AND a.LOCK_STATUS = #{tPaymentInfo.lockStatus}
</if> </if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment