Merge remote-tracking branch 'origin/develop_master' into develop_master
This commit is contained in:
+2
-2
@@ -187,8 +187,8 @@ public class SarStandAttrInfo extends BaseEntity {
|
||||
private String sycpx;
|
||||
|
||||
@ApiModelProperty(value = "适用认证")
|
||||
@TableField("SYZD")
|
||||
private String syzd;
|
||||
@TableField("SYRZ")
|
||||
private String syrz;
|
||||
|
||||
@ApiModelProperty(value = "责任工程师")
|
||||
@TableField("ZRGCS")
|
||||
|
||||
+26
-1
@@ -316,6 +316,31 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
||||
return resultMap;
|
||||
}
|
||||
|
||||
public void attrInfoShowDetails(List<SarStandardsInfo> sarlist) throws Exception {
|
||||
for (SarStandardsInfo row : sarlist) {
|
||||
attrInfoDetails(row);
|
||||
Map<String, Object> getAttrMap = row.getAttrInfoMap();
|
||||
if (getAttrMap != null && getAttrMap.size() > 0) {
|
||||
for (Map.Entry<String, Object> entry : getAttrMap.entrySet()) {
|
||||
String name = entry.getKey();
|
||||
String value = "";
|
||||
if (entry.getValue() != null && InitStandAttrUtil.fileFieldList != null && InitStandAttrUtil.fileFieldList.size() > 0 && InitStandAttrUtil.fileFieldList.contains(name)) {
|
||||
value = entry.getValue().toString();
|
||||
if (StringUtils.isNotBlank(value)) {
|
||||
List<AttFileEO> fileObj = attFileEOService.getMultiFileInfos(value);
|
||||
entry.setValue(fileObj);
|
||||
}
|
||||
}else if (entry.getValue() != null && InitStandAttrUtil.selectionFieldList != null && InitStandAttrUtil.selectionFieldList.size() > 0 && InitStandAttrUtil.selectionFieldList.contains(name)) {
|
||||
value = entry.getValue().toString();
|
||||
List<String> valArr = Arrays.asList(value.split(","));
|
||||
value = dicTypeEODao.getDicNamesByCodes(valArr);
|
||||
entry.setValue(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void attrInfoShow(List<SarStandardsInfo> sarlist) throws Exception {
|
||||
for (SarStandardsInfo row : sarlist) {
|
||||
attrInfoDetails(row);
|
||||
@@ -1826,7 +1851,7 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
||||
if (resultlist.size() > 0) {
|
||||
List<SarStandardsInfo> sarStandardsInfoEOList = new ArrayList<>();
|
||||
sarStandardsInfoEOList.add(resultlist.get(0));
|
||||
attrInfoShow(sarStandardsInfoEOList);
|
||||
attrInfoShowDetails(sarStandardsInfoEOList);
|
||||
sarStandardsInfoEO = sarStandardsInfoEOList.get(0);
|
||||
}
|
||||
// 查询纳入清单的国家地区
|
||||
|
||||
+4
@@ -3,6 +3,7 @@ package com.adc.da.slrs.standardSplit.controller;
|
||||
import com.adc.da.att.service.IAttFileEOService;
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarStandFileEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarStandFileEOPage;
|
||||
import com.adc.da.slrs.standardSplit.service.SarStandAttrDetailsEOService;
|
||||
@@ -118,6 +119,9 @@ public class SarStandFileEOController extends BaseController<SarStandFileEO> {
|
||||
page.setFileSuffixList(suffix.split(","));
|
||||
}
|
||||
List<SarStandFileEO> rows = sarStandFileEOService.getStandFileListByPage(page);
|
||||
for (SarStandFileEO one:rows) {
|
||||
one.setAttId(one.getAttId1());
|
||||
}
|
||||
if (rows != null && !rows.isEmpty()) {
|
||||
for (SarStandFileEO sarStandFileEO : rows) {
|
||||
List<SelectionResult> getField = sarStandAttrDetailsEOService.selectFileFieldForSel(sarStandFileEO.getStandFileClassify());
|
||||
|
||||
@@ -21,6 +21,16 @@ public class SarStandFileEO extends BaseEntity {
|
||||
private String validFlag;
|
||||
private String useModel;
|
||||
private String attId;
|
||||
|
||||
public String getAttId1() {
|
||||
return attId1;
|
||||
}
|
||||
|
||||
public void setAttId1(String attId1) {
|
||||
this.attId1 = attId1;
|
||||
}
|
||||
|
||||
private String attId1;
|
||||
private String resId;
|
||||
private String standId;
|
||||
private String id;
|
||||
|
||||
+5
-2
@@ -37,9 +37,9 @@ import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
import com.adc.da.person.dao.PersonShareEODao;
|
||||
import com.adc.da.person.dao.PersonCollectEODao;
|
||||
import org.springframework.transaction.interceptor.TransactionAspectSupport;
|
||||
|
||||
@Service
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class SarFileSplitInfoEOServiceImpl implements SarFileSplitInfoEOService {
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarFileSplitInfoEOServiceImpl.class);
|
||||
|
||||
@@ -104,6 +104,7 @@ public class SarFileSplitInfoEOServiceImpl implements SarFileSplitInfoEOService
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public int fileAplit(SarFileSplitInfoEO sarFileSplitInfoEO){
|
||||
// 拆分文件主表中插入数据
|
||||
sarFileSplitInfoEO.setId(UUIDUtils.randomUUID20());
|
||||
@@ -135,7 +136,8 @@ public class SarFileSplitInfoEOServiceImpl implements SarFileSplitInfoEOService
|
||||
}
|
||||
try {
|
||||
AttFileEO attFileEO = attFileEOService.getFileInfo(sarFileSplitInfoEO.getAttId());
|
||||
String readFilePath = filePath + "/" + attFileEO.getFilePath() + attFileEO.getFileName();
|
||||
//String readFilePath = filePath + "/" + attFileEO.getFilePath() + attFileEO.getFileName();
|
||||
String readFilePath = filePath + attFileEO.getFilePath() + attFileEO.getFileName();
|
||||
|
||||
InputStream is = new FileInputStream(readFilePath); //需要将文件路更改为word文档所在路径。
|
||||
XWPFDocument doc = new XWPFDocument(is);
|
||||
@@ -317,6 +319,7 @@ public class SarFileSplitInfoEOServiceImpl implements SarFileSplitInfoEOService
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
||||
return -1;
|
||||
}
|
||||
if(treeList.size()>0 && messageList.size() > 0){
|
||||
|
||||
+3
@@ -263,6 +263,9 @@
|
||||
<if test="standId != null and standId != ''">
|
||||
and SAR_FILE_SPLIT_INFO.stand_id = #{standId}
|
||||
</if>
|
||||
<if test="sarType != null and sarType != ''">
|
||||
and SAR_TYPE = #{sarType}
|
||||
</if>
|
||||
<if test="id != null and id != ''">
|
||||
and SAR_FILE_SPLIT_INFO.id = #{id}
|
||||
</if>
|
||||
|
||||
+2
-1
@@ -20,6 +20,7 @@
|
||||
<result column="standNumber" property="standNumber" />
|
||||
<result column="standName" property="standName" />
|
||||
<result column="sarType" property="sarType" />
|
||||
<result column="attId1" property="attId1" />
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_STAND_FILE table all fields -->
|
||||
@@ -278,7 +279,7 @@
|
||||
CONCAT(SAR_STANDARDS_INFO.stand_sort,' ',SAR_STANDARDS_INFO.stand_number,'-',SAR_STANDARDS_INFO.stand_year)
|
||||
) ) AS standNumber,
|
||||
SAR_STANDARDS_INFO.stand_name as standName,
|
||||
SAR_STAND_FILE.att_id AS attId,
|
||||
SAR_STAND_FILE.att_id AS attId1,
|
||||
SAR_STANDARDS_INFO.STAND_TYPE as sarType
|
||||
FROM
|
||||
SAR_STAND_FILE
|
||||
|
||||
Reference in New Issue
Block a user