sysParam 查询问题
This commit is contained in:
@@ -2,7 +2,6 @@ package com.czg.service.system.mapper;
|
|||||||
|
|
||||||
import com.czg.system.entity.SysParams;
|
import com.czg.system.entity.SysParams;
|
||||||
import com.mybatisflex.core.BaseMapper;
|
import com.mybatisflex.core.BaseMapper;
|
||||||
import org.apache.ibatis.annotations.Select;
|
|
||||||
import org.springframework.cache.annotation.CacheConfig;
|
import org.springframework.cache.annotation.CacheConfig;
|
||||||
import org.springframework.cache.annotation.Cacheable;
|
import org.springframework.cache.annotation.Cacheable;
|
||||||
|
|
||||||
@@ -16,7 +15,6 @@ import org.springframework.cache.annotation.Cacheable;
|
|||||||
public interface SysParamsMapper extends BaseMapper<SysParams> {
|
public interface SysParamsMapper extends BaseMapper<SysParams> {
|
||||||
|
|
||||||
@Cacheable(key = "#code")
|
@Cacheable(key = "#code")
|
||||||
@Select("select * from sys_params where param_code = #{code}")
|
|
||||||
SysParams getSysParam(String code);
|
SysParams getSysParam(String code);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,4 +4,7 @@
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.czg.service.system.mapper.SysParamsMapper">
|
<mapper namespace="com.czg.service.system.mapper.SysParamsMapper">
|
||||||
|
|
||||||
|
<select id="getSysParam" resultType="com.czg.system.entity.SysParams">
|
||||||
|
select * from sys_params where param_code = #{code}
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user