fix: 气象数据查询&接口增加缓存
This commit is contained in:
parent
6908966271
commit
fd07f94f98
@ -5358,7 +5358,8 @@ public class WeFishServiceImpl implements WeFishService {
|
||||
Map<String, Object> paramMap = new HashMap<>();
|
||||
sql.append("SELECT COUNT(1) AS cnt FROM SD_MM_B_H mm ")
|
||||
.append("LEFT JOIN SD_ENGINFO_B_H eng ON eng.STCD = mm.RSTCD AND NVL(eng.IS_DELETED, 0) = 0 ")
|
||||
.append("WHERE NVL(mm.IS_DELETED, 0) = 0 ")
|
||||
.append("WHERE 1=1 ")
|
||||
// .append("AND NVL(mm.IS_DELETED, 0) = 0 ")
|
||||
.append("AND mm.STTP = 'MM' ")
|
||||
.append("AND NVL(mm.MWAY, 0) = 2 ");
|
||||
appendWeEnvmBaseIdCondition(sql, paramMap, "eng.BASE_ID", baseId);
|
||||
|
||||
@ -23,6 +23,7 @@ import org.apache.poi.xssf.usermodel.XSSFRow;
|
||||
import org.apache.poi.xssf.usermodel.XSSFSheet;
|
||||
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.cache.annotation.Cacheable;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
@ -48,6 +49,7 @@ public class MsThreedRoamMServiceImpl extends ServiceImpl<MsThreedRoamMMapper, M
|
||||
private MsThreedRoamMMapper msThreedRoamMMapper;
|
||||
|
||||
@Override
|
||||
@Cacheable(cacheNames = "threeDroambListCache#3600", keyGenerator = "cacheKeyGenerator")
|
||||
public DataSourceResult<MsThreedRoamMEntity> getKendoListCustReturn(DataSourceRequest dataSourceRequest) {
|
||||
DataSourceLoadOptionsBase loadOptions = dataSourceRequest == null ? null : dataSourceRequest.toDevRequest();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user