Browse Source

#值班bug修复

zhongwei
yang_shj 1 year ago
parent
commit
f1ec4ca26f
  1. 4
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/main/vo/WindSubordinateVo.java
  2. 4
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyMainServiceImpl.java

4
hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/main/vo/WindSubordinateVo.java

@ -27,12 +27,12 @@ public class WindSubordinateVo {
@ApiModelProperty(value = "地市名称") @ApiModelProperty(value = "地市名称")
private String areaName; private String areaName;
@ApiModelProperty(value = "经度(东经)")
@ApiModelProperty("经度(东经)")
@JsonSerialize(nullsUsing = NullSerializer.class) @JsonSerialize(nullsUsing = NullSerializer.class)
private Float lgtd; private Float lgtd;
@ApiModelProperty("纬度(北纬)") @ApiModelProperty(value = "纬度(北纬)")
@JsonSerialize(nullsUsing = NullSerializer.class) @JsonSerialize(nullsUsing = NullSerializer.class)
private Float lttd; private Float lttd;

4
hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyMainServiceImpl.java

@ -1765,13 +1765,17 @@ public class ImsDutyMainServiceImpl extends BaseServiceImpl<ImsDutyMainMapper, I
eq(ImsDutyMainPersonEntity::getDutyMainId, s.getId()); eq(ImsDutyMainPersonEntity::getDutyMainId, s.getId());
last("limit 1"); last("limit 1");
}}); }});
if(ObjectUtil.isNotEmpty(imsDutyMainPersonEntity.getDutyChargePerson())){
s.setManagerId(imsDutyMainPersonEntity.getDutyChargePerson().toString()); s.setManagerId(imsDutyMainPersonEntity.getDutyChargePerson().toString());
}
} else { } else {
ImsDutyGroupEntity imsDutyGroupEntity = dutyGroupMapper.selectById(s.getDutyGroupId()); ImsDutyGroupEntity imsDutyGroupEntity = dutyGroupMapper.selectById(s.getDutyGroupId());
s.setGroupName(imsDutyGroupEntity.getGroupName()); s.setGroupName(imsDutyGroupEntity.getGroupName());
s.setDutyGroupId(imsDutyGroupEntity.getId()); s.setDutyGroupId(imsDutyGroupEntity.getId());
if(ObjectUtil.isNotEmpty(imsDutyGroupEntity.getManagerId())){
s.setManagerId(imsDutyGroupEntity.getManagerId().toString()); s.setManagerId(imsDutyGroupEntity.getManagerId().toString());
} }
}
return s; return s;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
return dutyMainInfoVos; return dutyMainInfoVos;

Loading…
Cancel
Save