sysParam 查询问题

This commit is contained in:
wangw 2025-02-15 10:38:09 +08:00
parent 50f86a5144
commit 91cd768c2b
2 changed files with 3 additions and 2 deletions

View File

@ -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);
}

View File

@ -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>