CustomChartMapper.xml 2.29 KB
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hotent.form.persistence.dao.CustomChartDao">
	<resultMap id="customChart" type="com.hotent.form.model.CustomChart">
		<id property="id" column="ID_" jdbcType="VARCHAR"/>
		<result property="name" column="NAME_" jdbcType="VARCHAR"/>
		<result property="alias" column="ALIAS_" jdbcType="VARCHAR"/>
		<result property="style" column="STYLE_" jdbcType="NUMERIC"/>
		<result property="objName" column="OBJ_NAME_" jdbcType="VARCHAR"/>
		<result property="displayfield" column="DISPLAYFIELD_" jdbcType="LONGVARCHAR"/>
		<result property="conditionfield" column="CONDITIONFIELD_" jdbcType="LONGVARCHAR"/>
		<result property="resultfield" column="RESULTFIELD_" jdbcType="LONGVARCHAR"/>
		<result property="sortfield" column="SORTFIELD_" jdbcType="LONGVARCHAR"/>
		<result property="dsalias" column="DSALIAS_" jdbcType="VARCHAR"/>
		<result property="isTable" column="IS_TABLE_" jdbcType="NUMERIC"/>
		<result property="diySql" column="DIY_SQL_" jdbcType="LONGVARCHAR"/>
		<result property="width" column="WIDTH_" jdbcType="NUMERIC"/>
		<result property="height" column="HEIGHT_" jdbcType="NUMERIC"/>
		<result property="xaxisField" column="XAXIS_FIELD_" jdbcType="VARCHAR"/>
		<result property="yaxisUnit" column="YAXIS_UNIT_" jdbcType="VARCHAR"/>
		<result property="conf" column="CONF_" jdbcType="VARCHAR"/>

		<result property="createOrgId" column="create_org_id_" jdbcType="VARCHAR"/>
		<result property="createBy" column="create_by_" jdbcType="VARCHAR"/>
		<result property="updateBy" column="update_by_" jdbcType="VARCHAR"/>
		<result property="createTime" column="create_time_" jdbcType="TIMESTAMP"/>
		<result property="updateTime" column="update_time_" jdbcType="TIMESTAMP"/>
		<result property="type" column="type_" jdbcType="NUMERIC"/>
		<result property="customQueryAlias" column="custom_query_alias_" jdbcType="VARCHAR"/>
	</resultMap>
	
	<select id="getChartByAlias" parameterType="java.lang.String" resultMap="customChart">
		SELECT * FROM form_custom_chart
		WHERE
		alias_=#{alias}
	</select>

	<select id="listChartByAlias" parameterType="java.lang.String" resultMap="customChart">
		SELECT * FROM form_custom_chart
		WHERE
		alias_=#{alias}
	</select>
</mapper>