代码规范修改
This commit is contained in:
parent
1fa52a68b2
commit
1c8ad19813
|
|
@ -89,9 +89,9 @@ public class OperatingController extends BaseController {
|
||||||
|
|
||||||
@RequestMapping(value = "/getGPSInstallation", method = RequestMethod.POST)
|
@RequestMapping(value = "/getGPSInstallation", method = RequestMethod.POST)
|
||||||
@ApiOperation(value = "作业环境-GPS安装检测设备查询")
|
@ApiOperation(value = "作业环境-GPS安装检测设备查询")
|
||||||
public AjaxResult getGPSInstallation(@RequestBody OperatingQualityDto dto) {
|
public AjaxResult getGisInstallation(@RequestBody OperatingQualityDto dto) {
|
||||||
try {
|
try {
|
||||||
List<OperatingQualityVo> list = service.getGPSInstallation(dto);
|
List<OperatingQualityVo> list = service.getGisInstallation(dto);
|
||||||
return AjaxResult.success(list);
|
return AjaxResult.success(list);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return AjaxResult.error();
|
return AjaxResult.error();
|
||||||
|
|
@ -100,9 +100,9 @@ public class OperatingController extends BaseController {
|
||||||
|
|
||||||
@RequestMapping(value = "/GPSInstallationEnvironment", method = RequestMethod.POST)
|
@RequestMapping(value = "/GPSInstallationEnvironment", method = RequestMethod.POST)
|
||||||
@ApiOperation(value = "作业环境-GPS安装检测环境查询")
|
@ApiOperation(value = "作业环境-GPS安装检测环境查询")
|
||||||
public AjaxResult getGPSInstallationEnvironment(@RequestBody OperatingQualityDto dto) {
|
public AjaxResult getGisInstallationEnvironment(@RequestBody OperatingQualityDto dto) {
|
||||||
try {
|
try {
|
||||||
List<OperatingQualityVo> list = service.getGPSInstallationEnvironment(dto);
|
List<OperatingQualityVo> list = service.getGisInstallationEnvironment(dto);
|
||||||
return AjaxResult.success(list);
|
return AjaxResult.success(list);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return AjaxResult.error();
|
return AjaxResult.error();
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,14 @@ import java.util.List;
|
||||||
@Repository(value = "ConstructionQualityMapper")
|
@Repository(value = "ConstructionQualityMapper")
|
||||||
public interface ConstructionQualityMapper {
|
public interface ConstructionQualityMapper {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 施工质量-检测记录对比
|
||||||
|
* @param o
|
||||||
|
* @return List<OperatingQualityVo>
|
||||||
|
* @description
|
||||||
|
* @author jjLv
|
||||||
|
* @date 2024/3/27 19:54
|
||||||
|
*/
|
||||||
List<ConstructionQualityVo> getByMonth(ConstructionQualityDto o);
|
List<ConstructionQualityVo> getByMonth(ConstructionQualityDto o);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -21,7 +29,23 @@ public interface ConstructionQualityMapper {
|
||||||
*/
|
*/
|
||||||
List<ConstructionQualityVo> getConstructionAlarm(ConstructionQualityDto dto);
|
List<ConstructionQualityVo> getConstructionAlarm(ConstructionQualityDto dto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 施工质量-质量检测设备
|
||||||
|
* @param dto
|
||||||
|
* @return List<OperatingQualityVo>
|
||||||
|
* @description
|
||||||
|
* @author jjLv
|
||||||
|
* @date 2024/3/27 19:54
|
||||||
|
*/
|
||||||
List<ConstructionQualityVo> getQualityInspection(ConstructionQualityDto dto);
|
List<ConstructionQualityVo> getQualityInspection(ConstructionQualityDto dto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 施工质量-施工质量列表
|
||||||
|
* @param dto
|
||||||
|
* @return List<OperatingQualityVo>
|
||||||
|
* @description
|
||||||
|
* @author jjLv
|
||||||
|
* @date 2024/3/27 19:54
|
||||||
|
*/
|
||||||
List<ConstructionQualityVo> getConstructionQualityList(ConstructionQualityDto dto);
|
List<ConstructionQualityVo> getConstructionQualityList(ConstructionQualityDto dto);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ public interface OperatingMapper {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 作业环境-实时检测
|
* 作业环境-实时检测
|
||||||
|
* @param dto
|
||||||
* @return List<OperatingQualityVo>
|
* @return List<OperatingQualityVo>
|
||||||
* @description
|
* @description
|
||||||
* @author jjLv
|
* @author jjLv
|
||||||
|
|
@ -48,7 +49,7 @@ public interface OperatingMapper {
|
||||||
* @author jjLv
|
* @author jjLv
|
||||||
* @date 2024/3/27 19:54
|
* @date 2024/3/27 19:54
|
||||||
*/
|
*/
|
||||||
List<OperatingQualityVo> getGPSInstallation(OperatingQualityDto dto);
|
List<OperatingQualityVo> getGisInstallation(OperatingQualityDto dto);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 作业环境-有限空间检测环境
|
* 作业环境-有限空间检测环境
|
||||||
|
|
@ -68,7 +69,7 @@ public interface OperatingMapper {
|
||||||
* @author jjLv
|
* @author jjLv
|
||||||
* @date 2024/3/27 19:54
|
* @date 2024/3/27 19:54
|
||||||
*/
|
*/
|
||||||
List<OperatingQualityVo> getGPSInstallationEnvironment(OperatingQualityDto dto);
|
List<OperatingQualityVo> getGisInstallationEnvironment(OperatingQualityDto dto);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 作业环境-边坡位移监测列表
|
* 作业环境-边坡位移监测列表
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ public interface PersonnelControlMapper {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 人员管控-穿戴装备
|
* 人员管控-穿戴装备
|
||||||
*
|
* @param dto
|
||||||
* @return AjaxResult
|
* @return AjaxResult
|
||||||
* @description
|
* @description
|
||||||
* @author jjLV
|
* @author jjLV
|
||||||
|
|
|
||||||
|
|
@ -7,12 +7,44 @@ import java.util.List;
|
||||||
|
|
||||||
public interface ConstructionQualityService {
|
public interface ConstructionQualityService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 施工质量-检测记录对比
|
||||||
|
* @param dto
|
||||||
|
* @return List<OperatingQualityVo>
|
||||||
|
* @description
|
||||||
|
* @author jjLv
|
||||||
|
* @date 2024/3/27 19:54
|
||||||
|
*/
|
||||||
List<ConstructionQualityVo> getDetectionRecord(ConstructionQualityDto dto);
|
List<ConstructionQualityVo> getDetectionRecord(ConstructionQualityDto dto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 施工质量-告警内容
|
||||||
|
* @param dto
|
||||||
|
* @return List<OperatingQualityVo>
|
||||||
|
* @description
|
||||||
|
* @author jjLv
|
||||||
|
* @date 2024/3/27 19:54
|
||||||
|
*/
|
||||||
List<ConstructionQualityVo> getConstructionAlarm(ConstructionQualityDto dto);
|
List<ConstructionQualityVo> getConstructionAlarm(ConstructionQualityDto dto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 施工质量-质量检测设备
|
||||||
|
* @param dto
|
||||||
|
* @return List<OperatingQualityVo>
|
||||||
|
* @description
|
||||||
|
* @author jjLv
|
||||||
|
* @date 2024/3/27 19:54
|
||||||
|
*/
|
||||||
List<ConstructionQualityVo> getQualityInspection(ConstructionQualityDto dto);
|
List<ConstructionQualityVo> getQualityInspection(ConstructionQualityDto dto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 施工质量-施工质量列表
|
||||||
|
* @param dto
|
||||||
|
* @return List<OperatingQualityVo>
|
||||||
|
* @description
|
||||||
|
* @author jjLv
|
||||||
|
* @date 2024/3/27 19:54
|
||||||
|
*/
|
||||||
List<ConstructionQualityVo> getConstructionQualityList(ConstructionQualityDto dto);
|
List<ConstructionQualityVo> getConstructionQualityList(ConstructionQualityDto dto);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ public interface OperatingService {
|
||||||
* @author jjLv
|
* @author jjLv
|
||||||
* @date 2024/3/27 19:54
|
* @date 2024/3/27 19:54
|
||||||
*/
|
*/
|
||||||
List<OperatingQualityVo> getGPSInstallation(OperatingQualityDto dto);
|
List<OperatingQualityVo> getGisInstallation(OperatingQualityDto dto);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 作业环境-有限空间检测环境
|
* 作业环境-有限空间检测环境
|
||||||
|
|
@ -70,7 +70,7 @@ public interface OperatingService {
|
||||||
* @author jjLv
|
* @author jjLv
|
||||||
* @date 2024/3/27 19:54
|
* @date 2024/3/27 19:54
|
||||||
*/
|
*/
|
||||||
List<OperatingQualityVo> getGPSInstallationEnvironment(OperatingQualityDto dto);
|
List<OperatingQualityVo> getGisInstallationEnvironment(OperatingQualityDto dto);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 作业环境-边坡位移监测列表
|
* 作业环境-边坡位移监测列表
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,14 @@ public class ConstructionQualityImpl implements ConstructionQualityService {
|
||||||
@Resource(name = "ConstructionQualityMapper")
|
@Resource(name = "ConstructionQualityMapper")
|
||||||
private ConstructionQualityMapper mapper;
|
private ConstructionQualityMapper mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 施工质量-告警内容
|
||||||
|
* @param dto
|
||||||
|
* @return List<OperatingQualityVo>
|
||||||
|
* @description
|
||||||
|
* @author jjLv
|
||||||
|
* @date 2024/3/27 19:54
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<ConstructionQualityVo> getConstructionAlarm(ConstructionQualityDto dto) {
|
public List<ConstructionQualityVo> getConstructionAlarm(ConstructionQualityDto dto) {
|
||||||
List<ConstructionQualityVo> list = new ArrayList<>();
|
List<ConstructionQualityVo> list = new ArrayList<>();
|
||||||
|
|
@ -32,11 +39,27 @@ public class ConstructionQualityImpl implements ConstructionQualityService {
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 施工质量-质量检测设备
|
||||||
|
* @param dto
|
||||||
|
* @return List<OperatingQualityVo>
|
||||||
|
* @description
|
||||||
|
* @author jjLv
|
||||||
|
* @date 2024/3/27 19:54
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<ConstructionQualityVo> getQualityInspection(ConstructionQualityDto dto) {
|
public List<ConstructionQualityVo> getQualityInspection(ConstructionQualityDto dto) {
|
||||||
return mapper.getQualityInspection(dto);
|
return mapper.getQualityInspection(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 施工质量-施工质量列表
|
||||||
|
* @param dto
|
||||||
|
* @return List<OperatingQualityVo>
|
||||||
|
* @description
|
||||||
|
* @author jjLv
|
||||||
|
* @date 2024/3/27 19:54
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<ConstructionQualityVo> getConstructionQualityList(ConstructionQualityDto dto) {
|
public List<ConstructionQualityVo> getConstructionQualityList(ConstructionQualityDto dto) {
|
||||||
List<ConstructionQualityVo> list = new ArrayList<>();
|
List<ConstructionQualityVo> list = new ArrayList<>();
|
||||||
|
|
@ -48,11 +71,20 @@ public class ConstructionQualityImpl implements ConstructionQualityService {
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 施工质量-检测记录对比
|
||||||
|
* @param dto
|
||||||
|
* @return List<OperatingQualityVo>
|
||||||
|
* @description
|
||||||
|
* @author jjLv
|
||||||
|
* @date 2024/3/27 19:54
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<ConstructionQualityVo> getDetectionRecord(ConstructionQualityDto dto) {
|
public List<ConstructionQualityVo> getDetectionRecord(ConstructionQualityDto dto) {
|
||||||
|
final int NUM_MONTHS_IN_YEAR = 12;
|
||||||
YearMonth currentYearMonth = YearMonth.now();
|
YearMonth currentYearMonth = YearMonth.now();
|
||||||
YearMonth[] lastTwelveMonths = new YearMonth[12];
|
YearMonth[] lastTwelveMonths = new YearMonth[12];
|
||||||
for (int i = 0; i < 12; i++) {
|
for (int i = 0; i < NUM_MONTHS_IN_YEAR; i++) {
|
||||||
lastTwelveMonths[i] = currentYearMonth.minusMonths(11 - i);
|
lastTwelveMonths[i] = currentYearMonth.minusMonths(11 - i);
|
||||||
}
|
}
|
||||||
List<ConstructionQualityVo> list = new ArrayList<>();
|
List<ConstructionQualityVo> list = new ArrayList<>();
|
||||||
|
|
|
||||||
|
|
@ -75,8 +75,8 @@ public class OperatingImpl implements OperatingService {
|
||||||
* @date 2024/3/27 19:54
|
* @date 2024/3/27 19:54
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<OperatingQualityVo> getGPSInstallation(OperatingQualityDto dto) {
|
public List<OperatingQualityVo> getGisInstallation(OperatingQualityDto dto) {
|
||||||
return mapper.getGPSInstallation(dto);
|
return mapper.getGisInstallation(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -101,8 +101,8 @@ public class OperatingImpl implements OperatingService {
|
||||||
* @date 2024/3/27 19:54
|
* @date 2024/3/27 19:54
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<OperatingQualityVo> getGPSInstallationEnvironment(OperatingQualityDto dto) {
|
public List<OperatingQualityVo> getGisInstallationEnvironment(OperatingQualityDto dto) {
|
||||||
return mapper.getGPSInstallationEnvironment(dto);
|
return mapper.getGisInstallationEnvironment(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -77,8 +77,8 @@ public class PersonnelControlImpl implements PersonnelControlService {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int addNewFence(PersonnelControlDto dto) {
|
public int addNewFence(PersonnelControlDto dto) {
|
||||||
String UUID = IdUtils.getUUId();
|
String uuId = IdUtils.getUUId();
|
||||||
dto.setUUID(UUID);
|
dto.setUUID(uuId);
|
||||||
int result = mapper.addNewFence(dto);
|
int result = mapper.addNewFence(dto);
|
||||||
int insertResult = 0;
|
int insertResult = 0;
|
||||||
if (result > 0) {
|
if (result > 0) {
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!--作业环境-GPS安装检测-->
|
<!--作业环境-GPS安装检测-->
|
||||||
<select id="getGPSInstallation" resultType="com.securitycontrol.entity.screen.vo.OperatingQualityVo">
|
<select id="getGisInstallation" resultType="com.securitycontrol.entity.screen.vo.OperatingQualityVo">
|
||||||
SELECT
|
SELECT
|
||||||
tbd.device_id AS id,
|
tbd.device_id AS id,
|
||||||
tbd.device_name AS deviceName,
|
tbd.device_name AS deviceName,
|
||||||
|
|
@ -73,7 +73,7 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!--作业环境-GPS安装检测设备查询-->
|
<!--作业环境-GPS安装检测设备查询-->
|
||||||
<select id="getGPSInstallationEnvironment"
|
<select id="getGisInstallationEnvironment"
|
||||||
resultType="com.securitycontrol.entity.screen.vo.OperatingQualityVo">
|
resultType="com.securitycontrol.entity.screen.vo.OperatingQualityVo">
|
||||||
SELECT
|
SELECT
|
||||||
tdv.val AS val,
|
tdv.val AS val,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue