Commit 6d5610f0 by 吴善钰

Merge remote-tracking branch 'origin/master'

parents 22ee818f 50b10b58
...@@ -50,4 +50,7 @@ public class Bkxx { ...@@ -50,4 +50,7 @@ public class Bkxx {
private String xxly; //信息来源,如果是民警手动录入的,则默认给录入人姓名,如果是系统自动加入布控,则给布控任务的布控对象号码 private String xxly; //信息来源,如果是民警手动录入的,则默认给录入人姓名,如果是系统自动加入布控,则给布控任务的布控对象号码
private String xxlytype;//信息来源type,01,表示民警录入,02,表示系统关联自动加入 private String xxlytype;//信息来源type,01,表示民警录入,02,表示系统关联自动加入
private String sqr_gajgjgdm;
private String sqr_gajgjgmc;
} }
...@@ -363,9 +363,41 @@ public class RyhxController { ...@@ -363,9 +363,41 @@ public class RyhxController {
relationList = removeJSonObject(relationList); relationList = removeJSonObject(relationList);
} }
} }
TbStCqhotel tbStCqhotel = null;
List<TbStCqhotel> listHotel = new ArrayList<>();
List<TbStCqhotelData> listHotelData = null;//本人住店信息
List<TbStCqhotelData> listOtherHotelData = new ArrayList<>();//本人所有同住人信息
try {
if (zjhm != null && !"".equals(zjhm)) {
//旅店住宿信息
listHotelData = ryhxService.queryHotelRzxx(zjhm);
if (listHotelData != null && listHotelData.size() > 0) {
for (TbStCqhotelData tbStCqhotelData : listHotelData) {
String hotelno = tbStCqhotelData.getHotelno();
String rzsj = tbStCqhotelData.getRzsj();
String roomno = tbStCqhotelData.getRoomno();
//疑似落脚点(旅店信息)
if (null != hotelno && !"".equals(hotelno)) {
tbStCqhotel = ryhxService.queryHotelAddr(hotelno);
listHotel.add(tbStCqhotel);
}
//根据旅店信息,查询同住人员信息
if (null != tbStCqhotel) {
//当前酒店同住人员信息
List<TbStCqhotelData> listOneHotelData = ryhxService.queryHotelxx(zjhm, hotelno, rzsj, roomno);
listOtherHotelData.addAll(listOneHotelData);
}
}
}
}
}catch (Exception e){
e.printStackTrace();
}
ModelAndView modelAndView = new ModelAndView("ryhx/gxqxx"); ModelAndView modelAndView = new ModelAndView("ryhx/gxqxx");
modelAndView.addObject("relationList",relationList); modelAndView.addObject("relationList",relationList);
modelAndView.addObject("relationnum",relationList.size()); modelAndView.addObject("relationnum",relationList.size());
modelAndView.addObject("listOtherHotelData",listOtherHotelData);//同住人员住宿信息
modelAndView.addObject("listOtherHotelDatacount",listOtherHotelData.size());//同住人员住宿信息
modelAndView.addObject("zjhm",zjhm); modelAndView.addObject("zjhm",zjhm);
return modelAndView; return modelAndView;
} }
......
...@@ -123,7 +123,12 @@ ...@@ -123,7 +123,12 @@
if(data.data.id=="0"){ if(data.data.id=="0"){
$.messager.alert({title:'提示',msg:'保存失败'}); $.messager.alert({title:'提示',msg:'保存失败'});
}else if(data.data.id==null){ }else if(data.data.id==null){
if(data.data.maxCount!=null){
$.messager.alert({title:'提示',msg:'已超过最大布控/追踪数'});
}else{
$.messager.alert({title:'提示',msg:'数据已存在,不可重复提交'}); $.messager.alert({title:'提示',msg:'数据已存在,不可重复提交'});
}
}else{ }else{
$.messager.alert({title:'提示',msg:'保存成功'}); $.messager.alert({title:'提示',msg:'保存成功'});
} }
......
...@@ -202,7 +202,8 @@ ...@@ -202,7 +202,8 @@
<input type="hidden" id="xxly" name="xxly" value="${bkxx.xxly}"/> <input type="hidden" id="xxly" name="xxly" value="${bkxx.xxly}"/>
<input type="hidden" id="xxlytype" name="xxlytype" value="${bkxx.xxlytype}"/> <input type="hidden" id="xxlytype" name="xxlytype" value="${bkxx.xxlytype}"/>
<input type="hidden" id="djsj" name="djsj" value="${djsjStr}"/> <input type="hidden" id="djsj" name="djsj" value="${djsjStr}"/>
<input type="hidden" id="sqr_gajgjgdm" name="sqr_gajgjgdm" value="${bkxx.sqr_gajgjgdm}"/>
<input type="hidden" id="sqr_gajgjgmc" name="sqr_gajgjgmc" value="${bkxx.sqr_gajgjgmc}"/>
</td> </td>
</tr> </tr>
</tbody> </tbody>
......
...@@ -35,6 +35,28 @@ ...@@ -35,6 +35,28 @@
</div> </div>
</div> </div>
</c:if> </c:if>
<c:forEach var="tzxx" items="${listOtherHotelData}">
<c:if test="${not empty listOtherHotelData}">
<div class="new1 tabs-o animated pulse">
<span class="tbs-title">同住人</span>
<div class="tbs-cont">
<div class="fl count" onclick="tips(this)">${tzxx.xm}</div>
<div class="fl ajbh">${tzxx.idcode}</div>
</div>
</div>
</c:if>
</c:forEach>
<c:if test="${empty listOtherHotelData}">
<div class="new1 tabs-o animated pulse" style="margin-top: -298px;">
<span class="tbs-title" style="font-size:14px; margin-left: 13px;">提示</span>
<div class="tbs-cont">
<div class="fl count" onclick="tips(this)">${listOtherHotelDatacount}</div>
<div class="fl ajbh">
<span style="font-size:16px; margin-left: 22px;">暂无查询结果</span>
</div>
</div>
</div>
</c:if>
</div> </div>
<script type="text/javascript" src="/js/jquery-1.11.3.js"></script> <script type="text/javascript" src="/js/jquery-1.11.3.js"></script>
<script type="text/javascript" src="/common/layer/layer.js"></script> <script type="text/javascript" src="/common/layer/layer.js"></script>
......
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