|
@@ -27,13 +27,13 @@ public class M00002Service extends M00002BaseModel implements ExecProcessFlow {
|
|
|
String lname =this.getA_m00002().getLname();
|
|
|
String lnodes =this.getA_m00002().getLnodes();
|
|
|
String personsites=this.getA_m00002().getPersonsites();
|
|
|
- String[] persons = personsites.split(";");
|
|
|
- for (String p:persons) {
|
|
|
- String[] st =p.split(",");
|
|
|
- if(st.length!=3){
|
|
|
- throw new BusinessException("EMB00003");
|
|
|
- }
|
|
|
- }
|
|
|
+// String[] persons = personsites.split(";");
|
|
|
+// for (String p:persons) {
|
|
|
+// String[] st =p.split(",");
|
|
|
+// if(st.length!=3){
|
|
|
+// throw new BusinessException("EMB00003");
|
|
|
+// }
|
|
|
+// }
|
|
|
DMwayMapper wdao = UtilTools.getBean(DMwayMapper.class);
|
|
|
DAccidentMapper accDao = UtilTools.getBean(DAccidentMapper.class);
|
|
|
DAccident da =accDao.selectByPrimaryKey(aid);
|
|
@@ -50,12 +50,12 @@ public class M00002Service extends M00002BaseModel implements ExecProcessFlow {
|
|
|
mway.setAid(aid);
|
|
|
mway.setLname(lname);
|
|
|
mway.setLnodes(lnodes);
|
|
|
- mway.setPersonsites(personsites);
|
|
|
+// mway.setPersonsites(personsites);
|
|
|
wdao.insertSelective(mway);
|
|
|
}else{
|
|
|
DMway mway =ways.get(0);
|
|
|
mway.setLnodes(lnodes);
|
|
|
- mway.setPersonsites(personsites);
|
|
|
+// mway.setPersonsites(personsites);
|
|
|
wdao.updateByPrimaryKey(mway);
|
|
|
}
|
|
|
List<DMway> ways2= wdao.selectByExample(wsb);
|
|
@@ -75,7 +75,11 @@ public class M00002Service extends M00002BaseModel implements ExecProcessFlow {
|
|
|
for (int i = 1; i < lnode_s.length-2; i++) {
|
|
|
lnode_sl.add(lnode_s[i]);
|
|
|
}
|
|
|
+
|
|
|
List<DPipe> pList = getdPipes(ptDao, ptsb, pDao, lnode_sl);
|
|
|
+ DPipe genp=pList.get(0);
|
|
|
+ updateWayPerson(way, genp);
|
|
|
+
|
|
|
AllPahtsDFS pathFinder = new AllPahtsDFS();
|
|
|
DPipeSQLBuilder.Criteria psc = psb.createCriteria();
|
|
|
DPipe genPipe = pList.get(0);
|
|
@@ -89,6 +93,17 @@ public class M00002Service extends M00002BaseModel implements ExecProcessFlow {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 更新人员定位数据
|
|
|
+ * @param way
|
|
|
+ * @param genp
|
|
|
+ */
|
|
|
+ private void updateWayPerson(DMway way, DPipe genp) {
|
|
|
+ DMwayMapper wdao = UtilTools.getBean(DMwayMapper.class);
|
|
|
+ way.setPersonsites(genp.getCode());
|
|
|
+ wdao.updateByPrimaryKey(way);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 根据平台映射关系 获取 管道
|
|
|
* @param ptDao
|