New file |
| | |
| | | package com.dsh.course.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dsh.course.entity.VersionManagement; |
| | | import com.dsh.course.mapper.VersionManagementMapper; |
| | | import com.dsh.course.service.IVersionManagementService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Map; |
| | | |
| | | @Service |
| | | public class VersionManagementServiceImpl extends ServiceImpl<VersionManagementMapper, VersionManagement> implements IVersionManagementService { |
| | | |
| | | @Resource |
| | | private VersionManagementMapper versionManagementMapper; |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取最新版本 |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | @Override |
| | | public Map<String, Object> queryNewVersion(Integer type) throws Exception { |
| | | return versionManagementMapper.queryNewVersion(type); |
| | | } |
| | | } |