35 lines
1.3 KiB
XML
35 lines
1.3 KiB
XML
<?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.bonus.aqd.base.dao.DevDataMapper">
|
|
|
|
|
|
<update id="updateData" parameterType="com.bonus.aqd.base.entity.DevVO">
|
|
update tb_device
|
|
set dev_a=#{devA} ,dev_b=#{devB}
|
|
<if test="devAtime!=null and devAtime!=''">
|
|
, dev_a_time=#{devAtime}
|
|
</if>
|
|
<if test="devBtime!=null and devBtime!=''">
|
|
, dev_b_time= #{devBtime}
|
|
</if>
|
|
, warn_info=#{warnInfo}
|
|
,dev_time=now()
|
|
where dev_code=#{devCode}
|
|
</update>
|
|
<update id="updateDevStatus" parameterType="com.bonus.aqd.base.entity.DevVO">
|
|
update tb_device
|
|
set dev_status=#{devStatus},
|
|
<if test="channId!=null and channId!=''">
|
|
chann_id= #{channId},
|
|
</if>
|
|
state_time=now(),
|
|
dev_time=now()
|
|
where dev_code=#{devCode}
|
|
</update>
|
|
<update id="downDevStatus" parameterType="com.bonus.aqd.base.entity.DevVO">
|
|
update tb_device
|
|
set dev_status=0, chann_id= #{channId}
|
|
where chann_id=#{channId}
|
|
</update>
|
|
</mapper> |