在线编辑文件 在国内 海外 企业 的编辑中进行回显
This commit is contained in:
+32
@@ -1913,6 +1913,38 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
||||
// 查询属性表数据
|
||||
if (StringUtils.isNotBlank(fieldInfo)) {
|
||||
Map<String, Object> getAttrMap = sarBussStandAttrInfoEODao.selectStandFieldAndData(fieldInfo,row.getId());
|
||||
if(getAttrMap.get("FBGBUSS")!=null){
|
||||
if(org.apache.commons.lang3.StringUtils.isNotBlank(getAttrMap.get("FBGBUSS").toString())){
|
||||
String[] split = getAttrMap.get("FBGBUSS").toString().split(",");
|
||||
String fileId = "";
|
||||
for (String id :split){
|
||||
if(id.contains("ATT_FILE_")){
|
||||
//则是正规数据
|
||||
if(org.apache.commons.lang3.StringUtils.isNotBlank(fileId)){
|
||||
fileId = fileId+","+ id;
|
||||
}else {
|
||||
fileId = id;
|
||||
}
|
||||
}else {
|
||||
//加工数据
|
||||
QueryWrapper<OnlineFileLog> onlineFileLogQueryWrapper = new QueryWrapper<>();
|
||||
onlineFileLogQueryWrapper.eq("HIS_ID",id);
|
||||
onlineFileLogQueryWrapper.orderByDesc("CREATE_TIME");
|
||||
List<OnlineFileLog> onlineFileLogs = onlineFileLogDao.selectList(onlineFileLogQueryWrapper);
|
||||
if(!onlineFileLogs.isEmpty()){
|
||||
if(org.apache.commons.lang3.StringUtils.isNotBlank(fileId)){
|
||||
fileId = fileId+","+onlineFileLogs.get(0).getAttFileId();
|
||||
}else {
|
||||
fileId = onlineFileLogs.get(0).getAttFileId();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Object obj = fileId;
|
||||
getAttrMap.put("FBGBUSS",obj);
|
||||
}
|
||||
}
|
||||
if (InitStandAttrUtil.clobFieldListBuss != null && !InitStandAttrUtil.clobFieldListBuss.isEmpty()) {
|
||||
// 遍历修改所有clob类型的值
|
||||
for (String clobField : InitStandAttrUtil.clobFieldListBuss) {
|
||||
|
||||
+32
@@ -760,6 +760,38 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
||||
// 查询属性表数据
|
||||
if (StringUtils.isNotBlank(fieldInfo)) {
|
||||
Map<String, Object> getAttrMap = sarStandAttrInfoEODao.selectStandFieldAndData(fieldInfo, row.getId());
|
||||
if(getAttrMap.get("FBGBJBD")!=null){
|
||||
if(StringUtils.isNotBlank(getAttrMap.get("FBGBJBD").toString())){
|
||||
String[] split = getAttrMap.get("FBGBJBD").toString().split(",");
|
||||
String fileId = "";
|
||||
for (String id :split){
|
||||
if(id.contains("ATT_FILE_")){
|
||||
//则是正规数据
|
||||
if(StringUtils.isNotBlank(fileId)){
|
||||
fileId = fileId+","+ id;
|
||||
}else {
|
||||
fileId = id;
|
||||
}
|
||||
}else {
|
||||
//加工数据
|
||||
QueryWrapper<OnlineFileLog> onlineFileLogQueryWrapper = new QueryWrapper<>();
|
||||
onlineFileLogQueryWrapper.eq("HIS_ID",id);
|
||||
onlineFileLogQueryWrapper.orderByDesc("CREATE_TIME");
|
||||
List<OnlineFileLog> onlineFileLogs = onlineFileLogDao.selectList(onlineFileLogQueryWrapper);
|
||||
if(!onlineFileLogs.isEmpty()){
|
||||
if(StringUtils.isNotBlank(fileId)){
|
||||
fileId = fileId+","+onlineFileLogs.get(0).getAttFileId();
|
||||
}else {
|
||||
fileId = onlineFileLogs.get(0).getAttFileId();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Object obj = fileId;
|
||||
getAttrMap.put("FBGBJBD",obj);
|
||||
}
|
||||
}
|
||||
if (InitStandAttrUtil.clobFieldList != null && !InitStandAttrUtil.clobFieldList.isEmpty()) {
|
||||
// 遍历修改所有clob类型的值
|
||||
for (String clobField : InitStandAttrUtil.clobFieldList) {
|
||||
|
||||
Reference in New Issue
Block a user