add:修改在线编辑存储多条数据问题

This commit is contained in:
wxyclub
2023-07-26 10:03:36 +08:00
parent d60bc2c9da
commit 102c9625d5
@@ -5029,10 +5029,18 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
QueryWrapper<OnlineFileLog> onlineFileLogWrapper = new QueryWrapper<>();
onlineFileLogWrapper.eq("ATT_FILE_ID",sarBussStandFiles.get(0).getOriAttId());
List<OnlineFileLog> onlineFileLogs = onlineFileLogDao.selectList(onlineFileLogWrapper);
QueryWrapper<SarBussStandFile> webFileWrapper = new QueryWrapper<>();
webFileWrapper.eq("ORI_ATT_ID", sarBussStandFiles.get(0).getAttId());
webFileWrapper.eq("USE_MODEL", "WEB_FILE");
webFileWrapper.eq("VALID_FLAG","0");
List<SarBussStandFile> webFile = sarBussStandFileEODao.selectList(webFileWrapper);
if (!webFile.isEmpty()){
continue;
}
if(!onlineFileLogs.isEmpty()){
//在线编辑的情况下判断是否有web
// QueryWrapper<SarBussStandFile> objectQueryWrapperSarBussStandFile = new QueryWrapper<>();
// objectQueryWrapperSarBussStandFile.eq("ORI_ATT_ID", sarBussStandFiles.get(0).getOriAttId());
// objectQueryWrapperSarBussStandFile.eq("ORI_ATT_ID", sarBussStandFiles.get(0).getAttId());
// objectQueryWrapperSarBussStandFile.eq("USE_MODEL", "WEB_FILE");
// List<SarBussStandFile> sarBussStandFilesList = sarBussStandFileEODao.selectList(objectQueryWrapperSarBussStandFile);
// if(!sarBussStandFilesList.isEmpty()){