update 添加为空校验,修改联联设置equipmentOwnerId

This commit is contained in:
YAS\29473
2025-12-09 10:54:48 +08:00
parent 90803807ab
commit fa33b6028e
2 changed files with 32 additions and 75 deletions

View File

@@ -184,6 +184,12 @@ public class ThirdPartyStationRelationServiceImpl implements ThirdPartyStationRe
*/
@Override
public void updateThirdPartyStationRelationV2(ThirdPartyStationRelationDTO dto) {
if (dto == null) {
return;
}
if (dto.getEquipmentOwnerId().isEmpty()||dto.getThirdPartyType().isEmpty()){
throw new RuntimeException("未设置设备所属Id");
}
ThirdPartyStationRelation thirdPartyStationRelation = thirdPartyStationRelationMapper.selectThirdPartyStationRelationById(Long.parseLong(dto.getId()));
if (thirdPartyStationRelation == null) {
log.error("修改站点、第三方推送平台配置对应信息失败,站点、第三方推送平台配置对应不存在, id:{}", dto.getId());