企业标准导入功能测试
This commit is contained in:
+93
@@ -0,0 +1,93 @@
|
|||||||
|
package com.adc.da.slrs.sarBussStandAttrInfo.entity;
|
||||||
|
|
||||||
|
import com.adc.da.base.entity.BaseEntity;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author
|
||||||
|
* @since 2023-02-28
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class SarBussStandAttrInfoExecl extends BaseEntity {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "标准基础表主键")
|
||||||
|
private String standId;
|
||||||
|
|
||||||
|
private String creationUser;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "是否有效")
|
||||||
|
private String validFlag;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建时间")
|
||||||
|
private Date creationTime;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "修改时间")
|
||||||
|
private Date modifyTime;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "体系类别")
|
||||||
|
private String txlbbuss;
|
||||||
|
|
||||||
|
private String bdtqbbhbuss;
|
||||||
|
|
||||||
|
private String dtqbbhbuss;
|
||||||
|
|
||||||
|
private String glwj;
|
||||||
|
|
||||||
|
private String svpps;
|
||||||
|
|
||||||
|
private String gfxyywj;
|
||||||
|
|
||||||
|
private String zrbm;
|
||||||
|
|
||||||
|
private Date fzrq;
|
||||||
|
|
||||||
|
private Date fsrq;
|
||||||
|
|
||||||
|
private String qbmj;
|
||||||
|
|
||||||
|
private String qbsq;
|
||||||
|
|
||||||
|
private String qbwb;
|
||||||
|
|
||||||
|
private String gcwb;
|
||||||
|
|
||||||
|
private String zyqcr;
|
||||||
|
|
||||||
|
private String qcfbw;
|
||||||
|
|
||||||
|
private String xglc;
|
||||||
|
|
||||||
|
private String xgbm;
|
||||||
|
|
||||||
|
private String xhqbm;
|
||||||
|
|
||||||
|
private String zqcbm;
|
||||||
|
|
||||||
|
private String qtqcr;
|
||||||
|
|
||||||
|
private String wfspjs;
|
||||||
|
|
||||||
|
private String xgjh;
|
||||||
|
|
||||||
|
//附件
|
||||||
|
private String fbgBuss;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
+7
-5
@@ -22,6 +22,7 @@ import com.adc.da.slrs.otConvertMq.dao.OtConvertMqDao;
|
|||||||
import com.adc.da.slrs.otConvertMq.entity.OtConvertMq;
|
import com.adc.da.slrs.otConvertMq.entity.OtConvertMq;
|
||||||
import com.adc.da.slrs.sarBussStandAttrInfo.dao.SarBussStandAttrInfoDao;
|
import com.adc.da.slrs.sarBussStandAttrInfo.dao.SarBussStandAttrInfoDao;
|
||||||
import com.adc.da.slrs.sarBussStandAttrInfo.entity.SarBussStandAttrInfo;
|
import com.adc.da.slrs.sarBussStandAttrInfo.entity.SarBussStandAttrInfo;
|
||||||
|
import com.adc.da.slrs.sarBussStandAttrInfo.entity.SarBussStandAttrInfoExecl;
|
||||||
import com.adc.da.slrs.sarBussStandFile.dao.SarBussStandFileDao;
|
import com.adc.da.slrs.sarBussStandFile.dao.SarBussStandFileDao;
|
||||||
import com.adc.da.slrs.sarBussStandFile.entity.SarBussStandFile;
|
import com.adc.da.slrs.sarBussStandFile.entity.SarBussStandFile;
|
||||||
import com.adc.da.slrs.sarBussStandItems.dao.SarBussStandItemsDao;
|
import com.adc.da.slrs.sarBussStandItems.dao.SarBussStandItemsDao;
|
||||||
@@ -2048,22 +2049,23 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
String s = "";
|
String s = "";
|
||||||
if (row != null && !isBlank) {
|
if (row != null && !isBlank) {
|
||||||
if (i != 0){
|
if (i != 0){
|
||||||
SarBussStandAttrInfo sarBussStandAttrInfo = new SarBussStandAttrInfo();
|
SarBussStandAttrInfoExecl sarBussStandAttrInfoExecl = new SarBussStandAttrInfoExecl();
|
||||||
String str = "";
|
String str = row.getCell(27).getStringCellValue();
|
||||||
String[] split = str.split(",");
|
String[] split = str.split(",");
|
||||||
if (split.length != 0){
|
if (split.length != 0){
|
||||||
for (int j = 0;j < split.length;j++){
|
for (int j = 0;j < split.length;j++){
|
||||||
File files = new File("/");
|
File files = new File("/");
|
||||||
AttFileVo attFileVo = attFileEOService.saveFileInfo(files);
|
AttFileVo attFileVo = attFileEOService.saveFileInfo(files);
|
||||||
if (StringUtils.isNotBlank(s)){
|
if (StringUtils.isNotBlank(attFileVo.getId())){
|
||||||
s = "," + attFileVo.getAttId();
|
s = "," + attFileVo.getAttId();
|
||||||
}else {
|
}else {
|
||||||
s = attFileVo.getAttId();
|
s = attFileVo.getAttId();
|
||||||
}
|
}
|
||||||
|
sarBussStandAttrInfoExecl.setFbgBuss(s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
SarBussStandAttrInfo sarBussStandAttrInfo = new SarBussStandAttrInfo();
|
||||||
|
|
||||||
}
|
}
|
||||||
int columNos = headerRow.getLastCellNum();// 表头总共的列数
|
int columNos = headerRow.getLastCellNum();// 表头总共的列数
|
||||||
Map<String, String> rowList = new LinkedHashMap<>();
|
Map<String, String> rowList = new LinkedHashMap<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user