|
|
@@ -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.TosDevicetypeMapper">
|
|
|
-
|
|
|
+
|
|
|
<resultMap type="TosDevicetype" id="TosDevicetypeResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="devtypeBid" column="devtypeBid" />
|
|
|
@@ -12,6 +12,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="devtypeCode" column="devtypeCode" />
|
|
|
<result property="firmBid" column="firmBid" />
|
|
|
<result property="devtypePreview" column="devtypePreview" />
|
|
|
+ <result property="devtypeMapicon" column="devtypeMapicon" />
|
|
|
<result property="devtypeRemark" column="devtypeRemark" />
|
|
|
<result property="devTypeConfig" column="devTypeConfig" />
|
|
|
<result property="devtypeCreator" column="devtypeCreator" />
|
|
|
@@ -21,18 +22,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTosDevicetypeVo">
|
|
|
- select id, devtypeBid, devclassBid, devtypeName, devtypeCode, firmBid, devtypePreview, devtypeRemark, devTypeConfig, devtypeCreator, devtypeModifier, devtypeModifieddate, devtypeCreateddate from TosDevicetype
|
|
|
+ select id, devtypeBid, devclassBid, devtypeName, devtypeCode, firmBid, devtypePreview, devtypeMapicon, devtypeRemark, devTypeConfig, devtypeCreator, devtypeModifier, devtypeModifieddate, devtypeCreateddate from TosDevicetype
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectTosDevicetypeList" parameterType="TosDevicetype" resultMap="TosDevicetypeResult">
|
|
|
<include refid="selectTosDevicetypeVo"/>
|
|
|
- <where>
|
|
|
+ <where>
|
|
|
<if test="devtypeBid != null and devtypeBid != ''"> and devtypeBid = #{devtypeBid}</if>
|
|
|
<if test="devclassBid != null and devclassBid != ''"> and devclassBid = #{devclassBid}</if>
|
|
|
<if test="devtypeName != null and devtypeName != ''"> and devtypeName like concat('%', #{devtypeName}, '%')</if>
|
|
|
<if test="devtypeCode != null and devtypeCode != ''"> and devtypeCode = #{devtypeCode}</if>
|
|
|
<if test="firmBid != null and firmBid != ''"> and firmBid = #{firmBid}</if>
|
|
|
<if test="devtypePreview != null and devtypePreview != ''"> and devtypePreview = #{devtypePreview}</if>
|
|
|
+ <if test="devtypeMapicon != null and devtypeMapicon != ''"> and devtypeMapicon = #{devtypeMapicon}</if>
|
|
|
<if test="devtypeRemark != null and devtypeRemark != ''"> and devtypeRemark = #{devtypeRemark}</if>
|
|
|
<if test="devTypeConfig != null and devTypeConfig != ''"> and devTypeConfig = #{devTypeConfig}</if>
|
|
|
<if test="devtypeCreator != null and devtypeCreator != ''"> and devtypeCreator = #{devtypeCreator}</if>
|
|
|
@@ -41,7 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="devtypeCreateddate != null and devtypeCreateddate != ''"> and devtypeCreateddate = #{devtypeCreateddate}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectTosDevicetypeByDevtypeBid" parameterType="String" resultMap="TosDevicetypeResult">
|
|
|
<include refid="selectTosDevicetypeVo"/>
|
|
|
where devtypeBid = #{devtypeBid}
|
|
|
@@ -56,6 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
tdt.devtypeCode,
|
|
|
tdt.firmBid,
|
|
|
tdt.devtypePreview,
|
|
|
+ tdt.devtypeMapicon,
|
|
|
tdt.devtypeRemark,
|
|
|
tdt.devTypeConfig,
|
|
|
tdt.devtypeCreator,
|
|
|
@@ -76,6 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="devtypeCode != null and devtypeCode != ''"> and tdt.devtypeCode = #{devtypeCode}</if>
|
|
|
<if test="firmBid != null and firmBid != ''"> and tdt.firmBid = #{firmBid}</if>
|
|
|
<if test="devtypePreview != null and devtypePreview != ''"> and tdt.devtypePreview = #{devtypePreview}</if>
|
|
|
+ <if test="devtypeMapicon != null and devtypeMapicon != ''"> and tdt.devtypeMapicon = #{devtypeMapicon}</if>
|
|
|
<if test="devtypeRemark != null and devtypeRemark != ''"> and tdt.devtypeRemark = #{devtypeRemark}</if>
|
|
|
<if test="devTypeConfig != null and devTypeConfig != ''"> and tdt.devTypeConfig = #{devTypeConfig}</if>
|
|
|
<if test="devtypeCreator != null and devtypeCreator != ''"> and tdt.devtypeCreator = #{devtypeCreator}</if>
|
|
|
@@ -94,6 +98,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="devtypeCode != null">devtypeCode,</if>
|
|
|
<if test="firmBid != null">firmBid,</if>
|
|
|
<if test="devtypePreview != null">devtypePreview,</if>
|
|
|
+ <if test="devtypeMapicon != null">devtypeMapicon,</if>
|
|
|
<if test="devtypeRemark != null">devtypeRemark,</if>
|
|
|
<if test="devTypeConfig != null">devTypeConfig,</if>
|
|
|
<if test="devtypeCreator != null">devtypeCreator,</if>
|
|
|
@@ -108,6 +113,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="devtypeCode != null">#{devtypeCode},</if>
|
|
|
<if test="firmBid != null">#{firmBid},</if>
|
|
|
<if test="devtypePreview != null">#{devtypePreview},</if>
|
|
|
+ <if test="devtypeMapicon != null">#{devtypeMapicon},</if>
|
|
|
<if test="devtypeRemark != null">#{devtypeRemark},</if>
|
|
|
<if test="devTypeConfig != null">#{devTypeConfig},</if>
|
|
|
<if test="devtypeCreator != null">#{devtypeCreator},</if>
|
|
|
@@ -126,6 +132,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="devtypeCode != null">devtypeCode = #{devtypeCode},</if>
|
|
|
<if test="firmBid != null">firmBid = #{firmBid},</if>
|
|
|
<if test="devtypePreview != null">devtypePreview = #{devtypePreview},</if>
|
|
|
+ <if test="devtypeMapicon != null">devtypeMapicon = #{devtypeMapicon},</if>
|
|
|
<if test="devtypeRemark != null">devtypeRemark = #{devtypeRemark},</if>
|
|
|
<if test="devTypeConfig != null">devTypeConfig = #{devTypeConfig},</if>
|
|
|
<if test="devtypeCreator != null">devtypeCreator = #{devtypeCreator},</if>
|
|
|
@@ -152,6 +159,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="devtypeCode != null and devtypeCode != ''"> and dt.devtypeCode = #{devtypeCode}</if>
|
|
|
<if test="firmBid != null and firmBid != ''"> and dt.firmBid = #{firmBid}</if>
|
|
|
<if test="devtypePreview != null and devtypePreview != ''"> and dt.devtypePreview = #{devtypePreview}</if>
|
|
|
+ <if test="devtypeMapicon != null and devtypeMapicon != ''"> and dt.devtypeMapicon = #{devtypeMapicon}</if>
|
|
|
<if test="devtypeRemark != null and devtypeRemark != ''"> and dt.devtypeRemark = #{devtypeRemark}</if>
|
|
|
<if test="devTypeConfig != null and devTypeConfig != ''"> and dt.devTypeConfig = #{devTypeConfig}</if>
|
|
|
<if test="devtypeCreator != null and devtypeCreator != ''"> and dt.evtypeCreator = #{devtypeCreator}</if>
|