增加接口
This commit is contained in:
parent
16c07bb8b6
commit
888135010b
|
|
@ -32,7 +32,7 @@
|
||||||
select CONFIG_VALUE from surv_config where CONFIG_KEY = #{key}
|
select CONFIG_VALUE from surv_config where CONFIG_KEY = #{key}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getOneByTypeWithTenant" resultType="org.jeecg.common.entity.SurvConfig">
|
<select id="getOneByTypeWithTenant" resultMap="SurvConfigMap">
|
||||||
select *
|
select *
|
||||||
from surv_config
|
from surv_config
|
||||||
where CONFIG_TYPE = #{type}
|
where CONFIG_TYPE = #{type}
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,39 @@
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="org.jeecg.system.applet.mapper.SurvConfigMapper">
|
<mapper namespace="org.jeecg.system.applet.mapper.SurvConfigMapper">
|
||||||
|
|
||||||
<select id="getValueByKey" resultType="java.lang.String">
|
<resultMap type="org.jeecg.common.entity.SurvConfig" id="SurvConfigMap">
|
||||||
select CONFIG_VALUE from surv_config where CONFIG_KEY = #{key}
|
<result property="id" column="ID" jdbcType="VARCHAR"/>
|
||||||
|
<result property="configName" column="CONFIG_NAME" jdbcType="VARCHAR"/>
|
||||||
|
<result property="configKey" column="CONFIG_KEY" jdbcType="VARCHAR"/>
|
||||||
|
<result property="configValue" column="CONFIG_VALUE" jdbcType="VARCHAR"/>
|
||||||
|
<result property="configValueSe" column="CONFIG_VALUE_SE" jdbcType="VARCHAR"/>
|
||||||
|
<result property="configValueSe2" column="CONFIG_VALUE_SE2" jdbcType="VARCHAR"/>
|
||||||
|
<result property="configValueSe3" column="CONFIG_VALUE_SE3" jdbcType="VARCHAR"/>
|
||||||
|
<result property="configValueSe4" column="CONFIG_VALUE_SE4" jdbcType="VARCHAR"/>
|
||||||
|
<result property="configJson" column="CONFIG_JSON" jdbcType="VARCHAR" typeHandler="org.jeecg.common.mybatis.typehandler.JsonTypeHandler"/>
|
||||||
|
<result property="configType" column="CONFIG_TYPE" jdbcType="VARCHAR"/>
|
||||||
|
<result property="configRemark" column="CONFIG_REMARK" jdbcType="VARCHAR"/>
|
||||||
|
<result property="tenantId" column="TENANT_ID" jdbcType="VARCHAR"/>
|
||||||
|
<result property="reVision" column="RE_VISION" jdbcType="INTEGER"/>
|
||||||
|
<result property="createdBy" column="CREATED_BY" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createTime" column="CREATE_TIME" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updatedBy" column="UPDATED_BY" jdbcType="VARCHAR"/>
|
||||||
|
<result property="isDel" column="IS_DEL" jdbcType="INTEGER"/>
|
||||||
|
<result property="updatedTime" column="UPDATED_TIME" jdbcType="TIMESTAMP"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="baseSql">
|
||||||
|
ID,CONFIG_NAME,CONFIG_KEY,CONFIG_VALUE,CONFIG_VALUE_SE,CONFIG_VALUE_SE2,CONFIG_VALUE_SE3,CONFIG_VALUE_SE4,CONFIG_JSON,CONFIG_TYPE,CONFIG_REMARK,TENANT_ID,RE_VISION,CREATED_BY,CREATE_TIME,UPDATED_BY,IS_DEL,UPDATED_TIME
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="getValueByKey" resultType="java.lang.String">
|
||||||
|
select CONFIG_VALUE from surv_config where CONFIG_KEY = #{key}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getOneByTypeWithTenant" resultType="org.jeecg.common.entity.SurvConfig">
|
<select id="getOneByTypeWithTenant" resultMap="SurvConfigMap">
|
||||||
select *
|
select *
|
||||||
from surv_config
|
from surv_config
|
||||||
where CONFIG_TYPE = #{type}
|
where CONFIG_TYPE = #{type}
|
||||||
AND TENANT_ID = #{tenantId} limit 1
|
AND TENANT_ID = #{tenantId} limit 1
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
Loading…
Reference in New Issue