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