吊车监控下拉选修改
This commit is contained in:
parent
3e7e671415
commit
9ef200d2f7
|
|
@ -67,4 +67,40 @@ public class CraneMonitorController {
|
|||
return service.getConfigJdDevice(dto);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取吊车监控的工程
|
||||
* @param dto
|
||||
* @return AjaxResult
|
||||
* @author cwchen
|
||||
* @date 2024/9/29 19:41
|
||||
*/
|
||||
@GetMapping("getAppDzProList")
|
||||
public AjaxResult getAppDzProList(AppParamsDto dto){
|
||||
return service.getAppDzProList(dto);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取吊车监控的杆塔
|
||||
* @param dto
|
||||
* @return AjaxResult
|
||||
* @author cwchen
|
||||
* @date 2024/9/29 19:45
|
||||
*/
|
||||
@GetMapping("getAppDzTowerList")
|
||||
public AjaxResult getAppDzTowerList(AppParamsDto dto){
|
||||
return service.getAppDzTowerList(dto);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取吊车监控的班组
|
||||
* @param dto
|
||||
* @return AjaxResult
|
||||
* @author cwchen
|
||||
* @date 2024/9/29 19:45
|
||||
*/
|
||||
@GetMapping("getAppDzTeamList")
|
||||
public AjaxResult getAppDzTeamList(AppParamsDto dto){
|
||||
return service.getAppDzTeamList(dto);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import org.apache.ibatis.annotations.Param;
|
|||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @className:CraneMonitorMapper
|
||||
|
|
@ -81,4 +82,31 @@ public interface CraneMonitorMapper {
|
|||
* @date 2024/8/18 18:41
|
||||
*/
|
||||
void delJdConfig(JdConfigVo vo);
|
||||
|
||||
/**
|
||||
* 获取吊车监控的工程
|
||||
* @param dto
|
||||
* @return List<Map<String,Object>>
|
||||
* @author cwchen
|
||||
* @date 2024/9/29 19:42
|
||||
*/
|
||||
List<Map<String, Object>> getAppDzProList(AppParamsDto dto);
|
||||
|
||||
/**
|
||||
* 获取吊车监控的杆塔
|
||||
* @param dto
|
||||
* @return List<Map<String,Object>>
|
||||
* @author cwchen
|
||||
* @date 2024/9/29 19:46
|
||||
*/
|
||||
List<Map<String, Object>> getAppDzTowerList(AppParamsDto dto);
|
||||
|
||||
/**
|
||||
* 获取吊车监控的班组
|
||||
* @param dto
|
||||
* @return List<Map<String,Object>>
|
||||
* @author cwchen
|
||||
* @date 2024/9/29 20:04
|
||||
*/
|
||||
List<Map<String, Object>> getAppDzTeamList(AppParamsDto dto);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,4 +58,31 @@ public interface ICraneMonitorService {
|
|||
* @date 2024/8/13 10:54
|
||||
*/
|
||||
AjaxResult getConfigJdDevice(AppParamsDto dto);
|
||||
|
||||
/**
|
||||
* 获取吊车监控的工程
|
||||
* @param dto
|
||||
* @return AjaxResult
|
||||
* @author cwchen
|
||||
* @date 2024/9/29 19:41
|
||||
*/
|
||||
AjaxResult getAppDzProList(AppParamsDto dto);
|
||||
|
||||
/**
|
||||
* 获取吊车监控的杆塔
|
||||
* @param dto
|
||||
* @return AjaxResult
|
||||
* @author cwchen
|
||||
* @date 2024/9/29 19:46
|
||||
*/
|
||||
AjaxResult getAppDzTowerList(AppParamsDto dto);
|
||||
|
||||
/**
|
||||
* 获取吊车监控的班组
|
||||
* @param dto
|
||||
* @return AjaxResult
|
||||
* @author cwchen
|
||||
* @date 2024/9/29 20:04
|
||||
*/
|
||||
AjaxResult getAppDzTeamList(AppParamsDto dto);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -138,4 +138,37 @@ public class CraneMonitorServiceImpl implements ICraneMonitorService {
|
|||
}
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AjaxResult getAppDzProList(AppParamsDto dto) {
|
||||
List<Map<String,Object>> list = new ArrayList<>();
|
||||
try {
|
||||
list = mapper.getAppDzProList(dto);
|
||||
} catch (Exception e) {
|
||||
log.error(e.toString(),e);
|
||||
}
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AjaxResult getAppDzTowerList(AppParamsDto dto) {
|
||||
List<Map<String,Object>> list = new ArrayList<>();
|
||||
try {
|
||||
list = mapper.getAppDzTowerList(dto);
|
||||
} catch (Exception e) {
|
||||
log.error(e.toString(),e);
|
||||
}
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AjaxResult getAppDzTeamList(AppParamsDto dto) {
|
||||
List<Map<String,Object>> list = new ArrayList<>();
|
||||
try {
|
||||
list = mapper.getAppDzTeamList(dto);
|
||||
} catch (Exception e) {
|
||||
log.error(e.toString(),e);
|
||||
}
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,4 +85,37 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
) a
|
||||
ORDER BY a.id
|
||||
</select>
|
||||
<!--获取吊车监控的工程-->
|
||||
<select id="getAppDzProList" resultType="java.util.Map">
|
||||
SELECT DISTINCT tp.id,tp.pro_name AS name
|
||||
FROM tb_project tp
|
||||
LEFT JOIN t_work_team twt ON tp.team_id = twt.team_id AND twt.del_flag = 0
|
||||
WHERE tp.del_flag = 0
|
||||
<if test="roleCode=='depart'">
|
||||
AND tp.depart_id = #{departId}
|
||||
</if>
|
||||
<if test="roleCode=='team'">
|
||||
AND twt.team_id = #{teamId}
|
||||
</if>
|
||||
</select>
|
||||
<!--获取吊车监控的杆塔-->
|
||||
<select id="getAppDzTowerList" resultType="java.util.Map">
|
||||
SELECT DISTINCT tpp.id,tpp.power_name AS name
|
||||
FROM tb_project_power tpp
|
||||
LEFT JOIN tb_dev_ly tdl ON tpp.id = tdl.power_id
|
||||
WHERE tpp.pro_id = #{id} AND tpp.del_flag = 0
|
||||
<if test="roleCode=='team'">
|
||||
AND tdl.team_id = #{teamId}
|
||||
</if>
|
||||
</select>
|
||||
<!--获取吊车监控的班组-->
|
||||
<select id="getAppDzTeamList" resultType="java.util.Map">
|
||||
SELECT DISTINCT twt.team_id AS id,twt.team_name AS name
|
||||
FROM t_work_team twt
|
||||
LEFT JOIN tb_dev_ly tdl ON twt.team_id = tdl.team_id
|
||||
WHERE tdl.gt_id = #{id}
|
||||
<if test="roleCode=='team'">
|
||||
AND tdl.team_id = #{teamId}
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue