|
@@ -2,6 +2,7 @@ package com.qmth.ops.biz.service;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.qmth.ops.biz.dao.VersionDao;
|
|
|
import com.qmth.ops.biz.domain.App;
|
|
|
import com.qmth.ops.biz.domain.Version;
|
|
@@ -14,7 +15,7 @@ import javax.annotation.Resource;
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
|
|
@Service
|
|
|
-public class VersionService {
|
|
|
+public class VersionService extends ServiceImpl<VersionDao, Version> {
|
|
|
|
|
|
@Resource
|
|
|
private VersionDao versionDao;
|
|
@@ -46,10 +47,6 @@ public class VersionService {
|
|
|
return versionDao.selectPage(query, query.build());
|
|
|
}
|
|
|
|
|
|
- public Version findByid(@NotNull Long id) {
|
|
|
- return versionDao.selectById(id);
|
|
|
- }
|
|
|
-
|
|
|
public Version findByAppAndNumber(@NotNull Long appId, @NotNull VersionNumber number) {
|
|
|
return versionDao.selectOne(new LambdaQueryWrapper<Version>().eq(Version::getAppId, appId)
|
|
|
.eq(Version::getMainNumber, number.getMain()).eq(Version::getMiddleNumber, number.getMiddle())
|