Commit 0e66071d authored by zhaji's avatar zhaji

Merge branch 'develop' into feature-zhaji

parents 23aaca5c ba24de0a
...@@ -34,7 +34,10 @@ import java.math.BigDecimal; ...@@ -34,7 +34,10 @@ import java.math.BigDecimal;
* @date 2022-08-05 11:40:14 * @date 2022-08-05 11:40:14
*/ */
@Data @Data
public class TStatisticsCurrentReportMarketVo extends RowIndex implements Serializable { public class TStatisticsCurrentReportMarketVo implements Serializable {
@ExcelAttribute(name = "行号")
private Integer rowIndex;
/** /**
* 税务主体(封面抬头) * 税务主体(封面抬头)
......
...@@ -135,18 +135,18 @@ public class TStatisticsCurrentReportMarketServiceImpl extends ServiceImpl<TStat ...@@ -135,18 +135,18 @@ public class TStatisticsCurrentReportMarketServiceImpl extends ServiceImpl<TStat
declareMonth = DateUtil.getYearMonth(cachedDataList.get(0).getCreateStart()); declareMonth = DateUtil.getYearMonth(cachedDataList.get(0).getCreateStart());
} }
if (Common.isEmpty(declareMonth)) { if (Common.isEmpty(declareMonth)) {
errorMessageList.add(new ErrorMessage(CommonConstants.ZERO_INT errorMessageList.add(new ErrorMessage(CommonConstants.TWO_INT
, "请检查‘税款所属期起’单元格格式是文本格式,且满足日期格式yyyy-MM-dd或yyyyMMdd")); , "请检查‘税款所属期起’单元格格式是文本格式,且满足日期格式yyyy-MM-dd或yyyyMMdd"));
} }
try { try {
Integer.parseInt(declareMonth); Integer.parseInt(declareMonth);
} catch (Exception e) { } catch (Exception e) {
errorMessageList.add(new ErrorMessage(CommonConstants.ZERO_INT errorMessageList.add(new ErrorMessage(CommonConstants.TWO_INT
, "请检查‘税款所属期起’单元格格式是文本格式,且满足日期格式yyyy-MM-dd或yyyyMMdd")); , "请检查‘税款所属期起’单元格格式是文本格式,且满足日期格式yyyy-MM-dd或yyyyMMdd"));
} }
declareTitle = cachedDataList.get(0).getInvoiceTitle(); declareTitle = cachedDataList.get(0).getInvoiceTitle();
if (Common.isEmpty(declareTitle)) { if (Common.isEmpty(declareTitle)) {
errorMessageList.add(new ErrorMessage(CommonConstants.ZERO_INT errorMessageList.add(new ErrorMessage(CommonConstants.TWO_INT
, "封面抬头全称-不能为空")); , "封面抬头全称-不能为空"));
} }
if (Common.isNotNull(declareMonth) && Common.isNotNull(declareTitle)) { if (Common.isNotNull(declareMonth) && Common.isNotNull(declareTitle)) {
...@@ -157,7 +157,7 @@ public class TStatisticsCurrentReportMarketServiceImpl extends ServiceImpl<TStat ...@@ -157,7 +157,7 @@ public class TStatisticsCurrentReportMarketServiceImpl extends ServiceImpl<TStat
queryWrapperSc.setEntity(sdsCheck); queryWrapperSc.setEntity(sdsCheck);
int count = baseMapper.getCountByMonthAndTitle(declareMonth, declareTitle); int count = baseMapper.getCountByMonthAndTitle(declareMonth, declareTitle);
if (count > CommonConstants.ZERO_INT) { if (count > CommonConstants.ZERO_INT) {
errorMessageList.add(new ErrorMessage(CommonConstants.ZERO_INT errorMessageList.add(new ErrorMessage(CommonConstants.TWO_INT
, "当前月同一-封面抬头全称-已存在数据。")); , "当前月同一-封面抬头全称-已存在数据。"));
} }
} }
......
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