refactor(service): 简化当前状态服务接口

- 移除冗余的查询、分页和删除方法
-保留核心方法 selectAll用于获取全部数据
- 清理导入包和注释,优化代码结构
This commit is contained in:
2025-10-27 17:23:52 +08:00
parent 8d110a4557
commit 6ff235d56d
7 changed files with 74 additions and 887 deletions

View File

@@ -1,117 +1,30 @@
<?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">
<?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 type="com.klp.pocket.domain.Klptcm1ProPlantStateCurrent" id="Klptcm1ProPlantStateCurrentResult">
<result property="INSDATE" column="INSDATE"/>
<result property="YEAR" column="YEAR"/>
<result property="MONTH" column="MONTH"/>
<result property="DAY" column="DAY"/>
<result property="HOUR" column="HOUR"/>
<result property="MINUTE" column="MINUTE"/>
<result property="TYPE" column="TYPE"/>
<result property="VALUE1" column="VALUE1"/>
<result property="VALUE2" column="VALUE2"/>
<result property="VALUE3" column="VALUE3"/>
<result property="VALUE4" column="VALUE4"/>
<result property="VALUE5" column="VALUE5"/>
<result property="VALUE6" column="VALUE6"/>
<result property="VALUE7" column="VALUE7"/>
<result property="VALUE8" column="VALUE8"/>
<result property="VALUE9" column="VALUE9"/>
<result property="VALUE10" column="VALUE10"/>
<result property="VALUE11" column="VALUE11"/>
<result property="VALUE12" column="VALUE12"/>
<result property="VALUE13" column="VALUE13"/>
<result property="VALUE14" column="VALUE14"/>
<result property="VALUE15" column="VALUE15"/>
<result property="VALUE16" column="VALUE16"/>
<result property="VALUE17" column="VALUE17"/>
<result property="VALUE18" column="VALUE18"/>
<result property="VALUE19" column="VALUE19"/>
<result property="VALUE20" column="VALUE20"/>
<result property="VALUE21" column="VALUE21"/>
<result property="VALUE22" column="VALUE22"/>
<result property="VALUE23" column="VALUE23"/>
<result property="VALUE24" column="VALUE24"/>
<result property="VALUE25" column="VALUE25"/>
<result property="VALUE26" column="VALUE26"/>
<result property="VALUE27" column="VALUE27"/>
<result property="VALUE28" column="VALUE28"/>
<result property="VALUE29" column="VALUE29"/>
<result property="VALUE30" column="VALUE30"/>
<result property="VALUE31" column="VALUE31"/>
<result property="VALUE32" column="VALUE32"/>
<result property="VALUE33" column="VALUE33"/>
<result property="VALUE34" column="VALUE34"/>
<result property="VALUE35" column="VALUE35"/>
<result property="VALUE36" column="VALUE36"/>
<result property="VALUE37" column="VALUE37"/>
<result property="VALUE38" column="VALUE38"/>
<result property="VALUE39" column="VALUE39"/>
<result property="VALUE40" column="VALUE40"/>
<result property="VALUE41" column="VALUE41"/>
<result property="VALUE42" column="VALUE42"/>
<result property="VALUE43" column="VALUE43"/>
<result property="VALUE44" column="VALUE44"/>
<result property="VALUE45" column="VALUE45"/>
<result property="VALUE46" column="VALUE46"/>
<result property="VALUE47" column="VALUE47"/>
<result property="VALUE48" column="VALUE48"/>
<result property="VALUE49" column="VALUE49"/>
<result property="VALUE50" column="VALUE50"/>
<result property="VALUE51" column="VALUE51"/>
<result property="VALUE52" column="VALUE52"/>
<result property="VALUE53" column="VALUE53"/>
<result property="VALUE54" column="VALUE54"/>
<result property="VALUE55" column="VALUE55"/>
<result property="VALUE56" column="VALUE56"/>
<result property="VALUE57" column="VALUE57"/>
<result property="VALUE58" column="VALUE58"/>
<result property="VALUE59" column="VALUE59"/>
<result property="VALUE60" column="VALUE60"/>
<result property="VALUE61" column="VALUE61"/>
<result property="VALUE62" column="VALUE62"/>
<result property="VALUE63" column="VALUE63"/>
<result property="VALUE64" column="VALUE64"/>
<result property="VALUE65" column="VALUE65"/>
<result property="VALUE66" column="VALUE66"/>
<result property="VALUE67" column="VALUE67"/>
<result property="VALUE68" column="VALUE68"/>
<result property="VALUE69" column="VALUE69"/>
<result property="VALUE70" column="VALUE70"/>
<result property="VALUE71" column="VALUE71"/>
<result property="VALUE72" column="VALUE72"/>
<result property="VALUE73" column="VALUE73"/>
<result property="VALUE74" column="VALUE74"/>
<result property="VALUE75" column="VALUE75"/>
<result property="VALUE76" column="VALUE76"/>
<result property="VALUE77" column="VALUE77"/>
<result property="VALUE78" column="VALUE78"/>
<result property="VALUE79" column="VALUE79"/>
<result property="VALUE80" column="VALUE80"/>
<result property="VALUE81" column="VALUE81"/>
<result property="VALUE82" column="VALUE82"/>
<result property="VALUE83" column="VALUE83"/>
<result property="VALUE84" column="VALUE84"/>
<result property="VALUE85" column="VALUE85"/>
<result property="VALUE86" column="VALUE86"/>
<result property="VALUE87" column="VALUE87"/>
<result property="VALUE88" column="VALUE88"/>
<result property="VALUE89" column="VALUE89"/>
<result property="VALUE90" column="VALUE90"/>
<result property="VALUE91" column="VALUE91"/>
<result property="VALUE92" column="VALUE92"/>
<result property="VALUE93" column="VALUE93"/>
<result property="VALUE94" column="VALUE94"/>
<result property="VALUE95" column="VALUE95"/>
<result property="VALUE96" column="VALUE96"/>
<result property="VALUE97" column="VALUE97"/>
<result property="VALUE98" column="VALUE98"/>
<result property="VALUE99" column="VALUE99"/>
<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>