nili 9 months ago
parent
commit
28c943d566
  1. 3
      game-service/src/main/java/awesome/group/game/service/AdminService.java

3
game-service/src/main/java/awesome/group/game/service/AdminService.java

@ -21,6 +21,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import java.util.ArrayList;
import java.util.List;
@ -64,7 +65,7 @@ public class AdminService {
if (param.platform != null) {
wrapper.eq(MatrixAdvRecord::getPlatform, param.platform);
}
if (param.deviceId != null) {
if (StringUtils.hasText(param.deviceId)) {
wrapper.eq(MatrixAdvRecord::getDeviceId, param.deviceId);
}
wrapper.orderByDesc(MatrixAdvRecord::getId);

Loading…
Cancel
Save