tplink获取护理单元信息路径修改

This commit is contained in:
曹磊 2025-06-30 11:47:20 +08:00
parent 687af989a8
commit 6efc7cf8fe
3 changed files with 8 additions and 9 deletions

View File

@ -133,7 +133,7 @@ public class CameraInfo implements Serializable {
private String topTime; private String topTime;
/**护理单元*/ /**护理单元*/
@ApiModelProperty(value = "护理单元编码") @ApiModelProperty(value = "护理单元编码")
@Dict(dictTable ="nu_base_info",dicText = "nu_name",dicCode = "code") @Dict(dictTable ="nu_base_info",dicText = "nu_name",dicCode = "nu_id")
private String nuId; private String nuId;
/**护理单元*/ /**护理单元*/
@ApiModelProperty(value = "护理单元") @ApiModelProperty(value = "护理单元")

View File

@ -29,7 +29,7 @@
a.nu_id as nuId, a.nu_id as nuId,
b.nu_name as nuName, b.nu_name as nuName,
ifnull(c.multitrans,0) as multitrans ifnull(c.multitrans,0) as multitrans
from nu_iot_tplink_camera a left join nu_base_info b on a.nu_id = b.id from nu_iot_tplink_camera a left join nu_base_info b on a.nu_id = b.nu_id
left join nu_iot_tplink_camera_capability c on a.device_index = c.device_index left join nu_iot_tplink_camera_capability c on a.device_index = c.device_index
<where> <where>
<if test="params.deviceIndex != null and params.deviceIndex != ''"> <if test="params.deviceIndex != null and params.deviceIndex != ''">
@ -85,7 +85,7 @@
record_plan_id as recordPlanId, record_plan_id as recordPlanId,
a.nu_id as nuId, a.nu_id as nuId,
b.nu_name as nuName b.nu_name as nuName
from nu_iot_tplink_camera a left join nu_base_info b on a.nu_id = b.id from nu_iot_tplink_camera a left join nu_base_info b on a.nu_id = b.nu_id
<where> <where>
<if test="projectId != null and projectId != ''"> <if test="projectId != null and projectId != ''">
AND a.project_id = #{projectId} AND a.project_id = #{projectId}
@ -129,12 +129,12 @@
<select id="findNuPage" parameterType="com.nu.modules.tplink.camera.entity.CameraInfo" resultType="com.nu.modules.tplink.camera.entity.CameraInfo"> <select id="findNuPage" parameterType="com.nu.modules.tplink.camera.entity.CameraInfo" resultType="com.nu.modules.tplink.camera.entity.CameraInfo">
select select
code as nuId, nu_id as nuId,
nu_name as nuName nu_name as nuName
from nu_base_info b from nu_base_info b
<where> <where>
<if test="params.nuId != null and params.nuId != ''"> <if test="params.nuId != null and params.nuId != ''">
AND b.code = #{params.nuId} AND b.nu_id = #{params.nuId}
</if> </if>
<if test="params.nuName != null and params.nuName != ''"> <if test="params.nuName != null and params.nuName != ''">
AND b.nu_name LIKE concat('%',#{params.nuName},'%') AND b.nu_name LIKE concat('%',#{params.nuName},'%')
@ -167,7 +167,7 @@
protocol as protocol, protocol as protocol,
a.nu_id as nuId, a.nu_id as nuId,
b.nu_name as nuName b.nu_name as nuName
from nu_iot_tplink_camera a left join nu_base_info b on a.nu_id = b.id from nu_iot_tplink_camera a left join nu_base_info b on a.nu_id = b.nu_id
where device_index = #{deviceIndex} where device_index = #{deviceIndex}
</select> </select>

View File

@ -44,8 +44,7 @@ public class TumsApi {
private void initTumsConfig(){ private void initTumsConfig(){
if(tumsConfig==null){ if(tumsConfig==null){
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); tumsConfig = tumsConfigMapper.getByCode(null);
tumsConfig = tumsConfigMapper.getByCode(sysUser.getOrgCode());
} }
} }