first commit

This commit is contained in:
2026-01-16 14:13:44 +08:00
commit 903ff8d495
34603 changed files with 8585054 additions and 0 deletions

View File

@ -0,0 +1,238 @@
<?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="clean.cleanmonitorMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.clean.CleanMonitor" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
<result column="humidity" property="humidity" jdbcType="VARCHAR" />
<result column="temperature" property="temperature" jdbcType="VARCHAR" />
<result column="dust" property="dust" jdbcType="VARCHAR" />
<result column="collection_time" property="collectionTime" jdbcType="TIMESTAMP" />
<result column="clean_state" property="cleanState" jdbcType="VARCHAR" />
<result column="collection_data_one" property="collectionDataOne" jdbcType="VARCHAR" />
<result column="collection_data_two" property="collectionDataTwo" jdbcType="VARCHAR" />
<result column="collection_data_there" property="collectionDataThere" jdbcType="VARCHAR" />
<result column="collection_data_four" property="collectionDataFour" jdbcType="VARCHAR" />
<result column="collection_data_five" property="collectionDataFive" jdbcType="VARCHAR" />
<result column="createdt" property="createdt" jdbcType="TIMESTAMP" />
<result column="createuser" property="createuser" jdbcType="VARCHAR" />
<result column="point_position" property="pointPosition" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
id, insuser, insdt, humidity, temperature, dust, collection_time, clean_state, collection_data_one,
collection_data_two, collection_data_there, collection_data_four, collection_data_five,
createdt, createuser, point_position
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_clean_cleanmonitor
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from tb_clean_cleanmonitor
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.clean.CleanMonitor" >
insert into tb_clean_cleanmonitor (id, insuser, insdt,
humidity, temperature, dust,
collection_time, clean_state, collection_data_one,
collection_data_two, collection_data_there,
collection_data_four, collection_data_five,
createdt, createuser, point_position
)
values (#{id,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
#{humidity,jdbcType=VARCHAR}, #{temperature,jdbcType=VARCHAR}, #{dust,jdbcType=VARCHAR},
#{collectionTime,jdbcType=TIMESTAMP}, #{cleanState,jdbcType=VARCHAR}, #{collectionDataOne,jdbcType=VARCHAR},
#{collectionDataTwo,jdbcType=VARCHAR}, #{collectionDataThere,jdbcType=VARCHAR},
#{collectionDataFour,jdbcType=VARCHAR}, #{collectionDataFive,jdbcType=VARCHAR},
#{createdt,jdbcType=TIMESTAMP}, #{createuser,jdbcType=VARCHAR}, #{pointPosition,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.clean.CleanMonitor" >
insert into tb_clean_cleanmonitor
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="insdt != null" >
insdt,
</if>
<if test="humidity != null" >
humidity,
</if>
<if test="temperature != null" >
temperature,
</if>
<if test="dust != null" >
dust,
</if>
<if test="collectionTime != null" >
collection_time,
</if>
<if test="cleanState != null" >
clean_state,
</if>
<if test="collectionDataOne != null" >
collection_data_one,
</if>
<if test="collectionDataTwo != null" >
collection_data_two,
</if>
<if test="collectionDataThere != null" >
collection_data_there,
</if>
<if test="collectionDataFour != null" >
collection_data_four,
</if>
<if test="collectionDataFive != null" >
collection_data_five,
</if>
<if test="createdt != null" >
createdt,
</if>
<if test="createuser != null" >
createuser,
</if>
<if test="pointPosition != null" >
point_position,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
#{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
#{insdt,jdbcType=TIMESTAMP},
</if>
<if test="humidity != null" >
#{humidity,jdbcType=VARCHAR},
</if>
<if test="temperature != null" >
#{temperature,jdbcType=VARCHAR},
</if>
<if test="dust != null" >
#{dust,jdbcType=VARCHAR},
</if>
<if test="collectionTime != null" >
#{collectionTime,jdbcType=TIMESTAMP},
</if>
<if test="cleanState != null" >
#{cleanState,jdbcType=VARCHAR},
</if>
<if test="collectionDataOne != null" >
#{collectionDataOne,jdbcType=VARCHAR},
</if>
<if test="collectionDataTwo != null" >
#{collectionDataTwo,jdbcType=VARCHAR},
</if>
<if test="collectionDataThere != null" >
#{collectionDataThere,jdbcType=VARCHAR},
</if>
<if test="collectionDataFour != null" >
#{collectionDataFour,jdbcType=VARCHAR},
</if>
<if test="collectionDataFive != null" >
#{collectionDataFive,jdbcType=VARCHAR},
</if>
<if test="createdt != null" >
#{createdt,jdbcType=TIMESTAMP},
</if>
<if test="createuser != null" >
#{createuser,jdbcType=VARCHAR},
</if>
<if test="pointPosition != null" >
#{pointPosition,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.clean.CleanMonitor" >
update tb_clean_cleanmonitor
<set >
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
<if test="humidity != null" >
humidity = #{humidity,jdbcType=VARCHAR},
</if>
<if test="temperature != null" >
temperature = #{temperature,jdbcType=VARCHAR},
</if>
<if test="dust != null" >
dust = #{dust,jdbcType=VARCHAR},
</if>
<if test="collectionTime != null" >
collection_time = #{collectionTime,jdbcType=TIMESTAMP},
</if>
<if test="cleanState != null" >
clean_state = #{cleanState,jdbcType=VARCHAR},
</if>
<if test="collectionDataOne != null" >
collection_data_one = #{collectionDataOne,jdbcType=VARCHAR},
</if>
<if test="collectionDataTwo != null" >
collection_data_two = #{collectionDataTwo,jdbcType=VARCHAR},
</if>
<if test="collectionDataThere != null" >
collection_data_there = #{collectionDataThere,jdbcType=VARCHAR},
</if>
<if test="collectionDataFour != null" >
collection_data_four = #{collectionDataFour,jdbcType=VARCHAR},
</if>
<if test="collectionDataFive != null" >
collection_data_five = #{collectionDataFive,jdbcType=VARCHAR},
</if>
<if test="createdt != null" >
createdt = #{createdt,jdbcType=TIMESTAMP},
</if>
<if test="createuser != null" >
createuser = #{createuser,jdbcType=VARCHAR},
</if>
<if test="pointPosition != null" >
point_position = #{pointPosition,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.clean.CleanMonitor" >
update tb_clean_cleanmonitor
set insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP},
humidity = #{humidity,jdbcType=VARCHAR},
temperature = #{temperature,jdbcType=VARCHAR},
dust = #{dust,jdbcType=VARCHAR},
collection_time = #{collectionTime,jdbcType=TIMESTAMP},
clean_state = #{cleanState,jdbcType=VARCHAR},
collection_data_one = #{collectionDataOne,jdbcType=VARCHAR},
collection_data_two = #{collectionDataTwo,jdbcType=VARCHAR},
collection_data_there = #{collectionDataThere,jdbcType=VARCHAR},
collection_data_four = #{collectionDataFour,jdbcType=VARCHAR},
collection_data_five = #{collectionDataFive,jdbcType=VARCHAR},
createdt = #{createdt,jdbcType=TIMESTAMP},
createuser = #{createuser,jdbcType=VARCHAR},
point_position = #{pointPosition,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectListByWhere" resultMap="BaseResultMap"
parameterType="java.lang.String">
select
<include refid="Base_Column_List" />
from tb_clean_cleanmonitor
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String">
delete from
tb_clean_cleanmonitor
${where}
</delete>
</mapper>

