rain
2024-04-01 cbc882364d43e66e8a7d2a2256ab951994195457
src/main/java/com/dji/sample/patches/service/impl/GetPatchesServiceImpl.java
@@ -11,6 +11,7 @@
import com.dji.sample.patches.model.Param.PatchesParam;
import com.dji.sample.patches.model.entity.LotInfo;
import com.dji.sample.patches.service.GetPatchesService;
import com.dji.sample.wayline.model.entity.WaylineFileEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@@ -25,7 +26,9 @@
    @Override
    public PaginationData<LotInfo> limitGet(PatchesParam param) {
        Page<LotInfo> page = mapper.selectPage(new Page<LotInfo>(param.getPage(), param.getPageSize()), null);
        Page<LotInfo> page = mapper.selectPage(new Page<LotInfo>(param.getPage(), param.getPageSize()),
                new LambdaQueryWrapper<LotInfo>()
                        .eq(LotInfo::getItemId,param.getItemId()));
        List<LotInfo> records = page.getRecords()
                .stream()
                .collect(Collectors.toList());