代码规范修改
This commit is contained in:
parent
1c8ad19813
commit
9d695785fd
|
|
@ -41,7 +41,7 @@ public class PersonnelControlDto extends ScreenParamDto {
|
||||||
private String arrayField;
|
private String arrayField;
|
||||||
|
|
||||||
@ApiModelProperty(value = "围栏id")
|
@ApiModelProperty(value = "围栏id")
|
||||||
private String UUID;
|
private String uuId;
|
||||||
|
|
||||||
@ApiModelProperty(value = "经度")
|
@ApiModelProperty(value = "经度")
|
||||||
private String longitude;
|
private String longitude;
|
||||||
|
|
|
||||||
|
|
@ -131,9 +131,9 @@ public class PersonnelControlController extends BaseController {
|
||||||
|
|
||||||
@RequestMapping(value = "/PersonnelHistoricalCoordinates", method = RequestMethod.POST)
|
@RequestMapping(value = "/PersonnelHistoricalCoordinates", method = RequestMethod.POST)
|
||||||
@ApiOperation(value = "人员管控-人员坐标点")
|
@ApiOperation(value = "人员管控-人员坐标点")
|
||||||
public AjaxResult PersonnelHistoricalCoordinates(@RequestBody PersonnelControlDto dto) {
|
public AjaxResult personnelHistoricalCoordinates(@RequestBody PersonnelControlDto dto) {
|
||||||
try {
|
try {
|
||||||
List<PersonnelControlVo> list = service.PersonnelHistoricalCoordinates(dto);
|
List<PersonnelControlVo> list = service.personnelHistoricalCoordinates(dto);
|
||||||
return AjaxResult.success(list);
|
return AjaxResult.success(list);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return AjaxResult.error();
|
return AjaxResult.error();
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,9 @@ import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Lenovo
|
||||||
|
*/
|
||||||
@Repository(value = "ConstructionQualityMapper")
|
@Repository(value = "ConstructionQualityMapper")
|
||||||
public interface ConstructionQualityMapper {
|
public interface ConstructionQualityMapper {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,9 @@ import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Lenovo
|
||||||
|
*/
|
||||||
@Repository(value = "OperatingMapper")
|
@Repository(value = "OperatingMapper")
|
||||||
public interface OperatingMapper {
|
public interface OperatingMapper {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -131,5 +131,5 @@ public interface PersonnelControlMapper {
|
||||||
* @author jjLV
|
* @author jjLV
|
||||||
* @date 2024/3/27 17:23
|
* @date 2024/3/27 17:23
|
||||||
*/
|
*/
|
||||||
List<PersonnelControlVo> PersonnelHistoricalCoordinates(PersonnelControlDto dto);
|
List<PersonnelControlVo> personnelHistoricalCoordinates(PersonnelControlDto dto);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,9 @@ import com.securitycontrol.entity.screen.dto.ConstructionQualityDto;
|
||||||
import com.securitycontrol.entity.screen.vo.ConstructionQualityVo;
|
import com.securitycontrol.entity.screen.vo.ConstructionQualityVo;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
/**
|
||||||
|
* @author Lenovo
|
||||||
|
*/
|
||||||
public interface ConstructionQualityService {
|
public interface ConstructionQualityService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -121,5 +121,5 @@ public interface PersonnelControlService {
|
||||||
* @author jjLV
|
* @author jjLV
|
||||||
* @date 2024/3/27 17:23
|
* @date 2024/3/27 17:23
|
||||||
*/
|
*/
|
||||||
List<PersonnelControlVo> PersonnelHistoricalCoordinates(PersonnelControlDto dto);
|
List<PersonnelControlVo> personnelHistoricalCoordinates(PersonnelControlDto dto);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,9 @@ import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Lenovo
|
||||||
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Service(value = "ConstructionQualityService")
|
@Service(value = "ConstructionQualityService")
|
||||||
public class ConstructionQualityImpl implements ConstructionQualityService {
|
public class ConstructionQualityImpl implements ConstructionQualityService {
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ 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) {
|
||||||
|
|
@ -187,7 +187,7 @@ public class PersonnelControlImpl implements PersonnelControlService {
|
||||||
* @date 2024/3/27 17:23
|
* @date 2024/3/27 17:23
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<PersonnelControlVo> PersonnelHistoricalCoordinates(PersonnelControlDto dto) {
|
public List<PersonnelControlVo> personnelHistoricalCoordinates(PersonnelControlDto dto) {
|
||||||
return mapper.PersonnelHistoricalCoordinates(dto);
|
return mapper.personnelHistoricalCoordinates(dto);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -5,13 +5,13 @@
|
||||||
INSERT INTO tb_pro_fence
|
INSERT INTO tb_pro_fence
|
||||||
(id, fence_name, fence_type, bid_code, create_time, update_time, alarm_type, alert_ype, color)
|
(id, fence_name, fence_type, bid_code, create_time, update_time, alarm_type, alert_ype, color)
|
||||||
VALUES
|
VALUES
|
||||||
(#{UUID}, #{fencingName}, #{fencingType}, #{bidCode}, NOW(), NOW(), #{alarmType}, #{alertType}, #{color})
|
(#{uuId}, #{fencingName}, #{fencingType}, #{bidCode}, NOW(), NOW(), #{alarmType}, #{alertType}, #{color})
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertCoordinates">
|
<insert id="insertCoordinates">
|
||||||
INSERT INTO tb_fence_detail
|
INSERT INTO tb_fence_detail
|
||||||
(id, fence_id, lat, lon, create_time)
|
(id, fence_id, lat, lon, create_time)
|
||||||
VALUES
|
VALUES
|
||||||
(UUID(), #{UUID}, #{latitude}, #{longitude}, NOW())
|
(UUID(), #{uuId}, #{latitude}, #{longitude}, NOW())
|
||||||
</insert>
|
</insert>
|
||||||
<update id="subcontractorSwitchListen">
|
<update id="subcontractorSwitchListen">
|
||||||
UPDATE tb_pro_fence
|
UPDATE tb_pro_fence
|
||||||
|
|
@ -128,7 +128,7 @@
|
||||||
tbd.device_id
|
tbd.device_id
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="PersonnelHistoricalCoordinates"
|
<select id="personnelHistoricalCoordinates"
|
||||||
resultType="com.securitycontrol.entity.screen.vo.PersonnelControlVo">
|
resultType="com.securitycontrol.entity.screen.vo.PersonnelControlVo">
|
||||||
SELECT
|
SELECT
|
||||||
his.val as val,
|
his.val as val,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue