代码规范修改

This commit is contained in:
jjLv 2024-04-01 13:50:47 +08:00
parent 20b3d50c5e
commit ba4cfd3732
3 changed files with 25 additions and 9 deletions

View File

@ -19,4 +19,7 @@ public class PersonnelControlDto extends ScreenParamDto {
@ApiModelProperty(value = "建管单位id")
private String orgId;
@ApiModelProperty(value = "关键字")
private String keyWord;
}

View File

@ -22,6 +22,21 @@ public class PersonnelControlVo {
@ApiModelProperty("设备状态")
private String status;
@ApiModelProperty("id")
private String id;
@ApiModelProperty("父级ID")
private String parentId;
@ApiModelProperty("标题")
private String title;
@ApiModelProperty("告警时间")
private String warningTime;
@ApiModelProperty("告警内容")
private String warningContent;
}

View File

@ -21,9 +21,8 @@
<select id="getPersonnelList" resultType="com.securitycontrol.entity.screen.vo.PersonnelControlVo">
SELECT
twt.team_id AS id,
twt.team_name AS teamName,
twt.bid_code AS parentId,
'' AS phone
twt.team_name AS title
FROM
tb_work_team twt
WHERE
@ -34,15 +33,14 @@
SELECT
ttp.user_id AS id,
ttp.team_id AS parentId,
ttp.user_name AS teamName,
ttp.phone AS phone
CONCAT(ttp.user_name, ' (', ttp.phone, ')') AS title
FROM
t_team_people ttp
JOIN tb_work_team twt ON ttp.team_id = twt.team_id
WHERE
twt.bid_code = #{bidCode}
<if test="keyWord != null and keyWord != ''">
and teamName like concat('%', #{keyWord}, '%')
AND CONCAT(ttp.user_name, ' (', ttp.phone, ')') LIKE CONCAT('%', #{keyWord}, '%')
</if>
</select>
<!--人员管控-人员运动趋预警-->