12 changed files with 110 additions and 39 deletions
			
			
		| @ -0,0 +1,20 @@ | ||||
| package com.mh.user.mapper; | ||||
| 
 | ||||
| import com.mh.user.entity.SysParamEntity; | ||||
| import org.apache.ibatis.annotations.Mapper; | ||||
| import org.apache.ibatis.annotations.Select; | ||||
| 
 | ||||
| /** | ||||
|  * @author LJF | ||||
|  * @version 1.0 | ||||
|  * @project CHWS | ||||
|  * @description 系统参数 | ||||
|  * @date 2024-01-16 08:58:43 | ||||
|  */ | ||||
| @Mapper | ||||
| public interface SysParamMapper { | ||||
| 
 | ||||
|     @Select("select top 1 * from SysParam ") | ||||
|     SysParamEntity selectSysParam(); | ||||
| 
 | ||||
| } | ||||
| @ -0,0 +1,16 @@ | ||||
| package com.mh.user.service; | ||||
| 
 | ||||
| import com.mh.user.entity.SysParamEntity; | ||||
| 
 | ||||
| /** | ||||
|  * @author LJF | ||||
|  * @version 1.0 | ||||
|  * @project CHWS | ||||
|  * @description 系统参数 | ||||
|  * @date 2024-01-16 09:02:21 | ||||
|  */ | ||||
| public interface SysParamService { | ||||
| 
 | ||||
|     SysParamEntity selectSysParam(); | ||||
| 
 | ||||
| } | ||||
| @ -0,0 +1,27 @@ | ||||
| package com.mh.user.service.impl; | ||||
| 
 | ||||
| import com.mh.user.entity.SysParamEntity; | ||||
| import com.mh.user.mapper.SysParamMapper; | ||||
| import com.mh.user.service.SysParamService; | ||||
| import org.springframework.stereotype.Service; | ||||
| 
 | ||||
| import javax.annotation.Resource; | ||||
| 
 | ||||
| /** | ||||
|  * @author LJF | ||||
|  * @version 1.0 | ||||
|  * @project CHWS | ||||
|  * @description 系统参数 | ||||
|  * @date 2024-01-16 09:02:58 | ||||
|  */ | ||||
| @Service | ||||
| public class SysParamServiceImpl implements SysParamService { | ||||
| 
 | ||||
|     @Resource | ||||
|     private SysParamMapper sysParamMapper; | ||||
| 
 | ||||
|     @Override | ||||
|     public SysParamEntity selectSysParam() { | ||||
|         return sysParamMapper.selectSysParam(); | ||||
|     } | ||||
| } | ||||
					Loading…
					
					
				
		Reference in new issue