|
@@ -2972,13 +2972,30 @@ public class PublicServiceImpl implements PublicService {
|
|
|
.one();
|
|
|
|
|
|
if (websit != null){
|
|
|
+ setPhone(req, websit);
|
|
|
+ setDh(req, websit);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ private void setDh(WebsitFWS req, Websit websit) {
|
|
|
+ if (StringUtils.isNotEmpty(websit.getHotline())){
|
|
|
+ req.setWdlxdh(websit.getHotline());
|
|
|
+ } else if (StringUtils.isNotEmpty(websit.getOfficePhone())){
|
|
|
+ req.setWdlxdh(websit.getOfficePhone());
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(websit.getWebsitName())){
|
|
|
+ req.setWdmc(websit.getWebsitName());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ private void setPhone(WebsitFWS req, Websit websit) {
|
|
|
+ if (StringUtils.isNotEmpty(websit.getPhone())){
|
|
|
+ req.setWdfzrsjh(websit.getPhone());
|
|
|
+ } else {
|
|
|
if (StringUtils.isNotEmpty(websit.getHotline())){
|
|
|
- req.setWdlxdh(websit.getHotline());
|
|
|
+ req.setWdfzrsjh(websit.getHotline());
|
|
|
} else if (StringUtils.isNotEmpty(websit.getOfficePhone())){
|
|
|
- req.setWdlxdh(websit.getOfficePhone());
|
|
|
- }
|
|
|
- if (StringUtils.isNotEmpty(websit.getWebsitName())){
|
|
|
- req.setWdmc(websit.getWebsitName());
|
|
|
+ req.setWdfzrsjh(websit.getOfficePhone());
|
|
|
}
|
|
|
}
|
|
|
}
|