|
@@ -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>
|