View File

@ -0,0 +1,370 @@
<?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="clean.MonitorEquipmentMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.clean.MonitorEquipment" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
<result column="equipment_name" property="equipmentName" jdbcType="VARCHAR" />
<result column="mender" property="mender" jdbcType="VARCHAR" />
<result column="lastchangetime" property="lastchangetime" jdbcType="TIMESTAMP" />
<result column="tem_alarmless" property="temAlarmless" jdbcType="VARCHAR" />
<result column="tem_alarmgreater" property="temAlarmgreater" jdbcType="VARCHAR" />
<result column="hum_alarmless" property="humAlarmless" jdbcType="VARCHAR" />
<result column="hum_alarmgreater" property="humAlarmgreater" jdbcType="VARCHAR" />
<result column="dust_alarmgreater" property="dustAlarmgreater" jdbcType="VARCHAR" />
<result column="temperature" property="temperature" jdbcType="VARCHAR" />
<result column="humidity" property="humidity" jdbcType="VARCHAR" />
<result column="dust" property="dust" jdbcType="VARCHAR" />
<result column="equipment_position" property="equipmentPosition" jdbcType="VARCHAR" />
<result column="equipment_state" property="equipmentState" jdbcType="VARCHAR" />
<result column="temperature_point" property="temperaturePoint" jdbcType="VARCHAR" />
<result column="humidity_point" property="humidityPoint" jdbcType="VARCHAR" />
<result column="dust_point" property="dustPoint" jdbcType="VARCHAR" />
<result column="temperature_port" property="temperaturePort" jdbcType="VARCHAR" />
<result column="humidity_port" property="humidityPort" jdbcType="VARCHAR" />
<result column="dust_port" property="dustPort" jdbcType="VARCHAR" />
<result column="temperature_color" property="temperatureColor" jdbcType="VARCHAR" />
<result column="humidity_color" property="humidityColor" jdbcType="VARCHAR" />
<result column="dust_color" property="dustColor" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
id, insuser, insdt, equipment_name, mender, lastchangetime, tem_alarmless, tem_alarmgreater,
hum_alarmless, hum_alarmgreater, dust_alarmgreater, temperature, humidity, dust,
equipment_position, equipment_state, temperature_point, humidity_point, dust_point,
temperature_port, humidity_port, dust_port, temperature_color, humidity_color, dust_color
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_clean_monitorequipment
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from tb_clean_monitorequipment
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.clean.MonitorEquipment" >
insert into tb_clean_monitorequipment (id, insuser, insdt,
equipment_name, mender, lastchangetime,
tem_alarmless, tem_alarmgreater, hum_alarmless,
hum_alarmgreater, dust_alarmgreater, temperature,
humidity, dust, equipment_position,
equipment_state, temperature_point, humidity_point,
dust_point, temperature_port, humidity_port,
dust_port, temperature_color, humidity_color,
dust_color)
values (#{id,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
#{equipmentName,jdbcType=VARCHAR}, #{mender,jdbcType=VARCHAR}, #{lastchangetime,jdbcType=TIMESTAMP},
#{temAlarmless,jdbcType=VARCHAR}, #{temAlarmgreater,jdbcType=VARCHAR}, #{humAlarmless,jdbcType=VARCHAR},
#{humAlarmgreater,jdbcType=VARCHAR}, #{dustAlarmgreater,jdbcType=VARCHAR}, #{temperature,jdbcType=VARCHAR},
#{humidity,jdbcType=VARCHAR}, #{dust,jdbcType=VARCHAR}, #{equipmentPosition,jdbcType=VARCHAR},
#{equipmentState,jdbcType=VARCHAR}, #{temperaturePoint,jdbcType=VARCHAR}, #{humidityPoint,jdbcType=VARCHAR},
#{dustPoint,jdbcType=VARCHAR}, #{temperaturePort,jdbcType=VARCHAR}, #{humidityPort,jdbcType=VARCHAR},
#{dustPort,jdbcType=VARCHAR}, #{temperatureColor,jdbcType=VARCHAR}, #{humidityColor,jdbcType=VARCHAR},
#{dustColor,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.clean.MonitorEquipment" >
insert into tb_clean_monitorequipment
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="insdt != null" >
insdt,
</if>
<if test="equipmentName != null" >
equipment_name,
</if>
<if test="mender != null" >
mender,
</if>
<if test="lastchangetime != null" >
lastchangetime,
</if>
<if test="temAlarmless != null" >
tem_alarmless,
</if>
<if test="temAlarmgreater != null" >
tem_alarmgreater,
</if>
<if test="humAlarmless != null" >
hum_alarmless,
</if>
<if test="humAlarmgreater != null" >
hum_alarmgreater,
</if>
<if test="dustAlarmgreater != null" >
dust_alarmgreater,
</if>
<if test="temperature != null" >
temperature,
</if>
<if test="humidity != null" >
humidity,
</if>
<if test="dust != null" >
dust,
</if>
<if test="equipmentPosition != null" >
equipment_position,
</if>
<if test="equipmentState != null" >
equipment_state,
</if>
<if test="temperaturePoint != null" >
temperature_point,
</if>
<if test="humidityPoint != null" >
humidity_point,
</if>
<if test="dustPoint != null" >
dust_point,
</if>
<if test="temperaturePort != null" >
temperature_port,
</if>
<if test="humidityPort != null" >
humidity_port,
</if>
<if test="dustPort != null" >
dust_port,
</if>
<if test="temperatureColor != null" >
temperature_color,
</if>
<if test="humidityColor != null" >
humidity_color,
</if>
<if test="dustColor != null" >
dust_color,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
#{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
#{insdt,jdbcType=TIMESTAMP},
</if>
<if test="equipmentName != null" >
#{equipmentName,jdbcType=VARCHAR},
</if>
<if test="mender != null" >
#{mender,jdbcType=VARCHAR},
</if>
<if test="lastchangetime != null" >
#{lastchangetime,jdbcType=TIMESTAMP},
</if>
<if test="temAlarmless != null" >
#{temAlarmless,jdbcType=VARCHAR},
</if>
<if test="temAlarmgreater != null" >
#{temAlarmgreater,jdbcType=VARCHAR},
</if>
<if test="humAlarmless != null" >
#{humAlarmless,jdbcType=VARCHAR},
</if>
<if test="humAlarmgreater != null" >
#{humAlarmgreater,jdbcType=VARCHAR},
</if>
<if test="dustAlarmgreater != null" >
#{dustAlarmgreater,jdbcType=VARCHAR},
</if>
<if test="temperature != null" >
#{temperature,jdbcType=VARCHAR},
</if>
<if test="humidity != null" >
#{humidity,jdbcType=VARCHAR},
</if>
<if test="dust != null" >
#{dust,jdbcType=VARCHAR},
</if>
<if test="equipmentPosition != null" >
#{equipmentPosition,jdbcType=VARCHAR},
</if>
<if test="equipmentState != null" >
#{equipmentState,jdbcType=VARCHAR},
</if>
<if test="temperaturePoint != null" >
#{temperaturePoint,jdbcType=VARCHAR},
</if>
<if test="humidityPoint != null" >
#{humidityPoint,jdbcType=VARCHAR},
</if>
<if test="dustPoint != null" >
#{dustPoint,jdbcType=VARCHAR},
</if>
<if test="temperaturePort != null" >
#{temperaturePort,jdbcType=VARCHAR},
</if>
<if test="humidityPort != null" >
#{humidityPort,jdbcType=VARCHAR},
</if>
<if test="dustPort != null" >
#{dustPort,jdbcType=VARCHAR},
</if>
<if test="temperatureColor != null" >
#{temperatureColor,jdbcType=VARCHAR},
</if>
<if test="humidityColor != null" >
#{humidityColor,jdbcType=VARCHAR},
</if>
<if test="dustColor != null" >
#{dustColor,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.clean.MonitorEquipment" >
update tb_clean_monitorequipment
<set >
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
<if test="equipmentName != null" >
equipment_name = #{equipmentName,jdbcType=VARCHAR},
</if>
<if test="mender != null" >
mender = #{mender,jdbcType=VARCHAR},
</if>
<if test="lastchangetime != null" >
lastchangetime = #{lastchangetime,jdbcType=TIMESTAMP},
</if>
<if test="temAlarmless != null" >
tem_alarmless = #{temAlarmless,jdbcType=VARCHAR},
</if>
<if test="temAlarmgreater != null" >
tem_alarmgreater = #{temAlarmgreater,jdbcType=VARCHAR},
</if>
<if test="humAlarmless != null" >
hum_alarmless = #{humAlarmless,jdbcType=VARCHAR},
</if>
<if test="humAlarmgreater != null" >
hum_alarmgreater = #{humAlarmgreater,jdbcType=VARCHAR},
</if>
<if test="dustAlarmgreater != null" >
dust_alarmgreater = #{dustAlarmgreater,jdbcType=VARCHAR},
</if>
<if test="temperature != null" >
temperature = #{temperature,jdbcType=VARCHAR},
</if>
<if test="humidity != null" >
humidity = #{humidity,jdbcType=VARCHAR},
</if>
<if test="dust != null" >
dust = #{dust,jdbcType=VARCHAR},
</if>
<if test="equipmentPosition != null" >
equipment_position = #{equipmentPosition,jdbcType=VARCHAR},
</if>
<if test="equipmentState != null" >
equipment_state = #{equipmentState,jdbcType=VARCHAR},
</if>
<if test="temperaturePoint != null" >
temperature_point = #{temperaturePoint,jdbcType=VARCHAR},
</if>
<if test="humidityPoint != null" >
humidity_point = #{humidityPoint,jdbcType=VARCHAR},
</if>
<if test="dustPoint != null" >
dust_point = #{dustPoint,jdbcType=VARCHAR},
</if>
<if test="temperaturePort != null" >
temperature_port = #{temperaturePort,jdbcType=VARCHAR},
</if>
<if test="humidityPort != null" >
humidity_port = #{humidityPort,jdbcType=VARCHAR},
</if>
<if test="dustPort != null" >
dust_port = #{dustPort,jdbcType=VARCHAR},
</if>
<if test="temperatureColor != null" >
temperature_color = #{temperatureColor,jdbcType=VARCHAR},
</if>
<if test="humidityColor != null" >
humidity_color = #{humidityColor,jdbcType=VARCHAR},
</if>
<if test="dustColor != null" >
dust_color = #{dustColor,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.clean.MonitorEquipment" >
update tb_clean_monitorequipment
set insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP},
equipment_name = #{equipmentName,jdbcType=VARCHAR},
mender = #{mender,jdbcType=VARCHAR},
lastchangetime = #{lastchangetime,jdbcType=TIMESTAMP},
tem_alarmless = #{temAlarmless,jdbcType=VARCHAR},
tem_alarmgreater = #{temAlarmgreater,jdbcType=VARCHAR},
hum_alarmless = #{humAlarmless,jdbcType=VARCHAR},
hum_alarmgreater = #{humAlarmgreater,jdbcType=VARCHAR},
dust_alarmgreater = #{dustAlarmgreater,jdbcType=VARCHAR},
temperature = #{temperature,jdbcType=VARCHAR},
humidity = #{humidity,jdbcType=VARCHAR},
dust = #{dust,jdbcType=VARCHAR},
equipment_position = #{equipmentPosition,jdbcType=VARCHAR},
equipment_state = #{equipmentState,jdbcType=VARCHAR},
temperature_point = #{temperaturePoint,jdbcType=VARCHAR},
humidity_point = #{humidityPoint,jdbcType=VARCHAR},
dust_point = #{dustPoint,jdbcType=VARCHAR},
temperature_port = #{temperaturePort,jdbcType=VARCHAR},
humidity_port = #{humidityPort,jdbcType=VARCHAR},
dust_port = #{dustPort,jdbcType=VARCHAR},
temperature_color = #{temperatureColor,jdbcType=VARCHAR},
humidity_color = #{humidityColor,jdbcType=VARCHAR},
dust_color = #{dustColor,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectListByWhere" resultMap="BaseResultMap"
parameterType="java.lang.String">
select
<include refid="Base_Column_List" />
from tb_clean_monitorequipment
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String">
delete from
tb_clean_monitorequipment
${where}
</delete>
<select id="selectEquipmentstate" parameterType="java.lang.String" resultMap="BaseResultMap">
select M.[MPointCode] AS mpointcode,
e.dust AS dust,
e.dust_alarmgreater AS dust_alarmgreater,
e.dust_point AS dust_point,
e.dust_port AS dust_port,
e.equipment_name AS equipment_name,
e.equipment_position AS equipment_position,
e.equipment_state AS equipment_state,
e.hum_alarmgreater AS hum_alarmgreater,
e.hum_alarmless AS hum_alarmless,
e.humidity AS humidity,
e.humidity_point AS humidity_point,
e.humidity_port AS humidity_port,
e.id AS id,
e.insdt AS insdt,
e.insuser AS insuser,
e.lastchangetime AS lastchangetime,
e.mender AS mender,
e.tem_alarmgreater AS tem_alarmgreater,
e.tem_alarmless AS tem_alarmless,
e.temperature AS temperature,
e.temperature_point AS temperature_point,
e.temperature_port AS temperature_port
from [EIP_PRD_RLD].[dbo].[TB_MeasurePoint] M
full outer join [PlantEngine_RLD].[dbo].[tb_clean_monitorequipment] e on M.[MPointCode]= e.id
order by equipment_state
</select>
</mapper>

