Commit 84ed97ce authored by “yiyousong”'s avatar “yiyousong”
parents 33066c62 d0c54ff8
......@@ -7,4 +7,7 @@ public class HomeQueryPdu {
private Long siteId;
private String devicenum;
private Integer newSource;
}
......@@ -147,6 +147,9 @@ public class HomeController extends BaseJsonBodyController {
return ret;
}
@PostMapping({"info"})
@UnAuth
public Rest<Object> homePageInfo(@RequestBody HomeQueryPdu homeQueryPdu) {
......@@ -181,7 +184,7 @@ public class HomeController extends BaseJsonBodyController {
model.put("totalThrift", 996); //累计节约
model.put("message_info", busiDesc + "成功");
Rest<com.mortals.xhx.common.pdu.site.SitePdu> info = siteFeign.info(homeQueryPdu.getSiteId());
model.put("title", info.getData().getSiteName()); //标题
model.put("title", info==null?"":info.getData().getSiteName()); //标题
HotwordEntity hotwordEntity = hotwordService.selectOne(new HotwordQuery().siteId(homeQueryPdu.getSiteId()));
model.put("blankCount", hotwordEntity==null?20:hotwordEntity.getPrintDisplay()); //空白样表数量
......
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