farm模块-模型返回根据时间排序
This commit is contained in:
@@ -261,7 +261,6 @@ public class ModelManagementServiceImpl implements ModelManagementService {
|
|||||||
public ModelManagementRespVO getModelManagement(String id) {
|
public ModelManagementRespVO getModelManagement(String id) {
|
||||||
List<SysDictDO> dictDOList = sysDictService.getByTypeCode(CommonConstants.DICT_TYPE_CODE_4);
|
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));
|
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();
|
DisasterDataReqVO reqVO = new DisasterDataReqVO();
|
||||||
reqVO.setType(WEATHER_DISASTER);
|
reqVO.setType(WEATHER_DISASTER);
|
||||||
List<DisasterDataDO> weatherDisasterDataList = disasterDataService.getDisasterDataList(reqVO);
|
List<DisasterDataDO> weatherDisasterDataList = disasterDataService.getDisasterDataList(reqVO);
|
||||||
|
|||||||
@@ -15,5 +15,6 @@
|
|||||||
from farm_model_cycle
|
from farm_model_cycle
|
||||||
where model_id = #{modelId}
|
where model_id = #{modelId}
|
||||||
and deleted = 0
|
and deleted = 0
|
||||||
|
ORDER BY create_time
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -15,5 +15,6 @@
|
|||||||
from farm_model_environment_index
|
from farm_model_environment_index
|
||||||
where cycle_id = #{cycleId}
|
where cycle_id = #{cycleId}
|
||||||
and deleted = 0
|
and deleted = 0
|
||||||
|
ORDER BY create_time
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -15,5 +15,6 @@
|
|||||||
from farm_model_farming_operation
|
from farm_model_farming_operation
|
||||||
where cycle_id = #{cycleId}
|
where cycle_id = #{cycleId}
|
||||||
and deleted = 0
|
and deleted = 0
|
||||||
|
ORDER BY create_time
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -16,6 +16,7 @@
|
|||||||
from farm_model_farming_operation_input
|
from farm_model_farming_operation_input
|
||||||
where farming_id = #{farmingId}
|
where farming_id = #{farmingId}
|
||||||
and deleted = 0
|
and deleted = 0
|
||||||
|
ORDER BY create_time
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<delete id="deleteByFarmingId" parameterType="String">
|
<delete id="deleteByFarmingId" parameterType="String">
|
||||||
|
|||||||
@@ -15,5 +15,6 @@
|
|||||||
from farm_model_pest_disease_weed
|
from farm_model_pest_disease_weed
|
||||||
where cycle_id = #{cycleId}
|
where cycle_id = #{cycleId}
|
||||||
and deleted = 0
|
and deleted = 0
|
||||||
|
ORDER BY create_time
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -15,5 +15,6 @@
|
|||||||
from farm_model_weather_disaster
|
from farm_model_weather_disaster
|
||||||
where cycle_id = #{cycleId}
|
where cycle_id = #{cycleId}
|
||||||
and deleted = 0
|
and deleted = 0
|
||||||
|
ORDER BY create_time
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
Reference in New Issue
Block a user