farm模块-模型返回根据时间排序
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -15,5 +15,6 @@
|
||||
from farm_model_cycle
|
||||
where model_id = #{modelId}
|
||||
and deleted = 0
|
||||
ORDER BY create_time
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -15,5 +15,6 @@
|
||||
from farm_model_environment_index
|
||||
where cycle_id = #{cycleId}
|
||||
and deleted = 0
|
||||
ORDER BY create_time
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -15,5 +15,6 @@
|
||||
from farm_model_farming_operation
|
||||
where cycle_id = #{cycleId}
|
||||
and deleted = 0
|
||||
ORDER BY create_time
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -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">
|
||||
|
||||
@@ -15,5 +15,6 @@
|
||||
from farm_model_pest_disease_weed
|
||||
where cycle_id = #{cycleId}
|
||||
and deleted = 0
|
||||
ORDER BY create_time
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -15,5 +15,6 @@
|
||||
from farm_model_weather_disaster
|
||||
where cycle_id = #{cycleId}
|
||||
and deleted = 0
|
||||
ORDER BY create_time
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user