Browse Source

设备添加修改

wangli 4 years ago
parent
commit
92c68e191f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      sms_water/src/main/resources/mapper/DeviceMapper.xml

+ 2 - 2
sms_water/src/main/resources/mapper/DeviceMapper.xml

@@ -107,8 +107,8 @@
     <insert id="insert" keyProperty="id" useGeneratedKeys="true">
         INSERT INTO  sms_device ( TENANT_ID ,  DEVICE_CODE ,  DEVICE_NAME ,  DEVICE_TYPE_ID ,
         <if test="companyOrgId != null and companyOrgId != 0">COMPANY_ORG_ID , </if>
-        <if test="companyOrgId != null and companyOrgId != 0">DEPT_ORG_ID ,</if>
-        <if test="companyOrgId != null and companyOrgId != 0">SCENE_ID ,</if>
+        <if test="deptOrgId != null and deptOrgId != 0">DEPT_ORG_ID ,</if>
+        <if test="sceneId != null and sceneId != 0">SCENE_ID ,</if>
         POINT_X ,  POINT_Y ,  ENABLE_STATE ,  LAST_UPDATE_TIME ,  ADDRESS ,  REMARK ,  STATUS ,  DATE_CREATE ,  CREATE_BY ,  DATE_UPDATE ,  UPDATE_BY )
         VALUES ( #{tenantId} ,#{deviceCode} ,#{deviceName}  ,#{deviceTypeId} ,
         <if test="companyOrgId != null and companyOrgId != 0">#{companyOrgId}  , </if>