Files
klp-oa/klp-pocket/src/main/resources/mapper/pocket/Klptcm1ProPlantStateCurrentMapper.xml

31 lines
1.4 KiB
XML
Raw Normal View History

<?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.klp.pocket.mapper.Klptcm1ProPlantStateCurrentMapper">
<resultMap id="BaseResultMap" type="com.klp.pocket.domain.Klptcm1ProPlantStateCurrent">
<id column="INSDATE" property="insdate" jdbcType="TIMESTAMP"/>
<result column="YEAR" property="year" jdbcType="DECIMAL"/>
<result column="MONTH" property="month" jdbcType="DECIMAL"/>
<result column="DAY" property="day" jdbcType="DECIMAL"/>
<result column="HOUR" property="hour" jdbcType="DECIMAL"/>
<result column="MINUTE" property="minute" jdbcType="DECIMAL"/>
<result column="TYPE" property="type" jdbcType="DECIMAL"/>
<result column="VALUE1" property="value1" jdbcType="DECIMAL"/>
<result column="VALUE2" property="value2" jdbcType="DECIMAL"/>
<!-- 省略 VALUE3 到 VALUE98 的 result 映射 -->
<result column="VALUE99" property="value99" jdbcType="DECIMAL"/>
</resultMap>
<sql id="Base_Column_List">
INSDATE, YEAR, MONTH, DAY, HOUR, MINUTE, TYPE,
VALUE1, VALUE2, VALUE99 <!-- 补充所有 VALUE 列 -->
</sql>
<!-- 查询所有 -->
<select id="selectAll" resultMap="BaseResultMap">
SELECT
<include refid="Base_Column_List"/>
FROM klptcm1_pro_plant_state_current
</select>
</mapper>