Commit 007e569f21b8271e3c70113d08fc07499ac58ed2
Merge branch 'minhang' of http://222.66.0.204:8090/panzhaov5/bsth_control into minhang
Showing
11 changed files
with
124 additions
and
20 deletions
src/main/java/com/bsth/service/forms/impl/FormsServiceImpl.java
| @@ -783,6 +783,7 @@ public class FormsServiceImpl implements FormsService { | @@ -783,6 +783,7 @@ public class FormsServiceImpl implements FormsService { | ||
| 783 | @Override | 783 | @Override |
| 784 | public List<Map<String, Object>> turnoutrate(Map<String, Object> map) { | 784 | public List<Map<String, Object>> turnoutrate(Map<String, Object> map) { |
| 785 | 785 | ||
| 786 | + List<Map<String, Object>> tempList = new ArrayList<Map<String, Object>>(); | ||
| 786 | List<Map<String, Object>> resList = new ArrayList<Map<String, Object>>(); | 787 | List<Map<String, Object>> resList = new ArrayList<Map<String, Object>>(); |
| 787 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); | 788 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
| 788 | SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy年MM月dd日"); | 789 | SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy年MM月dd日"); |
| @@ -804,11 +805,14 @@ public class FormsServiceImpl implements FormsService { | @@ -804,11 +805,14 @@ public class FormsServiceImpl implements FormsService { | ||
| 804 | String line = map.get("line").toString(); | 805 | String line = map.get("line").toString(); |
| 805 | String startDate = map.get("startDate").toString(); | 806 | String startDate = map.get("startDate").toString(); |
| 806 | String endDate = map.get("endDate").toString(); | 807 | String endDate = map.get("endDate").toString(); |
| 808 | + if(line.trim().length() == 0){ | ||
| 809 | + line = ""; | ||
| 810 | + } | ||
| 807 | 811 | ||
| 808 | rq = rq2 + "-" + rq3; | 812 | rq = rq2 + "-" + rq3; |
| 809 | 813 | ||
| 810 | List<ScheduleRealInfo> list = scheduleRealInfoRepository.scheduleByDateAndLineTj(line, startDate, endDate, company, subCompany); | 814 | List<ScheduleRealInfo> list = scheduleRealInfoRepository.scheduleByDateAndLineTj(line, startDate, endDate, company, subCompany); |
| 811 | - List<Line> lineList = lineRepository.findLineBygsBm(company, subCompany, line); | 815 | + List<Line> lineList = lineRepository.findLineBygsBm(company, subCompany, line.length()==0?"%"+line+"%":line); |
| 812 | 816 | ||
| 813 | String sql = "select * from bsth_c_s_sp_info where gs_bm = '"+company+"' and fgs_bm = '"+subCompany+"' " | 817 | String sql = "select * from bsth_c_s_sp_info where gs_bm = '"+company+"' and fgs_bm = '"+subCompany+"' " |
| 814 | + "and DATE_FORMAT(schedule_date,'%Y-%m-%d') BETWEEN '"+startDate+"' and '"+endDate+"' "; | 818 | + "and DATE_FORMAT(schedule_date,'%Y-%m-%d') BETWEEN '"+startDate+"' and '"+endDate+"' "; |
| @@ -842,10 +846,10 @@ public class FormsServiceImpl implements FormsService { | @@ -842,10 +846,10 @@ public class FormsServiceImpl implements FormsService { | ||
| 842 | m.put("xlBm", line1.getLineCode()); | 846 | m.put("xlBm", line1.getLineCode()); |
| 843 | m.put("qz", line1.getWarrantCar()!=null?line1.getWarrantCar():0); | 847 | m.put("qz", line1.getWarrantCar()!=null?line1.getWarrantCar():0); |
| 844 | m.put("sm", ""); | 848 | m.put("sm", ""); |
| 845 | - resList.add(m); | 849 | + tempList.add(m); |
| 846 | } | 850 | } |
| 847 | } | 851 | } |
| 848 | - for(Map<String, Object> m : resList){ | 852 | + for(Map<String, Object> m : tempList){ |
| 849 | String xlBm = m.get("xlBm").toString(); | 853 | String xlBm = m.get("xlBm").toString(); |
| 850 | List<ScheduleRealInfo> reals = new ArrayList<ScheduleRealInfo>(); | 854 | List<ScheduleRealInfo> reals = new ArrayList<ScheduleRealInfo>(); |
| 851 | List<SchedulePlanInfo> plans = new ArrayList<SchedulePlanInfo>(); | 855 | List<SchedulePlanInfo> plans = new ArrayList<SchedulePlanInfo>(); |
| @@ -895,6 +899,9 @@ public class FormsServiceImpl implements FormsService { | @@ -895,6 +899,9 @@ public class FormsServiceImpl implements FormsService { | ||
| 895 | }else{ | 899 | }else{ |
| 896 | m.put("zxl", "--"); | 900 | m.put("zxl", "--"); |
| 897 | } | 901 | } |
| 902 | + if(jhbc != 0 && sjbc != 0){ | ||
| 903 | + resList.add(m); | ||
| 904 | + } | ||
| 898 | } | 905 | } |
| 899 | Map<String, Object> tempMap = new HashMap<String, Object>(); | 906 | Map<String, Object> tempMap = new HashMap<String, Object>(); |
| 900 | int jhcc = 0; | 907 | int jhcc = 0; |
| @@ -902,7 +909,7 @@ public class FormsServiceImpl implements FormsService { | @@ -902,7 +909,7 @@ public class FormsServiceImpl implements FormsService { | ||
| 902 | int jhbc = 0; | 909 | int jhbc = 0; |
| 903 | int sjbc = 0; | 910 | int sjbc = 0; |
| 904 | int qz = 0; | 911 | int qz = 0; |
| 905 | - for(Map<String, Object> m : resList){ | 912 | + for(Map<String, Object> m : tempList){ |
| 906 | jhcc += Integer.valueOf(m.get("jhcc").toString()); | 913 | jhcc += Integer.valueOf(m.get("jhcc").toString()); |
| 907 | sjcc += Integer.valueOf(m.get("sjcc").toString()); | 914 | sjcc += Integer.valueOf(m.get("sjcc").toString()); |
| 908 | jhbc += Integer.valueOf(m.get("jhbc").toString()); | 915 | jhbc += Integer.valueOf(m.get("jhbc").toString()); |
| @@ -910,7 +917,7 @@ public class FormsServiceImpl implements FormsService { | @@ -910,7 +917,7 @@ public class FormsServiceImpl implements FormsService { | ||
| 910 | qz += Integer.valueOf(m.get("qz").toString()); | 917 | qz += Integer.valueOf(m.get("qz").toString()); |
| 911 | } | 918 | } |
| 912 | tempMap.put("rq", "分类汇总"); | 919 | tempMap.put("rq", "分类汇总"); |
| 913 | - tempMap.put("line", "共" + resList.size() + "条线路"); | 920 | + tempMap.put("line", "共" + tempList.size() + "条线路"); |
| 914 | tempMap.put("jhcc", jhcc); | 921 | tempMap.put("jhcc", jhcc); |
| 915 | tempMap.put("sjcc", sjcc); | 922 | tempMap.put("sjcc", sjcc); |
| 916 | tempMap.put("jhbc", jhbc); | 923 | tempMap.put("jhbc", jhbc); |
src/main/java/com/bsth/service/impl/BusIntervalServiceImpl.java
| @@ -113,6 +113,12 @@ public class BusIntervalServiceImpl implements BusIntervalService { | @@ -113,6 +113,12 @@ public class BusIntervalServiceImpl implements BusIntervalService { | ||
| 113 | schedule.setSpId(rs.getLong("sp_id")); | 113 | schedule.setSpId(rs.getLong("sp_id")); |
| 114 | schedule.setSflj(rs.getBoolean("sflj")); | 114 | schedule.setSflj(rs.getBoolean("sflj")); |
| 115 | 115 | ||
| 116 | + if(schedule.getFcsjActual() != null && schedule.getFcsjActual().trim().length() == 0){ | ||
| 117 | + schedule.setFcsjActual(null); | ||
| 118 | + } | ||
| 119 | + if(schedule.getZdsjActual() != null && schedule.getZdsjActual().trim().length() == 0){ | ||
| 120 | + schedule.setZdsjActual(null); | ||
| 121 | + } | ||
| 116 | String[] split1 = schedule.getFcsj().split(":"); | 122 | String[] split1 = schedule.getFcsj().split(":"); |
| 117 | String[] split3 = schedule.getZdsj().split(":"); | 123 | String[] split3 = schedule.getZdsj().split(":"); |
| 118 | long fcsj = Long.valueOf(split1[0]) * 60 + Long.valueOf(split1[1]); | 124 | long fcsj = Long.valueOf(split1[0]) * 60 + Long.valueOf(split1[1]); |
| @@ -669,6 +675,13 @@ public class BusIntervalServiceImpl implements BusIntervalService { | @@ -669,6 +675,13 @@ public class BusIntervalServiceImpl implements BusIntervalService { | ||
| 669 | schedule.setjName(rs.getString("j_name")); | 675 | schedule.setjName(rs.getString("j_name")); |
| 670 | schedule.setStatus(rs.getInt("status")); | 676 | schedule.setStatus(rs.getInt("status")); |
| 671 | schedule.setSpId(rs.getLong("sp_id")); | 677 | schedule.setSpId(rs.getLong("sp_id")); |
| 678 | + | ||
| 679 | + if(schedule.getFcsjActual() != null && schedule.getFcsjActual().trim().length() == 0){ | ||
| 680 | + schedule.setFcsjActual(null); | ||
| 681 | + } | ||
| 682 | + if(schedule.getZdsjActual() != null && schedule.getZdsjActual().trim().length() == 0){ | ||
| 683 | + schedule.setZdsjActual(null); | ||
| 684 | + } | ||
| 672 | if(schedule.getDfsj() != null){ | 685 | if(schedule.getDfsj() != null){ |
| 673 | String[] split0 = schedule.getDfsj().split(":"); | 686 | String[] split0 = schedule.getDfsj().split(":"); |
| 674 | long dfsj = Long.valueOf(split0[0]) * 60 + Long.valueOf(split0[1]); | 687 | long dfsj = Long.valueOf(split0[0]) * 60 + Long.valueOf(split0[1]); |
| @@ -1840,6 +1853,13 @@ public class BusIntervalServiceImpl implements BusIntervalService { | @@ -1840,6 +1853,13 @@ public class BusIntervalServiceImpl implements BusIntervalService { | ||
| 1840 | schedule.setjName(rs.getString("j_name")); | 1853 | schedule.setjName(rs.getString("j_name")); |
| 1841 | schedule.setUpdateDate(rs.getDate("update_date")); | 1854 | schedule.setUpdateDate(rs.getDate("update_date")); |
| 1842 | 1855 | ||
| 1856 | + if(schedule.getFcsjActual() != null && schedule.getFcsjActual().trim().length() == 0){ | ||
| 1857 | + schedule.setFcsjActual(null); | ||
| 1858 | + } | ||
| 1859 | + if(schedule.getZdsjActual() != null && schedule.getZdsjActual().trim().length() == 0){ | ||
| 1860 | + schedule.setZdsjActual(null); | ||
| 1861 | + } | ||
| 1862 | + | ||
| 1843 | return schedule; | 1863 | return schedule; |
| 1844 | } | 1864 | } |
| 1845 | }); | 1865 | }); |
src/main/java/com/bsth/service/schedule/impl/PeopleCarPlanServiceImpl.java
| @@ -81,6 +81,12 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { | @@ -81,6 +81,12 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { | ||
| 81 | schedule.setsName(rs.getString("s_name")); | 81 | schedule.setsName(rs.getString("s_name")); |
| 82 | schedule.setSpId(rs.getLong("sp_id")); | 82 | schedule.setSpId(rs.getLong("sp_id")); |
| 83 | 83 | ||
| 84 | + if(schedule.getFcsjActual() != null && schedule.getFcsjActual().trim().length() == 0){ | ||
| 85 | + schedule.setFcsjActual(null); | ||
| 86 | + } | ||
| 87 | + if(schedule.getZdsjActual() != null && schedule.getZdsjActual().trim().length() == 0){ | ||
| 88 | + schedule.setZdsjActual(null); | ||
| 89 | + } | ||
| 84 | if(schedule.getFcsj() != null && schedule.getZdsj() != null){ | 90 | if(schedule.getFcsj() != null && schedule.getZdsj() != null){ |
| 85 | String[] split1 = schedule.getFcsj().split(":"); | 91 | String[] split1 = schedule.getFcsj().split(":"); |
| 86 | String[] split2 = schedule.getZdsj().split(":"); | 92 | String[] split2 = schedule.getZdsj().split(":"); |
| @@ -548,6 +554,12 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { | @@ -548,6 +554,12 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { | ||
| 548 | schedule.setQdzName(rs.getString("qdz_name")); | 554 | schedule.setQdzName(rs.getString("qdz_name")); |
| 549 | schedule.setSpId(rs.getLong("sp_id")); | 555 | schedule.setSpId(rs.getLong("sp_id")); |
| 550 | 556 | ||
| 557 | + if(schedule.getFcsjActual() != null && schedule.getFcsjActual().trim().length() == 0){ | ||
| 558 | + schedule.setFcsjActual(null); | ||
| 559 | + } | ||
| 560 | + if(schedule.getZdsjActual() != null && schedule.getZdsjActual().trim().length() == 0){ | ||
| 561 | + schedule.setZdsjActual(null); | ||
| 562 | + } | ||
| 551 | if(schedule.getFcsj() != null && schedule.getZdsj() != null){ | 563 | if(schedule.getFcsj() != null && schedule.getZdsj() != null){ |
| 552 | String[] split1 = schedule.getFcsj().split(":"); | 564 | String[] split1 = schedule.getFcsj().split(":"); |
| 553 | String[] split2 = schedule.getZdsj().split(":"); | 565 | String[] split2 = schedule.getZdsj().split(":"); |
| @@ -831,6 +843,12 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { | @@ -831,6 +843,12 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { | ||
| 831 | schedule.setQdzName(rs.getString("qdz_name")); | 843 | schedule.setQdzName(rs.getString("qdz_name")); |
| 832 | schedule.setSpId(rs.getLong("sp_id")); | 844 | schedule.setSpId(rs.getLong("sp_id")); |
| 833 | 845 | ||
| 846 | + if(schedule.getFcsjActual() != null && schedule.getFcsjActual().trim().length() == 0){ | ||
| 847 | + schedule.setFcsjActual(null); | ||
| 848 | + } | ||
| 849 | + if(schedule.getZdsjActual() != null && schedule.getZdsjActual().trim().length() == 0){ | ||
| 850 | + schedule.setZdsjActual(null); | ||
| 851 | + } | ||
| 834 | if(schedule.getFcsj() != null && schedule.getZdsj() != null){ | 852 | if(schedule.getFcsj() != null && schedule.getZdsj() != null){ |
| 835 | String[] split1 = schedule.getFcsj().split(":"); | 853 | String[] split1 = schedule.getFcsj().split(":"); |
| 836 | String[] split2 = schedule.getZdsj().split(":"); | 854 | String[] split2 = schedule.getZdsj().split(":"); |
src/main/java/com/bsth/service/schedule/impl/TTInfoDetailServiceImpl.java
| @@ -210,6 +210,7 @@ public class TTInfoDetailServiceImpl extends BServiceImpl<TTInfoDetail, Long> im | @@ -210,6 +210,7 @@ public class TTInfoDetailServiceImpl extends BServiceImpl<TTInfoDetail, Long> im | ||
| 210 | Map<String, Object> p2 = new HashMap<>(); | 210 | Map<String, Object> p2 = new HashMap<>(); |
| 211 | p2.put("xl.id_eq", lineid); | 211 | p2.put("xl.id_eq", lineid); |
| 212 | p2.put("lpName_eq", bcell_con.trim()); | 212 | p2.put("lpName_eq", bcell_con.trim()); |
| 213 | + p2.put("isCancel_eq", false); | ||
| 213 | List<GuideboardInfo> guideboardInfoList = (List<GuideboardInfo>) guideboardInfoService.list(p2); | 214 | List<GuideboardInfo> guideboardInfoList = (List<GuideboardInfo>) guideboardInfoService.list(p2); |
| 214 | if (CollectionUtils.isEmpty(guideboardInfoList)) { | 215 | if (CollectionUtils.isEmpty(guideboardInfoList)) { |
| 215 | throw new Exception(String.format("第%d行,第1列的路牌在%s中不存在", i + 1, linename)); | 216 | throw new Exception(String.format("第%d行,第1列的路牌在%s中不存在", i + 1, linename)); |
| @@ -247,6 +248,7 @@ public class TTInfoDetailServiceImpl extends BServiceImpl<TTInfoDetail, Long> im | @@ -247,6 +248,7 @@ public class TTInfoDetailServiceImpl extends BServiceImpl<TTInfoDetail, Long> im | ||
| 247 | 248 | ||
| 248 | } | 249 | } |
| 249 | } catch (Exception exp) { | 250 | } catch (Exception exp) { |
| 251 | + exp.printStackTrace(); | ||
| 250 | throw new ScheduleException(exp.getMessage()); | 252 | throw new ScheduleException(exp.getMessage()); |
| 251 | } | 253 | } |
| 252 | 254 |
src/main/resources/static/pages/forms/statement/timeAndSpeed.html
src/main/resources/static/pages/mforms/turnoutrates/turnoutrate.html
| @@ -37,15 +37,15 @@ | @@ -37,15 +37,15 @@ | ||
| 37 | <div class="portlet light porttlet-fit bordered"> | 37 | <div class="portlet light porttlet-fit bordered"> |
| 38 | <div class="portlet-title"> | 38 | <div class="portlet-title"> |
| 39 | <form class="form-inline" action="" method="post"> | 39 | <form class="form-inline" action="" method="post"> |
| 40 | - <div style="display: inline-block; margin-left: 33px;" id="gsdmDiv_turn"> | 40 | + <div style="display: inline-block; margin-left: 20px;" id="gsdmDiv_turn"> |
| 41 | <span class="item-label" style="width: 80px;">公司: </span> | 41 | <span class="item-label" style="width: 80px;">公司: </span> |
| 42 | <select class="form-control" name="company" id="gsdmTurn" style="width: 140px;"></select> | 42 | <select class="form-control" name="company" id="gsdmTurn" style="width: 140px;"></select> |
| 43 | </div> | 43 | </div> |
| 44 | - <div style="display: inline-block; margin-left: 24px;" id="fgsdmDiv_turn"> | 44 | + <div style="display: inline-block; margin-left: 20px;" id="fgsdmDiv_turn"> |
| 45 | <span class="item-label" style="width: 80px;">分公司: </span> | 45 | <span class="item-label" style="width: 80px;">分公司: </span> |
| 46 | <select class="form-control" name="subCompany" id="fgsdmTurn" style="width: 140px;"></select> | 46 | <select class="form-control" name="subCompany" id="fgsdmTurn" style="width: 140px;"></select> |
| 47 | </div> | 47 | </div> |
| 48 | - <div style="display: inline-block;"> | 48 | + <div style="display: inline-block; margin-left: 15px;"> |
| 49 | <span class="item-label" style="width: 80px;">线路: </span> | 49 | <span class="item-label" style="width: 80px;">线路: </span> |
| 50 | <select class="form-control" name="line" id="line" style="width: 120px;"></select> | 50 | <select class="form-control" name="line" id="line" style="width: 120px;"></select> |
| 51 | </div> | 51 | </div> |
| @@ -124,6 +124,17 @@ | @@ -124,6 +124,17 @@ | ||
| 124 | locale : 'zh-cn' | 124 | locale : 'zh-cn' |
| 125 | }); | 125 | }); |
| 126 | 126 | ||
| 127 | + var d = new Date(); | ||
| 128 | + var year = d.getFullYear(); | ||
| 129 | + var month = d.getMonth() + 1; | ||
| 130 | + var day = d.getDate(); | ||
| 131 | + if(month < 10) | ||
| 132 | + month = "0" + month; | ||
| 133 | + if(day < 10) | ||
| 134 | + day = "0" + day; | ||
| 135 | + $("#startDate").val(year + "-" + month + "-" + day); | ||
| 136 | + $("#endDate").val(year + "-" + month + "-" + day); | ||
| 137 | + | ||
| 127 | var fage=false; | 138 | var fage=false; |
| 128 | var xlList; | 139 | var xlList; |
| 129 | var obj = []; | 140 | var obj = []; |
| @@ -167,6 +178,7 @@ | @@ -167,6 +178,7 @@ | ||
| 167 | $("#fgsdmTurn").on("change",initXl); | 178 | $("#fgsdmTurn").on("change",initXl); |
| 168 | function initXl(){ | 179 | function initXl(){ |
| 169 | var data=[]; | 180 | var data=[]; |
| 181 | + data.push({id:" ", text:"全部线路"}); | ||
| 170 | if(fage){ | 182 | if(fage){ |
| 171 | $("#line").select2("destroy").html(''); | 183 | $("#line").select2("destroy").html(''); |
| 172 | } | 184 | } |
src/main/resources/static/pages/scheduleApp/module/common/dts2/scheduleplan/saPlanInfoEdit.js
| @@ -133,11 +133,17 @@ angular.module('ScheduleApp').directive( | @@ -133,11 +133,17 @@ angular.module('ScheduleApp').directive( | ||
| 133 | var new_j1_id = new_j1.split("_")[0]; | 133 | var new_j1_id = new_j1.split("_")[0]; |
| 134 | var new_j1_name = new_j1.split("_")[1]; | 134 | var new_j1_name = new_j1.split("_")[1]; |
| 135 | var new_j1_gh = new_j1.split("_")[2]; | 135 | var new_j1_gh = new_j1.split("_")[2]; |
| 136 | + if (new_j1_gh && new_j1_gh.indexOf("-") > 0) { | ||
| 137 | + new_j1_gh = new_j1_gh.substr(3); // 修正工号,把 55- 这种前缀去掉 | ||
| 138 | + } | ||
| 136 | 139 | ||
| 137 | if (new_j2) { | 140 | if (new_j2) { |
| 138 | var new_j2_id = new_j2.split("_")[0]; | 141 | var new_j2_id = new_j2.split("_")[0]; |
| 139 | var new_j2_name = new_j2.split("_")[1]; | 142 | var new_j2_name = new_j2.split("_")[1]; |
| 140 | var new_j2_gh = new_j2.split("_")[2]; | 143 | var new_j2_gh = new_j2.split("_")[2]; |
| 144 | + if (new_j2_gh && new_j2_gh.indexOf("-") > 0) { | ||
| 145 | + new_j2_gh = new_j2_gh.substr(3); // 修正工号,把 55- 这种前缀去掉 | ||
| 146 | + } | ||
| 141 | 147 | ||
| 142 | if (old_isfb) { // 使用分班判定 | 148 | if (old_isfb) { // 使用分班判定 |
| 143 | angular.forEach(scope[ctrlAs].ds, function(obj, index) { | 149 | angular.forEach(scope[ctrlAs].ds, function(obj, index) { |
| @@ -205,16 +211,23 @@ angular.module('ScheduleApp').directive( | @@ -205,16 +211,23 @@ angular.module('ScheduleApp').directive( | ||
| 205 | var new_s1_id = new_s1.split("_")[0]; | 211 | var new_s1_id = new_s1.split("_")[0]; |
| 206 | var new_s1_name = new_s1.split("_")[1]; | 212 | var new_s1_name = new_s1.split("_")[1]; |
| 207 | var new_s1_gh = new_s1.split("_")[2]; | 213 | var new_s1_gh = new_s1.split("_")[2]; |
| 214 | + if (new_s1_gh && new_s1_gh.indexOf("-") > 0) { // 修正工号,吧 55- 这种前缀去掉 | ||
| 215 | + new_s1_gh = new_s1_gh.substr(3); | ||
| 216 | + } | ||
| 208 | 217 | ||
| 209 | if (new_s2) { | 218 | if (new_s2) { |
| 210 | var new_s2_id = new_s2.split("_")[0]; | 219 | var new_s2_id = new_s2.split("_")[0]; |
| 211 | var new_s2_name = new_s2.split("_")[1]; | 220 | var new_s2_name = new_s2.split("_")[1]; |
| 212 | var new_s2_gh = new_s2.split("_")[2]; | 221 | var new_s2_gh = new_s2.split("_")[2]; |
| 222 | + if (new_s2_gh && new_s2_gh.indexOf("-") > 0) { // 修正工号,吧 55- 这种前缀去掉 | ||
| 223 | + new_s2_gh = new_s2_gh.substr(3); | ||
| 224 | + } | ||
| 213 | 225 | ||
| 214 | if (old_isfb) { // 使用分班判定 | 226 | if (old_isfb) { // 使用分班判定 |
| 215 | angular.forEach(scope[ctrlAs].ds, function(obj, index) { | 227 | angular.forEach(scope[ctrlAs].ds, function(obj, index) { |
| 216 | if (index < old_isfb_index) { | 228 | if (index < old_isfb_index) { |
| 217 | obj.s = new_s1_id; | 229 | obj.s = new_s1_id; |
| 230 | + | ||
| 218 | obj.sGh = new_s1_gh; | 231 | obj.sGh = new_s1_gh; |
| 219 | obj.sName = new_s1_name; | 232 | obj.sName = new_s1_name; |
| 220 | } else { | 233 | } else { |
src/main/resources/static/pages/scheduleApp/module/common/dts2/scheduleplan/saPlaninfoeditTemplate.html
| @@ -7,10 +7,10 @@ | @@ -7,10 +7,10 @@ | ||
| 7 | <thead> | 7 | <thead> |
| 8 | <tr role="row" class="heading"> | 8 | <tr role="row" class="heading"> |
| 9 | <th style="width: 50px;">序号</th> | 9 | <th style="width: 50px;">序号</th> |
| 10 | - <th style="width: 80px;">发车时间</th> | 10 | + <th style="width: 60px;">发车时间</th> |
| 11 | <th style="width: 70px;">车辆</th> | 11 | <th style="width: 70px;">车辆</th> |
| 12 | - <th style="width: 60px;">驾驶员</th> | ||
| 13 | - <th style="width: 60px;">售票员</th> | 12 | + <th style="width: 70px;">驾驶员</th> |
| 13 | + <th style="width: 70px;">售票员</th> | ||
| 14 | <th style="width: 100px;">停车场</th> | 14 | <th style="width: 100px;">停车场</th> |
| 15 | </tr> | 15 | </tr> |
| 16 | </thead> | 16 | </thead> |
| @@ -30,14 +30,26 @@ | @@ -30,14 +30,26 @@ | ||
| 30 | </a> | 30 | </a> |
| 31 | </td> | 31 | </td> |
| 32 | <td> | 32 | <td> |
| 33 | - <a href="#"> | ||
| 34 | - <span ng-bind="info.jName"></span> | ||
| 35 | - </a> | 33 | + <div ng-if="info.jName"> |
| 34 | + <a href="#"> | ||
| 35 | + <i class="fa fa-bus" aria-hidden="true"></i> | ||
| 36 | + <span ng-bind="info.jName"></span> | ||
| 37 | + </a> | ||
| 38 | + </div> | ||
| 39 | + <div ng-if="info.jGh"> | ||
| 40 | + ({{info.jGh}}) | ||
| 41 | + </div> | ||
| 36 | </td> | 42 | </td> |
| 37 | <td> | 43 | <td> |
| 38 | - <a href="#"> | ||
| 39 | - <span ng-bind="info.sName"></span> | ||
| 40 | - </a> | 44 | + <div ng-if="info.sName"> |
| 45 | + <a href="#"> | ||
| 46 | + <i class="fa fa-ticket" aria-hidden="true"></i> | ||
| 47 | + <span ng-bind="info.sName"></span> | ||
| 48 | + </a> | ||
| 49 | + </div> | ||
| 50 | + <div ng-if="info.sGh"> | ||
| 51 | + ({{info.sGh}}) | ||
| 52 | + </div> | ||
| 41 | </td> | 53 | </td> |
| 42 | <td> | 54 | <td> |
| 43 | <a href="#" ng-if="info.bcType == 'in'"> | 55 | <a href="#" ng-if="info.bcType == 'in'"> |
src/main/resources/static/pages/scheduleApp/module/common/prj-common-directive.js
| @@ -4457,11 +4457,17 @@ angular.module('ScheduleApp').directive( | @@ -4457,11 +4457,17 @@ angular.module('ScheduleApp').directive( | ||
| 4457 | var new_j1_id = new_j1.split("_")[0]; | 4457 | var new_j1_id = new_j1.split("_")[0]; |
| 4458 | var new_j1_name = new_j1.split("_")[1]; | 4458 | var new_j1_name = new_j1.split("_")[1]; |
| 4459 | var new_j1_gh = new_j1.split("_")[2]; | 4459 | var new_j1_gh = new_j1.split("_")[2]; |
| 4460 | + if (new_j1_gh && new_j1_gh.indexOf("-") > 0) { | ||
| 4461 | + new_j1_gh = new_j1_gh.substr(3); // 修正工号,把 55- 这种前缀去掉 | ||
| 4462 | + } | ||
| 4460 | 4463 | ||
| 4461 | if (new_j2) { | 4464 | if (new_j2) { |
| 4462 | var new_j2_id = new_j2.split("_")[0]; | 4465 | var new_j2_id = new_j2.split("_")[0]; |
| 4463 | var new_j2_name = new_j2.split("_")[1]; | 4466 | var new_j2_name = new_j2.split("_")[1]; |
| 4464 | var new_j2_gh = new_j2.split("_")[2]; | 4467 | var new_j2_gh = new_j2.split("_")[2]; |
| 4468 | + if (new_j2_gh && new_j2_gh.indexOf("-") > 0) { | ||
| 4469 | + new_j2_gh = new_j2_gh.substr(3); // 修正工号,把 55- 这种前缀去掉 | ||
| 4470 | + } | ||
| 4465 | 4471 | ||
| 4466 | if (old_isfb) { // 使用分班判定 | 4472 | if (old_isfb) { // 使用分班判定 |
| 4467 | angular.forEach(scope[ctrlAs].ds, function(obj, index) { | 4473 | angular.forEach(scope[ctrlAs].ds, function(obj, index) { |
| @@ -4529,16 +4535,23 @@ angular.module('ScheduleApp').directive( | @@ -4529,16 +4535,23 @@ angular.module('ScheduleApp').directive( | ||
| 4529 | var new_s1_id = new_s1.split("_")[0]; | 4535 | var new_s1_id = new_s1.split("_")[0]; |
| 4530 | var new_s1_name = new_s1.split("_")[1]; | 4536 | var new_s1_name = new_s1.split("_")[1]; |
| 4531 | var new_s1_gh = new_s1.split("_")[2]; | 4537 | var new_s1_gh = new_s1.split("_")[2]; |
| 4538 | + if (new_s1_gh && new_s1_gh.indexOf("-") > 0) { // 修正工号,吧 55- 这种前缀去掉 | ||
| 4539 | + new_s1_gh = new_s1_gh.substr(3); | ||
| 4540 | + } | ||
| 4532 | 4541 | ||
| 4533 | if (new_s2) { | 4542 | if (new_s2) { |
| 4534 | var new_s2_id = new_s2.split("_")[0]; | 4543 | var new_s2_id = new_s2.split("_")[0]; |
| 4535 | var new_s2_name = new_s2.split("_")[1]; | 4544 | var new_s2_name = new_s2.split("_")[1]; |
| 4536 | var new_s2_gh = new_s2.split("_")[2]; | 4545 | var new_s2_gh = new_s2.split("_")[2]; |
| 4546 | + if (new_s2_gh && new_s2_gh.indexOf("-") > 0) { // 修正工号,吧 55- 这种前缀去掉 | ||
| 4547 | + new_s2_gh = new_s2_gh.substr(3); | ||
| 4548 | + } | ||
| 4537 | 4549 | ||
| 4538 | if (old_isfb) { // 使用分班判定 | 4550 | if (old_isfb) { // 使用分班判定 |
| 4539 | angular.forEach(scope[ctrlAs].ds, function(obj, index) { | 4551 | angular.forEach(scope[ctrlAs].ds, function(obj, index) { |
| 4540 | if (index < old_isfb_index) { | 4552 | if (index < old_isfb_index) { |
| 4541 | obj.s = new_s1_id; | 4553 | obj.s = new_s1_id; |
| 4554 | + | ||
| 4542 | obj.sGh = new_s1_gh; | 4555 | obj.sGh = new_s1_gh; |
| 4543 | obj.sName = new_s1_name; | 4556 | obj.sName = new_s1_name; |
| 4544 | } else { | 4557 | } else { |
src/main/resources/static/pages/scheduleApp/module/core/schedulePlanManage/report/ext/list.html
| @@ -24,8 +24,8 @@ | @@ -24,8 +24,8 @@ | ||
| 24 | <th style="width: 100px;">车辆</th> | 24 | <th style="width: 100px;">车辆</th> |
| 25 | <th style="width: 80px;">出场时间</th> | 25 | <th style="width: 80px;">出场时间</th> |
| 26 | <th style="width: 80px;">进场时间</th> | 26 | <th style="width: 80px;">进场时间</th> |
| 27 | - <th style="width: 130px;">驾驶员</th> | ||
| 28 | - <th style="width: 130px;">售票员</th> | 27 | + <th style="width: 150px;">驾驶员</th> |
| 28 | + <th style="width: 150px;">售票员</th> | ||
| 29 | <th>时刻表</th> | 29 | <th>时刻表</th> |
| 30 | <th style="width: 150px;">修改时间</th> | 30 | <th style="width: 150px;">修改时间</th> |
| 31 | <th style="width: 100px;">修改人</th> | 31 | <th style="width: 100px;">修改人</th> |
| @@ -115,6 +115,7 @@ | @@ -115,6 +115,7 @@ | ||
| 115 | <div style="padding-right: 0px;" class="col-md-6"> | 115 | <div style="padding-right: 0px;" class="col-md-6"> |
| 116 | <div ng-repeat="jsyname in info.jsyNames"> | 116 | <div ng-repeat="jsyname in info.jsyNames"> |
| 117 | <a href="#"> | 117 | <a href="#"> |
| 118 | + <i class="fa fa-bus" aria-hidden="true"></i> | ||
| 118 | {{jsyname}} | 119 | {{jsyname}} |
| 119 | </a> | 120 | </a> |
| 120 | </div> | 121 | </div> |
| @@ -133,6 +134,7 @@ | @@ -133,6 +134,7 @@ | ||
| 133 | <div style="padding-right: 0px;" class="col-md-6"> | 134 | <div style="padding-right: 0px;" class="col-md-6"> |
| 134 | <div ng-repeat="spyname in info.spyNames"> | 135 | <div ng-repeat="spyname in info.spyNames"> |
| 135 | <a href="#"> | 136 | <a href="#"> |
| 137 | + <i class="fa fa-ticket" aria-hidden="true"></i> | ||
| 136 | {{spyname}} | 138 | {{spyname}} |
| 137 | </a> | 139 | </a> |
| 138 | </div> | 140 | </div> |
src/test/resources/testdata/test6.txt
| @@ -24,4 +24,8 @@ where a.origingidindex is null; | @@ -24,4 +24,8 @@ where a.origingidindex is null; | ||
| 24 | 上南二分通勤 | 24 | 上南二分通勤 |
| 25 | 25 | ||
| 26 | 26 | ||
| 27 | --Xms128M -Xmx1024M -XX:PermSize=64M -XX:MaxPermSize=128M | ||
| 28 | \ No newline at end of file | 27 | \ No newline at end of file |
| 28 | +-Xms128M -Xmx1024M -XX:PermSize=64M -XX:MaxPermSize=128M | ||
| 29 | + | ||
| 30 | +1118 | ||
| 31 | +572康桥 | ||
| 32 | +83 |