|
@@ -58,7 +58,7 @@
|
|
|
<if test="deviceBrand!=null">and deviceBrand=#{deviceBrand}</if>
|
|
|
<if test="deviceModel!=null">and deviceModel=#{deviceModel}</if>
|
|
|
<if test="deviceSerialNumber!=null">and deviceSerialNumber=#{deviceSerialNumber}</if>
|
|
|
- <if test="state!=0">and state=#{state}</if>
|
|
|
+ <if test="state!=null">and state=#{state}</if>
|
|
|
|
|
|
<if test="code!=null">and code=#{code}</if>
|
|
|
<if test="godownId!=0">and godownId=#{godownId}</if>
|
|
@@ -91,7 +91,7 @@
|
|
|
<if test="deviceBrand!=null">and deviceBrand=#{deviceBrand}</if>
|
|
|
<if test="deviceModel!=null">and deviceModel=#{deviceModel}</if>
|
|
|
<if test="deviceSerialNumber!=null">and deviceSerialNumber=#{deviceSerialNumber}</if>
|
|
|
- <if test="state!=0">and state=#{state}</if>
|
|
|
+ <if test="state!=null">and state=#{state}</if>
|
|
|
|
|
|
<if test="code!=null">and code=#{code}</if>
|
|
|
<if test="godownId!=0">and godownId=#{godownId}</if>
|
|
@@ -124,7 +124,7 @@
|
|
|
<if test="od.deviceBrand!=null">and deviceBrand=#{od.deviceBrand}</if>
|
|
|
<if test="od.deviceModel!=null">and deviceModel=#{od.deviceModel}</if>
|
|
|
<if test="od.deviceSerialNumber!=null">and deviceSerialNumber=#{od.deviceSerialNumber}</if>
|
|
|
- <if test="od.state!=0">and state=#{od.state}</if>
|
|
|
+ <if test="od.state!=null">and state=#{od.state}</if>
|
|
|
|
|
|
<if test="od.code!=null">and code=#{od.code}</if>
|
|
|
<if test="od.godownId!=0">and godownId=#{od.godownId}</if>
|
|
@@ -142,10 +142,10 @@
|
|
|
|
|
|
<insert id="save" parameterType="com.bosshand.virgo.api.operate.model.OperateDevice" useGeneratedKeys="true" keyProperty="id">
|
|
|
INSERT into operate_device(operateDeviceLevelId, projectId, projectItemId, projectItemTargetId, projectItemTargetRoomId, name, type, designNumber, assetNumber, deviceNumber,
|
|
|
- deviceBrand, deviceModel, deviceSerialNumber, attachment, remark, document, state,
|
|
|
+ deviceBrand, deviceModel, deviceSerialNumber, attachment, remark, document,
|
|
|
code, godownId, modelBindType, modelBindContent, manufacturer, liaison, liaisonPhone, entryTime, maintenanceRecord, modelBindPosition)
|
|
|
values(#{operateDeviceLevelId}, #{projectId}, #{projectItemId}, #{projectItemTargetId}, #{projectItemTargetRoomId}, #{name}, #{type}, #{designNumber},
|
|
|
- #{assetNumber}, #{deviceNumber}, #{deviceBrand}, #{deviceModel}, #{deviceSerialNumber}, #{attachment}, #{remark}, #{document}, #{state},
|
|
|
+ #{assetNumber}, #{deviceNumber}, #{deviceBrand}, #{deviceModel}, #{deviceSerialNumber}, #{attachment}, #{remark}, #{document},
|
|
|
#{code}, #{godownId}, #{modelBindType}, #{modelBindContent}, #{manufacturer}, #{liaison}, #{liaisonPhone}, #{entryTime}, #{maintenanceRecord}, #{modelBindPosition})
|
|
|
</insert>
|
|
|
|
|
@@ -168,7 +168,7 @@
|
|
|
<if test="attachment!=null">attachment=#{attachment},</if>
|
|
|
<if test="remark!=null">remark=#{remark},</if>
|
|
|
<if test="document!=null">document=#{document},</if>
|
|
|
- <if test="state!=0">state=#{state},</if>
|
|
|
+ <if test="state!=null">state=#{state},</if>
|
|
|
|
|
|
<if test="godownId!=0">and godownId=#{godownId},</if>
|
|
|
<if test="modelBindType!=0">and modelBindType=#{modelBindType},</if>
|