|
|
@@ -6,7 +6,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<resultMap type="IotCmdtask" id="IotCmdtaskResult">
|
|
|
<result property="id" column="id" />
|
|
|
- <result property="cId" column="cId" />
|
|
|
+ <result property="tid" column="tid" />
|
|
|
<result property="ctBid" column="ctBid" />
|
|
|
<result property="ctStatus" column="ctStatus" />
|
|
|
<result property="ctDescribe" column="ctDescribe" />
|
|
|
@@ -34,13 +34,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectIotCmdtaskVo">
|
|
|
- select id, cId, ctBid, ctStatus, ctDescribe, ctStartddate, ctCompletedate, ctRequestid, ctRequestSource, ctRequestParam, ctReceiptstatus, ctReceiptddate, ctReceiptaddr, ctCreator, ctModifier, ctModifieddate, ctCreateddate, ctDelstatus, ctCreatorname, ctBiztype, ctBiztitle, ctParam, ctCtime, ctDevcode, ctDevtype from IotCmdtask
|
|
|
+ select id, tid, ctBid, ctStatus, ctDescribe, ctStartddate, ctCompletedate, ctRequestid, ctRequestSource, ctRequestParam, ctReceiptstatus, ctReceiptddate, ctReceiptaddr, ctCreator, ctModifier, ctModifieddate, ctCreateddate, ctDelstatus, ctCreatorname, ctBiztype, ctBiztitle, ctParam, ctCtime, ctDevcode, ctDevtype from IotCmdtask
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectIotCmdtaskList" parameterType="IotCmdtask" resultMap="IotCmdtaskResult">
|
|
|
<include refid="selectIotCmdtaskVo"/>
|
|
|
<where>
|
|
|
- <if test="cId != null and cId != ''"> and cId = #{cId}</if>
|
|
|
+ <if test="tid != null and tid != ''"> and tid = #{tid}</if>
|
|
|
<if test="ctBid != null and ctBid != ''"> and ctBid = #{ctBid}</if>
|
|
|
<if test="ctStatus != null and ctStatus != ''"> and ctStatus = #{ctStatus}</if>
|
|
|
<if test="ctDescribe != null and ctDescribe != ''"> and ctDescribe = #{ctDescribe}</if>
|
|
|
@@ -79,7 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<insert id="insertIotCmdtask" parameterType="IotCmdtask" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into IotCmdtask
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="cId != null">cId,</if>
|
|
|
+ <if test="tid != null">tid,</if>
|
|
|
<if test="ctBid != null">ctBid,</if>
|
|
|
<if test="ctStatus != null">ctStatus,</if>
|
|
|
<if test="ctDescribe != null and ctDescribe != ''">ctDescribe,</if>
|
|
|
@@ -105,7 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="ctDevtype != null">ctDevtype,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="cId != null">#{cId},</if>
|
|
|
+ <if test="tid != null">#{tid},</if>
|
|
|
<if test="ctBid != null">#{ctBid},</if>
|
|
|
<if test="ctStatus != null">#{ctStatus},</if>
|
|
|
<if test="ctDescribe != null and ctDescribe != ''">#{ctDescribe},</if>
|
|
|
@@ -135,7 +135,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<update id="updateIotCmdtask" parameterType="IotCmdtask">
|
|
|
update IotCmdtask
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
- <if test="cId != null">cId = #{cId},</if>
|
|
|
+ <if test="tid != null">tid = #{tid},</if>
|
|
|
<if test="ctBid != null">ctBid = #{ctBid},</if>
|
|
|
<if test="ctStatus != null">ctStatus = #{ctStatus},</if>
|
|
|
<if test="ctDescribe != null and ctDescribe != ''">ctDescribe = #{ctDescribe},</if>
|
|
|
@@ -165,7 +165,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<update id="updateIotCmdtaskByCtBid">
|
|
|
update IotCmdtask
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
- <if test="cId != null">cId = #{cId},</if>
|
|
|
+ <if test="tid != null">tid = #{tid},</if>
|
|
|
<if test="ctBid != null">ctBid = #{ctBid},</if>
|
|
|
<if test="ctStatus != null">ctStatus = #{ctStatus},</if>
|
|
|
<if test="ctDescribe != null and ctDescribe != ''">ctDescribe = #{ctDescribe},</if>
|