Ver código fonte

物联网同步

lihui001 3 anos atrás
pai
commit
1a15df96f3

+ 1 - 0
zoniot-common/zoniot-core-oauth2/src/main/java/com/zcxk/core/oauth2/util/UserUtil.java

@@ -49,6 +49,7 @@ public class UserUtil {
                     loginUser.setType((String) userJson.get("type"));
                     loginUser.setCompanyId(userJson.getInteger("companyId"));
                     loginUser.setDepartmentId(userJson.getInteger("departmentId"));
+                    loginUser.setCustomerId(userJson.getLong("customerId"));
                     loginUser.setTenantId(userJson.getString("tenantId"));
                     JSONArray programItemListArray = userJson.getJSONArray("programItemList");
                     loginUser.setPermissonType(userJson.getInteger("permissonType"));

+ 6 - 0
zoniot-water/zoniot-water-core/src/main/java/com/zcxk/water/core/mapper/AlarmTypeMapper.xml

@@ -45,6 +45,9 @@
         <if test="tenantId != null">
           tenant_id,
         </if>
+        <if test="customerId != null">
+          customer_id,
+        </if>
         <if test="sceneType != null">
           scene_type,
         </if>
@@ -104,6 +107,9 @@
         <if test="tenantId != null">
           #{tenantId},
         </if>
+        <if test="customerId != null">
+          #{customerId},
+        </if>
         <if test="sceneType != null">
           #{sceneType},
         </if>