New file |
| | |
| | | package com.example.erp.service.userInfo; |
| | | |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import com.example.erp.entity.userInfo.AppVersion; |
| | | import com.example.erp.mapper.userInfo.AppVersionMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service |
| | | @DS("user_info") |
| | | public class AppVersionService { |
| | | private final AppVersionMapper appVersionMapper; |
| | | |
| | | public AppVersionService(AppVersionMapper appVersionMapper) { |
| | | this.appVersionMapper = appVersionMapper; |
| | | } |
| | | |
| | | public AppVersion searchVersion() { |
| | | return appVersionMapper.selectById(1); |
| | | } |
| | | } |