The code defines a Java method called sendTrainingMapData which takes a user ID and a move ID as input and returns a SendMapDto object. The method uses a GetDataServiceImpl object to retrieve the training ground data ID based on the provided user ID and move ID. It then iterates through a list of ProjectRouteMapData objects, checking the projectTypeId of each object. Based on the presence of project types 2 and 3, the method sets the appropriate values in the SendMapDto object, including the trainingGroundId and project values. If both project types 2 and 3 are present, the method filters the list to only include objects with projectTypeId equal to 3 before setting the projectRouteMapDataList field in the SendMapDto object. Finally, the method returns the SendMapDto object to the caller. The code appears to be correct and efficiently handles the different scenarios based on the project types present in the data.

Java Method for Sending Training Map Data Based on Project Type

原文地址: https://www.cveoy.top/t/topic/mzTF 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录