View File

@ -0,0 +1,199 @@
<?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="clean.alarmhandleMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.clean.alarmhandle" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="alarmPonit" property="alarmponit" jdbcType="VARCHAR" />
<result column="alarmType" property="alarmtype" jdbcType="VARCHAR" />
<result column="alarmTime" property="alarmtime" jdbcType="TIMESTAMP" />
<result column="alarmReason" property="alarmreason" jdbcType="VARCHAR" />
<result column="handleReault" property="handlereault" jdbcType="VARCHAR" />
<result column="handledt" property="handledt" jdbcType="VARCHAR" />
<result column="handleuser" property="handleuser" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="VARCHAR" />
<result column="temperature" property="temperature" jdbcType="VARCHAR" />
<result column="humidity" property="humidity" jdbcType="VARCHAR" />
<result column="dust" property="dust" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
id, alarmPonit, alarmType, alarmTime, alarmReason, handleReault, handledt, handleuser,
insuser, insdt, temperature, humidity, dust
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_clean_alarmhandle
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from tb_clean_alarmhandle
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.clean.alarmhandle" >
insert into tb_clean_alarmhandle (id, alarmPonit, alarmType,
alarmTime, alarmReason, handleReault,
handledt, handleuser, insuser,
insdt, temperature, humidity,
dust)
values (#{id,jdbcType=VARCHAR}, #{alarmponit,jdbcType=VARCHAR}, #{alarmtype,jdbcType=VARCHAR},
#{alarmtime,jdbcType=TIMESTAMP}, #{alarmreason,jdbcType=VARCHAR}, #{handlereault,jdbcType=VARCHAR},
#{handledt,jdbcType=VARCHAR}, #{handleuser,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR},
#{insdt,jdbcType=VARCHAR}, #{temperature,jdbcType=VARCHAR}, #{humidity,jdbcType=VARCHAR},
#{dust,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.clean.alarmhandle" >
insert into tb_clean_alarmhandle
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="alarmponit != null" >
alarmPonit,
</if>
<if test="alarmtype != null" >
alarmType,
</if>
<if test="alarmtime != null" >
alarmTime,
</if>
<if test="alarmreason != null" >
alarmReason,
</if>
<if test="handlereault != null" >
handleReault,
</if>
<if test="handledt != null" >
handledt,
</if>
<if test="handleuser != null" >
handleuser,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="insdt != null" >
insdt,
</if>
<if test="temperature != null" >
temperature,
</if>
<if test="humidity != null" >
humidity,
</if>
<if test="dust != null" >
dust,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=VARCHAR},
</if>
<if test="alarmponit != null" >
#{alarmponit,jdbcType=VARCHAR},
</if>
<if test="alarmtype != null" >
#{alarmtype,jdbcType=VARCHAR},
</if>
<if test="alarmtime != null" >
#{alarmtime,jdbcType=TIMESTAMP},
</if>
<if test="alarmreason != null" >
#{alarmreason,jdbcType=VARCHAR},
</if>
<if test="handlereault != null" >
#{handlereault,jdbcType=VARCHAR},
</if>
<if test="handledt != null" >
#{handledt,jdbcType=VARCHAR},
</if>
<if test="handleuser != null" >
#{handleuser,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
#{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
#{insdt,jdbcType=VARCHAR},
</if>
<if test="temperature != null" >
#{temperature,jdbcType=VARCHAR},
</if>
<if test="humidity != null" >
#{humidity,jdbcType=VARCHAR},
</if>
<if test="dust != null" >
#{dust,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.clean.alarmhandle" >
update tb_clean_alarmhandle
<set >
<if test="alarmponit != null" >
alarmPonit = #{alarmponit,jdbcType=VARCHAR},
</if>
<if test="alarmtype != null" >
alarmType = #{alarmtype,jdbcType=VARCHAR},
</if>
<if test="alarmtime != null" >
alarmTime = #{alarmtime,jdbcType=TIMESTAMP},
</if>
<if test="alarmreason != null" >
alarmReason = #{alarmreason,jdbcType=VARCHAR},
</if>
<if test="handlereault != null" >
handleReault = #{handlereault,jdbcType=VARCHAR},
</if>
<if test="handledt != null" >
handledt = #{handledt,jdbcType=VARCHAR},
</if>
<if test="handleuser != null" >
handleuser = #{handleuser,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
insdt = #{insdt,jdbcType=VARCHAR},
</if>
<if test="temperature != null" >
temperature = #{temperature,jdbcType=VARCHAR},
</if>
<if test="humidity != null" >
humidity = #{humidity,jdbcType=VARCHAR},
</if>
<if test="dust != null" >
dust = #{dust,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.clean.alarmhandle" >
update tb_clean_alarmhandle
set alarmPonit = #{alarmponit,jdbcType=VARCHAR},
alarmType = #{alarmtype,jdbcType=VARCHAR},
alarmTime = #{alarmtime,jdbcType=TIMESTAMP},
alarmReason = #{alarmreason,jdbcType=VARCHAR},
handleReault = #{handlereault,jdbcType=VARCHAR},
handledt = #{handledt,jdbcType=VARCHAR},
handleuser = #{handleuser,jdbcType=VARCHAR},
insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=VARCHAR},
temperature = #{temperature,jdbcType=VARCHAR},
humidity = #{humidity,jdbcType=VARCHAR},
dust = #{dust,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectListByWhere" resultMap="BaseResultMap"
parameterType="java.lang.String">
select
<include refid="Base_Column_List" />
from tb_clean_alarmhandle
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String">
delete from tb_clean_alarmhandle
${where}
</delete>
</mapper>