APP-吊装监控
This commit is contained in:
parent
53fffe8856
commit
cbc5718b11
|
|
@ -35,6 +35,7 @@ public class BusinessConstants {
|
|||
public final static String SHX = "shx";
|
||||
/** 安全帽设备类型*/
|
||||
public final static String AQM = "aqm";
|
||||
public final static String DZYJ = "lift_warn";
|
||||
|
||||
/** 管理员角色*/
|
||||
public final static String ADMINISTRATORS = "administrators";
|
||||
|
|
|
|||
|
|
@ -0,0 +1,18 @@
|
|||
package com.bonus.app.controller;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @className:CraneMonitorController
|
||||
* @author:cwchen
|
||||
* @date:2024-08-12-15:35
|
||||
* @version:1.0
|
||||
* @description:吊车监控
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/craneMonitor/")
|
||||
@Slf4j
|
||||
public class CraneMonitorController {
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
package com.bonus.app.mapper;
|
||||
|
||||
/**
|
||||
* @className:CraneMonitorMapper
|
||||
* @author:cwchen
|
||||
* @date:2024-08-12-15:36
|
||||
* @version:1.0
|
||||
* @description:吊车监控
|
||||
*/
|
||||
public interface CraneMonitorMapper {
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
package com.bonus.app.service;
|
||||
|
||||
/**
|
||||
* @className:CraneMonitorService
|
||||
* @author:cwchen
|
||||
* @date:2024-08-12-15:35
|
||||
* @version:1.0
|
||||
* @description:吊车监控
|
||||
*/
|
||||
public interface ICraneMonitorService {
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
package com.bonus.app.service.impl;
|
||||
|
||||
import com.bonus.app.service.ICraneMonitorService;
|
||||
|
||||
/**
|
||||
* @className:CraneMonitorServiceImpl
|
||||
* @author:cwchen
|
||||
* @date:2024-08-12-15:36
|
||||
* @version:1.0
|
||||
* @description:吊车监控
|
||||
*/
|
||||
public class CraneMonitorServiceImpl implements ICraneMonitorService {
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.bonus.app.mapper.AppEquipmentReqMapper">
|
||||
|
||||
</mapper>
|
||||
|
|
@ -88,4 +88,17 @@ public class SelectController {
|
|||
public AjaxResult getTeamPeople(SysParamsDto dto) {
|
||||
return service.getTeamPeople(dto);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据杆塔ID获取领用吊装预警设备的班组
|
||||
* @param dto
|
||||
* @return AjaxResult
|
||||
* @author cwchen
|
||||
* @date 2024/8/12 15:40
|
||||
*/
|
||||
@GetMapping("/getTeamListsByDzDevice")
|
||||
public AjaxResult getTeamListsByDzDevice(SysParamsDto dto) {
|
||||
return service.getTeamListsByDzDevice(dto);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,6 +17,12 @@ public class SysParamsDto {
|
|||
|
||||
private String id;
|
||||
|
||||
/**杆塔ID*/
|
||||
private Long towerId;
|
||||
|
||||
/**设备类型*/
|
||||
private String devTypeCode;
|
||||
|
||||
/**
|
||||
* 角色编码
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -64,4 +64,13 @@ public interface SelectMapper {
|
|||
* @date 2024/8/7 18:25
|
||||
*/
|
||||
List<SysSelectVo> getTeamPeople(SysParamsDto dto);
|
||||
|
||||
/**
|
||||
* 根据杆塔ID获取领用吊装预警设备的班组
|
||||
* @param dto
|
||||
* @return List<SysSelectVo>
|
||||
* @author cwchen
|
||||
* @date 2024/8/12 15:46
|
||||
*/
|
||||
List<SysSelectVo> getTeamListsByDzDevice(SysParamsDto dto);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,4 +57,13 @@ public interface ISelectService {
|
|||
* @date 2024/8/7 18:25
|
||||
*/
|
||||
AjaxResult getTeamPeople(SysParamsDto dto);
|
||||
|
||||
/**
|
||||
* 根据杆塔ID获取领用吊装预警设备的班组
|
||||
* @param dto
|
||||
* @return AjaxResult
|
||||
* @author cwchen
|
||||
* @date 2024/8/12 15:45
|
||||
*/
|
||||
AjaxResult getTeamListsByDzDevice(SysParamsDto dto);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.bonus.system.service.impl;
|
||||
|
||||
import com.bonus.common.core.constant.BusinessConstants;
|
||||
import com.bonus.common.core.utils.StringUtils;
|
||||
import com.bonus.common.core.utils.encryption.Sm4Utils;
|
||||
import com.bonus.common.core.web.domain.AjaxResult;
|
||||
|
|
@ -88,4 +89,16 @@ public class SelectServiceImpl implements ISelectService {
|
|||
return AjaxResult.error();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public AjaxResult getTeamListsByDzDevice(SysParamsDto dto) {
|
||||
try {
|
||||
dto.setDevTypeCode(BusinessConstants.DZYJ);
|
||||
List<SysSelectVo> list = mapper.getTeamListsByDzDevice(dto);
|
||||
return AjaxResult.success(list);
|
||||
} catch (Exception e) {
|
||||
log.error(e.toString(),e);
|
||||
return AjaxResult.error();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,6 +14,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<select id="getProList" resultType="com.bonus.system.domain.vo.SysSelectVo">
|
||||
SELECT tp.id,tp.pro_name AS name
|
||||
FROM tb_project tp WHERE tp.del_flag = 0
|
||||
<if test="roleCode!='administrators' and roleCode!='depart'">
|
||||
AND tp.depart_id = -1
|
||||
</if>
|
||||
<if test="roleCode=='depart'">
|
||||
AND tp.depart_id = #{departId}
|
||||
</if>
|
||||
</select>
|
||||
<!--班组下拉选-->
|
||||
<select id="getTeamLists" resultType="java.util.Map">
|
||||
|
|
@ -47,4 +53,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<select id="getTeamPeople" resultType="com.bonus.system.domain.vo.SysSelectVo">
|
||||
SELECT id,CONCAT(name,'-',phone) AS name FROM tb_people WHERE team_id = #{teamId}
|
||||
</select>
|
||||
|
||||
<!--根据杆塔ID获取领用吊装预警设备的班组-->
|
||||
<select id="getTeamListsByDzDevice" resultType="com.bonus.system.domain.vo.SysSelectVo">
|
||||
SELECT DISTINCT twt.team_id AS id,
|
||||
twt.team_name AS name
|
||||
FROM tb_device td
|
||||
LEFT JOIN tb_dev_ly tdl ON td.id = tdl.dev_id
|
||||
LEFT JOIN t_work_team twt ON tdl.team_id = twt.team_id AND twt.del_flag = 0
|
||||
WHERE tdl.gt_id = #{towerId} AND td.dev_type = #{devTypeCode} AND td.del_flag = 0
|
||||
</select>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue