|
|
@@ -3,7 +3,7 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.yunfeiyun.agmp.iotm.web.mapper.IotWarnconfigMapper">
|
|
|
-
|
|
|
+
|
|
|
<resultMap type="IotWarnconfig" id="IotWarnconfigResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="wcBid" column="wcBid" />
|
|
|
@@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectIotWarnconfigList" parameterType="IotWarnconfig" resultMap="IotWarnconfigResult">
|
|
|
<include refid="selectIotWarnconfigVo"/>
|
|
|
- <where>
|
|
|
+ <where>
|
|
|
<if test="wcBid != null and wcBid != ''"> and wcBid = #{wcBid}</if>
|
|
|
<if test="wcName != null and wcName != ''"> and wcName like concat('%', #{wcName}, '%')</if>
|
|
|
<if test="wcDesc != null and wcDesc != ''"> and wcDesc = #{wcDesc}</if>
|
|
|
@@ -45,12 +45,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="tid != null and tid != ''"> and tid = #{tid}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectIotWarnconfigByWcBid" resultMap="IotWarnconfigResult">
|
|
|
<include refid="selectIotWarnconfigVo"/>
|
|
|
where wcBid = #{wcBid} and tid = #{tid}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<insert id="insertIotWarnconfig" parameterType="IotWarnconfig" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into IotWarnconfig
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
@@ -137,5 +137,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="wcModifier != null and wcModifier != ''"> and wcModifier = #{wcModifier}</if>
|
|
|
<if test="tid != null and tid != ''"> and tid = #{tid}</if>
|
|
|
</where>
|
|
|
+ order by wcTouchtype desc ,wcCreateddate desc
|
|
|
+
|
|
|
</select>
|
|
|
-</mapper>
|
|
|
+</mapper>
|