Merge remote-tracking branch 'origin/develop_master' into develop_master
This commit is contained in:
@@ -168,9 +168,9 @@ public class ScheduledJob {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 定时更新文本状态
|
||||
*/
|
||||
@Scheduled(cron = "0 0 0 * * ?") //每天的凌晨0点执行
|
||||
// @Scheduled(cron="*/5 * * * * ?")
|
||||
@Async
|
||||
|
||||
+15
-3
@@ -66,9 +66,21 @@ public class SarStandFileEOServiceImpl implements SarStandFileEOService {
|
||||
|
||||
@Override
|
||||
public List<SarStandFileEO> selectFileByStandId(String standId) {
|
||||
QueryWrapper<SarStandFileEO> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("STAND_ID",standId).groupBy("ORI_ATT_ID");
|
||||
return sarStandFileEODao.selectList(queryWrapper);
|
||||
QueryWrapper<SarStandFileEO> queryWrapper= new QueryWrapper<>();
|
||||
|
||||
queryWrapper.eq("STAND_ID",standId).eq("USE_MODEL","WEB_FILE");
|
||||
List<SarStandFileEO> sarStandFileEOS = sarStandFileEODao.selectList(queryWrapper);
|
||||
|
||||
sarStandFileEOS.forEach(item->{
|
||||
QueryWrapper<SarStandFileEO> wrapper = new QueryWrapper<>();
|
||||
wrapper.eq("ORI_ATT_ID",item.getOriAttId())
|
||||
.eq("USE_MODEL","SOURCE_FILE");
|
||||
SarStandFileEO sarStandFileEO = sarStandFileEODao.selectOne(wrapper);
|
||||
item.setFileOldName(sarStandFileEO.getFileName());
|
||||
});
|
||||
|
||||
return sarStandFileEOS;
|
||||
|
||||
// return sarStandFileEODao.selectFileByStandId(standId);r
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user