farm模块-模型返回根据时间排序

This commit is contained in:
顾君禹
2025-08-31 16:02:38 +08:00
parent 823784c337
commit c85d1bcab2
7 changed files with 6 additions and 1 deletions

View File

@@ -261,7 +261,6 @@ public class ModelManagementServiceImpl implements ModelManagementService {
public ModelManagementRespVO getModelManagement(String id) {
List<SysDictDO> dictDOList = sysDictService.getByTypeCode(CommonConstants.DICT_TYPE_CODE_4);
Map<String, String> dictMap = dictDOList.stream().filter(e -> e.getField2Code() != null).collect(Collectors.toMap(SysDictDO::getField2Code, SysDictDO::getField2Name, (v1, v2) -> v1));
DisasterDataReqVO reqVO = new DisasterDataReqVO();
reqVO.setType(WEATHER_DISASTER);
List<DisasterDataDO> weatherDisasterDataList = disasterDataService.getDisasterDataList(reqVO);

View File

@@ -15,5 +15,6 @@
from farm_model_cycle
where model_id = #{modelId}
and deleted = 0
ORDER BY create_time
</select>
</mapper>

View File

@@ -15,5 +15,6 @@
from farm_model_environment_index
where cycle_id = #{cycleId}
and deleted = 0
ORDER BY create_time
</select>
</mapper>

View File

@@ -15,5 +15,6 @@
from farm_model_farming_operation
where cycle_id = #{cycleId}
and deleted = 0
ORDER BY create_time
</select>
</mapper>

View File

@@ -16,6 +16,7 @@
from farm_model_farming_operation_input
where farming_id = #{farmingId}
and deleted = 0
ORDER BY create_time
</select>
<delete id="deleteByFarmingId" parameterType="String">

View File

@@ -15,5 +15,6 @@
from farm_model_pest_disease_weed
where cycle_id = #{cycleId}
and deleted = 0
ORDER BY create_time
</select>
</mapper>

View File

@@ -15,5 +15,6 @@
from farm_model_weather_disaster
where cycle_id = #{cycleId}
and deleted = 0
ORDER BY create_time
</select>
</mapper>