Commit f8f5705c authored by tangwei's avatar tangwei

修改bug

parent d605d446
......@@ -7,6 +7,7 @@ import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
......@@ -47,7 +48,7 @@ public class View3dController extends AbstractBaseController {
@Autowired
private IFireFightingSystemService fireFightingSystemService;
@Lazy
@Autowired
private IEquipmentSpecificSerivce equipmentSpecificSerivce;
......
......@@ -274,8 +274,9 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
}
private void setChargePersonName(FireFightingSystemVo vo) {
if (StringUtil.isNotEmpty(vo.getRecUserId())) {
FeignClientResult<AgencyUserModel> result = Privilege.agencyUserClient.queryByUserId(vo.getRecUserId());
if (StringUtil.isNotEmpty(vo.getChargePerson())) {
FeignClientResult<AgencyUserModel> result = Privilege.agencyUserClient.queryByUserId(vo.getChargePerson());
AgencyUserModel userModel = result == null ? new AgencyUserModel() : result.getResult();
vo.setChargePersonName(userModel.getRealName());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment