feat: 老法规外标导入逻辑

This commit is contained in:
2023-12-04 15:02:28 +08:00
parent 1b074eb4a7
commit 9cc05f3d5b
10 changed files with 572 additions and 116 deletions
@@ -1,5 +1,6 @@
package com.jero.modules.laws.enterprise.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
@@ -51,11 +52,11 @@ public class OldSystemImportDTO {
@Excel(name = "ZTC", width = 15, orderNum = "12")
private String ztc;
@Excel(name = "FBRQ", width = 15, orderNum = "13", format = "yyyyMMdd")
private Date fbrq;
@Excel(name = "FBRQ", width = 15, orderNum = "13")
private String fbrq;
@Excel(name = "SSRQ", width = 15, orderNum = "14", format = "yyyyMMdd")
private Date ssrq;
@Excel(name = "SSRQ", width = 15, orderNum = "14")
private String ssrq;
@Excel(name = "TY", width = 15, orderNum = "15")
private String ty;
@@ -168,12 +169,16 @@ public class OldSystemImportDTO {
@Excel(name = "BZCOUNTRY", width = 15, orderNum = "51")
private String bzcountry;
@Excel(name = "错误信息", width = 35, orderNum = "52")
@TableField(exist = false)
private String errorInfo;
/**
* 判断是否是空行
* @return 如果所有字段都为null或空字符串,返回true,否则返回false
*/
public boolean isEmptyRow() {
return id == null && bzh == null && status == null && cybzh == null
return id == null && status == null && cybzh == null
&& bzmc == null && bzywmc == null && bzfl == null && bzyytype == null
&& bzdjtype == null && bzlbtype == null && bzlcgj == null && bzsydw == null
&& ztc == null && fbrq == null && ssrq == null && ty == null