Commit 7d71c02832b7f0efba2048fddefabe48b3d93816
1 parent
918012d2
bf
Showing
19 changed files
with
1589 additions
and
1977 deletions
Too many changes to show.
To preserve performance only 19 of 22 files are displayed.
bsthLineProfiles/pom.xml
| ... | ... | @@ -300,7 +300,11 @@ |
| 300 | 300 | <artifactId>httpclient</artifactId> |
| 301 | 301 | <version>4.5.6</version> |
| 302 | 302 | </dependency> |
| 303 | - | |
| 303 | + <dependency> | |
| 304 | + <groupId>junit</groupId> | |
| 305 | + <artifactId>junit</artifactId> | |
| 306 | + <version>4.12</version> | |
| 307 | + </dependency> | |
| 304 | 308 | </dependencies> |
| 305 | 309 | |
| 306 | 310 | <build> | ... | ... |
bsthLineProfiles/src/main/java/com/ruoyi/framework/web/service/CacheService.java
bsthLineProfiles/src/main/java/com/ruoyi/project/system/line/controller/BsthTLineController.java
| ... | ... | @@ -39,6 +39,7 @@ public class BsthTLineController extends BaseController |
| 39 | 39 | { |
| 40 | 40 | private String prefix = "system/line"; |
| 41 | 41 | |
| 42 | + | |
| 42 | 43 | @Autowired |
| 43 | 44 | private IBsthTLineService bsthTLineService; |
| 44 | 45 | |
| ... | ... | @@ -48,22 +49,19 @@ public class BsthTLineController extends BaseController |
| 48 | 49 | |
| 49 | 50 | @Autowired |
| 50 | 51 | private IUserService userService; |
| 51 | - | |
| 52 | + | |
| 53 | + /** | |
| 54 | + * 线路查询 | |
| 55 | + */ | |
| 52 | 56 | @RequiresPermissions("system:line:view") |
| 53 | 57 | @GetMapping() |
| 54 | 58 | public String line() |
| 55 | 59 | { |
| 56 | 60 | return prefix + "/line"; |
| 57 | 61 | } |
| 58 | - | |
| 59 | - @GetMapping("/map") | |
| 60 | - public String map() | |
| 61 | - { | |
| 62 | - return prefix + "/map"; | |
| 63 | - } | |
| 64 | - | |
| 62 | + | |
| 65 | 63 | /** |
| 66 | - * 查询【请填写功能名称】列表 | |
| 64 | + * 线路分页 | |
| 67 | 65 | */ |
| 68 | 66 | @RequiresPermissions("system:line:list") |
| 69 | 67 | @PostMapping("/list") |
| ... | ... | @@ -74,43 +72,44 @@ public class BsthTLineController extends BaseController |
| 74 | 72 | List<BsthTLine> list = bsthTLineService.selectBsthTLineList(bsthTLine); |
| 75 | 73 | return getDataTable(list); |
| 76 | 74 | } |
| 77 | - | |
| 78 | - | |
| 79 | - @GetMapping("/getListForMap") | |
| 80 | - @ResponseBody | |
| 81 | - public List<BsthTLine> getListForMap() { | |
| 82 | - return bsthTLineService.selectBsthTLineList(null); | |
| 83 | - } | |
| 84 | 75 | |
| 85 | 76 | /** |
| 86 | - * 导出【请填写功能名称】列表 | |
| 77 | + * 线路详情 | |
| 87 | 78 | */ |
| 79 | + @GetMapping("/detail/{id}") | |
| 80 | + public String detail(@PathVariable("id") Long id, ModelMap mmap) | |
| 81 | + { | |
| 82 | + BsthTLine bsthTLine = bsthTLineService.selectBsthTLineById(id); | |
| 83 | + mmap.put("bsthTLine", bsthTLine); | |
| 84 | + return prefix + "/detail"; | |
| 85 | + } | |
| 86 | + | |
| 88 | 87 | @RequiresPermissions("system:line:export") |
| 89 | - @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT) | |
| 88 | + @Log(title = "线路导出", businessType = BusinessType.EXPORT) | |
| 90 | 89 | @PostMapping("/export") |
| 91 | 90 | @ResponseBody |
| 92 | 91 | public AjaxResult export(BsthTLine bsthTLine) throws NoSuchFieldException { |
| 93 | 92 | |
| 94 | 93 | List<BsthTLine> list = bsthTLineService.selectBsthTLineList(bsthTLine); |
| 95 | - | |
| 94 | + | |
| 96 | 95 | List<DictData> dicts = dictDataService.selectDictDataList(null); |
| 97 | - | |
| 96 | + | |
| 98 | 97 | Map<String,List<DictData>> dictMap = new HashMap(); |
| 99 | 98 | |
| 100 | 99 | List<String> titles=new ArrayList<>(); |
| 101 | - | |
| 100 | + | |
| 102 | 101 | for(DictData d : dicts) { |
| 103 | - | |
| 104 | - if(dictMap.get(d.getDictType()) == null) { | |
| 105 | - dictMap.put(d.getDictType(), new ArrayList<DictData>()); | |
| 106 | - } | |
| 107 | - | |
| 108 | - dictMap.get(d.getDictType()).add(d); | |
| 102 | + | |
| 103 | + if(dictMap.get(d.getDictType()) == null) { | |
| 104 | + dictMap.put(d.getDictType(), new ArrayList<DictData>()); | |
| 105 | + } | |
| 106 | + | |
| 107 | + dictMap.get(d.getDictType()).add(d); | |
| 109 | 108 | } |
| 110 | - | |
| 109 | + | |
| 111 | 110 | for(BsthTLine line:list) { |
| 112 | - | |
| 113 | - Field[] field = line.getClass().getDeclaredFields(); | |
| 111 | + | |
| 112 | + Field[] field = line.getClass().getDeclaredFields(); | |
| 114 | 113 | |
| 115 | 114 | String isWarrant=bsthTLine.getIsWarrant(); |
| 116 | 115 | if("0".equals(isWarrant)){//现实 |
| ... | ... | @@ -129,60 +128,60 @@ public class BsthTLineController extends BaseController |
| 129 | 128 | } |
| 130 | 129 | } |
| 131 | 130 | |
| 132 | - | |
| 133 | - for(int j=0 ; j<field.length ; j++){ //遍历所有属性 | |
| 131 | + | |
| 132 | + for(int j=0 ; j<field.length ; j++){ //遍历所有属性 | |
| 134 | 133 | String name = field[j].getName(); //获取属性的名字 |
| 135 | - | |
| 134 | + | |
| 136 | 135 | String type = name; |
| 137 | - | |
| 136 | + | |
| 138 | 137 | if(name.equals( "isLogicDelete") || name.equals( "inoutDistrict")|| name.equals( "isMetro") || name.equals( "hasTimelists")|| name.equals( "isWarrant")) { |
| 139 | - type = "trueFalse"; | |
| 138 | + type = "trueFalse"; | |
| 140 | 139 | } |
| 141 | - | |
| 142 | 140 | |
| 143 | - | |
| 144 | - | |
| 145 | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 146 | 145 | if(dictMap.get(type) != null) { |
| 147 | - name = name.substring(0,1).toUpperCase() + name.substring(1); | |
| 148 | - | |
| 149 | - | |
| 150 | - try { | |
| 151 | - Method param = line.getClass().getMethod("get"+name); | |
| 152 | - | |
| 153 | - String value = (String) param.invoke(line); | |
| 154 | - | |
| 155 | - if(value != null && value.split(",").length > 0) { | |
| 156 | - String result = ""; | |
| 157 | - for(String str:value.split(",")) { | |
| 158 | - for(DictData d:dictMap.get(type)) { | |
| 159 | - if(d.getDictValue().equals(str)) { | |
| 160 | - result += d.getDictLabel() + ","; | |
| 161 | - } | |
| 162 | - } | |
| 163 | - } | |
| 164 | - | |
| 165 | - Method m = line.getClass().getMethod("set"+name, new Class[] {String.class}); | |
| 166 | - | |
| 167 | - if(!result.isEmpty()) { | |
| 168 | - m.invoke(line,new Object[] {new String(result.substring(0,result.length()-1))}); | |
| 169 | - }else { | |
| 170 | - m.invoke(line,new Object[] {new String(value)}); | |
| 171 | - } | |
| 172 | - } | |
| 173 | - | |
| 174 | - } catch (Exception e) { | |
| 175 | - // TODO Auto-generated catch block | |
| 176 | - e.printStackTrace(); | |
| 177 | - } | |
| 178 | - | |
| 146 | + name = name.substring(0,1).toUpperCase() + name.substring(1); | |
| 147 | + | |
| 148 | + | |
| 149 | + try { | |
| 150 | + Method param = line.getClass().getMethod("get"+name); | |
| 151 | + | |
| 152 | + String value = (String) param.invoke(line); | |
| 153 | + | |
| 154 | + if(value != null && value.split(",").length > 0) { | |
| 155 | + String result = ""; | |
| 156 | + for(String str:value.split(",")) { | |
| 157 | + for(DictData d:dictMap.get(type)) { | |
| 158 | + if(d.getDictValue().equals(str)) { | |
| 159 | + result += d.getDictLabel() + ","; | |
| 160 | + } | |
| 161 | + } | |
| 162 | + } | |
| 163 | + | |
| 164 | + Method m = line.getClass().getMethod("set"+name, new Class[] {String.class}); | |
| 165 | + | |
| 166 | + if(!result.isEmpty()) { | |
| 167 | + m.invoke(line,new Object[] {new String(result.substring(0,result.length()-1))}); | |
| 168 | + }else { | |
| 169 | + m.invoke(line,new Object[] {new String(value)}); | |
| 170 | + } | |
| 171 | + } | |
| 172 | + | |
| 173 | + } catch (Exception e) { | |
| 174 | + // TODO Auto-generated catch block | |
| 175 | + e.printStackTrace(); | |
| 176 | + } | |
| 177 | + | |
| 179 | 178 | } |
| 180 | 179 | |
| 181 | - | |
| 182 | - | |
| 183 | - } | |
| 184 | - | |
| 185 | - | |
| 180 | + | |
| 181 | + | |
| 182 | + } | |
| 183 | + | |
| 184 | + | |
| 186 | 185 | } |
| 187 | 186 | |
| 188 | 187 | |
| ... | ... | @@ -191,108 +190,161 @@ public class BsthTLineController extends BaseController |
| 191 | 190 | return util.exportExcel(list, "line"); |
| 192 | 191 | } |
| 193 | 192 | |
| 193 | + | |
| 194 | 194 | /** |
| 195 | - * 新增【请填写功能名称】 | |
| 195 | + * 动态列 | |
| 196 | 196 | */ |
| 197 | - @GetMapping("/add") | |
| 198 | - public String add() | |
| 197 | + @GetMapping("/getUserLineInfo") | |
| 198 | + @ResponseBody | |
| 199 | + public AjaxResult getUserLineInfo() | |
| 199 | 200 | { |
| 200 | - return prefix + "/add"; | |
| 201 | + User loginUser = ShiroUtils.getSysUser(); | |
| 202 | + | |
| 203 | + loginUser = userService.selectUserById(loginUser.getUserId()); | |
| 204 | + | |
| 205 | + return success(loginUser.getLineinfoData()); | |
| 201 | 206 | } |
| 202 | 207 | |
| 203 | 208 | /** |
| 204 | - * 新增保存【请填写功能名称】 | |
| 209 | + * 修改动态列 | |
| 205 | 210 | */ |
| 206 | - @RequiresPermissions("system:line:add") | |
| 207 | - @Log(title = "新增线路基本信息", businessType = BusinessType.INSERT) | |
| 208 | - @PostMapping("/add") | |
| 211 | + @PostMapping("/updateUserLineInfo") | |
| 209 | 212 | @ResponseBody |
| 210 | - public AjaxResult addSave(BsthTLine bsthTLine) | |
| 213 | + public AjaxResult updateUserLineInfo(String lineInfo) | |
| 211 | 214 | { |
| 212 | - User loginUser = ShiroUtils.getSysUser(); | |
| 213 | - bsthTLine.setCreateBy(loginUser.getUserName()); | |
| 214 | - return toAjax(bsthTLineService.insertBsthTLine(bsthTLine)); | |
| 215 | + User loginUser = ShiroUtils.getSysUser(); | |
| 216 | + | |
| 217 | + loginUser.setLineinfoData(lineInfo); | |
| 218 | + | |
| 219 | + return toAjax(userService.updateUser(loginUser)); | |
| 215 | 220 | } |
| 216 | 221 | |
| 217 | - @GetMapping("/edit/{id}") | |
| 218 | - public String edit(@PathVariable("id") Long id, ModelMap mmap) | |
| 222 | + /** | |
| 223 | + * 文件上传 | |
| 224 | + */ | |
| 225 | + @PostMapping("/fileUpload") | |
| 226 | + @ResponseBody | |
| 227 | + public AjaxResult fileUpload(@RequestParam(value="file_data")File file ,String fileId) | |
| 219 | 228 | { |
| 220 | - BsthTLine bsthTLine = bsthTLineService.selectBsthTLineById(id); | |
| 221 | - mmap.put("bsthTLine", bsthTLine); | |
| 222 | - return prefix + "/edit"; | |
| 229 | + System.out.println(fileId); | |
| 230 | + | |
| 231 | + return null; | |
| 223 | 232 | } |
| 224 | - | |
| 225 | - @GetMapping("/getUserLineInfo") | |
| 233 | + | |
| 234 | + @PostMapping("/findByName") | |
| 226 | 235 | @ResponseBody |
| 227 | - public AjaxResult getUserLineInfo() | |
| 236 | + public List<BsthTLine> findByName(String name) | |
| 228 | 237 | { |
| 229 | - User loginUser = ShiroUtils.getSysUser(); | |
| 230 | - | |
| 231 | - loginUser = userService.selectUserById(loginUser.getUserId()); | |
| 232 | - | |
| 233 | - return success(loginUser.getLineinfoData()); | |
| 238 | + BsthTLine bsthTLine = new BsthTLine(); | |
| 239 | + | |
| 240 | + bsthTLine.setLineName(name); | |
| 241 | + BsthTLine bsthTLineOld=bsthTLineService.selectBsthTLineList(bsthTLine).get(0); | |
| 242 | + BsthTLine bsthTLineNew=bsthTLineService.selectBsthTLineExamineByLineName(name); | |
| 243 | + List<BsthTLine> bsthTLines=new ArrayList<>(); | |
| 244 | + bsthTLines.add(bsthTLineOld); | |
| 245 | + bsthTLines.add(bsthTLineNew); | |
| 246 | + return bsthTLines; | |
| 234 | 247 | } |
| 235 | - | |
| 236 | - | |
| 237 | - @PostMapping("/fileUpload") | |
| 238 | - @ResponseBody | |
| 239 | - public AjaxResult fileUpload(@RequestParam(value="file_data")File file ,String fileId) | |
| 248 | + | |
| 249 | + /** | |
| 250 | + * 地图 | |
| 251 | + */ | |
| 252 | + @GetMapping("/map") | |
| 253 | + public String map() | |
| 240 | 254 | { |
| 241 | - System.out.println(fileId); | |
| 242 | - | |
| 243 | - | |
| 244 | - return null; | |
| 255 | + return prefix + "/map"; | |
| 245 | 256 | } |
| 246 | - | |
| 247 | - | |
| 248 | - @PostMapping("/findByName") | |
| 257 | + | |
| 258 | + @GetMapping("/getListForMap") | |
| 249 | 259 | @ResponseBody |
| 250 | - public BsthTLine findByName(String name) | |
| 251 | - { | |
| 252 | - BsthTLine bsthTLine = new BsthTLine(); | |
| 253 | - | |
| 254 | - bsthTLine.setLineName(name); | |
| 255 | - | |
| 256 | - return bsthTLineService.selectBsthTLineList(bsthTLine).get(0); | |
| 260 | + public List<BsthTLine> getListForMap() { | |
| 261 | + return bsthTLineService.selectBsthTLineList(null); | |
| 257 | 262 | } |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + /* | |
| 258 | 267 | |
| 259 | - @PostMapping("/updateUserLineInfo") | |
| 268 | + | |
| 269 | + | |
| 270 | + *//** | |
| 271 | + * 新增弹窗 | |
| 272 | + *//* | |
| 273 | + @GetMapping("/add") | |
| 274 | + public String add() | |
| 275 | + { | |
| 276 | + return prefix + "/add"; | |
| 277 | + } | |
| 278 | + | |
| 279 | + | |
| 280 | + *//** | |
| 281 | + * 线路新增 | |
| 282 | + *//* | |
| 283 | + @RequiresPermissions("system:line:add") | |
| 284 | + @Log(title = "新增线路基本信息", businessType = BusinessType.INSERT) | |
| 285 | + @PostMapping("/add") | |
| 260 | 286 | @ResponseBody |
| 261 | - public AjaxResult updateUserLineInfo(String lineInfo) | |
| 287 | + public AjaxResult addSave(BsthTLine bsthTLine) | |
| 262 | 288 | { |
| 263 | - User loginUser = ShiroUtils.getSysUser(); | |
| 264 | - | |
| 265 | - loginUser.setLineinfoData(lineInfo); | |
| 266 | - | |
| 267 | - return toAjax(userService.updateUser(loginUser)); | |
| 289 | + User loginUser = ShiroUtils.getSysUser(); | |
| 290 | + bsthTLine.setCreateBy(loginUser.getUserName()); | |
| 291 | + return toAjax(bsthTLineService.insertBsthTLineExamine(bsthTLine)); | |
| 268 | 292 | } |
| 269 | 293 | |
| 270 | - /** | |
| 294 | + *//** | |
| 295 | + * 线路修改预加载 | |
| 296 | + *//* | |
| 297 | + @GetMapping("/edit/{id}") | |
| 298 | + public String edit(@PathVariable("id") Long id, ModelMap mmap) | |
| 299 | + { | |
| 300 | + BsthTLine bsthTLine = bsthTLineService.selectBsthTLineExamineById(id); | |
| 301 | + mmap.put("bsthTLine", bsthTLine); | |
| 302 | + return prefix + "/edit"; | |
| 303 | + } | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + *//** | |
| 271 | 308 | * 修改保存【请填写功能名称】 |
| 272 | - */ | |
| 309 | + *//* | |
| 273 | 310 | @RequiresPermissions("system:line:edit") |
| 274 | 311 | @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) |
| 275 | 312 | @PostMapping("/edit") |
| 276 | 313 | @ResponseBody |
| 277 | 314 | public AjaxResult editSave(BsthTLine bsthTLine) |
| 278 | 315 | { |
| 279 | - | |
| 280 | - User loginUser = ShiroUtils.getSysUser(); | |
| 281 | - | |
| 282 | - bsthTLine.setUpdateBy(loginUser.getUserName()); | |
| 283 | - | |
| 284 | - return toAjax(bsthTLineService.updateBsthTLine(bsthTLine)); | |
| 316 | + | |
| 317 | + User loginUser = ShiroUtils.getSysUser(); | |
| 318 | + | |
| 319 | + bsthTLine.setUpdateBy(loginUser.getUserName()); | |
| 320 | + | |
| 321 | + return toAjax(bsthTLineService.updateBsthTLineExamine(bsthTLine)); | |
| 285 | 322 | } |
| 286 | 323 | |
| 287 | - /** | |
| 324 | + *//** | |
| 288 | 325 | * 删除【请填写功能名称】 |
| 289 | - */ | |
| 326 | + *//* | |
| 290 | 327 | @RequiresPermissions("system:line:remove") |
| 291 | 328 | @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE) |
| 292 | 329 | @PostMapping( "/remove") |
| 293 | 330 | @ResponseBody |
| 294 | 331 | public AjaxResult remove(String ids) |
| 295 | 332 | { |
| 296 | - return toAjax(bsthTLineService.deleteBsthTLineByIds(ids)); | |
| 333 | + return toAjax(bsthTLineService.deleteBsthTLineExamineById(ids)); | |
| 297 | 334 | } |
| 335 | + | |
| 336 | + | |
| 337 | + *//** | |
| 338 | + * 导出【请填写功能名称】列表 | |
| 339 | + *//* | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + */ | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 298 | 350 | } | ... | ... |
bsthLineProfiles/src/main/java/com/ruoyi/project/system/line/controller/BsthTLineHistoryController.java
| ... | ... | @@ -59,7 +59,60 @@ public class BsthTLineHistoryController extends BaseController |
| 59 | 59 | { |
| 60 | 60 | return prefix + "/line"; |
| 61 | 61 | } |
| 62 | - | |
| 62 | + | |
| 63 | + | |
| 64 | + /** | |
| 65 | + * 变更分页 | |
| 66 | + */ | |
| 67 | + @RequiresPermissions("system:lineHistory:list") | |
| 68 | + @PostMapping("/list") | |
| 69 | + @ResponseBody | |
| 70 | + public TableDataInfo list(BsthTLine bsthTLine) | |
| 71 | + { | |
| 72 | + startPage(); | |
| 73 | + List<BsthTLine> list = bsthTLineService.selectBsthTLineList(bsthTLine); | |
| 74 | + return getDataTable(list); | |
| 75 | + } | |
| 76 | + | |
| 77 | + /** | |
| 78 | + * 变更预加载 | |
| 79 | + */ | |
| 80 | + @GetMapping("/edit/{id}") | |
| 81 | + public String edit(@PathVariable("id") Long id, ModelMap mmap) | |
| 82 | + { | |
| 83 | + BsthTLine bsthTLine = bsthTLineService.selectBsthTLineById(id); | |
| 84 | + String lineName=bsthTLine.getLineName(); | |
| 85 | + BsthTLine bsthTLineExamine=bsthTLineService.selectBsthTLineExamineByLineName(lineName); | |
| 86 | + if(bsthTLineExamine!=null){ | |
| 87 | + bsthTLine=bsthTLineExamine; | |
| 88 | + } | |
| 89 | + mmap.put("bsthTLine", bsthTLine); | |
| 90 | + return prefix + "/edit"; | |
| 91 | + } | |
| 92 | + | |
| 93 | + /** | |
| 94 | + * 线路变更 | |
| 95 | + */ | |
| 96 | + @RequiresPermissions("system:lineHistory:edit") | |
| 97 | + @Log(title = "线路变更", businessType = BusinessType.UPDATE) | |
| 98 | + @PostMapping("/edit") | |
| 99 | + @ResponseBody | |
| 100 | + public AjaxResult editSave(BsthTLine bsthTLine) | |
| 101 | + { | |
| 102 | + User loginUser = ShiroUtils.getSysUser(); | |
| 103 | + bsthTLine.setUpdateBy(loginUser.getUserName()); | |
| 104 | + String lineName=bsthTLine.getLineName(); | |
| 105 | + BsthTLine bsthTLineExamine=bsthTLineService.selectBsthTLineExamineByLineName(lineName); | |
| 106 | + if(bsthTLineExamine!=null){//有没审核的直接覆盖 | |
| 107 | + bsthTLine.setId(bsthTLineExamine.getId()); | |
| 108 | + return toAjax(bsthTLineService.updateBsthTLineExamine(bsthTLine)); | |
| 109 | + }else {//没有新增 | |
| 110 | + bsthTLine.setExamineType("1"); | |
| 111 | + return toAjax(bsthTLineService.insertBsthTLineExamine(bsthTLine)); | |
| 112 | + } | |
| 113 | + } | |
| 114 | + | |
| 115 | + | |
| 63 | 116 | @RequiresPermissions("system:lineHistory:view") |
| 64 | 117 | @GetMapping("/historyCompare") |
| 65 | 118 | public String historyCompare() |
| ... | ... | @@ -81,19 +134,8 @@ public class BsthTLineHistoryController extends BaseController |
| 81 | 134 | return bsthTLineService.getListByName(name); |
| 82 | 135 | } |
| 83 | 136 | |
| 84 | - /** | |
| 85 | - * 查询【请填写功能名称】列表 | |
| 86 | - */ | |
| 87 | - @RequiresPermissions("system:lineHistory:list") | |
| 88 | - @PostMapping("/list") | |
| 89 | - @ResponseBody | |
| 90 | - public TableDataInfo list(BsthTLine bsthTLine) | |
| 91 | - { | |
| 92 | - startPage(); | |
| 93 | - List<BsthTLine> list = bsthTLineService.selectBsthTLineHistoryList(bsthTLine); | |
| 94 | - return getDataTable(list); | |
| 95 | - } | |
| 96 | - | |
| 137 | + | |
| 138 | + | |
| 97 | 139 | |
| 98 | 140 | |
| 99 | 141 | |
| ... | ... | @@ -204,13 +246,7 @@ public class BsthTLineHistoryController extends BaseController |
| 204 | 246 | return toAjax(bsthTLineService.insertBsthTLineHistory(bsthTLine)); |
| 205 | 247 | } |
| 206 | 248 | |
| 207 | - @GetMapping("/edit/{id}") | |
| 208 | - public String edit(@PathVariable("id") Long id, ModelMap mmap) | |
| 209 | - { | |
| 210 | - BsthTLine bsthTLine = bsthTLineService.selectBsthTLineHistoryById(id); | |
| 211 | - mmap.put("bsthTLine", bsthTLine); | |
| 212 | - return prefix + "/edit"; | |
| 213 | - } | |
| 249 | + | |
| 214 | 250 | |
| 215 | 251 | @GetMapping("/detail/{id}") |
| 216 | 252 | public String detail(@PathVariable("id") Long id, ModelMap mmap) |
| ... | ... | @@ -227,23 +263,7 @@ public class BsthTLineHistoryController extends BaseController |
| 227 | 263 | return toAjax(bsthTLineService.updateToLineInfo(rows)); |
| 228 | 264 | } |
| 229 | 265 | |
| 230 | - /** | |
| 231 | - * 修改保存【请填写功能名称】 | |
| 232 | - */ | |
| 233 | - @RequiresPermissions("system:lineHistory:edit") | |
| 234 | - @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) | |
| 235 | - @PostMapping("/edit") | |
| 236 | - @ResponseBody | |
| 237 | - public AjaxResult editSave(BsthTLine bsthTLine) | |
| 238 | - { | |
| 239 | - | |
| 240 | 266 | |
| 241 | - User loginUser = ShiroUtils.getSysUser(); | |
| 242 | - | |
| 243 | - bsthTLine.setUpdateBy(loginUser.getUserName()); | |
| 244 | - | |
| 245 | - return toAjax(bsthTLineService.updateBsthTLineHistory(bsthTLine)); | |
| 246 | - } | |
| 247 | 267 | |
| 248 | 268 | /** |
| 249 | 269 | * 删除【请填写功能名称】 | ... | ... |
bsthLineProfiles/src/main/java/com/ruoyi/project/system/line/controller/BsthTLineReportController.java
| ... | ... | @@ -75,7 +75,7 @@ public class BsthTLineReportController extends BaseController |
| 75 | 75 | public TableDataInfo list(BsthTLine bsthTLine) |
| 76 | 76 | { |
| 77 | 77 | startPage(); |
| 78 | - List<BsthTLine> list = bsthTLineService.selectBsthTlineReportList(bsthTLine); | |
| 78 | + List<BsthTLine> list = bsthTLineService.selectBsthTLineList(bsthTLine); | |
| 79 | 79 | return getDataTable(list); |
| 80 | 80 | } |
| 81 | 81 | |
| ... | ... | @@ -181,7 +181,7 @@ public class BsthTLineReportController extends BaseController |
| 181 | 181 | @GetMapping("/edit/{id}") |
| 182 | 182 | public String edit(@PathVariable("id") Long id, ModelMap mmap) |
| 183 | 183 | { |
| 184 | - BsthTLine bsthTLine = bsthTLineService.selectBsthTlineReportById(id); | |
| 184 | + BsthTLine bsthTLine = bsthTLineService.selectBsthTLineById(id); | |
| 185 | 185 | mmap.put("bsthTLine", bsthTLine); |
| 186 | 186 | return prefix + "/edit"; |
| 187 | 187 | } | ... | ... |
bsthLineProfiles/src/main/java/com/ruoyi/project/system/line/domain/BsthTLine.java
| ... | ... | @@ -344,6 +344,16 @@ public class BsthTLine extends BaseEntity |
| 344 | 344 | |
| 345 | 345 | private String files; |
| 346 | 346 | |
| 347 | + private String examineStatus; | |
| 348 | + | |
| 349 | + private String examineType; | |
| 350 | + | |
| 351 | + private String revenueType; | |
| 352 | + | |
| 353 | + private String start_reason; | |
| 354 | + | |
| 355 | + private String line_update_type; | |
| 356 | + | |
| 347 | 357 | public void setId(Long id) |
| 348 | 358 | { |
| 349 | 359 | this.id = id; |
| ... | ... | @@ -1079,6 +1089,82 @@ public class BsthTLine extends BaseEntity |
| 1079 | 1089 | this.isWarrantEndTime = isWarrantEndTime; |
| 1080 | 1090 | } |
| 1081 | 1091 | |
| 1092 | + public String getExamineStatus() { | |
| 1093 | + return examineStatus; | |
| 1094 | + } | |
| 1095 | + | |
| 1096 | + public void setExamineStatus(String examineStatus) { | |
| 1097 | + this.examineStatus = examineStatus; | |
| 1098 | + } | |
| 1099 | + | |
| 1100 | + public String getExamineType() { | |
| 1101 | + return examineType; | |
| 1102 | + } | |
| 1103 | + | |
| 1104 | + public void setExamineType(String examineType) { | |
| 1105 | + this.examineType = examineType; | |
| 1106 | + } | |
| 1107 | + | |
| 1108 | + public String getfCompany() { | |
| 1109 | + return fCompany; | |
| 1110 | + } | |
| 1111 | + | |
| 1112 | + public void setfCompany(String fCompany) { | |
| 1113 | + this.fCompany = fCompany; | |
| 1114 | + } | |
| 1115 | + | |
| 1116 | + public Long getpLineId() { | |
| 1117 | + return pLineId; | |
| 1118 | + } | |
| 1119 | + | |
| 1120 | + public void setpLineId(Long pLineId) { | |
| 1121 | + this.pLineId = pLineId; | |
| 1122 | + } | |
| 1123 | + | |
| 1124 | + @Override | |
| 1125 | + public String getUpdateBy() { | |
| 1126 | + return updateBy; | |
| 1127 | + } | |
| 1128 | + | |
| 1129 | + @Override | |
| 1130 | + public void setUpdateBy(String updateBy) { | |
| 1131 | + this.updateBy = updateBy; | |
| 1132 | + } | |
| 1133 | + | |
| 1134 | + @Override | |
| 1135 | + public Date getUpdateTime() { | |
| 1136 | + return updateTime; | |
| 1137 | + } | |
| 1138 | + | |
| 1139 | + @Override | |
| 1140 | + public void setUpdateTime(Date updateTime) { | |
| 1141 | + this.updateTime = updateTime; | |
| 1142 | + } | |
| 1143 | + | |
| 1144 | + public String getRevenueType() { | |
| 1145 | + return revenueType; | |
| 1146 | + } | |
| 1147 | + | |
| 1148 | + public void setRevenueType(String revenueType) { | |
| 1149 | + this.revenueType = revenueType; | |
| 1150 | + } | |
| 1151 | + | |
| 1152 | + public String getStart_reason() { | |
| 1153 | + return start_reason; | |
| 1154 | + } | |
| 1155 | + | |
| 1156 | + public void setStart_reason(String start_reason) { | |
| 1157 | + this.start_reason = start_reason; | |
| 1158 | + } | |
| 1159 | + | |
| 1160 | + public String getLine_update_type() { | |
| 1161 | + return line_update_type; | |
| 1162 | + } | |
| 1163 | + | |
| 1164 | + public void setLine_update_type(String line_update_type) { | |
| 1165 | + this.line_update_type = line_update_type; | |
| 1166 | + } | |
| 1167 | + | |
| 1082 | 1168 | @Override |
| 1083 | 1169 | public String toString() { |
| 1084 | 1170 | return "BsthTLine{" + |
| ... | ... | @@ -1165,6 +1251,10 @@ public class BsthTLine extends BaseEntity |
| 1165 | 1251 | ", updateStatus='" + updateStatus + '\'' + |
| 1166 | 1252 | ", nightParking='" + nightParking + '\'' + |
| 1167 | 1253 | ", files='" + files + '\'' + |
| 1254 | + ", examineStatus='" + examineStatus + '\'' + | |
| 1255 | + ", examineType='" + examineType + '\'' + | |
| 1256 | + ", revenueType='" + revenueType + '\'' + | |
| 1257 | + ", start_reason='" + start_reason + '\'' + | |
| 1168 | 1258 | '}'; |
| 1169 | 1259 | } |
| 1170 | 1260 | } | ... | ... |
bsthLineProfiles/src/main/java/com/ruoyi/project/system/line/mapper/BsthTLineMapper.java
| ... | ... | @@ -3,6 +3,7 @@ package com.ruoyi.project.system.line.mapper; |
| 3 | 3 | import java.util.List; |
| 4 | 4 | import com.ruoyi.project.system.line.domain.BsthTLine; |
| 5 | 5 | import com.ruoyi.project.system.line.domain.LineEditReport; |
| 6 | +import org.apache.ibatis.annotations.Mapper; | |
| 6 | 7 | |
| 7 | 8 | /** |
| 8 | 9 | * 【请填写功能名称】Mapper接口 |
| ... | ... | @@ -10,6 +11,7 @@ import com.ruoyi.project.system.line.domain.LineEditReport; |
| 10 | 11 | * @author ruoyi |
| 11 | 12 | * @date 2021-08-17 |
| 12 | 13 | */ |
| 14 | +@Mapper | |
| 13 | 15 | public interface BsthTLineMapper |
| 14 | 16 | { |
| 15 | 17 | /** |
| ... | ... | @@ -96,6 +98,19 @@ public interface BsthTLineMapper |
| 96 | 98 | public List<BsthTLine> selectBsthTLineHistoryListGroupByLineName(Object object); |
| 97 | 99 | |
| 98 | 100 | public List<BsthTLine> getListByName(String name); |
| 99 | - | |
| 100 | 101 | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + List<BsthTLine> selectBsthTLineExamineList(BsthTLine bsthTLine); | |
| 106 | + | |
| 107 | + int insertBsthTLineExamine(BsthTLine bsthTLine); | |
| 108 | + | |
| 109 | + BsthTLine selectBsthTLineExamineById(Long id); | |
| 110 | + | |
| 111 | + int updateBsthTLineExamine(BsthTLine bsthTLine); | |
| 112 | + | |
| 113 | + int deleteBsthTLineExamineById(String[] ids); | |
| 114 | + | |
| 115 | + BsthTLine selectBsthTLineExamineByLineName(String lineName); | |
| 101 | 116 | } | ... | ... |
bsthLineProfiles/src/main/java/com/ruoyi/project/system/line/service/IBsthTLineService.java
| ... | ... | @@ -97,4 +97,25 @@ public interface IBsthTLineService |
| 97 | 97 | public List<BsthTLine> selectBsthTLineHistoryListGroupByLineName(Object object); |
| 98 | 98 | |
| 99 | 99 | public List<BsthTLine> getListByName(String object); |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + List<BsthTLine> selectBsthTLineExamineList(BsthTLine bsthTLine); | |
| 108 | + | |
| 109 | + int insertBsthTLineExamine(BsthTLine bsthTLine); | |
| 110 | + | |
| 111 | + BsthTLine selectBsthTLineExamineById(Long id); | |
| 112 | + | |
| 113 | + int updateBsthTLineExamine(BsthTLine bsthTLine); | |
| 114 | + | |
| 115 | + | |
| 116 | + int deleteBsthTLineExamineById(String ids); | |
| 117 | + | |
| 118 | + int examine(BsthTLine bsthTLine); | |
| 119 | + | |
| 120 | + BsthTLine selectBsthTLineExamineByLineName(String lineName); | |
| 100 | 121 | } | ... | ... |
bsthLineProfiles/src/main/java/com/ruoyi/project/system/line/service/impl/BsthTLineServiceImpl.java
| ... | ... | @@ -330,4 +330,106 @@ public class BsthTLineServiceImpl implements IBsthTLineService |
| 330 | 330 | |
| 331 | 331 | |
| 332 | 332 | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + @Override | |
| 346 | + public List<BsthTLine> selectBsthTLineExamineList(BsthTLine bsthTLine) | |
| 347 | + { | |
| 348 | + return bsthTLineMapper.selectBsthTLineExamineList(bsthTLine); | |
| 349 | + } | |
| 350 | + | |
| 351 | + @Override | |
| 352 | + public int insertBsthTLineExamine(BsthTLine bsthTLine) | |
| 353 | + { | |
| 354 | + return bsthTLineMapper.insertBsthTLineExamine(bsthTLine); | |
| 355 | + } | |
| 356 | + | |
| 357 | + @Override | |
| 358 | + public BsthTLine selectBsthTLineExamineById(Long id) | |
| 359 | + { | |
| 360 | + return bsthTLineMapper.selectBsthTLineExamineById(id); | |
| 361 | + } | |
| 362 | + | |
| 363 | + | |
| 364 | + @Override | |
| 365 | + public int updateBsthTLineExamine(BsthTLine bsthTLine) | |
| 366 | + { | |
| 367 | + if(bsthTLine.getId()!=null){ | |
| 368 | + return bsthTLineMapper.updateBsthTLineExamine(bsthTLine); | |
| 369 | + }else { | |
| 370 | + return 0; | |
| 371 | + } | |
| 372 | + } | |
| 373 | + | |
| 374 | + @Override | |
| 375 | + public int deleteBsthTLineExamineById(String ids) | |
| 376 | + { | |
| 377 | + return bsthTLineMapper.deleteBsthTLineExamineById(Convert.toStrArray(ids)); | |
| 378 | + } | |
| 379 | + | |
| 380 | + @Override | |
| 381 | + public int examine(BsthTLine bsthTLine) | |
| 382 | + { | |
| 383 | + BsthTLine bl; | |
| 384 | + int i; | |
| 385 | + if(bsthTLine.getId()!=null){ | |
| 386 | + if("0".equals(bsthTLine.getExamineType())){//新增 | |
| 387 | + if("2".equals(bsthTLine.getExamineStatus())){//通过 | |
| 388 | + //存入主表 | |
| 389 | + bl=bsthTLineMapper.selectBsthTLineExamineById(bsthTLine.getId()); | |
| 390 | + i=bsthTLineMapper.insertBsthTLine(bl); | |
| 391 | + //删除审核表 | |
| 392 | + bsthTLineMapper.deleteBsthTLineExamineById(new String[]{bsthTLine.getId().toString()}); | |
| 393 | + }else{//未通过 | |
| 394 | + //修改审核表状态 | |
| 395 | + bl=new BsthTLine(); | |
| 396 | + bl.setId(bsthTLine.getId()); | |
| 397 | + bl.setExamineStatus(bsthTLine.getExamineStatus()); | |
| 398 | + i=bsthTLineMapper.updateBsthTLineExamine(bl); | |
| 399 | + } | |
| 400 | + return i; | |
| 401 | + }else{//变更 | |
| 402 | + if("2".equals(bsthTLine.getExamineStatus())){//通过 | |
| 403 | + //在历史表记录原始数据 | |
| 404 | + bsthTLine=bsthTLineMapper.selectBsthTLineExamineById(bsthTLine.getId()); | |
| 405 | + String id=bsthTLine.getId().toString(); | |
| 406 | + bl = bsthTLineMapper.selectBsthTLineByNames(new String[]{bsthTLine.getLineName()}).get(0); | |
| 407 | + bl.setCreateBy(bsthTLine.getUpdateBy()); | |
| 408 | + bsthTLineMapper.saveEditHistory(bl); | |
| 409 | + if(bsthTLine.getStartDate() != null) {//设置了启用时间 | |
| 410 | + bsthTLine.setUpdateStatus("1"); | |
| 411 | + bsthTLine.setId(bl.getId()); | |
| 412 | + i=bsthTLineMapper.updateBsthTLineHistory(bsthTLine); | |
| 413 | + }else {//立即启用 | |
| 414 | + i=bsthTLineMapper.updateBsthTLine(bsthTLine); | |
| 415 | + } | |
| 416 | + //删除审核表 | |
| 417 | + bsthTLineMapper.deleteBsthTLineExamineById(new String[]{id}); | |
| 418 | + }else{//未通过 | |
| 419 | + //修改审核表状态 | |
| 420 | + bl=new BsthTLine(); | |
| 421 | + bl.setId(bsthTLine.getId()); | |
| 422 | + bl.setExamineStatus(bsthTLine.getExamineStatus()); | |
| 423 | + i=bsthTLineMapper.updateBsthTLineExamine(bl); | |
| 424 | + } | |
| 425 | + } | |
| 426 | + return i; | |
| 427 | + } | |
| 428 | + return 0; | |
| 429 | + } | |
| 430 | + | |
| 431 | + @Override | |
| 432 | + public BsthTLine selectBsthTLineExamineByLineName(String lineName){ | |
| 433 | + return bsthTLineMapper.selectBsthTLineExamineByLineName(lineName); | |
| 434 | + } | |
| 333 | 435 | } | ... | ... |
bsthLineProfiles/src/main/resources/application-druid.yml
| ... | ... | @@ -6,9 +6,9 @@ spring: |
| 6 | 6 | druid: |
| 7 | 7 | # 主库数据源 |
| 8 | 8 | master: |
| 9 | - url: jdbc:mysql://localhost:3306/mydata?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 | |
| 9 | + url: jdbc:mysql://localhost:3306/bsth_line_profiles?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 | |
| 10 | 10 | username: root |
| 11 | - password: root | |
| 11 | + password: 1995627a | |
| 12 | 12 | #password: Aa123456 |
| 13 | 13 | # 从库数据源 |
| 14 | 14 | slave: | ... | ... |
bsthLineProfiles/src/main/resources/application.yml
| ... | ... | @@ -74,13 +74,13 @@ spring: |
| 74 | 74 | # redis 配置 |
| 75 | 75 | redis: |
| 76 | 76 | # 地址 |
| 77 | - host: 192.168.168.241 | |
| 77 | + host: 127.0.0.1 | |
| 78 | 78 | # 端口,默认为6379 |
| 79 | 79 | port: 6379 |
| 80 | 80 | # 数据库索引 |
| 81 | 81 | database: 0 |
| 82 | 82 | # 密码 |
| 83 | - password: test123 | |
| 83 | + #password: test123 | |
| 84 | 84 | # 连接超时时间 |
| 85 | 85 | timeout: 10s |
| 86 | 86 | lettuce: |
| ... | ... | @@ -128,7 +128,7 @@ shiro: |
| 128 | 128 | # 首页地址 |
| 129 | 129 | indexUrl: /index |
| 130 | 130 | # 验证码开关 |
| 131 | - captchaEnabled: true | |
| 131 | + captchaEnabled: false | |
| 132 | 132 | # 验证码类型 math 数组计算 char 字符 |
| 133 | 133 | captchaType: math |
| 134 | 134 | cookie: | ... | ... |
bsthLineProfiles/src/main/resources/mybatis/mybatis/system/BsthTLineMapper.xml
| ... | ... | @@ -101,6 +101,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| 101 | 101 | <result property="nightParking" column="night_parking" /> |
| 102 | 102 | <result property="updateStatus" column="update_status" /> |
| 103 | 103 | <result property="lineUpdateType" column="line_update_type" /> |
| 104 | + <result property="examineStatus" column="examine_status" /> | |
| 105 | + <result property="examineType" column="examine_type" /> | |
| 104 | 106 | </resultMap> |
| 105 | 107 | |
| 106 | 108 | <resultMap type="LineEditReport" id="LineEditReportResult"> |
| ... | ... | @@ -1587,4 +1589,416 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| 1587 | 1589 | </insert> |
| 1588 | 1590 | |
| 1589 | 1591 | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + <sql id="selectBsthTLineExamineVo"> | |
| 1599 | + select id, event_id, line_id, line_name, company, | |
| 1600 | + f_company, p_line_id, | |
| 1601 | + service_type, line_level, line_type, district, | |
| 1602 | + inout_district, | |
| 1603 | + service_state, bus_type, air_conditioner_type, | |
| 1604 | + sell_ticket_type, | |
| 1605 | + service_time, line_distance, line_code, warrant_year, | |
| 1606 | + warrant_start_time, warrant_end_time, plan_cancel_time, cancel_time, | |
| 1607 | + cancel_reason, remark, is_logic_delete, create_time, update_by, | |
| 1608 | + update_time, create_by, time_schedule, park, is_warrant,isWarrant_start_time,isWarrant_end_time, road_type, | |
| 1609 | + ticket_price, first_station, start_end, first_time, last_station, | |
| 1610 | + last_time, mileage_up, mileage_down, average_mileage, station_up, | |
| 1611 | + station_down, travel_time_up, travel_time_down, travel_interval_up, | |
| 1612 | + travel_interval_down, warrant_vehicles_large, warrant_vehicles_middle, | |
| 1613 | + vehicles_number, number_vehicles_large, number_vehicles_middle, | |
| 1614 | + car_plate, number_person, number_person_driver, number_person_sales, | |
| 1615 | + bus_ev_number, directions, number_of_manage, halfway_station, | |
| 1616 | + full_customer_percent, low_customer_percent, divide_level, | |
| 1617 | + has_timelists, is_metro, metro_time, cold_bonus_type, revenues_month, | |
| 1618 | + person_month, mileage_month, person_month_avg, revenues, persons, | |
| 1619 | + mileages, person_avg, start_date,night_parking,files,examine_status,examine_type,start_reason,line_update_type from bsth_t_line_examine | |
| 1620 | + </sql> | |
| 1621 | + | |
| 1622 | + <select id="selectBsthTLineExamineList" parameterType="BsthTLine" | |
| 1623 | + resultMap="BsthTLineResult"> | |
| 1624 | + <include refid="selectBsthTLineExamineVo" /> | |
| 1625 | + <where> | |
| 1626 | + <if test="eventId != null "> and event_id = #{eventId}</if> | |
| 1627 | + <if test="lineId != null "> and line_id = #{lineId}</if> | |
| 1628 | + <if test="lineName != null and lineName != ''"> and line_name like concat('%', #{lineName}, '%')</if> | |
| 1629 | + <if test="company != null and company != ''"> and company = #{company}</if> | |
| 1630 | + <if test="fCompany != null and fCompany != ''"> and f_company = #{fCompany}</if> | |
| 1631 | + <if test="pLineId != null "> and p_line_id = #{pLineId}</if> | |
| 1632 | + <if test="serviceType != null and serviceType != ''"> and service_type = #{serviceType}</if> | |
| 1633 | + <if test="lineLevel != null and lineLevel != ''"> and line_level = #{lineLevel}</if> | |
| 1634 | + <if test="lineType != null and lineType != ''"> and line_type = #{lineType}</if> | |
| 1635 | + <if test="district != null and district != ''"> and district = #{district}</if> | |
| 1636 | + <if test="inoutDistrict != null and inoutDistrict != ''"> and inout_district = #{inoutDistrict}</if> | |
| 1637 | + <if test="serviceState != null and serviceState != ''"> and service_state = #{serviceState}</if> | |
| 1638 | + <if test="busType != null and busType != ''"> and bus_type = #{busType}</if> | |
| 1639 | + <if | |
| 1640 | + test="airConditionerType != null and airConditionerType != ''"> and air_conditioner_type = #{airConditionerType}</if> | |
| 1641 | + <if test="sellTicketType != null and sellTicketType != ''"> and sell_ticket_type = #{sellTicketType}</if> | |
| 1642 | + <if test="serviceTime != null and serviceTime != ''"> and service_time = #{serviceTime}</if> | |
| 1643 | + <if test="lineDistance != null "> and line_distance = #{lineDistance}</if> | |
| 1644 | + <if test="lineCode != null and lineCode != ''"> and line_code = #{lineCode}</if> | |
| 1645 | + <if test="warrantYear != null "> and warrant_year = #{warrantYear}</if> | |
| 1646 | + <if test="warrantStartTime != null "> and warrant_start_time = #{warrantStartTime}</if> | |
| 1647 | + <if test="warrantEndTime != null "> and warrant_end_time = #{warrantEndTime}</if> | |
| 1648 | + <if test="planCancelTime != null "> and plan_cancel_time = #{planCancelTime}</if> | |
| 1649 | + <if test="cancelTime != null "> and cancel_time = #{cancelTime}</if> | |
| 1650 | + <if test="cancelReason != null and cancelReason != ''"> and cancel_reason = #{cancelReason}</if> | |
| 1651 | + <if test="isLogicDelete != null and isLogicDelete != ''"> and is_logic_delete = #{isLogicDelete}</if> | |
| 1652 | + <if test="updateBy != null and updateBy != ''"> and update_by = #{updateBy}</if> | |
| 1653 | + <if test="updateTime != null "> and update_time = #{updateTime}</if> | |
| 1654 | + <if test="timeSchedule != null "> and time_schedule = #{timeSchedule}</if> | |
| 1655 | + <if test="park != null and park != ''"> and park = #{park}</if> | |
| 1656 | + <if test="isWarrant != null and isWarrant != ''"> and is_warrant = #{isWarrant}</if> | |
| 1657 | + <if test="roadType != null and roadType != ''"> and road_type = #{roadType}</if> | |
| 1658 | + <if test="ticketPrice != null and ticketPrice != ''"> and ticket_price = #{ticketPrice}</if> | |
| 1659 | + <if test="firstStation != null and firstStation != ''"> and first_station = #{firstStation}</if> | |
| 1660 | + <if test="startEnd != null and startEnd != ''"> and start_end = #{startEnd}</if> | |
| 1661 | + <if test="firstTime != null and firstTime != ''"> and first_time = #{firstTime}</if> | |
| 1662 | + <if test="lastStation != null and lastStation != ''"> and last_station = #{lastStation}</if> | |
| 1663 | + <if test="lastTime != null and lastTime != ''"> and last_time = #{lastTime}</if> | |
| 1664 | + <if test="mileageUp != null and mileageUp != ''"> and mileage_up = #{mileageUp}</if> | |
| 1665 | + <if test="mileageDown != null and mileageDown != ''"> and mileage_down = #{mileageDown}</if> | |
| 1666 | + <if test="averageMileage != null and averageMileage != ''"> and average_mileage = #{averageMileage}</if> | |
| 1667 | + <if test="stationUp != null and stationUp != ''"> and station_up = #{stationUp}</if> | |
| 1668 | + <if test="stationDown != null and stationDown != ''"> and station_down = #{stationDown}</if> | |
| 1669 | + <if test="travelTimeUp != null and travelTimeUp != ''"> and travel_time_up = #{travelTimeUp}</if> | |
| 1670 | + <if test="travelTimeDown != null and travelTimeDown != ''"> and travel_time_down = #{travelTimeDown}</if> | |
| 1671 | + <if test="travelIntervalUp != null and travelIntervalUp != ''"> and travel_interval_up = #{travelIntervalUp}</if> | |
| 1672 | + <if | |
| 1673 | + test="travelIntervalDown != null and travelIntervalDown != ''"> and travel_interval_down = #{travelIntervalDown}</if> | |
| 1674 | + <if test="warrantVehiclesLarge != null "> and warrant_vehicles_large = #{warrantVehiclesLarge} | |
| 1675 | + </if> | |
| 1676 | + <if test="warrantVehiclesMiddle != null "> and warrant_vehicles_middle = #{warrantVehiclesMiddle} | |
| 1677 | + </if> | |
| 1678 | + <if test="vehiclesNumber != null "> and vehicles_number = #{vehiclesNumber}</if> | |
| 1679 | + <if test="numberVehiclesLarge != null "> and number_vehicles_large = #{numberVehiclesLarge}</if> | |
| 1680 | + <if test="numberVehiclesMiddle != null "> and number_vehicles_middle = #{numberVehiclesMiddle} | |
| 1681 | + </if> | |
| 1682 | + <if test="carPlate != null and carPlate != ''"> and car_plate = #{carPlate}</if> | |
| 1683 | + <if test="numberPerson != null "> and number_person = #{numberPerson}</if> | |
| 1684 | + <if test="numberPersonDriver != null "> and number_person_driver = #{numberPersonDriver}</if> | |
| 1685 | + <if test="numberPersonSales != null "> and number_person_sales = #{numberPersonSales}</if> | |
| 1686 | + <if test="busEvNumber != null "> and bus_ev_number = #{busEvNumber}</if> | |
| 1687 | + <if test="directions != null and directions != ''"> and directions = #{directions}</if> | |
| 1688 | + <if test="numberOfManage != null and numberOfManage != ''"> and number_of_manage = #{numberOfManage}</if> | |
| 1689 | + <if test="halfwayStation != null and halfwayStation != ''"> and halfway_station = #{halfwayStation}</if> | |
| 1690 | + <if test="fullCustomerPercent != null "> and full_customer_percent = #{fullCustomerPercent}</if> | |
| 1691 | + <if test="lowCustomerPercent != null "> and low_customer_percent = #{lowCustomerPercent}</if> | |
| 1692 | + <if test="divideLevel != null and divideLevel != ''"> and divide_level = #{divideLevel}</if> | |
| 1693 | + <if test="hasTimelists != null and hasTimelists != ''"> and has_timelists = #{hasTimelists}</if> | |
| 1694 | + <if test="isMetro != null and isMetro != ''"> and is_metro = #{isMetro}</if> | |
| 1695 | + <if test="metroTime != null and metroTime != ''"> and metro_time = #{metroTime}</if> | |
| 1696 | + <if test="coldBonusType != null and coldBonusType != ''"> and cold_bonus_type = #{coldBonusType}</if> | |
| 1697 | + <if test="revenuesMonth != null "> and revenues_month = #{revenuesMonth}</if> | |
| 1698 | + <if test="personMonth != null "> and person_month = #{personMonth}</if> | |
| 1699 | + <if test="mileageMonth != null "> and mileage_month = #{mileageMonth}</if> | |
| 1700 | + <if test="personMonthAvg != null "> and person_month_avg = #{personMonthAvg}</if> | |
| 1701 | + <if test="revenues != null "> and revenues = #{revenues}</if> | |
| 1702 | + <if test="persons != null "> and persons = #{persons}</if> | |
| 1703 | + <if test="mileages != null "> and mileages = #{mileages}</if> | |
| 1704 | + <if test="personAvg != null "> and person_avg = #{personAvg}</if> | |
| 1705 | + <if test="startDate != null "> and start_date = #{startDate}</if> | |
| 1706 | + <if test="nightParking != null and nightParking != ''"> and night_parking = #{nightParking}</if> | |
| 1707 | + <if test="examineStatus == 'true' "> and examine_status in(0,1)</if> | |
| 1708 | + <if test="examineStatus == 'false' "> and examine_status =2</if> | |
| 1709 | + <if test="examineType != null and examineType != ''"> and examine_type = #{examineType}</if> | |
| 1710 | + </where> | |
| 1711 | + </select> | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + <insert id="insertBsthTLineExamine" parameterType="BsthTLine" | |
| 1715 | + useGeneratedKeys="true" keyProperty="id"> | |
| 1716 | + insert into bsth_t_line_examine | |
| 1717 | + <trim prefix="(" suffix=")" suffixOverrides=","> | |
| 1718 | + <if test="eventId != null">event_id,</if> | |
| 1719 | + <if test="lineId != null">line_id,</if> | |
| 1720 | + <if test="lineName != null">line_name,</if> | |
| 1721 | + <if test="company != null">company,</if> | |
| 1722 | + <if test="fCompany != null">f_company,</if> | |
| 1723 | + <if test="pLineId != null">p_line_id,</if> | |
| 1724 | + <if test="serviceType != null">service_type,</if> | |
| 1725 | + <if test="lineLevel != null">line_level,</if> | |
| 1726 | + <if test="lineType != null">line_type,</if> | |
| 1727 | + <if test="district != null">district,</if> | |
| 1728 | + <if test="inoutDistrict != null">inout_district,</if> | |
| 1729 | + <if test="serviceState != null">service_state,</if> | |
| 1730 | + <if test="busType != null">bus_type,</if> | |
| 1731 | + <if test="airConditionerType != null">air_conditioner_type,</if> | |
| 1732 | + <if test="sellTicketType != null">sell_ticket_type,</if> | |
| 1733 | + <if test="serviceTime != null">service_time,</if> | |
| 1734 | + <if test="lineDistance != null">line_distance,</if> | |
| 1735 | + <if test="lineCode != null">line_code,</if> | |
| 1736 | + <if test="warrantYear != null">warrant_year,</if> | |
| 1737 | + <if test="warrantStartTime != null">warrant_start_time,</if> | |
| 1738 | + <if test="warrantEndTime != null">warrant_end_time,</if> | |
| 1739 | + <if test="planCancelTime != null">plan_cancel_time,</if> | |
| 1740 | + <if test="cancelTime != null">cancel_time,</if> | |
| 1741 | + <if test="cancelReason != null">cancel_reason,</if> | |
| 1742 | + <if test="remark != null">remark,</if> | |
| 1743 | + <if test="isLogicDelete != null">is_logic_delete,</if> | |
| 1744 | + <if test="createBy != null">create_by,</if> | |
| 1745 | + <if test="timeSchedule != null">time_schedule,</if> | |
| 1746 | + <if test="park != null">park,</if> | |
| 1747 | + <if test="isWarrant != null">is_warrant,</if> | |
| 1748 | + <if test="isWarrantStartTime != null">isWarrant_start_time,</if> | |
| 1749 | + <if test="isWarrantEndTime != null">isWarrant_end_time,</if> | |
| 1750 | + <if test="roadType != null">road_type,</if> | |
| 1751 | + <if test="ticketPrice != null">ticket_price,</if> | |
| 1752 | + <if test="firstStation != null">first_station,</if> | |
| 1753 | + <if test="startEnd != null">start_end,</if> | |
| 1754 | + <if test="firstTime != null">first_time,</if> | |
| 1755 | + <if test="lastStation != null">last_station,</if> | |
| 1756 | + <if test="lastTime != null">last_time,</if> | |
| 1757 | + <if test="mileageUp != null">mileage_up,</if> | |
| 1758 | + <if test="mileageDown != null">mileage_down,</if> | |
| 1759 | + <if test="averageMileage != null">average_mileage,</if> | |
| 1760 | + <if test="stationUp != null">station_up,</if> | |
| 1761 | + <if test="stationDown != null">station_down,</if> | |
| 1762 | + <if test="travelTimeUp != null">travel_time_up,</if> | |
| 1763 | + <if test="travelTimeDown != null">travel_time_down,</if> | |
| 1764 | + <if test="travelIntervalUp != null">travel_interval_up,</if> | |
| 1765 | + <if test="travelIntervalDown != null">travel_interval_down,</if> | |
| 1766 | + <if test="warrantVehiclesLarge != null">warrant_vehicles_large,</if> | |
| 1767 | + <if test="warrantVehiclesMiddle != null">warrant_vehicles_middle,</if> | |
| 1768 | + <if test="vehiclesNumber != null">vehicles_number,</if> | |
| 1769 | + <if test="numberVehiclesLarge != null">number_vehicles_large,</if> | |
| 1770 | + <if test="numberVehiclesMiddle != null">number_vehicles_middle,</if> | |
| 1771 | + <if test="carPlate != null">car_plate,</if> | |
| 1772 | + <if test="numberPerson != null">number_person,</if> | |
| 1773 | + <if test="numberPersonDriver != null">number_person_driver,</if> | |
| 1774 | + <if test="numberPersonSales != null">number_person_sales,</if> | |
| 1775 | + <if test="busEvNumber != null">bus_ev_number,</if> | |
| 1776 | + <if test="directions != null">directions,</if> | |
| 1777 | + <if test="numberOfManage != null">number_of_manage,</if> | |
| 1778 | + <if test="halfwayStation != null">halfway_station,</if> | |
| 1779 | + <if test="fullCustomerPercent != null">full_customer_percent,</if> | |
| 1780 | + <if test="lowCustomerPercent != null">low_customer_percent,</if> | |
| 1781 | + <if test="divideLevel != null">divide_level,</if> | |
| 1782 | + <if test="hasTimelists != null">has_timelists,</if> | |
| 1783 | + <if test="isMetro != null">is_metro,</if> | |
| 1784 | + <if test="metroTime != null">metro_time,</if> | |
| 1785 | + <if test="coldBonusType != null">cold_bonus_type,</if> | |
| 1786 | + <if test="revenuesMonth != null">revenues_month,</if> | |
| 1787 | + <if test="personMonth != null">person_month,</if> | |
| 1788 | + <if test="mileageMonth != null">mileage_month,</if> | |
| 1789 | + <if test="personMonthAvg != null">person_month_avg,</if> | |
| 1790 | + <if test="revenues != null">revenues,</if> | |
| 1791 | + <if test="persons != null">persons,</if> | |
| 1792 | + <if test="mileages != null">mileages,</if> | |
| 1793 | + <if test="personAvg != null">person_avg,</if> | |
| 1794 | + <if test="startDate != null">start_date,</if> | |
| 1795 | + <if test="nightParking != null">night_parking,</if> | |
| 1796 | + <if test="revenueType != null">revenue_type,</if> | |
| 1797 | + <if test="examineType != null">examine_type,</if> | |
| 1798 | + <if test="startReason != null">start_reason,</if> | |
| 1799 | + <if test="lineUpdateType != null">line_update_type,</if> | |
| 1800 | + create_time, | |
| 1801 | + </trim> | |
| 1802 | + <trim prefix="values (" suffix=")" suffixOverrides=","> | |
| 1803 | + <if test="eventId != null">#{eventId},</if> | |
| 1804 | + <if test="lineId != null">#{lineId},</if> | |
| 1805 | + <if test="lineName != null">#{lineName},</if> | |
| 1806 | + <if test="company != null">#{company},</if> | |
| 1807 | + <if test="fCompany != null">#{fCompany},</if> | |
| 1808 | + <if test="pLineId != null">#{pLineId},</if> | |
| 1809 | + <if test="serviceType != null">#{serviceType},</if> | |
| 1810 | + <if test="lineLevel != null">#{lineLevel},</if> | |
| 1811 | + <if test="lineType != null">#{lineType},</if> | |
| 1812 | + <if test="district != null">#{district},</if> | |
| 1813 | + <if test="inoutDistrict != null">#{inoutDistrict},</if> | |
| 1814 | + <if test="serviceState != null">#{serviceState},</if> | |
| 1815 | + <if test="busType != null">#{busType},</if> | |
| 1816 | + <if test="airConditionerType != null">#{airConditionerType},</if> | |
| 1817 | + <if test="sellTicketType != null">#{sellTicketType},</if> | |
| 1818 | + <if test="serviceTime != null">#{serviceTime},</if> | |
| 1819 | + <if test="lineDistance != null">#{lineDistance},</if> | |
| 1820 | + <if test="lineCode != null">#{lineCode},</if> | |
| 1821 | + <if test="warrantYear != null">#{warrantYear},</if> | |
| 1822 | + <if test="warrantStartTime != null">#{warrantStartTime},</if> | |
| 1823 | + <if test="warrantEndTime != null">#{warrantEndTime},</if> | |
| 1824 | + <if test="planCancelTime != null">#{planCancelTime},</if> | |
| 1825 | + <if test="cancelTime != null">#{cancelTime},</if> | |
| 1826 | + <if test="cancelReason != null">#{cancelReason},</if> | |
| 1827 | + <if test="remark != null">#{remark},</if> | |
| 1828 | + <if test="isLogicDelete != null">#{isLogicDelete},</if> | |
| 1829 | + <if test="createBy != null">#{createBy},</if> | |
| 1830 | + <if test="timeSchedule != null">#{timeSchedule},</if> | |
| 1831 | + <if test="park != null">#{park},</if> | |
| 1832 | + <if test="isWarrant != null">#{isWarrant},</if> | |
| 1833 | + <if test="isWarrantStartTime != null">#{isWarrantStartTime},</if> | |
| 1834 | + <if test="isWarrantEndTime != null">#{isWarrantEndTime},</if> | |
| 1835 | + <if test="roadType != null">#{roadType},</if> | |
| 1836 | + <if test="ticketPrice != null">#{ticketPrice},</if> | |
| 1837 | + <if test="firstStation != null">#{firstStation},</if> | |
| 1838 | + <if test="startEnd != null">#{startEnd},</if> | |
| 1839 | + <if test="firstTime != null">#{firstTime},</if> | |
| 1840 | + <if test="lastStation != null">#{lastStation},</if> | |
| 1841 | + <if test="lastTime != null">#{lastTime},</if> | |
| 1842 | + <if test="mileageUp != null">#{mileageUp},</if> | |
| 1843 | + <if test="mileageDown != null">#{mileageDown},</if> | |
| 1844 | + <if test="averageMileage != null">#{averageMileage},</if> | |
| 1845 | + <if test="stationUp != null">#{stationUp},</if> | |
| 1846 | + <if test="stationDown != null">#{stationDown},</if> | |
| 1847 | + <if test="travelTimeUp != null">#{travelTimeUp},</if> | |
| 1848 | + <if test="travelTimeDown != null">#{travelTimeDown},</if> | |
| 1849 | + <if test="travelIntervalUp != null">#{travelIntervalUp},</if> | |
| 1850 | + <if test="travelIntervalDown != null">#{travelIntervalDown},</if> | |
| 1851 | + <if test="warrantVehiclesLarge != null">#{warrantVehiclesLarge},</if> | |
| 1852 | + <if test="warrantVehiclesMiddle != null">#{warrantVehiclesMiddle},</if> | |
| 1853 | + <if test="vehiclesNumber != null">#{vehiclesNumber},</if> | |
| 1854 | + <if test="numberVehiclesLarge != null">#{numberVehiclesLarge},</if> | |
| 1855 | + <if test="numberVehiclesMiddle != null">#{numberVehiclesMiddle},</if> | |
| 1856 | + <if test="carPlate != null">#{carPlate},</if> | |
| 1857 | + <if test="numberPerson != null">#{numberPerson},</if> | |
| 1858 | + <if test="numberPersonDriver != null">#{numberPersonDriver},</if> | |
| 1859 | + <if test="numberPersonSales != null">#{numberPersonSales},</if> | |
| 1860 | + <if test="busEvNumber != null">#{busEvNumber},</if> | |
| 1861 | + <if test="directions != null">#{directions},</if> | |
| 1862 | + <if test="numberOfManage != null">#{numberOfManage},</if> | |
| 1863 | + <if test="halfwayStation != null">#{halfwayStation},</if> | |
| 1864 | + <if test="fullCustomerPercent != null">#{fullCustomerPercent},</if> | |
| 1865 | + <if test="lowCustomerPercent != null">#{lowCustomerPercent},</if> | |
| 1866 | + <if test="divideLevel != null">#{divideLevel},</if> | |
| 1867 | + <if test="hasTimelists != null">#{hasTimelists},</if> | |
| 1868 | + <if test="isMetro != null">#{isMetro},</if> | |
| 1869 | + <if test="metroTime != null">#{metroTime},</if> | |
| 1870 | + <if test="coldBonusType != null">#{coldBonusType},</if> | |
| 1871 | + <if test="revenuesMonth != null">#{revenuesMonth},</if> | |
| 1872 | + <if test="personMonth != null">#{personMonth},</if> | |
| 1873 | + <if test="mileageMonth != null">#{mileageMonth},</if> | |
| 1874 | + <if test="personMonthAvg != null">#{personMonthAvg},</if> | |
| 1875 | + <if test="revenues != null">#{revenues},</if> | |
| 1876 | + <if test="persons != null">#{persons},</if> | |
| 1877 | + <if test="mileages != null">#{mileages},</if> | |
| 1878 | + <if test="personAvg != null">#{personAvg},</if> | |
| 1879 | + <if test="startDate != null">#{startDate},</if> | |
| 1880 | + <if test="nightParking != null">#{nightParking},</if> | |
| 1881 | + <if test="revenueType != null">#{revenueType},</if> | |
| 1882 | + <if test="examineType != null">#{examineType},</if> | |
| 1883 | + <if test="startReason != null">#{startReason},</if> | |
| 1884 | + <if test="lineUpdateType != null">#{lineUpdateType},</if> | |
| 1885 | + sysdate(), | |
| 1886 | + </trim> | |
| 1887 | + </insert> | |
| 1888 | + | |
| 1889 | + <select id="selectBsthTLineExamineById" parameterType="Long" | |
| 1890 | + resultMap="BsthTLineResult"> | |
| 1891 | + <include refid="selectBsthTLineExamineVo" /> | |
| 1892 | + where id = #{id} | |
| 1893 | + </select> | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + <update id="updateBsthTLineExamine" parameterType="BsthTLine"> | |
| 1897 | + update bsth_t_line_examine | |
| 1898 | + <trim prefix="SET" suffixOverrides=","> | |
| 1899 | + <if test="eventId != null">event_id = #{eventId},</if> | |
| 1900 | + <if test="lineId != null">line_id = #{lineId},</if> | |
| 1901 | + <if test="lineName != null">line_name = #{lineName},</if> | |
| 1902 | + <if test="company != null">company = #{company},</if> | |
| 1903 | + <if test="fCompany != null">f_company = #{fCompany},</if> | |
| 1904 | + <if test="pLineId != null">p_line_id = #{pLineId},</if> | |
| 1905 | + <if test="serviceType != null">service_type = #{serviceType},</if> | |
| 1906 | + <if test="lineLevel != null">line_level = #{lineLevel},</if> | |
| 1907 | + <if test="lineType != null">line_type = #{lineType},</if> | |
| 1908 | + <if test="district != null">district = #{district},</if> | |
| 1909 | + <if test="inoutDistrict != null">inout_district = #{inoutDistrict},</if> | |
| 1910 | + <if test="serviceState != null">service_state = #{serviceState},</if> | |
| 1911 | + <if test="busType != null">bus_type = #{busType},</if> | |
| 1912 | + <if test="airConditionerType != null">air_conditioner_type = #{airConditionerType},</if> | |
| 1913 | + <if test="sellTicketType != null">sell_ticket_type = #{sellTicketType},</if> | |
| 1914 | + <if test="serviceTime != null">service_time = #{serviceTime},</if> | |
| 1915 | + <if test="lineDistance != null">line_distance = #{lineDistance},</if> | |
| 1916 | + <if test="lineCode != null">line_code = #{lineCode},</if> | |
| 1917 | + <if test="warrantYear != null">warrant_year = #{warrantYear},</if> | |
| 1918 | + <if test="warrantStartTime != null">warrant_start_time = #{warrantStartTime},</if> | |
| 1919 | + <if test="warrantEndTime != null">warrant_end_time = #{warrantEndTime},</if> | |
| 1920 | + <if test="planCancelTime != null">plan_cancel_time = #{planCancelTime},</if> | |
| 1921 | + <if test="cancelTime != null">cancel_time = #{cancelTime},</if> | |
| 1922 | + <if test="cancelReason != null">cancel_reason = #{cancelReason},</if> | |
| 1923 | + <if test="remark != null">remark = #{remark},</if> | |
| 1924 | + <if test="isLogicDelete != null">is_logic_delete = #{isLogicDelete},</if> | |
| 1925 | + <if test="updateBy != null">update_by = #{updateBy},</if> | |
| 1926 | + update_time = sysdate(), | |
| 1927 | + <if test="timeSchedule != null">time_schedule = #{timeSchedule},</if> | |
| 1928 | + <if test="park != null">park = #{park},</if> | |
| 1929 | + <if test="isWarrant != null">is_warrant = #{isWarrant},</if> | |
| 1930 | + <if test="isWarrantStartTime != null">isWarrant_start_time = #{isWarrantStartTime},</if> | |
| 1931 | + <if test="isWarrantEndTime != null">isWarrant_end_time = #{isWarrantEndTime},</if> | |
| 1932 | + <if test="roadType != null">road_type = #{roadType},</if> | |
| 1933 | + <if test="ticketPrice != null">ticket_price = #{ticketPrice},</if> | |
| 1934 | + <if test="firstStation != null">first_station = #{firstStation},</if> | |
| 1935 | + <if test="startEnd != null">start_end = #{startEnd},</if> | |
| 1936 | + <if test="firstTime != null">first_time = #{firstTime},</if> | |
| 1937 | + <if test="lastStation != null">last_station = #{lastStation},</if> | |
| 1938 | + <if test="lastTime != null">last_time = #{lastTime},</if> | |
| 1939 | + <if test="mileageUp != null">mileage_up = #{mileageUp},</if> | |
| 1940 | + <if test="mileageDown != null">mileage_down = #{mileageDown},</if> | |
| 1941 | + <if test="averageMileage != null">average_mileage = #{averageMileage},</if> | |
| 1942 | + <if test="stationUp != null">station_up = #{stationUp},</if> | |
| 1943 | + <if test="stationDown != null">station_down = #{stationDown},</if> | |
| 1944 | + <if test="travelTimeUp != null">travel_time_up = #{travelTimeUp},</if> | |
| 1945 | + <if test="travelTimeDown != null">travel_time_down = #{travelTimeDown},</if> | |
| 1946 | + <if test="travelIntervalUp != null">travel_interval_up = #{travelIntervalUp},</if> | |
| 1947 | + <if test="travelIntervalDown != null">travel_interval_down = #{travelIntervalDown},</if> | |
| 1948 | + <if test="warrantVehiclesLarge != null">warrant_vehicles_large = #{warrantVehiclesLarge},</if> | |
| 1949 | + <if test="warrantVehiclesMiddle != null">warrant_vehicles_middle = #{warrantVehiclesMiddle},</if> | |
| 1950 | + <if test="vehiclesNumber != null">vehicles_number = #{vehiclesNumber},</if> | |
| 1951 | + <if test="numberVehiclesLarge != null">number_vehicles_large = #{numberVehiclesLarge},</if> | |
| 1952 | + <if test="numberVehiclesMiddle != null">number_vehicles_middle = #{numberVehiclesMiddle},</if> | |
| 1953 | + <if test="carPlate != null">car_plate = #{carPlate},</if> | |
| 1954 | + <if test="numberPerson != null">number_person = #{numberPerson},</if> | |
| 1955 | + <if test="numberPersonDriver != null">number_person_driver = #{numberPersonDriver},</if> | |
| 1956 | + <if test="numberPersonSales != null">number_person_sales = #{numberPersonSales},</if> | |
| 1957 | + <if test="busEvNumber != null">bus_ev_number = #{busEvNumber},</if> | |
| 1958 | + <if test="directions != null">directions = #{directions},</if> | |
| 1959 | + <if test="numberOfManage != null">number_of_manage = #{numberOfManage},</if> | |
| 1960 | + <if test="halfwayStation != null">halfway_station = #{halfwayStation},</if> | |
| 1961 | + <if test="fullCustomerPercent != null">full_customer_percent = #{fullCustomerPercent},</if> | |
| 1962 | + <if test="lowCustomerPercent != null">low_customer_percent = #{lowCustomerPercent},</if> | |
| 1963 | + <if test="divideLevel != null">divide_level = #{divideLevel},</if> | |
| 1964 | + <if test="hasTimelists != null">has_timelists = #{hasTimelists},</if> | |
| 1965 | + <if test="isMetro != null">is_metro = #{isMetro},</if> | |
| 1966 | + <if test="metroTime != null">metro_time = #{metroTime},</if> | |
| 1967 | + <if test="coldBonusType != null">cold_bonus_type = #{coldBonusType},</if> | |
| 1968 | + <if test="revenuesMonth != null">revenues_month = #{revenuesMonth},</if> | |
| 1969 | + <if test="personMonth != null">person_month = #{personMonth},</if> | |
| 1970 | + <if test="mileageMonth != null">mileage_month = #{mileageMonth},</if> | |
| 1971 | + <if test="personMonthAvg != null">person_month_avg = #{personMonthAvg},</if> | |
| 1972 | + <if test="revenues != null">revenues = #{revenues},</if> | |
| 1973 | + <if test="persons != null">persons = #{persons},</if> | |
| 1974 | + <if test="mileages != null">mileages = #{mileages},</if> | |
| 1975 | + <if test="personAvg != null">person_avg = #{personAvg},</if> | |
| 1976 | + <if test="startDate != null">start_date = #{startDate},</if> | |
| 1977 | + <if test="nightParking != null">night_parking = #{nightParking},</if> | |
| 1978 | + <if test="files != null">files = #{files},</if> | |
| 1979 | + <if test="examineStatus != null">examine_status = #{examineStatus},</if> | |
| 1980 | + <if test="startReason != null">start_reason = #{startReason},</if> | |
| 1981 | + <if test="startDate != null">start_date = #{startDate},</if> | |
| 1982 | + <if test="lineUpdateType != null">line_update_type = #{lineUpdateType},</if> | |
| 1983 | + <if test="startReason != null">start_reason = #{startReason},</if> | |
| 1984 | + | |
| 1985 | + </trim> | |
| 1986 | + where id = #{id} | |
| 1987 | + </update> | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + <delete id="deleteBsthTLineExamineById" parameterType="String"> | |
| 1991 | + delete from bsth_t_line_examine where id in | |
| 1992 | + <foreach item="id" collection="array" open="(" separator="," | |
| 1993 | + close=")"> | |
| 1994 | + #{id} | |
| 1995 | + </foreach> | |
| 1996 | + </delete> | |
| 1997 | + | |
| 1998 | + <select id="selectBsthTLineExamineByLineName" parameterType="String" | |
| 1999 | + resultMap="BsthTLineResult"> | |
| 2000 | + <include refid="selectBsthTLineExamineVo" /> | |
| 2001 | + where line_name= #{lineName} | |
| 2002 | + </select> | |
| 2003 | + | |
| 1590 | 2004 | </mapper> |
| 1591 | 2005 | \ No newline at end of file | ... | ... |
bsthLineProfiles/src/main/resources/static/ruoyi/js/ry-ui.js
bsthLineProfiles/src/main/resources/templates/system/line/add.html deleted
100644 → 0
| 1 | -<!DOCTYPE html> | |
| 2 | -<html lang="zh" xmlns:th="http://www.thymeleaf.org" > | |
| 3 | -<head> | |
| 4 | - <th:block th:include="include :: header('添加线路档案信息')" /> | |
| 5 | - <th:block th:include="include :: datetimepicker-css" /> | |
| 6 | -</head> | |
| 7 | -<body class="white-bg"> | |
| 8 | - <div class="wrapper wrapper-content animated fadeInRight ibox-content"> | |
| 9 | - <form class="form-horizontal m" id="form-line-add"> | |
| 10 | - <div class="form-group"> | |
| 11 | - <label class="col-sm-3 control-label">线路名称:</label> | |
| 12 | - <div class="col-sm-8"> | |
| 13 | - <input name="lineName" class="form-control" type="text"> | |
| 14 | - </div> | |
| 15 | - </div> | |
| 16 | - <div class="form-group"> | |
| 17 | - <label class="col-sm-3 control-label">公司:</label> | |
| 18 | - <div class="col-sm-8"> | |
| 19 | - <input name="company" class="form-control" type="text"> | |
| 20 | - </div> | |
| 21 | - </div> | |
| 22 | - <div class="form-group"> | |
| 23 | - <label class="col-sm-3 control-label">分公司:</label> | |
| 24 | - <div class="col-sm-8"> | |
| 25 | - <input name="fCompany" class="form-control" type="text"> | |
| 26 | - </div> | |
| 27 | - </div> | |
| 28 | - <div class="form-group"> | |
| 29 | - <label class="col-sm-3 control-label">主线路id:</label> | |
| 30 | - <div class="col-sm-8"> | |
| 31 | - <input name="pLineId" class="form-control" type="text"> | |
| 32 | - </div> | |
| 33 | - </div> | |
| 34 | - <div class="form-group"> | |
| 35 | - <label class="col-sm-3 control-label">营运方式:</label> | |
| 36 | - <div class="col-sm-8"> | |
| 37 | - <select name="serviceType" | |
| 38 | - th:with="type=${@dict.getType('serviceType')}" | |
| 39 | - class="form-control m-b"> | |
| 40 | - <option value=""></option> | |
| 41 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 42 | - th:value="${dict.dictValue}"> | |
| 43 | - | |
| 44 | - </option> | |
| 45 | - </select> | |
| 46 | - </div> | |
| 47 | - </div> | |
| 48 | - | |
| 49 | - <div class="form-group"> | |
| 50 | - <label class="col-sm-3 control-label">线路属性:</label> | |
| 51 | - <div class="col-sm-8"> | |
| 52 | - <select name="lineLevel" | |
| 53 | - th:with="type=${@dict.getType('lineLevel')}" | |
| 54 | - class="form-control m-b"> | |
| 55 | - <option value=""></option> | |
| 56 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 57 | - th:value="${dict.dictValue}"> | |
| 58 | - </option> | |
| 59 | - </select> | |
| 60 | - </div> | |
| 61 | - </div> | |
| 62 | - <div class="form-group"> | |
| 63 | - <label class="col-sm-3 control-label">线路类型:</label> | |
| 64 | - <div class="col-sm-8"> | |
| 65 | - <select name="lineType" th:with="type=${@dict.getType('lineType')}" | |
| 66 | - class="form-control m-b"> | |
| 67 | - <option value=""></option> | |
| 68 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 69 | - th:value="${dict.dictValue}"> | |
| 70 | - </option> | |
| 71 | - </select> | |
| 72 | - </div> | |
| 73 | - </div> | |
| 74 | - <div class="form-group"> | |
| 75 | - <label class="col-sm-3 control-label">区属:</label> | |
| 76 | - <div class="col-sm-8"> | |
| 77 | - <select name="district" th:with="type=${@dict.getType('district')}" | |
| 78 | - class="form-control m-b"> | |
| 79 | - <option value=""></option> | |
| 80 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 81 | - th:value="${dict.dictValue}"> | |
| 82 | - </option> | |
| 83 | - </select> | |
| 84 | - </div> | |
| 85 | - </div> | |
| 86 | - <div class="form-group"> | |
| 87 | - <label class="col-sm-3 control-label">是否区内:</label> | |
| 88 | - <div class="col-sm-8"> | |
| 89 | - <select name="inoutDistrict" | |
| 90 | - th:with="type=${@dict.getType('trueFalse')}" | |
| 91 | - class="form-control m-b"> | |
| 92 | - <option value=""></option> | |
| 93 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 94 | - th:value="${dict.dictValue}"> | |
| 95 | - | |
| 96 | - </option> | |
| 97 | - </select> | |
| 98 | - </div> | |
| 99 | - </div> | |
| 100 | - <div class="form-group"> | |
| 101 | - <label class="col-sm-3 control-label">营运状态:</label> | |
| 102 | - <div class="col-sm-8"> | |
| 103 | - <select name="serviceState" | |
| 104 | - th:with="type=${@dict.getType('serviceState')}" | |
| 105 | - class="form-control m-b"> | |
| 106 | - <option value=""></option> | |
| 107 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 108 | - th:value="${dict.dictValue}"> | |
| 109 | - </option> | |
| 110 | - </select> | |
| 111 | - </div> | |
| 112 | - </div> | |
| 113 | - <div class="form-group"> | |
| 114 | - <label class="col-sm-3 control-label">车辆类型 多选:</label> | |
| 115 | - <div class="col-sm-8" th:with="type=${@dict.getType('busType')}"> | |
| 116 | - <label class="checkbox-inline" th:each="dict : ${type}" | |
| 117 | - style="display: block"> <input type="checkbox" | |
| 118 | - name="busType" | |
| 119 | - th:text="${dict.dictLabel}" th:value="${dict.dictValue}" /></label> | |
| 120 | - </div> | |
| 121 | - </div> | |
| 122 | - <div class="form-group"> | |
| 123 | - <label class="col-sm-3 control-label">是否空调:</label> | |
| 124 | - <div class="col-sm-8"> | |
| 125 | - <select name="airConditionerType" | |
| 126 | - th:with="type=${@dict.getType('airConditionerType')}" | |
| 127 | - class="form-control m-b"> | |
| 128 | - <option value=""></option> | |
| 129 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 130 | - th:value="${dict.dictValue}"> | |
| 131 | - </option> | |
| 132 | - </select> | |
| 133 | - </div> | |
| 134 | - </div> | |
| 135 | - <div class="form-group"> | |
| 136 | - <label class="col-sm-3 control-label">售票类型:</label> | |
| 137 | - <div class="col-sm-8"> | |
| 138 | - <select name="sellTicketType" | |
| 139 | - th:with="type=${@dict.getType('sellTicketType')}" | |
| 140 | - class="form-control m-b"> | |
| 141 | - <option value=""></option> | |
| 142 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 143 | - th:value="${dict.dictValue}"> | |
| 144 | - </option> | |
| 145 | - </select> | |
| 146 | - </div> | |
| 147 | - </div> | |
| 148 | - <div class="form-group"> | |
| 149 | - <label class="col-sm-3 control-label">运营时间:</label> | |
| 150 | - <div class="col-sm-8"> | |
| 151 | - <select name="serviceTime" | |
| 152 | - th:with="type=${@dict.getType('serviceTime')}" | |
| 153 | - class="form-control m-b"> | |
| 154 | - <option value=""></option> | |
| 155 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 156 | - th:value="${dict.dictValue}"> | |
| 157 | - </option> | |
| 158 | - </select> | |
| 159 | - </div> | |
| 160 | - </div> | |
| 161 | - <div class="form-group"> | |
| 162 | - <label class="col-sm-3 control-label">线路长度:</label> | |
| 163 | - <div class="col-sm-8"> | |
| 164 | - <input name="lineDistance" class="form-control" type="text"> | |
| 165 | - </div> | |
| 166 | - </div> | |
| 167 | - <div class="form-group"> | |
| 168 | - <label class="col-sm-3 control-label">线路编码:</label> | |
| 169 | - <div class="col-sm-8"> | |
| 170 | - <input name="lineCode" class="form-control" type="text"> | |
| 171 | - </div> | |
| 172 | - </div> | |
| 173 | - <div class="form-group"> | |
| 174 | - <label class="col-sm-3 control-label">授权年限:</label> | |
| 175 | - <div class="col-sm-8"> | |
| 176 | - <input name="warrantYear" class="form-control" type="text"> | |
| 177 | - </div> | |
| 178 | - </div> | |
| 179 | - <div class="form-group"> | |
| 180 | - <label class="col-sm-3 control-label">授权起始日期:</label> | |
| 181 | - <div class="col-sm-8"> | |
| 182 | - <div class="input-group date"> | |
| 183 | - <input name="warrantStartTime" class="form-control" placeholder="yyyy-MM-dd" type="text" autocomplete="off"> | |
| 184 | - <span class="input-group-addon"><i class="fa fa-calendar"></i></span> | |
| 185 | - </div> | |
| 186 | - </div> | |
| 187 | - </div> | |
| 188 | - <div class="form-group"> | |
| 189 | - <label class="col-sm-3 control-label">授权结束日期:</label> | |
| 190 | - <div class="col-sm-8"> | |
| 191 | - <div class="input-group date"> | |
| 192 | - <input name="warrantEndTime" class="form-control" placeholder="yyyy-MM-dd" type="text" autocomplete="off"> | |
| 193 | - <span class="input-group-addon"><i class="fa fa-calendar"></i></span> | |
| 194 | - </div> | |
| 195 | - </div> | |
| 196 | - </div> | |
| 197 | - <div class="form-group"> | |
| 198 | - <label class="col-sm-3 control-label">撤销日期:</label> | |
| 199 | - <div class="col-sm-8"> | |
| 200 | - <div class="input-group date"> | |
| 201 | - <input name="planCancelTime" class="form-control" placeholder="yyyy-MM-dd" type="text" autocomplete="off"> | |
| 202 | - <span class="input-group-addon"><i class="fa fa-calendar"></i></span> | |
| 203 | - </div> | |
| 204 | - </div> | |
| 205 | - </div> | |
| 206 | - <div class="form-group"> | |
| 207 | - <label class="col-sm-3 control-label">实际撤销日期:</label> | |
| 208 | - <div class="col-sm-8"> | |
| 209 | - <div class="input-group date"> | |
| 210 | - <input name="cancelTime" class="form-control" placeholder="yyyy-MM-dd" type="text" autocomplete="off"> | |
| 211 | - <span class="input-group-addon"><i class="fa fa-calendar"></i></span> | |
| 212 | - </div> | |
| 213 | - </div> | |
| 214 | - </div> | |
| 215 | - <div class="form-group"> | |
| 216 | - <label class="col-sm-3 control-label">撤销原因:</label> | |
| 217 | - <div class="col-sm-8"> | |
| 218 | - <textarea name="cancelReason" class="form-control"></textarea> | |
| 219 | - </div> | |
| 220 | - </div> | |
| 221 | - <div class="form-group"> | |
| 222 | - <label class="col-sm-3 control-label">备注:</label> | |
| 223 | - <div class="col-sm-8"> | |
| 224 | - <textarea name="remark" class="form-control"></textarea> | |
| 225 | - </div> | |
| 226 | - </div> | |
| 227 | - <div class="form-group"> | |
| 228 | - <label class="col-sm-3 control-label">是否逻辑删除:</label> | |
| 229 | - <div class="col-sm-8"> | |
| 230 | - <select name="isLogicDelete" | |
| 231 | - th:with="type=${@dict.getType('trueFalse')}" | |
| 232 | - class="form-control m-b"> | |
| 233 | - <option value=""></option> | |
| 234 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 235 | - th:value="${dict.dictValue}"> | |
| 236 | - </option> | |
| 237 | - </select> | |
| 238 | - </div> | |
| 239 | - </div> | |
| 240 | - <div class="form-group"> | |
| 241 | - <label class="col-sm-3 control-label">更新人:</label> | |
| 242 | - <div class="col-sm-8"> | |
| 243 | - <input name="updateBy" class="form-control" type="text"> | |
| 244 | - </div> | |
| 245 | - </div> | |
| 246 | - <div class="form-group"> | |
| 247 | - <label class="col-sm-3 control-label">更新时间:</label> | |
| 248 | - <div class="col-sm-8"> | |
| 249 | - <div class="input-group date"> | |
| 250 | - <input name="updateTime" class="form-control" placeholder="yyyy-MM-dd" type="text" autocomplete="off"> | |
| 251 | - <span class="input-group-addon"><i class="fa fa-calendar"></i></span> | |
| 252 | - </div> | |
| 253 | - </div> | |
| 254 | - </div> | |
| 255 | - <div class="form-group"> | |
| 256 | - <label class="col-sm-3 control-label">行车作业计划表报备时间:</label> | |
| 257 | - <div class="col-sm-8"> | |
| 258 | - <div class="input-group date"> | |
| 259 | - <input name="timeSchedule" class="form-control" placeholder="yyyy-MM-dd" type="text" autocomplete="off"> | |
| 260 | - <span class="input-group-addon"><i class="fa fa-calendar"></i></span> | |
| 261 | - </div> | |
| 262 | - </div> | |
| 263 | - </div> | |
| 264 | - <div class="form-group"> | |
| 265 | - <label class="col-sm-3 control-label">停车场:</label> | |
| 266 | - <div class="col-sm-8"> | |
| 267 | - <input name="park" class="form-control" type="text"> | |
| 268 | - </div> | |
| 269 | - </div> | |
| 270 | - <div class="form-group"> | |
| 271 | - <label class="col-sm-3 control-label">是否权证:</label> | |
| 272 | - <div class="col-sm-8"> | |
| 273 | - <select name="isWarrant" id="isWarrant" | |
| 274 | - th:with="type=${@dict.getType('trueFalse')}" | |
| 275 | - class="form-control m-b"> | |
| 276 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 277 | - th:value="${dict.dictValue}" th:selected="${dict.dictValue=='1'}"> | |
| 278 | - </option> | |
| 279 | - </select> | |
| 280 | - </div> | |
| 281 | - </div> | |
| 282 | - <div class="form-group"> | |
| 283 | - <label class="col-sm-3 control-label">权证开通日期:</label> | |
| 284 | - <div class="col-sm-8"> | |
| 285 | - <div class="input-group date"> | |
| 286 | - <input name="isWarrantStartTime" id="isWarrantStartTime" | |
| 287 | - class="form-control" placeholder="yyyy-MM-dd" type="text" | |
| 288 | - autocomplete="off"> <span class="input-group-addon"><i | |
| 289 | - class="fa fa-calendar"></i></span> | |
| 290 | - </div> | |
| 291 | - | |
| 292 | - </div> | |
| 293 | - </div> | |
| 294 | - <div class="form-group"> | |
| 295 | - <label class="col-sm-3 control-label">权证到期日期:</label> | |
| 296 | - <div class="col-sm-8"> | |
| 297 | - <div class="input-group date"> | |
| 298 | - <input name="isWarrantEndTime" id="isWarrantEndTime" | |
| 299 | - class="form-control" placeholder="yyyy-MM-dd" type="text" | |
| 300 | - autocomplete="off"> <span class="input-group-addon"><i | |
| 301 | - class="fa fa-calendar"></i></span> | |
| 302 | - </div> | |
| 303 | - | |
| 304 | - </div> | |
| 305 | - </div> | |
| 306 | - <div class="form-group"> | |
| 307 | - <label class="col-sm-3 control-label">道路类型:</label> | |
| 308 | - <div class="col-sm-8"> | |
| 309 | - <div class="col-sm-8" th:with="type=${@dict.getType('roadType')}"> | |
| 310 | - <label class="checkbox-inline" th:each="dict : ${type}" | |
| 311 | - style="display: block"> <input type="checkbox" | |
| 312 | - name="roadType" | |
| 313 | - th:text="${dict.dictLabel}" th:value="${dict.dictValue}" /> | |
| 314 | - </label> | |
| 315 | - </div> | |
| 316 | - </div> | |
| 317 | - </div> | |
| 318 | - <div class="form-group"> | |
| 319 | - <label class="col-sm-3 control-label">票价(多级票价用 - 隔开):</label> | |
| 320 | - <div class="col-sm-8"> | |
| 321 | - <input name="ticketPrice" class="form-control" type="text"> | |
| 322 | - </div> | |
| 323 | - </div> | |
| 324 | - <div class="form-group"> | |
| 325 | - <label class="col-sm-3 control-label">首站:</label> | |
| 326 | - <div class="col-sm-8"> | |
| 327 | - <input name="firstStation" class="form-control" type="text"> | |
| 328 | - </div> | |
| 329 | - </div> | |
| 330 | - <div class="form-group"> | |
| 331 | - <label class="col-sm-3 control-label">起讫站:</label> | |
| 332 | - <div class="col-sm-8"> | |
| 333 | - <input name="startEnd" class="form-control" type="text"> | |
| 334 | - </div> | |
| 335 | - </div> | |
| 336 | - <div class="form-group"> | |
| 337 | - <label class="col-sm-3 control-label">首战时间:</label> | |
| 338 | - <div class="col-sm-8"> | |
| 339 | - <input name="firstTime" class="form-control" type="text"> | |
| 340 | - </div> | |
| 341 | - </div> | |
| 342 | - <div class="form-group"> | |
| 343 | - <label class="col-sm-3 control-label">末站:</label> | |
| 344 | - <div class="col-sm-8"> | |
| 345 | - <input name="lastStation" class="form-control" type="text"> | |
| 346 | - </div> | |
| 347 | - </div> | |
| 348 | - <div class="form-group"> | |
| 349 | - <label class="col-sm-3 control-label">末站首战时间:</label> | |
| 350 | - <div class="col-sm-8"> | |
| 351 | - <input name="lastTime" class="form-control" type="text"> | |
| 352 | - </div> | |
| 353 | - </div> | |
| 354 | - <div class="form-group"> | |
| 355 | - <label class="col-sm-3 control-label">上行里程数:</label> | |
| 356 | - <div class="col-sm-8"> | |
| 357 | - <input name="mileageUp" class="form-control" type="text"> | |
| 358 | - </div> | |
| 359 | - </div> | |
| 360 | - <div class="form-group"> | |
| 361 | - <label class="col-sm-3 control-label">下行里程数:</label> | |
| 362 | - <div class="col-sm-8"> | |
| 363 | - <input name="mileageDown" class="form-control" type="text"> | |
| 364 | - </div> | |
| 365 | - </div> | |
| 366 | - <div class="form-group"> | |
| 367 | - <label class="col-sm-3 control-label">平均里程数:</label> | |
| 368 | - <div class="col-sm-8"> | |
| 369 | - <input name="averageMileage" class="form-control" type="text"> | |
| 370 | - </div> | |
| 371 | - </div> | |
| 372 | - <div class="form-group"> | |
| 373 | - <label class="col-sm-3 control-label">站级数(上行):</label> | |
| 374 | - <div class="col-sm-8"> | |
| 375 | - <input name="stationUp" class="form-control" type="text"> | |
| 376 | - </div> | |
| 377 | - </div> | |
| 378 | - <div class="form-group"> | |
| 379 | - <label class="col-sm-3 control-label">站级数(下行):</label> | |
| 380 | - <div class="col-sm-8"> | |
| 381 | - <input name="stationDown" class="form-control" type="text"> | |
| 382 | - </div> | |
| 383 | - </div> | |
| 384 | - <div class="form-group"> | |
| 385 | - <label class="col-sm-3 control-label">行驶时间(上行):</label> | |
| 386 | - <div class="col-sm-8"> | |
| 387 | - <input name="travelTimeUp" class="form-control" type="text"> | |
| 388 | - </div> | |
| 389 | - </div> | |
| 390 | - <div class="form-group"> | |
| 391 | - <label class="col-sm-3 control-label">行驶时间(下行):</label> | |
| 392 | - <div class="col-sm-8"> | |
| 393 | - <input name="travelTimeDown" class="form-control" type="text"> | |
| 394 | - </div> | |
| 395 | - </div> | |
| 396 | - <div class="form-group"> | |
| 397 | - <label class="col-sm-3 control-label">行驶间隔(高峰):</label> | |
| 398 | - <div class="col-sm-8"> | |
| 399 | - <input name="travelIntervalUp" class="form-control" type="text"> | |
| 400 | - </div> | |
| 401 | - </div> | |
| 402 | - <div class="form-group"> | |
| 403 | - <label class="col-sm-3 control-label">行驶间隔(低谷):</label> | |
| 404 | - <div class="col-sm-8"> | |
| 405 | - <input name="travelIntervalDown" class="form-control" type="text"> | |
| 406 | - </div> | |
| 407 | - </div> | |
| 408 | - <div class="form-group"> | |
| 409 | - <label class="col-sm-3 control-label">经营权证(大巴):</label> | |
| 410 | - <div class="col-sm-8"> | |
| 411 | - <input name="warrantVehiclesLarge" class="form-control" type="text"> | |
| 412 | - </div> | |
| 413 | - </div> | |
| 414 | - <div class="form-group"> | |
| 415 | - <label class="col-sm-3 control-label">经营权证(中巴):</label> | |
| 416 | - <div class="col-sm-8"> | |
| 417 | - <input name="warrantVehiclesMiddle" class="form-control" type="text"> | |
| 418 | - </div> | |
| 419 | - </div> | |
| 420 | - <div class="form-group"> | |
| 421 | - <label class="col-sm-3 control-label">实际配车数:</label> | |
| 422 | - <div class="col-sm-8"> | |
| 423 | - <input name="vehiclesNumber" class="form-control" type="text"> | |
| 424 | - </div> | |
| 425 | - </div> | |
| 426 | - <div class="form-group"> | |
| 427 | - <label class="col-sm-3 control-label">实际车辆数(大):</label> | |
| 428 | - <div class="col-sm-8"> | |
| 429 | - <input name="numberVehiclesLarge" class="form-control" type="text"> | |
| 430 | - </div> | |
| 431 | - </div> | |
| 432 | - <div class="form-group"> | |
| 433 | - <label class="col-sm-3 control-label">实际车辆数(中):</label> | |
| 434 | - <div class="col-sm-8"> | |
| 435 | - <input name="numberVehiclesMiddle" class="form-control" type="text"> | |
| 436 | - </div> | |
| 437 | - </div> | |
| 438 | - <div class="form-group"> | |
| 439 | - <label class="col-sm-3 control-label">车辆自编号:</label> | |
| 440 | - <div class="col-sm-8"> | |
| 441 | - <input name="carPlate" class="form-control" type="text"> | |
| 442 | - </div> | |
| 443 | - </div> | |
| 444 | - <div class="form-group"> | |
| 445 | - <label class="col-sm-3 control-label">线路总配人数:</label> | |
| 446 | - <div class="col-sm-8"> | |
| 447 | - <input name="numberPerson" class="form-control" type="text"> | |
| 448 | - </div> | |
| 449 | - </div> | |
| 450 | - <div class="form-group"> | |
| 451 | - <label class="col-sm-3 control-label">人数司机:</label> | |
| 452 | - <div class="col-sm-8"> | |
| 453 | - <input name="numberPersonDriver" class="form-control" type="text"> | |
| 454 | - </div> | |
| 455 | - </div> | |
| 456 | - <div class="form-group"> | |
| 457 | - <label class="col-sm-3 control-label">售票员数:</label> | |
| 458 | - <div class="col-sm-8"> | |
| 459 | - <input name="numberPersonSales" class="form-control" type="text"> | |
| 460 | - </div> | |
| 461 | - </div> | |
| 462 | - <div class="form-group"> | |
| 463 | - <label class="col-sm-3 control-label">新能源车数:</label> | |
| 464 | - <div class="col-sm-8"> | |
| 465 | - <input name="busEvNumber" class="form-control" type="text"> | |
| 466 | - </div> | |
| 467 | - </div> | |
| 468 | - <div class="form-group"> | |
| 469 | - <label class="col-sm-3 control-label">线路走向:</label> | |
| 470 | - <div class="col-sm-8"> | |
| 471 | - <textarea name="directions" class="form-control"></textarea> | |
| 472 | - </div> | |
| 473 | - </div> | |
| 474 | - <div class="form-group"> | |
| 475 | - <label class="col-sm-3 control-label">经营权证数:</label> | |
| 476 | - <div class="col-sm-8"> | |
| 477 | - <input name="numberOfManage" class="form-control" type="text"> | |
| 478 | - </div> | |
| 479 | - </div> | |
| 480 | - <div class="form-group"> | |
| 481 | - <label class="col-sm-3 control-label">站点名称:</label> | |
| 482 | - <div class="col-sm-8"> | |
| 483 | - <textarea name="halfwayStation" class="form-control"></textarea> | |
| 484 | - </div> | |
| 485 | - </div> | |
| 486 | - <div class="form-group"> | |
| 487 | - <label class="col-sm-3 control-label">高峰系数:</label> | |
| 488 | - <div class="col-sm-8"> | |
| 489 | - <input name="fullCustomerPercent" class="form-control" type="text"> | |
| 490 | - </div> | |
| 491 | - </div> | |
| 492 | - <div class="form-group"> | |
| 493 | - <label class="col-sm-3 control-label">低谷系数:</label> | |
| 494 | - <div class="col-sm-8"> | |
| 495 | - <input name="lowCustomerPercent" class="form-control" type="text"> | |
| 496 | - </div> | |
| 497 | - </div> | |
| 498 | - <div class="form-group"> | |
| 499 | - <label class="col-sm-3 control-label">间隔等级:</label> | |
| 500 | - <div class="col-sm-8"> | |
| 501 | - <input name="divideLevel" class="form-control" type="text"> | |
| 502 | - </div> | |
| 503 | - </div> | |
| 504 | - <div class="form-group"> | |
| 505 | - <label class="col-sm-3 control-label">是否挂牌:</label> | |
| 506 | - <div class="col-sm-8"> | |
| 507 | - <select name="hasTimelists" | |
| 508 | - th:with="type=${@dict.getType('trueFalse')}" | |
| 509 | - class="form-control m-b"> | |
| 510 | - <option value=""></option> | |
| 511 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 512 | - th:value="${dict.dictValue}"> | |
| 513 | - </option> | |
| 514 | - </select> | |
| 515 | - </div> | |
| 516 | - </div> | |
| 517 | - <div class="form-group"> | |
| 518 | - <label class="col-sm-3 control-label">是否轨交末班车衔接:</label> | |
| 519 | - <select name="isMetro" th:with="type=${@dict.getType('trueFalse')}" | |
| 520 | - class="form-control m-b"> | |
| 521 | - <option value=""></option> | |
| 522 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 523 | - th:value="${dict.dictValue}"></option> | |
| 524 | - </select> | |
| 525 | - </div> | |
| 526 | - <div class="form-group"> | |
| 527 | - <label class="col-sm-3 control-label">轨交时间:</label> | |
| 528 | - <div class="col-sm-8"> | |
| 529 | - <div class="input-group date"> | |
| 530 | - <input name="metroTime" class="form-control" placeholder="yyyy-MM-dd" type="text" autocomplete="off"> | |
| 531 | - <span class="input-group-addon"><i class="fa fa-calendar"></i></span> | |
| 532 | - </div> | |
| 533 | - </div> | |
| 534 | - </div> | |
| 535 | - <div class="form-group"> | |
| 536 | - <label class="col-sm-3 control-label">冷僻线路补贴类型:</label> | |
| 537 | - <div class="col-sm-8"> | |
| 538 | - <input name="coldBonusType" lass="form-control" type="text"> | |
| 539 | - </div> | |
| 540 | - </div> | |
| 541 | - <div class="form-group"> | |
| 542 | - <label class="col-sm-3 control-label">月度营收:</label> | |
| 543 | - <div class="col-sm-8"> | |
| 544 | - <input name="revenuesMonth" class="form-control" type="text"> | |
| 545 | - </div> | |
| 546 | - </div> | |
| 547 | - <div class="form-group"> | |
| 548 | - <label class="col-sm-3 control-label">月度人次:</label> | |
| 549 | - <div class="col-sm-8"> | |
| 550 | - <input name="personMonth" class="form-control" type="text"> | |
| 551 | - </div> | |
| 552 | - </div> | |
| 553 | - <div class="form-group"> | |
| 554 | - <label class="col-sm-3 control-label">月度里程:</label> | |
| 555 | - <div class="col-sm-8"> | |
| 556 | - <input name="mileageMonth" class="form-control" type="text"> | |
| 557 | - </div> | |
| 558 | - </div> | |
| 559 | - <div class="form-group"> | |
| 560 | - <label class="col-sm-3 control-label">百公里人次:</label> | |
| 561 | - <div class="col-sm-8"> | |
| 562 | - <input name="personMonthAvg" class="form-control" type="text"> | |
| 563 | - </div> | |
| 564 | - </div> | |
| 565 | - <div class="form-group"> | |
| 566 | - <label class="col-sm-3 control-label">营收:</label> | |
| 567 | - <div class="col-sm-8"> | |
| 568 | - <input name="revenues" class="form-control" type="text"> | |
| 569 | - </div> | |
| 570 | - </div> | |
| 571 | - <div class="form-group"> | |
| 572 | - <label class="col-sm-3 control-label">人次:</label> | |
| 573 | - <div class="col-sm-8"> | |
| 574 | - <input name="persons" class="form-control" type="text"> | |
| 575 | - </div> | |
| 576 | - </div> | |
| 577 | - <div class="form-group"> | |
| 578 | - <label class="col-sm-3 control-label">里程:</label> | |
| 579 | - <div class="col-sm-8"> | |
| 580 | - <input name="mileages" class="form-control" type="text"> | |
| 581 | - </div> | |
| 582 | - </div> | |
| 583 | - <div class="form-group"> | |
| 584 | - <label class="col-sm-3 control-label">百公里人次:</label> | |
| 585 | - <div class="col-sm-8"> | |
| 586 | - <input name="personAvg" class="form-control" type="text"> | |
| 587 | - </div> | |
| 588 | - </div> | |
| 589 | - <div class="form-group"> | |
| 590 | - <label class="col-sm-3 control-label">开通日期:</label> | |
| 591 | - <div class="col-sm-8"> | |
| 592 | - <div class="input-group date"> | |
| 593 | - <input name="startDate" class="form-control" placeholder="yyyy-MM-dd" type="text" autocomplete="off"> | |
| 594 | - <span class="input-group-addon"><i class="fa fa-calendar"></i></span> | |
| 595 | - </div> | |
| 596 | - </div> | |
| 597 | - </div> | |
| 598 | - </form> | |
| 599 | - </div> | |
| 600 | - <th:block th:include="include :: footer" /> | |
| 601 | - <th:block th:include="include :: datetimepicker-js" /> | |
| 602 | - <script th:inline="javascript"> | |
| 603 | - var prefix = ctx + "system/line" | |
| 604 | - $("#form-line-add").validate({ | |
| 605 | - rules:{ | |
| 606 | - isWarrantStartTime:{ | |
| 607 | - required:function (){ | |
| 608 | - return $('#isWarrant').val()==='1'; | |
| 609 | - }, | |
| 610 | - }, | |
| 611 | - isWarrantEndTime:{ | |
| 612 | - required:function (){ | |
| 613 | - return $('#isWarrant').val()==='1'; | |
| 614 | - }, | |
| 615 | - }, | |
| 616 | - }, | |
| 617 | - messages: { | |
| 618 | - isWarrantStartTime: { | |
| 619 | - required: "请选择日期", | |
| 620 | - }, | |
| 621 | - isWarrantEndTime: { | |
| 622 | - required: "请选择日期", | |
| 623 | - } | |
| 624 | - },focusCleanup: true | |
| 625 | - }); | |
| 626 | - | |
| 627 | - function submitHandler() { | |
| 628 | - if ($.validate.form()) { | |
| 629 | - $.operate.save(prefix + "/add", $('#form-line-add').serialize()); | |
| 630 | - } | |
| 631 | - } | |
| 632 | - | |
| 633 | - $("input[name='warrantStartTime']").datetimepicker({ | |
| 634 | - format: "yyyy-mm-dd", | |
| 635 | - minView: "month", | |
| 636 | - autoclose: true | |
| 637 | - }); | |
| 638 | - | |
| 639 | - $("input[name='warrantEndTime']").datetimepicker({ | |
| 640 | - format: "yyyy-mm-dd", | |
| 641 | - minView: "month", | |
| 642 | - autoclose: true | |
| 643 | - }); | |
| 644 | - | |
| 645 | - $("input[name='planCancelTime']").datetimepicker({ | |
| 646 | - format: "yyyy-mm-dd", | |
| 647 | - minView: "month", | |
| 648 | - autoclose: true | |
| 649 | - }); | |
| 650 | - | |
| 651 | - $("input[name='cancelTime']").datetimepicker({ | |
| 652 | - format: "yyyy-mm-dd", | |
| 653 | - minView: "month", | |
| 654 | - autoclose: true | |
| 655 | - }); | |
| 656 | - | |
| 657 | - $("input[name='updateTime']").datetimepicker({ | |
| 658 | - format: "yyyy-mm-dd", | |
| 659 | - minView: "month", | |
| 660 | - autoclose: true | |
| 661 | - }); | |
| 662 | - | |
| 663 | - $("input[name='timeSchedule']").datetimepicker({ | |
| 664 | - format: "yyyy-mm-dd", | |
| 665 | - minView: "month", | |
| 666 | - autoclose: true | |
| 667 | - }); | |
| 668 | - | |
| 669 | - $("input[name='metroTime']").datetimepicker({ | |
| 670 | - format: "yyyy-mm-dd", | |
| 671 | - minView: "month", | |
| 672 | - autoclose: true | |
| 673 | - }); | |
| 674 | - | |
| 675 | - $("input[name='startDate']").datetimepicker({ | |
| 676 | - format: "yyyy-mm-dd", | |
| 677 | - minView: "month", | |
| 678 | - autoclose: true | |
| 679 | - }); | |
| 680 | - | |
| 681 | - $("input[name='isWarrantStartTime']").datetimepicker({ | |
| 682 | - format: "yyyy-mm-dd", | |
| 683 | - minView: "month", | |
| 684 | - autoclose: true | |
| 685 | - }); | |
| 686 | - $("input[name='isWarrantEndTime']").datetimepicker({ | |
| 687 | - format: "yyyy-mm-dd", | |
| 688 | - minView: "month", | |
| 689 | - autoclose: true | |
| 690 | - }); | |
| 691 | - | |
| 692 | - </script> | |
| 693 | -</body> | |
| 694 | -</html> | |
| 695 | 0 | \ No newline at end of file |
bsthLineProfiles/src/main/resources/templates/system/line/map.html deleted
100644 → 0
| 1 | -<!DOCTYPE html> | |
| 2 | -<html lang="zh" xmlns:th="http://www.thymeleaf.org" | |
| 3 | - xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> | |
| 4 | -<head> | |
| 5 | - | |
| 6 | -<th:block th:include="include :: header('地图查询')" /> | |
| 7 | - | |
| 8 | -<style> | |
| 9 | -body, html, #container { | |
| 10 | - overflow: hidden; | |
| 11 | - width: 100%; | |
| 12 | - height: 100%; | |
| 13 | - margin: 0; | |
| 14 | - font-family: "微软雅黑"; | |
| 15 | -} | |
| 16 | - | |
| 17 | -.info { | |
| 18 | - z-index: 999; | |
| 19 | - width: auto; | |
| 20 | - min-width: 22rem; | |
| 21 | - padding: .75rem 1.25rem; | |
| 22 | - margin-left: 1.25rem; | |
| 23 | - position: fixed; | |
| 24 | - top: 1rem; | |
| 25 | - background-color: #fff; | |
| 26 | - border-radius: .25rem; | |
| 27 | - font-size: 14px; | |
| 28 | - color: #666; | |
| 29 | - box-shadow: 0 2px 6px 0 rgba(27, 142, 236, 0.5); | |
| 30 | -} | |
| 31 | - | |
| 32 | -.stationInfo { | |
| 33 | - right: 0px; | |
| 34 | - top: 100px; | |
| 35 | - display: none; | |
| 36 | -} | |
| 37 | -</style> | |
| 38 | -<script | |
| 39 | - src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=IGGrr4UjwIYzatoCRFKEL8sT"></script> | |
| 40 | -</head> | |
| 41 | -<body> | |
| 42 | - <div class="info"> | |
| 43 | - <input type="text" class="form-control" id="distance" | |
| 44 | - placeholder="查询范围(单位米)" value="500" /> | |
| 45 | - </div> | |
| 46 | - | |
| 47 | - <!-- <div class="info col-lg-6"> | |
| 48 | - <div class="input-group"> | |
| 49 | - <input type="text" class="form-control" id="text"> | |
| 50 | - <div class="input-group-btn"> | |
| 51 | - <button type="button" class="btn btn-white dropdown-toggle" | |
| 52 | - data-toggle="dropdown"> | |
| 53 | - <span class="caret"></span> | |
| 54 | - </button> | |
| 55 | - <ul class="dropdown-menu dropdown-menu-right" role="menu"> | |
| 56 | - </ul> | |
| 57 | - </div> | |
| 58 | - </div> | |
| 59 | - </div> --> | |
| 60 | - | |
| 61 | - <div class="info stationInfo"> | |
| 62 | - <div id="stationInfo"></div> | |
| 63 | - | |
| 64 | - </div> | |
| 65 | - | |
| 66 | - <div id="container"></div> | |
| 67 | - <th:block th:include="include :: footer" /> | |
| 68 | - <th:block th:include="include :: bootstrap-suggest-js" /> | |
| 69 | - <script> | |
| 70 | - var map = new BMapGL.Map('container'); // 创建Map实例 | |
| 71 | - map.centerAndZoom(new BMapGL.Point(121.528733, 31.237425), 12); // 初始化地图,设置中心点坐标和地图级别 | |
| 72 | - map.enableScrollWheelZoom(true); // 开启鼠标滚轮缩放 | |
| 73 | - | |
| 74 | - map.addEventListener('click', function(e) { | |
| 75 | - if (e.overlay) { | |
| 76 | - return; // 存在覆盖物退出 | |
| 77 | - } | |
| 78 | - map.clearOverlays(); | |
| 79 | - | |
| 80 | - $.get("http://180.167.126.126:18991/prod-api/service/interfact/getStation?lng=" | |
| 81 | - + e.latlng.lng + "&lat=" + e.latlng.lat + "&dis=" | |
| 82 | - + $("#distance").val() / 1000, function(data) { | |
| 83 | - if (data.code == "200") { | |
| 84 | - for ( var i in data.data) { | |
| 85 | - (function(){ | |
| 86 | - var station = data.data[i]; | |
| 87 | - var marker = new BMapGL.Marker(new BMapGL.Point(station.lonBd, station.latBd),{title:station.standardStationCode}); | |
| 88 | - var label = new BMapGL.Label(station.stationName); | |
| 89 | - | |
| 90 | - marker.setLabel(label); | |
| 91 | - | |
| 92 | - | |
| 93 | - marker.station = data.data[i]; | |
| 94 | - | |
| 95 | - var opts = { | |
| 96 | - width: 200, | |
| 97 | - height: 200, | |
| 98 | - title: station.stationName | |
| 99 | - }; | |
| 100 | - | |
| 101 | - var info = ""; | |
| 102 | - info += "<span>站点名称:" + data.data[i].stationName | |
| 103 | - + "</span><br/>"; | |
| 104 | - info += "<span>行业编码:" + data.data[i].standardStationCode | |
| 105 | - + "</span><br/>"; | |
| 106 | - info += "<span>站点编码:" + data.data[i].stationCode | |
| 107 | - + "</span><br/>"; | |
| 108 | - info += "<span>经过线路:" + data.data[i].lineList | |
| 109 | - + "</span><br/>"; | |
| 110 | - info += "<span>道路名称:" + data.data[i].roadName | |
| 111 | - + "</span><br/>"; | |
| 112 | - | |
| 113 | - var infoWindow = new BMapGL.InfoWindow(info, opts); | |
| 114 | - | |
| 115 | - | |
| 116 | - marker.addEventListener('click', function() { | |
| 117 | - map.openInfoWindow(infoWindow, new BMapGL.Point(station.lonBd, station.latBd)); // 开启信息窗口 | |
| 118 | - }); | |
| 119 | - | |
| 120 | - | |
| 121 | - map.addOverlay(marker); | |
| 122 | - })(); | |
| 123 | - } | |
| 124 | - } | |
| 125 | - }); | |
| 126 | - | |
| 127 | - }); | |
| 128 | - | |
| 129 | - /* $("#text").bsSuggest({ | |
| 130 | - url : "/system/line/getListForMap", | |
| 131 | - effectiveFields : [ "lineName" ], | |
| 132 | - searchFields : [ "lineName", "halfwayStation" ], | |
| 133 | - effectiveFieldsAlias : { | |
| 134 | - lineName : "线路名" | |
| 135 | - }, | |
| 136 | - clearable : true, | |
| 137 | - idField : "id", | |
| 138 | - keyField : "lineName", | |
| 139 | - processData : function(json) { // url 获取数据时,对数据的处理,作为 getData 的回调函数 | |
| 140 | - var data = { | |
| 141 | - 'value' : [] | |
| 142 | - }; | |
| 143 | - | |
| 144 | - for ( var i in json) { | |
| 145 | - data.value.push(json[i]); | |
| 146 | - } | |
| 147 | - | |
| 148 | - //字符串转化为 js 对象 | |
| 149 | - return data; | |
| 150 | - } | |
| 151 | - }).on('onDataRequestSuccess', function(e, result) { | |
| 152 | - console.log('onDataRequestSuccess: ', result); | |
| 153 | - }).on('onSetSelectValue', function(e, selectedData, selectedRawData) { | |
| 154 | - | |
| 155 | - busline.getBusList(e.target.value); | |
| 156 | - | |
| 157 | - }).on('onUnsetSelectValue', function() { | |
| 158 | - console.log('onUnsetSelectValue'); | |
| 159 | - }).on('onShowDropdown', function(e, data) { | |
| 160 | - console.log('onShowDropdown', e.target.value, data); | |
| 161 | - }).on('onHideDropdown', function(e, data) { | |
| 162 | - console.log('onHideDropdown', e.target.value, data); | |
| 163 | - }); | |
| 164 | - | |
| 165 | - | |
| 166 | - var busline = new BMapGL.BusLineSearch(map, { | |
| 167 | - renderOptions : { | |
| 168 | - map : map, | |
| 169 | - panel : "r-result" | |
| 170 | - }, | |
| 171 | - onGetBusListComplete : function(result) { | |
| 172 | - if (result) { | |
| 173 | - | |
| 174 | - for(var i in result._listItems){ | |
| 175 | - if(result._listItems[i].name.indexOf($("#text").val()) > -1){ | |
| 176 | - var fstLine = result.getBusListItem(i);//获取第一个公交列表显示到map上 | |
| 177 | - busline.getBusLine(fstLine); | |
| 178 | - return; | |
| 179 | - } | |
| 180 | - } | |
| 181 | - | |
| 182 | - }else{ | |
| 183 | - return; | |
| 184 | - } | |
| 185 | - }, | |
| 186 | - onMarkersSet:function(array){ | |
| 187 | - | |
| 188 | - for(var i in array){ | |
| 189 | - | |
| 190 | - const overlay = array[i]; | |
| 191 | - | |
| 192 | - | |
| 193 | - } | |
| 194 | - | |
| 195 | - } | |
| 196 | - }); */ | |
| 197 | - </script> | |
| 198 | - | |
| 199 | - | |
| 200 | - | |
| 201 | -</body> | |
| 202 | -</html> | |
| 203 | 0 | \ No newline at end of file |
bsthLineProfiles/src/main/resources/templates/system/line/edit.html renamed to bsthLineProfiles/src/main/resources/templates/system/lineExamine/detail.html
| ... | ... | @@ -13,35 +13,35 @@ |
| 13 | 13 | <div class="form-group"> |
| 14 | 14 | <label class="col-sm-3 control-label">线路名称:</label> |
| 15 | 15 | <div class="col-sm-8"> |
| 16 | - <input name="lineName" th:field="*{lineName}" class="form-control" | |
| 16 | + <input name="lineName" th:field="*{lineName}" class="form-control" disabled | |
| 17 | 17 | type="text"> |
| 18 | 18 | </div> |
| 19 | 19 | </div> |
| 20 | 20 | <div class="form-group"> |
| 21 | 21 | <label class="col-sm-3 control-label">公司:</label> |
| 22 | 22 | <div class="col-sm-8"> |
| 23 | - <input name="company" th:field="*{company}" class="form-control" | |
| 23 | + <input name="company" th:field="*{company}" class="form-control" disabled | |
| 24 | 24 | type="text"> |
| 25 | 25 | </div> |
| 26 | 26 | </div> |
| 27 | 27 | <div class="form-group"> |
| 28 | 28 | <label class="col-sm-3 control-label">分公司:</label> |
| 29 | 29 | <div class="col-sm-8"> |
| 30 | - <input name="fCompany" th:field="*{fCompany}" class="form-control" | |
| 30 | + <input name="fCompany" th:field="*{fCompany}" class="form-control" disabled | |
| 31 | 31 | type="text"> |
| 32 | 32 | </div> |
| 33 | 33 | </div> |
| 34 | 34 | <div class="form-group"> |
| 35 | 35 | <label class="col-sm-3 control-label">主线路id:</label> |
| 36 | 36 | <div class="col-sm-8"> |
| 37 | - <input name="pLineId" th:field="*{pLineId}" class="form-control" | |
| 37 | + <input name="pLineId" th:field="*{pLineId}" class="form-control" disabled | |
| 38 | 38 | type="text"> |
| 39 | 39 | </div> |
| 40 | 40 | </div> |
| 41 | 41 | <div class="form-group"> |
| 42 | 42 | <label class="col-sm-3 control-label">营运方式:</label> |
| 43 | 43 | <div class="col-sm-8"> |
| 44 | - <select name="serviceType" | |
| 44 | + <select name="serviceType" disabled | |
| 45 | 45 | th:with="type=${@dict.getType('serviceType')}" |
| 46 | 46 | class="form-control m-b"> |
| 47 | 47 | <option value=""></option> |
| ... | ... | @@ -54,7 +54,7 @@ |
| 54 | 54 | <div class="form-group"> |
| 55 | 55 | <label class="col-sm-3 control-label">线路属性:</label> |
| 56 | 56 | <div class="col-sm-8"> |
| 57 | - <select name="lineLevel" | |
| 57 | + <select name="lineLevel" disabled | |
| 58 | 58 | th:with="type=${@dict.getType('lineLevel')}" |
| 59 | 59 | class="form-control m-b"> |
| 60 | 60 | <option value=""></option> |
| ... | ... | @@ -67,7 +67,7 @@ |
| 67 | 67 | <div class="form-group"> |
| 68 | 68 | <label class="col-sm-3 control-label">线路类型:</label> |
| 69 | 69 | <div class="col-sm-8"> |
| 70 | - <select name="lineType" th:with="type=${@dict.getType('lineType')}" | |
| 70 | + <select name="lineType" disabled th:with="type=${@dict.getType('lineType')}" | |
| 71 | 71 | class="form-control m-b"> |
| 72 | 72 | <option value=""></option> |
| 73 | 73 | <option th:each="dict : ${type}" th:text="${dict.dictLabel}" |
| ... | ... | @@ -80,7 +80,7 @@ |
| 80 | 80 | <label class="col-sm-3 control-label">区属:</label> |
| 81 | 81 | <div class="col-sm-8"> |
| 82 | 82 | |
| 83 | - <select name="district" th:with="type=${@dict.getType('district')}" | |
| 83 | + <select name="district" th:with="type=${@dict.getType('district')}" disabled | |
| 84 | 84 | class="form-control m-b"> |
| 85 | 85 | <option value=""></option> |
| 86 | 86 | <option th:each="dict : ${type}" th:text="${dict.dictLabel}" |
| ... | ... | @@ -92,7 +92,7 @@ |
| 92 | 92 | <div class="form-group"> |
| 93 | 93 | <label class="col-sm-3 control-label">是否区内:</label> |
| 94 | 94 | <div class="col-sm-8"> |
| 95 | - <select name="inoutDistrict" | |
| 95 | + <select name="inoutDistrict" disabled | |
| 96 | 96 | th:with="type=${@dict.getType('trueFalse')}" |
| 97 | 97 | class="form-control m-b"> |
| 98 | 98 | <option value=""></option> |
| ... | ... | @@ -106,7 +106,7 @@ |
| 106 | 106 | <label class="col-sm-3 control-label">营运状态:</label> |
| 107 | 107 | <div class="col-sm-8"> |
| 108 | 108 | |
| 109 | - <select name="serviceState" | |
| 109 | + <select name="serviceState" disabled | |
| 110 | 110 | th:with="type=${@dict.getType('serviceState')}" |
| 111 | 111 | class="form-control m-b"> |
| 112 | 112 | <option value=""></option> |
| ... | ... | @@ -120,7 +120,7 @@ |
| 120 | 120 | <label class="col-sm-3 control-label">车辆类型:</label> |
| 121 | 121 | <div class="col-sm-8" th:with="type=${@dict.getType('busType')}"> |
| 122 | 122 | <label class="checkbox-inline" th:each="dict : ${type}" |
| 123 | - style="display: block"> <input type="checkbox" | |
| 123 | + style="display: block"> <input type="checkbox" disabled | |
| 124 | 124 | name="busType" |
| 125 | 125 | th:checked="${#arrays.contains(#strings.arraySplit(bsthTLine.busType == null ? '' : bsthTLine.busType ,','),#strings.toString(dict.dictValue))}" |
| 126 | 126 | th:text="${dict.dictLabel}" th:value="${dict.dictValue}" /></label> |
| ... | ... | @@ -130,7 +130,7 @@ |
| 130 | 130 | <label class="col-sm-3 control-label">是否空调:</label> |
| 131 | 131 | <div class="col-sm-8"> |
| 132 | 132 | |
| 133 | - <select name="airConditionerType" | |
| 133 | + <select name="airConditionerType" disabled | |
| 134 | 134 | th:with="type=${@dict.getType('airConditionerType')}" |
| 135 | 135 | class="form-control m-b"> |
| 136 | 136 | <option value=""></option> |
| ... | ... | @@ -143,7 +143,7 @@ |
| 143 | 143 | <div class="form-group"> |
| 144 | 144 | <label class="col-sm-3 control-label">售票类型:</label> |
| 145 | 145 | <div class="col-sm-8"> |
| 146 | - <select name="sellTicketType" | |
| 146 | + <select name="sellTicketType" disabled | |
| 147 | 147 | th:with="type=${@dict.getType('sellTicketType')}" |
| 148 | 148 | class="form-control m-b"> |
| 149 | 149 | <option value=""></option> |
| ... | ... | @@ -156,7 +156,7 @@ |
| 156 | 156 | <div class="form-group"> |
| 157 | 157 | <label class="col-sm-3 control-label">运营时间:</label> |
| 158 | 158 | <div class="col-sm-8"> |
| 159 | - <select name="serviceTime" | |
| 159 | + <select name="serviceTime" disabled | |
| 160 | 160 | th:with="type=${@dict.getType('serviceTime')}" |
| 161 | 161 | class="form-control m-b"> |
| 162 | 162 | <option value=""></option> |
| ... | ... | @@ -169,21 +169,21 @@ |
| 169 | 169 | <div class="form-group"> |
| 170 | 170 | <label class="col-sm-3 control-label">线路长度:</label> |
| 171 | 171 | <div class="col-sm-8"> |
| 172 | - <input name="lineDistance" th:field="*{lineDistance}" | |
| 172 | + <input name="lineDistance" th:field="*{lineDistance}" disabled | |
| 173 | 173 | class="form-control" type="text"> |
| 174 | 174 | </div> |
| 175 | 175 | </div> |
| 176 | 176 | <div class="form-group"> |
| 177 | 177 | <label class="col-sm-3 control-label">线路编码:</label> |
| 178 | 178 | <div class="col-sm-8"> |
| 179 | - <input name="lineCode" th:field="*{lineCode}" class="form-control" | |
| 179 | + <input name="lineCode" th:field="*{lineCode}" class="form-control" disabled | |
| 180 | 180 | type="text"> |
| 181 | 181 | </div> |
| 182 | 182 | </div> |
| 183 | 183 | <div class="form-group"> |
| 184 | 184 | <label class="col-sm-3 control-label">授权年限:</label> |
| 185 | 185 | <div class="col-sm-8"> |
| 186 | - <input name="warrantYear" th:field="*{warrantYear}" | |
| 186 | + <input name="warrantYear" th:field="*{warrantYear}" disabled | |
| 187 | 187 | class="form-control" type="text"> |
| 188 | 188 | </div> |
| 189 | 189 | </div> |
| ... | ... | @@ -192,7 +192,7 @@ |
| 192 | 192 | <div class="col-sm-8"> |
| 193 | 193 | <div class="input-group date"> |
| 194 | 194 | <input name="warrantStartTime" |
| 195 | - th:value="${#dates.format(bsthTLine.warrantStartTime, 'yyyy-MM-dd')}" | |
| 195 | + th:value="${#dates.format(bsthTLine.warrantStartTime, 'yyyy-MM-dd')}" disabled | |
| 196 | 196 | class="form-control" placeholder="yyyy-MM-dd" type="text" |
| 197 | 197 | autocomplete="off"> <span class="input-group-addon"><i |
| 198 | 198 | class="fa fa-calendar"></i></span> |
| ... | ... | @@ -204,7 +204,7 @@ |
| 204 | 204 | <div class="col-sm-8"> |
| 205 | 205 | <div class="input-group date"> |
| 206 | 206 | <input name="warrantEndTime" |
| 207 | - th:value="${#dates.format(bsthTLine.warrantEndTime, 'yyyy-MM-dd')}" | |
| 207 | + th:value="${#dates.format(bsthTLine.warrantEndTime, 'yyyy-MM-dd')}" disabled | |
| 208 | 208 | class="form-control" placeholder="yyyy-MM-dd" type="text" |
| 209 | 209 | autocomplete="off"> <span class="input-group-addon"><i |
| 210 | 210 | class="fa fa-calendar"></i></span> |
| ... | ... | @@ -216,7 +216,7 @@ |
| 216 | 216 | <div class="col-sm-8"> |
| 217 | 217 | <div class="input-group date"> |
| 218 | 218 | <input name="planCancelTime" |
| 219 | - th:value="${#dates.format(bsthTLine.planCancelTime, 'yyyy-MM-dd')}" | |
| 219 | + th:value="${#dates.format(bsthTLine.planCancelTime, 'yyyy-MM-dd')}" disabled | |
| 220 | 220 | class="form-control" placeholder="yyyy-MM-dd" type="text" |
| 221 | 221 | autocomplete="off"> <span class="input-group-addon"><i |
| 222 | 222 | class="fa fa-calendar"></i></span> |
| ... | ... | @@ -228,7 +228,7 @@ |
| 228 | 228 | <div class="col-sm-8"> |
| 229 | 229 | <div class="input-group date"> |
| 230 | 230 | <input name="cancelTime" |
| 231 | - th:value="${#dates.format(bsthTLine.cancelTime, 'yyyy-MM-dd')}" | |
| 231 | + th:value="${#dates.format(bsthTLine.cancelTime, 'yyyy-MM-dd')}" disabled | |
| 232 | 232 | class="form-control" placeholder="yyyy-MM-dd" type="text" |
| 233 | 233 | autocomplete="off"> <span class="input-group-addon"><i |
| 234 | 234 | class="fa fa-calendar"></i></span> |
| ... | ... | @@ -238,20 +238,20 @@ |
| 238 | 238 | <div class="form-group"> |
| 239 | 239 | <label class="col-sm-3 control-label">撤销原因:</label> |
| 240 | 240 | <div class="col-sm-8"> |
| 241 | - <textarea name="cancelReason" class="form-control">[[*{cancelReason}]]</textarea> | |
| 241 | + <textarea name="cancelReason" class="form-control" disabled>[[*{cancelReason}]]</textarea> | |
| 242 | 242 | </div> |
| 243 | 243 | </div> |
| 244 | 244 | <div class="form-group"> |
| 245 | 245 | <label class="col-sm-3 control-label">备注:</label> |
| 246 | 246 | <div class="col-sm-8"> |
| 247 | - <textarea name="remark" class="form-control">[[*{remark}]]</textarea> | |
| 247 | + <textarea name="remark" class="form-control" disabled>[[*{remark}]]</textarea> | |
| 248 | 248 | </div> |
| 249 | 249 | </div> |
| 250 | 250 | <div class="form-group"> |
| 251 | 251 | <label class="col-sm-3 control-label">是否逻辑删除:</label> |
| 252 | 252 | <div class="col-sm-8"> |
| 253 | 253 | |
| 254 | - <select name="isLogicDelete" | |
| 254 | + <select name="isLogicDelete" disabled | |
| 255 | 255 | th:with="type=${@dict.getType('trueFalse')}" |
| 256 | 256 | class="form-control m-b"> |
| 257 | 257 | <option value=""></option> |
| ... | ... | @@ -265,7 +265,7 @@ |
| 265 | 265 | <label class="col-sm-3 control-label">行车作业计划表报备时间:</label> |
| 266 | 266 | <div class="col-sm-8"> |
| 267 | 267 | <div class="input-group date"> |
| 268 | - <input name="timeSchedule" | |
| 268 | + <input name="timeSchedule" disabled | |
| 269 | 269 | th:value="${#dates.format(bsthTLine.timeSchedule, 'yyyy-MM-dd')}" |
| 270 | 270 | class="form-control" placeholder="yyyy-MM-dd" type="text" |
| 271 | 271 | autocomplete="off"> <span class="input-group-addon"><i |
| ... | ... | @@ -276,14 +276,14 @@ |
| 276 | 276 | <div class="form-group"> |
| 277 | 277 | <label class="col-sm-3 control-label">停车场:</label> |
| 278 | 278 | <div class="col-sm-8"> |
| 279 | - <input name="park" th:field="*{park}" class="form-control" | |
| 279 | + <input name="park" th:field="*{park}" class="form-control" disabled | |
| 280 | 280 | type="text"> |
| 281 | 281 | </div> |
| 282 | 282 | </div> |
| 283 | 283 | <div class="form-group"> |
| 284 | 284 | <label class="col-sm-3 control-label">是否权证:</label> |
| 285 | 285 | <div class="col-sm-8"> |
| 286 | - <select name="isWarrant" id="isWarrant" | |
| 286 | + <select name="isWarrant" id="isWarrant" disabled | |
| 287 | 287 | th:with="type=${@dict.getType('trueFalse')}" |
| 288 | 288 | class="form-control m-b"> |
| 289 | 289 | <option th:each="dict : ${type}" th:text="${dict.dictLabel}" |
| ... | ... | @@ -296,7 +296,7 @@ |
| 296 | 296 | <label class="col-sm-3 control-label">权证开通日期:</label> |
| 297 | 297 | <div class="col-sm-8"> |
| 298 | 298 | <div class="input-group date"> |
| 299 | - <input name="isWarrantStartTime" id="isWarrantStartTime" | |
| 299 | + <input name="isWarrantStartTime" id="isWarrantStartTime" disabled | |
| 300 | 300 | th:value="${#dates.format(bsthTLine.isWarrantStartTime, 'yyyy-MM-dd')}" |
| 301 | 301 | class="form-control" placeholder="yyyy-MM-dd" type="text" |
| 302 | 302 | autocomplete="off"> <span class="input-group-addon"><i |
| ... | ... | @@ -309,7 +309,7 @@ |
| 309 | 309 | <label class="col-sm-3 control-label">权证到期日期:</label> |
| 310 | 310 | <div class="col-sm-8"> |
| 311 | 311 | <div class="input-group date"> |
| 312 | - <input name="isWarrantEndTime" id="isWarrantEndTime" | |
| 312 | + <input name="isWarrantEndTime" id="isWarrantEndTime" disabled | |
| 313 | 313 | th:value="${#dates.format(bsthTLine.isWarrantEndTime, 'yyyy-MM-dd')}" |
| 314 | 314 | class="form-control" placeholder="yyyy-MM-dd" type="text" |
| 315 | 315 | autocomplete="off"> <span class="input-group-addon"><i |
| ... | ... | @@ -324,7 +324,7 @@ |
| 324 | 324 | <div class="col-sm-8" th:with="type=${@dict.getType('roadType')}"> |
| 325 | 325 | <label class="checkbox-inline" th:each="dict : ${type}" |
| 326 | 326 | style="display: block"> <input type="checkbox" |
| 327 | - name="roadType" | |
| 327 | + name="roadType" disabled | |
| 328 | 328 | th:checked="${#arrays.contains(#strings.arraySplit(bsthTLine.roadType == null ? '' : bsthTLine.roadType ,','),#strings.toString(dict.dictValue))}" |
| 329 | 329 | th:text="${dict.dictLabel}" th:value="${dict.dictValue}" /></label> |
| 330 | 330 | </div> |
| ... | ... | @@ -333,105 +333,105 @@ |
| 333 | 333 | <div class="form-group"> |
| 334 | 334 | <label class="col-sm-3 control-label">票价(多级票价用 - 隔开):</label> |
| 335 | 335 | <div class="col-sm-8"> |
| 336 | - <input name="ticketPrice" th:field="*{ticketPrice}" | |
| 336 | + <input name="ticketPrice" th:field="*{ticketPrice}" disabled | |
| 337 | 337 | class="form-control" type="text"> |
| 338 | 338 | </div> |
| 339 | 339 | </div> |
| 340 | 340 | <div class="form-group"> |
| 341 | 341 | <label class="col-sm-3 control-label">首站:</label> |
| 342 | 342 | <div class="col-sm-8"> |
| 343 | - <input name="firstStation" th:field="*{firstStation}" | |
| 343 | + <input name="firstStation" th:field="*{firstStation}" disabled | |
| 344 | 344 | class="form-control" type="text"> |
| 345 | 345 | </div> |
| 346 | 346 | </div> |
| 347 | 347 | <div class="form-group"> |
| 348 | 348 | <label class="col-sm-3 control-label">起讫站:</label> |
| 349 | 349 | <div class="col-sm-8"> |
| 350 | - <input name="startEnd" th:field="*{startEnd}" class="form-control" | |
| 350 | + <input name="startEnd" th:field="*{startEnd}" class="form-control" disabled | |
| 351 | 351 | type="text"> |
| 352 | 352 | </div> |
| 353 | 353 | </div> |
| 354 | 354 | <div class="form-group"> |
| 355 | 355 | <label class="col-sm-3 control-label">首战时间:</label> |
| 356 | 356 | <div class="col-sm-8"> |
| 357 | - <input name="firstTime" th:field="*{firstTime}" | |
| 357 | + <input name="firstTime" th:field="*{firstTime}" disabled | |
| 358 | 358 | class="form-control" type="text"> |
| 359 | 359 | </div> |
| 360 | 360 | </div> |
| 361 | 361 | <div class="form-group"> |
| 362 | 362 | <label class="col-sm-3 control-label">末站:</label> |
| 363 | 363 | <div class="col-sm-8"> |
| 364 | - <input name="lastStation" th:field="*{lastStation}" | |
| 364 | + <input name="lastStation" th:field="*{lastStation}" disabled | |
| 365 | 365 | class="form-control" type="text"> |
| 366 | 366 | </div> |
| 367 | 367 | </div> |
| 368 | 368 | <div class="form-group"> |
| 369 | 369 | <label class="col-sm-3 control-label">末站首战时间:</label> |
| 370 | 370 | <div class="col-sm-8"> |
| 371 | - <input name="lastTime" th:field="*{lastTime}" class="form-control" | |
| 371 | + <input name="lastTime" th:field="*{lastTime}" class="form-control" disabled | |
| 372 | 372 | type="text"> |
| 373 | 373 | </div> |
| 374 | 374 | </div> |
| 375 | 375 | <div class="form-group"> |
| 376 | 376 | <label class="col-sm-3 control-label">上行里程数:</label> |
| 377 | 377 | <div class="col-sm-8"> |
| 378 | - <input name="mileageUp" th:field="*{mileageUp}" | |
| 378 | + <input name="mileageUp" th:field="*{mileageUp}" disabled | |
| 379 | 379 | class="form-control" type="text"> |
| 380 | 380 | </div> |
| 381 | 381 | </div> |
| 382 | 382 | <div class="form-group"> |
| 383 | 383 | <label class="col-sm-3 control-label">下行里程数:</label> |
| 384 | 384 | <div class="col-sm-8"> |
| 385 | - <input name="mileageDown" th:field="*{mileageDown}" | |
| 385 | + <input name="mileageDown" th:field="*{mileageDown}" disabled | |
| 386 | 386 | class="form-control" type="text"> |
| 387 | 387 | </div> |
| 388 | 388 | </div> |
| 389 | 389 | <div class="form-group"> |
| 390 | 390 | <label class="col-sm-3 control-label">平均里程数:</label> |
| 391 | 391 | <div class="col-sm-8"> |
| 392 | - <input name="averageMileage" th:field="*{averageMileage}" | |
| 392 | + <input name="averageMileage" th:field="*{averageMileage}" disabled | |
| 393 | 393 | class="form-control" type="text"> |
| 394 | 394 | </div> |
| 395 | 395 | </div> |
| 396 | 396 | <div class="form-group"> |
| 397 | 397 | <label class="col-sm-3 control-label">站级数(上行):</label> |
| 398 | 398 | <div class="col-sm-8"> |
| 399 | - <input name="stationUp" th:field="*{stationUp}" | |
| 399 | + <input name="stationUp" th:field="*{stationUp}" disabled | |
| 400 | 400 | class="form-control" type="text"> |
| 401 | 401 | </div> |
| 402 | 402 | </div> |
| 403 | 403 | <div class="form-group"> |
| 404 | 404 | <label class="col-sm-3 control-label">站级数(下行):</label> |
| 405 | 405 | <div class="col-sm-8"> |
| 406 | - <input name="stationDown" th:field="*{stationDown}" | |
| 406 | + <input name="stationDown" th:field="*{stationDown}" disabled | |
| 407 | 407 | class="form-control" type="text"> |
| 408 | 408 | </div> |
| 409 | 409 | </div> |
| 410 | 410 | <div class="form-group"> |
| 411 | 411 | <label class="col-sm-3 control-label">行驶时间(上行):</label> |
| 412 | 412 | <div class="col-sm-8"> |
| 413 | - <input name="travelTimeUp" th:field="*{travelTimeUp}" | |
| 413 | + <input name="travelTimeUp" th:field="*{travelTimeUp}" disabled | |
| 414 | 414 | class="form-control" type="text"> |
| 415 | 415 | </div> |
| 416 | 416 | </div> |
| 417 | 417 | <div class="form-group"> |
| 418 | 418 | <label class="col-sm-3 control-label">行驶时间(下行):</label> |
| 419 | 419 | <div class="col-sm-8"> |
| 420 | - <input name="travelTimeDown" th:field="*{travelTimeDown}" | |
| 420 | + <input name="travelTimeDown" th:field="*{travelTimeDown}" disabled | |
| 421 | 421 | class="form-control" type="text"> |
| 422 | 422 | </div> |
| 423 | 423 | </div> |
| 424 | 424 | <div class="form-group"> |
| 425 | 425 | <label class="col-sm-3 control-label">行驶间隔(高峰):</label> |
| 426 | 426 | <div class="col-sm-8"> |
| 427 | - <input name="travelIntervalUp" th:field="*{travelIntervalUp}" | |
| 427 | + <input name="travelIntervalUp" th:field="*{travelIntervalUp}" disabled | |
| 428 | 428 | class="form-control" type="text"> |
| 429 | 429 | </div> |
| 430 | 430 | </div> |
| 431 | 431 | <div class="form-group"> |
| 432 | 432 | <label class="col-sm-3 control-label">行驶间隔(低谷):</label> |
| 433 | 433 | <div class="col-sm-8"> |
| 434 | - <input name="travelIntervalDown" th:field="*{travelIntervalDown}" | |
| 434 | + <input name="travelIntervalDown" th:field="*{travelIntervalDown}" disabled | |
| 435 | 435 | class="form-control" type="text"> |
| 436 | 436 | </div> |
| 437 | 437 | </div> |
| ... | ... | @@ -439,7 +439,7 @@ |
| 439 | 439 | <label class="col-sm-3 control-label">经营权证(大巴):</label> |
| 440 | 440 | <div class="col-sm-8"> |
| 441 | 441 | <input name="warrantVehiclesLarge" |
| 442 | - th:field="*{warrantVehiclesLarge}" class="form-control" | |
| 442 | + th:field="*{warrantVehiclesLarge}" class="form-control" disabled | |
| 443 | 443 | type="text"> |
| 444 | 444 | </div> |
| 445 | 445 | </div> |
| ... | ... | @@ -447,21 +447,21 @@ |
| 447 | 447 | <label class="col-sm-3 control-label">经营权证(中巴):</label> |
| 448 | 448 | <div class="col-sm-8"> |
| 449 | 449 | <input name="warrantVehiclesMiddle" |
| 450 | - th:field="*{warrantVehiclesMiddle}" class="form-control" | |
| 450 | + th:field="*{warrantVehiclesMiddle}" class="form-control" disabled | |
| 451 | 451 | type="text"> |
| 452 | 452 | </div> |
| 453 | 453 | </div> |
| 454 | 454 | <div class="form-group"> |
| 455 | 455 | <label class="col-sm-3 control-label">实际配车数:</label> |
| 456 | 456 | <div class="col-sm-8"> |
| 457 | - <input name="vehiclesNumber" th:field="*{vehiclesNumber}" | |
| 457 | + <input name="vehiclesNumber" th:field="*{vehiclesNumber}" disabled | |
| 458 | 458 | class="form-control" type="text"> |
| 459 | 459 | </div> |
| 460 | 460 | </div> |
| 461 | 461 | <div class="form-group"> |
| 462 | 462 | <label class="col-sm-3 control-label">实际车辆数(大巴):</label> |
| 463 | 463 | <div class="col-sm-8"> |
| 464 | - <input name="numberVehiclesLarge" th:field="*{numberVehiclesLarge}" | |
| 464 | + <input name="numberVehiclesLarge" th:field="*{numberVehiclesLarge}" disabled | |
| 465 | 465 | class="form-control" type="text"> |
| 466 | 466 | </div> |
| 467 | 467 | </div> |
| ... | ... | @@ -469,82 +469,82 @@ |
| 469 | 469 | <label class="col-sm-3 control-label">实际车辆数(中巴):</label> |
| 470 | 470 | <div class="col-sm-8"> |
| 471 | 471 | <input name="numberVehiclesMiddle" |
| 472 | - th:field="*{numberVehiclesMiddle}" class="form-control" | |
| 472 | + th:field="*{numberVehiclesMiddle}" class="form-control" disabled | |
| 473 | 473 | type="text"> |
| 474 | 474 | </div> |
| 475 | 475 | </div> |
| 476 | 476 | <div class="form-group"> |
| 477 | 477 | <label class="col-sm-3 control-label">车辆自编号:</label> |
| 478 | 478 | <div class="col-sm-8"> |
| 479 | - <input name="carPlate" th:field="*{carPlate}" class="form-control" | |
| 479 | + <input name="carPlate" th:field="*{carPlate}" class="form-control" disabled | |
| 480 | 480 | type="text"> |
| 481 | 481 | </div> |
| 482 | 482 | </div> |
| 483 | 483 | <div class="form-group"> |
| 484 | 484 | <label class="col-sm-3 control-label">线路总配人数:</label> |
| 485 | 485 | <div class="col-sm-8"> |
| 486 | - <input name="numberPerson" th:field="*{numberPerson}" | |
| 486 | + <input name="numberPerson" th:field="*{numberPerson}" disabled | |
| 487 | 487 | class="form-control" type="text"> |
| 488 | 488 | </div> |
| 489 | 489 | </div> |
| 490 | 490 | <div class="form-group"> |
| 491 | 491 | <label class="col-sm-3 control-label">人数司机:</label> |
| 492 | 492 | <div class="col-sm-8"> |
| 493 | - <input name="numberPersonDriver" th:field="*{numberPersonDriver}" | |
| 493 | + <input name="numberPersonDriver" th:field="*{numberPersonDriver}" disabled | |
| 494 | 494 | class="form-control" type="text"> |
| 495 | 495 | </div> |
| 496 | 496 | </div> |
| 497 | 497 | <div class="form-group"> |
| 498 | 498 | <label class="col-sm-3 control-label">售票员数:</label> |
| 499 | 499 | <div class="col-sm-8"> |
| 500 | - <input name="numberPersonSales" th:field="*{numberPersonSales}" | |
| 500 | + <input name="numberPersonSales" th:field="*{numberPersonSales}" disabled | |
| 501 | 501 | class="form-control" type="text"> |
| 502 | 502 | </div> |
| 503 | 503 | </div> |
| 504 | 504 | <div class="form-group"> |
| 505 | 505 | <label class="col-sm-3 control-label">新能源车数:</label> |
| 506 | 506 | <div class="col-sm-8"> |
| 507 | - <input name="busEvNumber" th:field="*{busEvNumber}" | |
| 507 | + <input name="busEvNumber" th:field="*{busEvNumber}" disabled | |
| 508 | 508 | class="form-control" type="text"> |
| 509 | 509 | </div> |
| 510 | 510 | </div> |
| 511 | 511 | <div class="form-group"> |
| 512 | 512 | <label class="col-sm-3 control-label">线路走向:</label> |
| 513 | 513 | <div class="col-sm-8"> |
| 514 | - <textarea name="directions" class="form-control">[[*{directions}]]</textarea> | |
| 514 | + <textarea name="directions" class="form-control" disabled>[[*{directions}]]</textarea> | |
| 515 | 515 | </div> |
| 516 | 516 | </div> |
| 517 | 517 | <div class="form-group"> |
| 518 | 518 | <label class="col-sm-3 control-label">经营权证数:</label> |
| 519 | 519 | <div class="col-sm-8"> |
| 520 | - <input name="numberOfManage" th:field="*{numberOfManage}" | |
| 520 | + <input name="numberOfManage" th:field="*{numberOfManage}" disabled | |
| 521 | 521 | class="form-control" type="text"> |
| 522 | 522 | </div> |
| 523 | 523 | </div> |
| 524 | 524 | <div class="form-group"> |
| 525 | 525 | <label class="col-sm-3 control-label">站点名称:</label> |
| 526 | 526 | <div class="col-sm-8"> |
| 527 | - <textarea name="halfwayStation" class="form-control">[[*{halfwayStation}]]</textarea> | |
| 527 | + <textarea name="halfwayStation" class="form-control" disabled>[[*{halfwayStation}]]</textarea> | |
| 528 | 528 | </div> |
| 529 | 529 | </div> |
| 530 | 530 | <div class="form-group"> |
| 531 | 531 | <label class="col-sm-3 control-label">高峰系数:</label> |
| 532 | 532 | <div class="col-sm-8"> |
| 533 | - <input name="fullCustomerPercent" th:field="*{fullCustomerPercent}" | |
| 533 | + <input name="fullCustomerPercent" th:field="*{fullCustomerPercent}" disabled | |
| 534 | 534 | class="form-control" type="text"> |
| 535 | 535 | </div> |
| 536 | 536 | </div> |
| 537 | 537 | <div class="form-group"> |
| 538 | 538 | <label class="col-sm-3 control-label">低谷系数:</label> |
| 539 | 539 | <div class="col-sm-8"> |
| 540 | - <input name="lowCustomerPercent" th:field="*{lowCustomerPercent}" | |
| 540 | + <input name="lowCustomerPercent" th:field="*{lowCustomerPercent}" disabled | |
| 541 | 541 | class="form-control" type="text"> |
| 542 | 542 | </div> |
| 543 | 543 | </div> |
| 544 | 544 | <div class="form-group"> |
| 545 | 545 | <label class="col-sm-3 control-label">间隔等级:</label> |
| 546 | 546 | <div class="col-sm-8"> |
| 547 | - <input name="divideLevel" th:field="*{divideLevel}" | |
| 547 | + <input name="divideLevel" th:field="*{divideLevel}" disabled | |
| 548 | 548 | class="form-control" type="text"> |
| 549 | 549 | </div> |
| 550 | 550 | </div> |
| ... | ... | @@ -552,7 +552,7 @@ |
| 552 | 552 | <label class="col-sm-3 control-label">是否挂牌:</label> |
| 553 | 553 | <div class="col-sm-8"> |
| 554 | 554 | <select name="hasTimelists" |
| 555 | - th:with="type=${@dict.getType('trueFalse')}" | |
| 555 | + th:with="type=${@dict.getType('trueFalse')}" disabled | |
| 556 | 556 | class="form-control m-b"> |
| 557 | 557 | <option value=""></option> |
| 558 | 558 | <option th:each="dict : ${type}" th:text="${dict.dictLabel}" |
| ... | ... | @@ -564,7 +564,7 @@ |
| 564 | 564 | <div class="form-group"> |
| 565 | 565 | <label class="col-sm-3 control-label">是否轨交末班车衔接:</label> |
| 566 | 566 | <div class="col-sm-8"> |
| 567 | - <select name="isMetro" th:with="type=${@dict.getType('trueFalse')}" | |
| 567 | + <select name="isMetro" th:with="type=${@dict.getType('trueFalse')}" disabled | |
| 568 | 568 | class="form-control m-b"> |
| 569 | 569 | <option value=""></option> |
| 570 | 570 | <option th:each="dict : ${type}" th:text="${dict.dictLabel}" |
| ... | ... | @@ -577,7 +577,7 @@ |
| 577 | 577 | <label class="col-sm-3 control-label">轨交时间:</label> |
| 578 | 578 | <div class="col-sm-8"> |
| 579 | 579 | <div class="input-group date"> |
| 580 | - <input name="metroTime" class="form-control" | |
| 580 | + <input name="metroTime" class="form-control" disabled | |
| 581 | 581 | placeholder="HH:mm:ss" th:value="*{metroTime}"> <span |
| 582 | 582 | class="input-group-addon"><i class="fa fa-calendar"></i></span> |
| 583 | 583 | </div> |
| ... | ... | @@ -586,63 +586,7 @@ |
| 586 | 586 | <div class="form-group"> |
| 587 | 587 | <label class="col-sm-3 control-label">冷僻线路补贴类型:</label> |
| 588 | 588 | <div class="col-sm-8"> |
| 589 | - <input name="coldBonusType" th:field="*{coldBonusType}" | |
| 590 | - class="form-control" type="text"> | |
| 591 | - </div> | |
| 592 | - </div> | |
| 593 | - <div class="form-group"> | |
| 594 | - <label class="col-sm-3 control-label">月度营收:</label> | |
| 595 | - <div class="col-sm-8"> | |
| 596 | - <input name="revenuesMonth" th:field="*{revenuesMonth}" | |
| 597 | - class="form-control" type="text"> | |
| 598 | - </div> | |
| 599 | - </div> | |
| 600 | - <div class="form-group"> | |
| 601 | - <label class="col-sm-3 control-label">月度人次:</label> | |
| 602 | - <div class="col-sm-8"> | |
| 603 | - <input name="personMonth" th:field="*{personMonth}" | |
| 604 | - class="form-control" type="text"> | |
| 605 | - </div> | |
| 606 | - </div> | |
| 607 | - <div class="form-group"> | |
| 608 | - <label class="col-sm-3 control-label">月度里程:</label> | |
| 609 | - <div class="col-sm-8"> | |
| 610 | - <input name="mileageMonth" th:field="*{mileageMonth}" | |
| 611 | - class="form-control" type="text"> | |
| 612 | - </div> | |
| 613 | - </div> | |
| 614 | - <div class="form-group"> | |
| 615 | - <label class="col-sm-3 control-label">百公里人次:</label> | |
| 616 | - <div class="col-sm-8"> | |
| 617 | - <input name="personMonthAvg" th:field="*{personMonthAvg}" | |
| 618 | - class="form-control" type="text"> | |
| 619 | - </div> | |
| 620 | - </div> | |
| 621 | - <div class="form-group"> | |
| 622 | - <label class="col-sm-3 control-label">营收:</label> | |
| 623 | - <div class="col-sm-8"> | |
| 624 | - <input name="revenues" th:field="*{revenues}" class="form-control" | |
| 625 | - type="text"> | |
| 626 | - </div> | |
| 627 | - </div> | |
| 628 | - <div class="form-group"> | |
| 629 | - <label class="col-sm-3 control-label">人次:</label> | |
| 630 | - <div class="col-sm-8"> | |
| 631 | - <input name="persons" th:field="*{persons}" class="form-control" | |
| 632 | - type="text"> | |
| 633 | - </div> | |
| 634 | - </div> | |
| 635 | - <div class="form-group"> | |
| 636 | - <label class="col-sm-3 control-label">里程:</label> | |
| 637 | - <div class="col-sm-8"> | |
| 638 | - <input name="mileages" th:field="*{mileages}" class="form-control" | |
| 639 | - type="text"> | |
| 640 | - </div> | |
| 641 | - </div> | |
| 642 | - <div class="form-group"> | |
| 643 | - <label class="col-sm-3 control-label">百公里人次:</label> | |
| 644 | - <div class="col-sm-8"> | |
| 645 | - <input name="personAvg" th:field="*{personAvg}" | |
| 589 | + <input name="coldBonusType" th:field="*{coldBonusType}" disabled | |
| 646 | 590 | class="form-control" type="text"> |
| 647 | 591 | </div> |
| 648 | 592 | </div> |
| ... | ... | @@ -652,7 +596,7 @@ |
| 652 | 596 | <div class="col-sm-8"> |
| 653 | 597 | <div class="input-group date"> |
| 654 | 598 | <input name="startDate" |
| 655 | - th:value="${#dates.format(bsthTLine.startDate, 'yyyy-MM-dd')}" | |
| 599 | + th:value="${#dates.format(bsthTLine.startDate, 'yyyy-MM-dd')}" disabled | |
| 656 | 600 | class="form-control" placeholder="yyyy-MM-dd" type="text" |
| 657 | 601 | autocomplete="off"> <span class="input-group-addon"><i |
| 658 | 602 | class="fa fa-calendar"></i></span> |
| ... | ... | @@ -664,7 +608,7 @@ |
| 664 | 608 | <label class="col-sm-3 control-label">性质:</label> |
| 665 | 609 | <div class="col-sm-8"> |
| 666 | 610 | <select name="lineUpdateType" |
| 667 | - th:with="type=${@dict.getType('lineUpdateType')}" | |
| 611 | + th:with="type=${@dict.getType('lineUpdateType')}" disabled | |
| 668 | 612 | class="form-control m-b"> |
| 669 | 613 | <option th:each="dict : ${type}" th:text="${dict.dictLabel}" |
| 670 | 614 | th:value="${dict.dictValue}"></option> |
| ... | ... | @@ -674,14 +618,14 @@ |
| 674 | 618 | <div class="form-group"> |
| 675 | 619 | <label class="col-sm-3 control-label">启用原因:</label> |
| 676 | 620 | <div class="col-sm-8"> |
| 677 | - <textarea name="startReason" class="form-control"></textarea> | |
| 621 | + <textarea name="startReason" class="form-control" disabled>[[*{startReason}]]</textarea> | |
| 678 | 622 | </div> |
| 679 | 623 | </div> |
| 680 | 624 | <div class="form-group"> |
| 681 | 625 | <label class="col-sm-3 control-label">附件:</label> |
| 682 | 626 | <div class="col-sm-8"> |
| 683 | - <div th:each="path: ${#strings.arraySplit(bsthTLine.files,',')}"> | |
| 684 | - <input name="files" type="hidden" th:value="${path}"> | |
| 627 | + <div th:each="path: ${#strings.arraySplit(bsthTLine.files,',')}" disabled> | |
| 628 | + <input name="files" type="hidden" th:value="${path}" > | |
| 685 | 629 | <a th:href="${#strings.replace(path,#strings.arraySplit(path,':')[0]+':','')}" th:text="${#strings.arraySplit(path,':')[0]}"> |
| 686 | 630 | </a> |
| 687 | 631 | <button onclick="deleteFile(this);">删除</button> |
| ... | ... | @@ -724,7 +668,7 @@ |
| 724 | 668 | |
| 725 | 669 | }); |
| 726 | 670 | |
| 727 | - $.get("/system/line/getUserLineInfo", | |
| 671 | + /*$.get("/system/line/getUserLineInfo", | |
| 728 | 672 | function(data) { |
| 729 | 673 | if (data.msg != null) { |
| 730 | 674 | var objs = JSON.parse(data.msg); |
| ... | ... | @@ -784,7 +728,7 @@ |
| 784 | 728 | |
| 785 | 729 | } |
| 786 | 730 | } |
| 787 | - }); | |
| 731 | + });*/ | |
| 788 | 732 | }) |
| 789 | 733 | |
| 790 | 734 | function getParent(obj, className) { | ... | ... |
bsthLineProfiles/src/main/resources/templates/system/line/line.html renamed to bsthLineProfiles/src/main/resources/templates/system/lineExamine/line.html
| ... | ... | @@ -11,226 +11,28 @@ |
| 11 | 11 | <form id="formId"> |
| 12 | 12 | <div class="select-list"> |
| 13 | 13 | <ul> |
| 14 | - <li><label>线路名称:</label> <input type="text" name="lineName" /> | |
| 15 | - </li> | |
| 16 | 14 | <li><label>公司:</label> <input type="text" name="company" /> |
| 17 | 15 | </li> |
| 18 | 16 | <li><label>分公司:</label> <input type="text" name="fCompany" /> |
| 19 | 17 | </li> |
| 20 | - <li><label>主线路id:</label> <input type="text" name="pLineId" /> | |
| 21 | - </li> | |
| 22 | - <li><label>营运方式:</label> <select name="serviceType" | |
| 23 | - th:with="type=${@dict.getType('serviceType')}"> | |
| 24 | - <option value=""></option> | |
| 25 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 26 | - th:value="${dict.dictValue}"></option> | |
| 27 | - </select></li> | |
| 28 | - <li><label>线路属性:</label> | |
| 29 | - <select name="lineLevel" | |
| 30 | - th:with="type=${@dict.getType('lineLevel')}"> | |
| 31 | - <option value=""></option> | |
| 32 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 33 | - th:value="${dict.dictValue}"></option> | |
| 34 | - </select> | |
| 35 | - </li> | |
| 36 | - <li><label>线路类型:</label> <select name="lineType" | |
| 37 | - th:with="type=${@dict.getType('lineType')}"> | |
| 38 | - <option value=""></option> | |
| 39 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 40 | - th:value="${dict.dictValue}"></option> | |
| 41 | - </select></li> | |
| 42 | - <li><label>区属:</label> <select name="district" | |
| 43 | - th:with="type=${@dict.getType('district')}"> | |
| 44 | - <option value=""></option> | |
| 45 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 46 | - th:value="${dict.dictValue}"></option> | |
| 47 | - </select></li> | |
| 48 | - <li><label>是否区内:</label> <select name="inoutDistrict" | |
| 49 | - th:with="type=${@dict.getType('trueFalse')}"> | |
| 50 | - <option value=""></option> | |
| 51 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 52 | - th:value="${dict.dictValue}"></option> | |
| 53 | - </select></li> | |
| 54 | - <li><label>营运状态:</label> <select name="serviceState" | |
| 55 | - th:with="type=${@dict.getType('serviceState')}"> | |
| 56 | - <option value=""></option> | |
| 57 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 58 | - th:value="${dict.dictValue}"></option> | |
| 59 | - </select></li> | |
| 60 | - <li><label>车辆类型:</label> <select name="busType" | |
| 61 | - th:with="type=${@dict.getType('busType')}"> | |
| 62 | - <option value=""></option> | |
| 63 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 64 | - th:value="${dict.dictValue}"></option> | |
| 65 | - </select></li> | |
| 66 | - <li><label>是否空调:</label> <select name="airConditionerType" | |
| 67 | - th:with="type=${@dict.getType('airConditionerType')}"> | |
| 68 | - <option value=""></option> | |
| 69 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 70 | - th:value="${dict.dictValue}"></option> | |
| 71 | - </select></li> | |
| 72 | - <li><label>售票类型:</label> <select name="sellTicketType" | |
| 73 | - th:with="type=${@dict.getType('sellTicketType')}"> | |
| 74 | - <option value=""></option> | |
| 75 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 76 | - th:value="${dict.dictValue}"></option> | |
| 77 | - </select></li> | |
| 78 | - <li><label>运营时间:</label> <select name="serviceTime" | |
| 79 | - th:with="type=${@dict.getType('serviceTime')}"> | |
| 80 | - <option value=""></option> | |
| 81 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 82 | - th:value="${dict.dictValue}"></option> | |
| 83 | - </select></li> | |
| 84 | - <li><label>线路长度:</label> <input type="text" | |
| 85 | - name="lineDistance" /></li> | |
| 86 | - <li><label>线路编码:</label> <input type="text" name="lineCode" /> | |
| 87 | - </li> | |
| 88 | - <li><label>授权年限:</label> <input type="text" | |
| 89 | - name="warrantYear" /></li> | |
| 90 | - <li><label>授权起始:</label> <input type="text" | |
| 91 | - class="time-input" placeholder="请选择授权起始日期" | |
| 92 | - name="warrantStartTime" /></li> | |
| 93 | - <li><label>授权结束:</label> <input type="text" | |
| 94 | - class="time-input" placeholder="请选择授权结束日期" name="warrantEndTime" /> | |
| 95 | - </li> | |
| 96 | - <li><label>撤销日期:</label> <input type="text" | |
| 97 | - class="time-input" placeholder="请选择撤销日期" name="planCancelTime" /> | |
| 98 | - </li> | |
| 99 | - <li><label>实际撤销:</label> <input type="text" | |
| 100 | - class="time-input" placeholder="请选择实际撤销日期" name="cancelTime" /> | |
| 101 | - </li> | |
| 102 | - <li><label>更新人:</label> <input type="text" name="updateBy" /> | |
| 103 | - </li> | |
| 104 | - <li><label>更新时间:</label> <input type="text" | |
| 105 | - class="time-input" placeholder="请选择更新时间" name="updateTime" /></li> | |
| 106 | - <li><label>行车作业计划表报备时间:</label> <input type="text" | |
| 107 | - class="time-input" placeholder="请选择行车作业计划表报备时间" | |
| 108 | - name="timeSchedule" /></li> | |
| 109 | - <li><label>停车场:</label> <input type="text" name="park" /></li> | |
| 110 | - <li><label>是否权证:</label> <select name="isWarrant" | |
| 111 | - th:with="type=${@dict.getType('trueFalse')}"> | |
| 112 | - <option value=""></option> | |
| 113 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 114 | - th:value="${dict.dictValue}"></option> | |
| 115 | - </select></li> | |
| 116 | - <li><label>道路类型:</label> <select name="roadType" | |
| 117 | - th:with="type=${@dict.getType('roadType')}"> | |
| 118 | - <option value=""></option> | |
| 119 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 120 | - th:value="${dict.dictValue}"></option> | |
| 121 | - </select></li> | |
| 122 | - <li><label>票价:</label> <input type="text" name="ticketPrice" /></li> | |
| 123 | - <li><label>首站:</label> <input type="text" | |
| 124 | - name="firstStation" /></li> | |
| 125 | - <li><label>起讫站:</label> <input type="text" name="startEnd" /> | |
| 126 | - </li> | |
| 127 | - <li><label>首战时间:</label> <input type="text" name="firstTime" /> | |
| 128 | - </li> | |
| 129 | - <li><label>末站:</label> <input type="text" name="lastStation" /> | |
| 130 | - </li> | |
| 131 | - <li><label>末站首战:</label> <input type="text" | |
| 132 | - name="lastTime" /></li> | |
| 133 | - <li><label>上行里程:</label> <input type="text" | |
| 134 | - name="mileageUp" /></li> | |
| 135 | - <li><label>下行里程:</label> <input type="text" | |
| 136 | - name="mileageDown" /></li> | |
| 137 | - <li><label>平均里程:</label> <input type="text" | |
| 138 | - name="averageMileage" /></li> | |
| 139 | - <li><label>上行站级:</label> <input type="text" | |
| 140 | - name="stationUp" /></li> | |
| 141 | - <li><label>下行站级数():</label> <input type="text" | |
| 142 | - name="stationDown" /></li> | |
| 143 | - <li><label>行驶时间(上行):</label> <input type="text" | |
| 144 | - name="travelTimeUp" /></li> | |
| 145 | - <li><label>行驶时间(下行):</label> <input type="text" | |
| 146 | - name="travelTimeDown" /></li> | |
| 147 | - <li><label>行驶间隔(高峰):</label> <input type="text" | |
| 148 | - name="travelIntervalUp" /></li> | |
| 149 | - <li><label>行驶间隔(低谷):</label> <input type="text" | |
| 150 | - name="travelIntervalDown" /></li> | |
| 151 | - <li><label>经营权证:</label> <input type="text" | |
| 152 | - name="warrantVehiclesLarge" /></li> | |
| 153 | - <li><label>经营权证:</label> <input type="text" | |
| 154 | - name="warrantVehiclesMiddle" /></li> | |
| 155 | - <li><label>实际配车数:</label> <input type="text" | |
| 156 | - name="vehiclesNumber" /></li> | |
| 157 | - <li><label>实际车辆数(大巴):</label> <input type="text" | |
| 158 | - name="numberVehiclesLarge" /></li> | |
| 159 | - <li><label>实际车辆数(中巴):</label> <input type="text" | |
| 160 | - name="numberVehiclesMiddle" /></li> | |
| 161 | - <li><label>车辆自编号:</label> <input type="text" name="carPlate" /> | |
| 162 | - </li> | |
| 163 | - <li><label>线路总配人数:</label> <input type="text" | |
| 164 | - name="numberPerson" /></li> | |
| 165 | - <li><label>人数司机:</label> <input type="text" | |
| 166 | - name="numberPersonDriver" /></li> | |
| 167 | - <li><label>售票员数:</label> <input type="text" | |
| 168 | - name="numberPersonSales" /></li> | |
| 169 | - <li><label>新能源车数:</label> <input type="text" | |
| 170 | - name="busEvNumber" /></li> | |
| 171 | - <li><label>经营权证数:</label> <input type="text" | |
| 172 | - name="numberOfManage" /></li> | |
| 173 | - <li><label>高峰系数:</label> <input type="text" | |
| 174 | - name="fullCustomerPercent" /></li> | |
| 175 | - <li><label>低谷系数:</label> <input type="text" | |
| 176 | - name="lowCustomerPercent" /></li> | |
| 177 | - <li><label>间隔等级:</label> <input type="text" | |
| 178 | - name="divideLevel" /></li> | |
| 179 | - <li><label>是否挂牌:</label> <input type="text" | |
| 180 | - name="hasTimelists" /></li> | |
| 181 | - <li><label>是否轨交末班车衔接:</label> <select name="isMetro" | |
| 182 | - th:with="type=${@dict.getType('trueFalse')}"> | |
| 183 | - <option value=""></option> | |
| 184 | - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 185 | - th:value="${dict.dictValue}"></option> | |
| 186 | - </select></li> | |
| 187 | - <li><label>轨交时间:</label> <input type="text" | |
| 188 | - class="time-input" placeholder="请选择轨交时间" name="metroTime" /></li> | |
| 189 | - <li><label>冷僻补贴:</label> <input type="text" | |
| 190 | - name="coldBonusType" /></li> | |
| 191 | - <li><label>月度营收:</label> <input type="text" | |
| 192 | - name="revenuesMonth" /></li> | |
| 193 | - <li><label>月度人次:</label> <input type="text" | |
| 194 | - name="personMonth" /></li> | |
| 195 | - <li><label>月度里程:</label> <input type="text" | |
| 196 | - name="mileageMonth" /></li> | |
| 197 | - <li><label>百公里人次:</label> <input type="text" | |
| 198 | - name="personMonthAvg" /></li> | |
| 199 | - <li><label>营收:</label> <input type="text" name="revenues" /> | |
| 200 | - </li> | |
| 201 | - <li><label>人次:</label> <input type="text" name="persons" /> | |
| 202 | - </li> | |
| 203 | - <li><label>里程:</label> <input type="text" name="mileages" /> | |
| 18 | + <li><label>线路名称:</label> <input type="text" name="lineName" /> | |
| 204 | 19 | </li> |
| 205 | - <li><label>百公里人次:</label> <input type="text" | |
| 206 | - name="personAvg" /></li> | |
| 207 | - | |
| 208 | 20 | <li> |
| 209 | 21 | <el-button size="mini" type="primary" icon="el-icon-search" onClick="$.table.search();">搜索</el-button> |
| 210 | 22 | <el-button size="mini" icon="el-icon-refresh" onClick="$.form.reset();">重置</el-button> |
| 211 | 23 | </li> |
| 212 | - | |
| 213 | 24 | </ul> |
| 214 | 25 | |
| 215 | 26 | </div> |
| 216 | 27 | </form> |
| 217 | 28 | </div> |
| 218 | - | |
| 219 | - | |
| 220 | - <div class="btn-group-sm" id="toolbar" role="group"> | |
| 221 | - | |
| 222 | - <el-button plain size="mini" type="success" icon="el-icon-search" onClick="$.table.search();" data-toggle="modal" data-target="#myModal">选择显示的列</el-button> | |
| 223 | - | |
| 224 | - <el-button plain size="mini" type="primary" icon="el-icon-plus" onClick="add(this);" shiro:hasPermission="system:line:add">新增</el-button> | |
| 225 | - | |
| 226 | - <el-button plain size="mini" type="primary" icon="el-icon-edit" onClick="edit(this);" class="btn single disabled" shiro:hasPermission="system:line:edit">修改</el-button> | |
| 227 | - | |
| 228 | - <el-button plain size="mini" type="danger" icon="el-icon-delete" onClick="remove(this);" class="btn multiple disabled" shiro:hasPermission="system:line:remove"> 删除</el-button> | |
| 229 | - | |
| 230 | - <el-button plain size="mini" type="warning" icon="el-icon-download" onClick="$.table.exportExcel();" shiro:hasPermission="system:line:export"> 导出</el-button> | |
| 231 | - | |
| 232 | - | |
| 233 | - </div> | |
| 29 | + | |
| 30 | + <!--<div class="btn-group-sm" id="toolbar" role="group"> | |
| 31 | + | |
| 32 | + <el-button plain size="mini" type="primary" icon="el-icon-plus" onClick="add(this);" shiro:hasPermission="system:line:add">新增</el-button> | |
| 33 | + | |
| 34 | + </div>--> | |
| 35 | + | |
| 234 | 36 | <div class="col-sm-12 select-table table-striped"> |
| 235 | 37 | <table id="bootstrap-table"></table> |
| 236 | 38 | </div> |
| ... | ... | @@ -262,173 +64,114 @@ |
| 262 | 64 | </div> |
| 263 | 65 | |
| 264 | 66 | |
| 67 | + | |
| 265 | 68 | <script th:inline="javascript"> |
| 266 | 69 | |
| 267 | - function add(obj){ | |
| 268 | - if($(obj)[0].className.indexOf("disabled") == -1) | |
| 269 | - $.operate.add(); | |
| 70 | + /* function add(obj){ | |
| 71 | + if($(obj)[0].className.indexOf("disabled") == -1) | |
| 72 | + $.operate.add(); | |
| 73 | + }*/ | |
| 270 | 74 | |
| 271 | - } | |
| 272 | - | |
| 273 | - function edit(obj){ | |
| 274 | - if($(obj)[0].className.indexOf("disabled") == -1) | |
| 275 | - $.operate.edit(); | |
| 276 | - | |
| 277 | - } | |
| 278 | - | |
| 279 | - | |
| 280 | - function remove(obj){ | |
| 281 | - if($(obj)[0].className.indexOf("disabled") == -1) | |
| 282 | - $.operate.removeAll(); | |
| 283 | - | |
| 284 | - } | |
| 285 | - | |
| 286 | - new Vue({ | |
| 287 | - el: '#context', | |
| 288 | - data: function() { | |
| 289 | - return { visible: false } | |
| 290 | - } | |
| 291 | - }) | |
| 292 | - | |
| 293 | - var dicts = [[${@dict.getType('')}]]; | |
| 294 | - var mytable = null; | |
| 295 | - | |
| 296 | - | |
| 297 | - function initTable(){ | |
| 298 | - var objs = $("#cols div"); | |
| 299 | - | |
| 300 | - | |
| 301 | - var data = []; | |
| 302 | - | |
| 303 | - for(var i = 0;i< objs.length;i++){ | |
| 304 | - var name = $(objs[i]).find("input")[0].name; | |
| 305 | - var text = $(objs[i]).find("label")[0].innerText; | |
| 306 | - var checked = $(objs[i]).find("input")[0].checked; | |
| 307 | - | |
| 308 | - data.push({ | |
| 309 | - name:name, | |
| 310 | - text:text, | |
| 311 | - checked:checked}); | |
| 312 | - | |
| 313 | - } | |
| 314 | - | |
| 315 | - createTable(data); | |
| 316 | - | |
| 317 | - $.post("/system/line/updateUserLineInfo",{lineInfo:JSON.stringify(data)},function(data){ | |
| 318 | - $.modal.msg(data.msg); | |
| 319 | - }); | |
| 75 | + new Vue({ | |
| 76 | + el: '#context', | |
| 77 | + data: function() { | |
| 78 | + return { visible: false } | |
| 79 | + } | |
| 80 | + }) | |
| 81 | + var dicts = [[${@dict.getType('')}]]; | |
| 82 | + | |
| 83 | + function queryParams(params) { | |
| 84 | + var search = $.table.queryParams(params); | |
| 85 | + search.examineStatus ='true'; | |
| 86 | + return search; | |
| 320 | 87 | } |
| 321 | 88 | |
| 322 | 89 | function createTable(objs){ |
| 323 | - var options = { | |
| 324 | - url: prefix + "/list", | |
| 325 | - createUrl: prefix + "/add", | |
| 326 | - updateUrl: prefix + "/edit/{id}", | |
| 327 | - removeUrl: prefix + "/remove", | |
| 328 | - exportUrl: prefix + "/export", | |
| 329 | - modalName: "线路档案信息", | |
| 330 | - columns: [], | |
| 331 | - rowStyle:function(row,index) { | |
| 332 | - var flag=DateMinus(row.isWarrantEndTime); | |
| 333 | - if(row.isWarrant==='1'&&!flag){ | |
| 334 | - var strClass='danger'; | |
| 335 | - return {classes:strClass}; | |
| 90 | + var options = { | |
| 91 | + url: prefix + "/list", | |
| 92 | + detailUrl: prefix + "/detail/{id}", | |
| 93 | + queryParams: queryParams, | |
| 94 | + modalName: "线路档案信息审核", | |
| 95 | + columns: [], | |
| 96 | + onDblClickRow:function (row,index){ | |
| 97 | + detail(row.id,row.examineType); | |
| 98 | + } | |
| 99 | + }; | |
| 100 | + | |
| 101 | + | |
| 102 | + if(objs.length > 0){ | |
| 103 | + options.columns[0] = {checkbox:true}; | |
| 104 | + options.columns[1] = {visible:false,field:"id"}; | |
| 105 | + } | |
| 106 | + | |
| 107 | + for(var i = 0;i< objs.length;i++){ | |
| 108 | + | |
| 109 | + if(!objs)continue; | |
| 110 | + | |
| 111 | + console.log(objs[i]); | |
| 112 | + | |
| 113 | + var col = { | |
| 114 | + field: objs[i].field, | |
| 115 | + title: objs[i].title, | |
| 116 | + align: 'center', | |
| 117 | + formatter: function(value, row, index) { | |
| 118 | + | |
| 119 | + | |
| 120 | + if(this.field == "roadType" || this.field == "busType"){ | |
| 121 | + if(value != null){ | |
| 122 | + | |
| 123 | + var arr = value.split(","); | |
| 124 | + value = ""; | |
| 125 | + for(var i in arr){ | |
| 126 | + | |
| 127 | + for(var j in dicts[this.field]){ | |
| 128 | + if(dicts[this.field][j].dictValue == arr[i]){ | |
| 129 | + value += dicts[this.field][j].dictLabel + "," | |
| 130 | + break; | |
| 131 | + } | |
| 132 | + } | |
| 133 | + | |
| 134 | + } | |
| 135 | + return $.table.tooltip(value.substring(0,value.length -1), 5); | |
| 136 | + } | |
| 137 | + } | |
| 138 | + | |
| 139 | + if(this.field == "isLogicDelete" || this.field == "inoutDistrict"|| this.field == "isMetro" || this.field == "hasTimelists"){ | |
| 140 | + for(var j in dicts["trueFalse"]){ | |
| 141 | + if(dicts["trueFalse"][j].dictValue == value){ | |
| 142 | + value = dicts["trueFalse"][j].dictLabel; | |
| 143 | + break; | |
| 144 | + } | |
| 336 | 145 | } |
| 337 | - return ""; | |
| 146 | + } | |
| 147 | + | |
| 338 | 148 | |
| 149 | + | |
| 150 | + if(dicts[this.field]){ | |
| 151 | + for(var j in dicts[this.field]){ | |
| 152 | + if(dicts[this.field][j].dictValue == value){ | |
| 153 | + value = dicts[this.field][j].dictLabel; | |
| 154 | + break; | |
| 155 | + } | |
| 156 | + } | |
| 339 | 157 | } |
| 340 | - }; | |
| 341 | - | |
| 342 | - | |
| 343 | - if(objs.length > 0){ | |
| 344 | - options.columns[0] = {checkbox:true}; | |
| 345 | - options.columns[1] = {visible:false,field:"id"}; | |
| 346 | - } | |
| 347 | - | |
| 348 | - for(var i = 0;i< objs.length;i++){ | |
| 349 | - | |
| 350 | - var col = { | |
| 351 | - field: objs[i].name, | |
| 352 | - title: objs[i].text, | |
| 353 | - visible:objs[i].checked, | |
| 354 | - align: 'center', | |
| 355 | - formatter: function(value, row, index) { | |
| 356 | - | |
| 357 | - | |
| 358 | - if(this.field == "roadType" || this.field == "busType"){ | |
| 359 | - if(value != null){ | |
| 360 | - | |
| 361 | - var arr = value.split(","); | |
| 362 | - value = ""; | |
| 363 | - for(var i in arr){ | |
| 364 | - | |
| 365 | - for(var j in dicts[this.field]){ | |
| 366 | - if(dicts[this.field][j].dictValue == arr[i]){ | |
| 367 | - value += dicts[this.field][j].dictLabel + "," | |
| 368 | - break; | |
| 369 | - } | |
| 370 | - } | |
| 371 | - | |
| 372 | - } | |
| 373 | - return $.table.tooltip(value.substring(0,value.length -1), 5); | |
| 374 | - } | |
| 375 | - } | |
| 376 | - | |
| 377 | - if(this.field == "isLogicDelete" || this.field == "inoutDistrict"|| this.field == "isMetro" || this.field == "hasTimelists" || this.field == "isWarrant"){ | |
| 378 | - for(var j in dicts["trueFalse"]){ | |
| 379 | - if(dicts["trueFalse"][j].dictValue == value){ | |
| 380 | - value = dicts["trueFalse"][j].dictLabel; | |
| 381 | - break; | |
| 382 | - } | |
| 383 | - } | |
| 384 | - } | |
| 385 | - | |
| 386 | - | |
| 387 | - | |
| 388 | - if(dicts[this.field]){ | |
| 389 | - for(var j in dicts[this.field]){ | |
| 390 | - if(dicts[this.field][j].dictValue == value){ | |
| 391 | - value = dicts[this.field][j].dictLabel; | |
| 392 | - break; | |
| 393 | - } | |
| 394 | - } | |
| 395 | - } | |
| 396 | - | |
| 397 | - return $.table.tooltip(value, 5); | |
| 398 | - } | |
| 399 | - } | |
| 400 | - | |
| 401 | - if($($("#formId input[name="+objs[i].name+"]"))){ | |
| 402 | - if(objs[i].checked){ | |
| 403 | - $($("#formId input[name="+objs[i].name+"]")).parent().show(); | |
| 404 | - }else{ | |
| 405 | - | |
| 406 | - $($("#formId input[name="+objs[i].name+"]")).parent().hide(); | |
| 407 | - } | |
| 408 | - } | |
| 409 | - if($($("#formId select[name="+objs[i].name+"]"))){ | |
| 410 | - if(objs[i].checked){ | |
| 411 | - $($("#formId select[name="+objs[i].name+"]")).parent().show(); | |
| 412 | - }else{ | |
| 413 | - | |
| 414 | - $($("#formId select[name="+objs[i].name+"]")).parent().hide(); | |
| 415 | - } | |
| 416 | - } | |
| 417 | - | |
| 418 | - options.columns.push(col); | |
| 419 | - | |
| 420 | - } | |
| 421 | - | |
| 422 | - $.table.destroy(); | |
| 423 | - | |
| 424 | - $.table.init(options); | |
| 425 | - | |
| 426 | - mytable = $.table; | |
| 158 | + | |
| 159 | + return $.table.tooltip(value, 5); | |
| 160 | + } | |
| 161 | + } | |
| 162 | + | |
| 163 | + options.columns.push(col); | |
| 164 | + | |
| 165 | + } | |
| 166 | + | |
| 167 | + $.table.init(options); | |
| 168 | + | |
| 169 | + | |
| 427 | 170 | } |
| 428 | - | |
| 171 | + | |
| 429 | 172 | function checkAll(obj){ |
| 430 | 173 | var objs = $("#cols input"); |
| 431 | - | |
| 174 | + | |
| 432 | 175 | if(obj.checked == false){ |
| 433 | 176 | for(var i in objs){ |
| 434 | 177 | objs[i].checked = false; |
| ... | ... | @@ -439,145 +182,151 @@ |
| 439 | 182 | } |
| 440 | 183 | } |
| 441 | 184 | } |
| 442 | - | |
| 443 | - | |
| 444 | - var editFlag = [[${@permission.hasPermi('system:line:edit')}]]; | |
| 445 | - var removeFlag = [[${@permission.hasPermi('system:line:remove')}]]; | |
| 446 | - var prefix = ctx + "system/line"; | |
| 447 | - | |
| 448 | - $(function() { | |
| 449 | - var allDicts = {}; | |
| 450 | - | |
| 451 | - for(var i in dicts){ | |
| 452 | - if(!allDicts[dicts[i].dictType]){ | |
| 453 | - allDicts[dicts[i].dictType] = []; | |
| 454 | - } | |
| 455 | - allDicts[dicts[i].dictType].push(dicts[i]); | |
| 456 | - } | |
| 457 | - | |
| 458 | - dicts = allDicts; | |
| 459 | - | |
| 460 | - | |
| 461 | - | |
| 462 | - | |
| 463 | - | |
| 464 | - | |
| 465 | - var cols = [{ | |
| 466 | - field: 'lineName', | |
| 467 | - title: '线路名称' | |
| 468 | - }, | |
| 469 | - { | |
| 470 | - field: 'company', | |
| 471 | - title: '公司' | |
| 472 | - }, | |
| 473 | - { | |
| 474 | - field: 'fCompany', | |
| 475 | - title: '分公司' | |
| 476 | - }, | |
| 477 | - { | |
| 478 | - field: 'pLineId', | |
| 479 | - title: '主线路id' | |
| 480 | - }, | |
| 481 | - { | |
| 482 | - field: 'serviceType', | |
| 483 | - title: '营运方式' | |
| 484 | - }, | |
| 485 | - { | |
| 486 | - field: 'lineLevel', | |
| 487 | - title: '线路属性' | |
| 488 | - }, | |
| 489 | - { | |
| 490 | - field: 'lineType', | |
| 491 | - title: '线路属性' | |
| 492 | - }, | |
| 493 | - { | |
| 494 | - field: 'district', | |
| 495 | - title: '区属' | |
| 496 | - }, | |
| 497 | - { | |
| 498 | - field: 'inoutDistrict', | |
| 499 | - title: '是否区内' | |
| 500 | - }, | |
| 501 | - { | |
| 502 | - field: 'serviceState', | |
| 503 | - title: '营运状态' | |
| 504 | - }, | |
| 505 | - { | |
| 506 | - field: 'busType', | |
| 507 | - title: '车辆类型' | |
| 508 | - }, | |
| 509 | - { | |
| 510 | - field: 'airConditionerType', | |
| 511 | - title: '是否空调' | |
| 512 | - }, | |
| 513 | - { | |
| 514 | - field: 'sellTicketType', | |
| 515 | - title: '售票类型' | |
| 516 | - }, | |
| 517 | - { | |
| 518 | - field: 'serviceTime', | |
| 519 | - title: '运营时间' | |
| 520 | - }, | |
| 521 | - { | |
| 522 | - field: 'lineDistance', | |
| 523 | - title: '线路长度' | |
| 524 | - }, | |
| 525 | - { | |
| 526 | - field: 'lineCode', | |
| 527 | - title: '线路编码' | |
| 528 | - }, | |
| 529 | - { | |
| 530 | - field: 'warrantYear', | |
| 531 | - title: '授权年限' | |
| 532 | - }, | |
| 533 | - { | |
| 534 | - field: 'warrantStartTime', | |
| 535 | - title: '授权起始日期' | |
| 536 | - }, | |
| 537 | - { | |
| 538 | - field: 'warrantEndTime', | |
| 539 | - title: '授权结束日期' | |
| 540 | - }, | |
| 541 | - { | |
| 542 | - field: 'planCancelTime', | |
| 543 | - title: '撤销日期' | |
| 544 | - }, | |
| 545 | - { | |
| 546 | - field: 'cancelTime', | |
| 547 | - title: '实际撤销日期' | |
| 548 | - }, | |
| 549 | - { | |
| 550 | - field: 'cancelReason', | |
| 551 | - title: '撤销原因' | |
| 552 | - }, | |
| 553 | - { | |
| 554 | - field: 'remark', | |
| 555 | - title: '备注' | |
| 556 | - }, | |
| 557 | - { | |
| 558 | - field: 'isLogicDelete', | |
| 559 | - title: '是否逻辑删除' | |
| 560 | - }, | |
| 561 | - { | |
| 562 | - field: 'updateBy', | |
| 563 | - title: '更新人' | |
| 564 | - }, | |
| 565 | - { | |
| 566 | - field: 'updateTime', | |
| 567 | - title: '更新时间' | |
| 568 | - }, | |
| 569 | - { | |
| 570 | - field: 'timeSchedule', | |
| 571 | - title: '行车作业计划表报备时间' | |
| 572 | - }, | |
| 573 | - { | |
| 574 | - field: 'park', | |
| 575 | - title: '停车场' | |
| 576 | - }, | |
| 577 | - { | |
| 578 | - field: 'isWarrant', | |
| 579 | - title: '是否权证' | |
| 580 | - }, | |
| 185 | + | |
| 186 | + | |
| 187 | + var editFlag = [[${@permission.hasPermi('system:lineReport:edit')}]]; | |
| 188 | + var removeFlag = [[${@permission.hasPermi('system:lineReport:remove')}]]; | |
| 189 | + var prefix = ctx + "system/lineExamine"; | |
| 190 | + | |
| 191 | + $(function() { | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + var allDicts = {}; | |
| 197 | + | |
| 198 | + for(var i in dicts){ | |
| 199 | + if(!allDicts[dicts[i].dictType]){ | |
| 200 | + allDicts[dicts[i].dictType] = []; | |
| 201 | + } | |
| 202 | + allDicts[dicts[i].dictType].push(dicts[i]); | |
| 203 | + } | |
| 204 | + | |
| 205 | + dicts = allDicts; | |
| 206 | + | |
| 207 | + | |
| 208 | + var cols = [{ | |
| 209 | + field: 'lineName', | |
| 210 | + title: '线路名称', | |
| 211 | + }, | |
| 212 | + { | |
| 213 | + field: 'company', | |
| 214 | + title: '公司' | |
| 215 | + }, | |
| 216 | + { | |
| 217 | + field: 'fCompany', | |
| 218 | + title: '分公司' | |
| 219 | + }, | |
| 220 | + { | |
| 221 | + field: 'pLineId', | |
| 222 | + title: '主线路id' | |
| 223 | + }, | |
| 224 | + { | |
| 225 | + field: 'serviceType', | |
| 226 | + title: '营运方式' | |
| 227 | + }, | |
| 228 | + { | |
| 229 | + field: 'lineLevel', | |
| 230 | + title: '线路属性' | |
| 231 | + },{ | |
| 232 | + field: 'examineType', | |
| 233 | + title: '审核类型' | |
| 234 | + },{ | |
| 235 | + field: 'examineStatus', | |
| 236 | + title: '审核状态' | |
| 237 | + }/*, | |
| 238 | + { | |
| 239 | + field: 'lineType', | |
| 240 | + title: '线路属性' | |
| 241 | + }, | |
| 242 | + { | |
| 243 | + field: 'district', | |
| 244 | + title: '区属' | |
| 245 | + }, | |
| 246 | + { | |
| 247 | + field: 'inoutDistrict', | |
| 248 | + title: '是否区内' | |
| 249 | + }, | |
| 250 | + { | |
| 251 | + field: 'serviceState', | |
| 252 | + title: '营运状态' | |
| 253 | + }, | |
| 254 | + { | |
| 255 | + field: 'busType', | |
| 256 | + title: '车辆类型' | |
| 257 | + }, | |
| 258 | + { | |
| 259 | + field: 'airConditionerType', | |
| 260 | + title: '是否空调' | |
| 261 | + }, | |
| 262 | + { | |
| 263 | + field: 'sellTicketType', | |
| 264 | + title: '售票类型' | |
| 265 | + }, | |
| 266 | + { | |
| 267 | + field: 'serviceTime', | |
| 268 | + title: '运营时间' | |
| 269 | + }, | |
| 270 | + { | |
| 271 | + field: 'lineDistance', | |
| 272 | + title: '线路长度' | |
| 273 | + }, | |
| 274 | + { | |
| 275 | + field: 'lineCode', | |
| 276 | + title: '线路编码' | |
| 277 | + }, | |
| 278 | + { | |
| 279 | + field: 'warrantYear', | |
| 280 | + title: '授权年限' | |
| 281 | + }, | |
| 282 | + { | |
| 283 | + field: 'warrantStartTime', | |
| 284 | + title: '授权起始日期' | |
| 285 | + }, | |
| 286 | + { | |
| 287 | + field: 'warrantEndTime', | |
| 288 | + title: '授权结束日期' | |
| 289 | + }, | |
| 290 | + { | |
| 291 | + field: 'planCancelTime', | |
| 292 | + title: '撤销日期' | |
| 293 | + }, | |
| 294 | + { | |
| 295 | + field: 'cancelTime', | |
| 296 | + title: '实际撤销日期' | |
| 297 | + }, | |
| 298 | + { | |
| 299 | + field: 'cancelReason', | |
| 300 | + title: '撤销原因' | |
| 301 | + }, | |
| 302 | + { | |
| 303 | + field: 'remark', | |
| 304 | + title: '备注' | |
| 305 | + }, | |
| 306 | + { | |
| 307 | + field: 'isLogicDelete', | |
| 308 | + title: '是否逻辑删除' | |
| 309 | + }, | |
| 310 | + { | |
| 311 | + field: 'updateBy', | |
| 312 | + title: '更新人' | |
| 313 | + }, | |
| 314 | + { | |
| 315 | + field: 'updateTime', | |
| 316 | + title: '更新时间' | |
| 317 | + }, | |
| 318 | + { | |
| 319 | + field: 'timeSchedule', | |
| 320 | + title: '行车作业计划表报备时间' | |
| 321 | + }, | |
| 322 | + { | |
| 323 | + field: 'park', | |
| 324 | + title: '停车场' | |
| 325 | + }, | |
| 326 | + { | |
| 327 | + field: 'isWarrant', | |
| 328 | + title: '是否权证' | |
| 329 | + }, | |
| 581 | 330 | { |
| 582 | 331 | field: 'isWarrantStartTime', |
| 583 | 332 | title: '权证开通日期' |
| ... | ... | @@ -586,206 +335,172 @@ |
| 586 | 335 | field: 'isWarrantEndTime', |
| 587 | 336 | title: '权证到期日期' |
| 588 | 337 | }, |
| 589 | - { | |
| 590 | - field: 'roadType', | |
| 591 | - title: '道路类型' | |
| 592 | - }, | |
| 593 | - { | |
| 594 | - field: 'ticketPrice', | |
| 595 | - title: '票价' | |
| 596 | - }, | |
| 597 | - { | |
| 598 | - field: 'firstStation', | |
| 599 | - title: '首站' | |
| 600 | - }, | |
| 601 | - { | |
| 602 | - field: 'startEnd', | |
| 603 | - title: '起讫站' | |
| 604 | - }, | |
| 605 | - { | |
| 606 | - field: 'firstTime', | |
| 607 | - title: '首战时间' | |
| 608 | - }, | |
| 609 | - { | |
| 610 | - field: 'lastStation', | |
| 611 | - title: '末站' | |
| 612 | - }, | |
| 613 | - { | |
| 614 | - field: 'lastTime', | |
| 615 | - title: '末站首战时间' | |
| 616 | - }, | |
| 617 | - { | |
| 618 | - field: 'mileageUp', | |
| 619 | - title: '上行里程数' | |
| 620 | - }, | |
| 621 | - { | |
| 622 | - field: 'mileageDown', | |
| 623 | - title: '下行里程数' | |
| 624 | - }, | |
| 625 | - { | |
| 626 | - field: 'averageMileage', | |
| 627 | - title: '平均里程数' | |
| 628 | - }, | |
| 629 | - { | |
| 630 | - field: 'stationUp', | |
| 631 | - title: '站级数(上行)' | |
| 632 | - }, | |
| 633 | - { | |
| 634 | - field: 'stationDown', | |
| 635 | - title: '站级数(下行)' | |
| 636 | - },{ | |
| 637 | - field: 'travelTimeUp', | |
| 638 | - title: '行驶时间(上行)' | |
| 639 | - },{ | |
| 640 | - field: 'travelTimeDown', | |
| 641 | - title: '行驶时间(下行)' | |
| 642 | - },{ | |
| 643 | - field: 'travelIntervalUp', | |
| 644 | - title: '行驶间隔(高峰)' | |
| 645 | - },{ | |
| 646 | - field: 'travelIntervalDown', | |
| 647 | - title: '行驶间隔(低谷)' | |
| 648 | - },{ | |
| 649 | - field: 'warrantVehiclesLarge', | |
| 650 | - title: '经营权证(大巴)' | |
| 651 | - }, { | |
| 652 | - field: 'warrantVehiclesMiddle', | |
| 653 | - title: '经营权证(中巴)' | |
| 654 | - },{ | |
| 655 | - field: 'vehiclesNumber', | |
| 656 | - title: '实际配车数' | |
| 657 | - }, { | |
| 658 | - field: 'numberVehiclesLarge', | |
| 659 | - title: '实际车辆数(大巴)' | |
| 660 | - }, { | |
| 661 | - field: 'numberVehiclesMiddle', | |
| 662 | - title: '实际车辆数(中巴)' | |
| 663 | - },{ | |
| 664 | - field: 'carPlate', | |
| 665 | - title: '车辆自编号' | |
| 666 | - },{ | |
| 667 | - field: 'numberPerson', | |
| 668 | - title: '线路总配人数' | |
| 669 | - },{ | |
| 670 | - field: 'numberPersonDriver', | |
| 671 | - title: '人数司机' | |
| 672 | - }, { | |
| 673 | - field: 'numberPersonSales', | |
| 674 | - title: '售票员数' | |
| 675 | - },{ | |
| 676 | - field: 'busEvNumber', | |
| 677 | - title: '新能源车数' | |
| 678 | - },{ | |
| 679 | - field: 'directions', | |
| 680 | - title: '线路走向' | |
| 681 | - },{ | |
| 682 | - field: 'numberOfManage', | |
| 683 | - title: '经营权证数' | |
| 684 | - },{ | |
| 685 | - field: 'halfwayStation', | |
| 686 | - title: '站点名称' | |
| 687 | - },{ | |
| 688 | - field: 'fullCustomerPercent', | |
| 689 | - title: '高峰系数' | |
| 690 | - },{ | |
| 691 | - field: 'lowCustomerPercent', | |
| 692 | - title: '低谷系数' | |
| 693 | - }, { | |
| 694 | - field: 'divideLevel', | |
| 695 | - title: '间隔等级' | |
| 696 | - },{ | |
| 697 | - field: 'hasTimelists', | |
| 698 | - title: '是否挂牌' | |
| 699 | - },{ | |
| 700 | - field: 'isMetro', | |
| 701 | - title: '是否轨交末班车衔接' | |
| 702 | - },{ | |
| 703 | - field: 'metroTime', | |
| 704 | - title: '轨交时间' | |
| 705 | - },{ | |
| 706 | - field: 'coldBonusType', | |
| 707 | - title: '冷僻线路补贴类型' | |
| 708 | - },{ | |
| 709 | - field: 'revenuesMonth', | |
| 710 | - title: '月度营收' | |
| 711 | - },{ | |
| 712 | - field: 'personMonth', | |
| 713 | - title: '月度人次' | |
| 714 | - },{ | |
| 715 | - field: 'mileageMonth', | |
| 716 | - title: '月度里程' | |
| 717 | - },{ | |
| 718 | - field: 'personMonthAvg', | |
| 719 | - title: '百公里人次' | |
| 720 | - },{ | |
| 721 | - field: 'revenues', | |
| 722 | - title: '营收' | |
| 723 | - },{ | |
| 724 | - field: 'persons', | |
| 725 | - title: '人次' | |
| 726 | - }, { | |
| 727 | - field: 'mileages', | |
| 728 | - title: '里程' | |
| 729 | - },{ | |
| 730 | - field: 'personAvg', | |
| 731 | - title: '百公里人次' | |
| 732 | - }]; | |
| 733 | - | |
| 734 | - for(var i =0 ; i < cols.length ;i++){ | |
| 735 | - if(i > 0 && i %3 > 0)continue; | |
| 736 | - var tag = "<div class='col_checkbox'><input type='checkbox' name="+cols[i].field+"><label>"+cols[i].title + "</label></div>"; | |
| 737 | - if(cols[i+1]){ | |
| 738 | - tag+= "<div class='col_checkbox'><input type='checkbox' name="+cols[i+1].field+"><label>"+cols[i+1].title + "</label></div>"; | |
| 739 | - } | |
| 740 | - if(cols[i+2]){ | |
| 741 | - tag+= "<div class='col_checkbox'><input type='checkbox' name="+cols[i+2].field+"><label>"+cols[i+2].title + "</label></div>"; | |
| 742 | - } | |
| 743 | - $("#cols").append(tag); | |
| 744 | - } | |
| 745 | - | |
| 746 | - $.get("/system/line/getUserLineInfo",function(data){ | |
| 747 | - if(data.msg != null){ | |
| 748 | - var data = JSON.parse(data.msg); | |
| 749 | - createTable(data); | |
| 750 | - | |
| 751 | - | |
| 752 | - var allCheck = true; | |
| 753 | - | |
| 754 | - for(var i = 0;i<data.length;i++){ | |
| 755 | - | |
| 756 | - if(!data[i].checked){ | |
| 757 | - allCheck = false; | |
| 758 | - } | |
| 759 | - | |
| 760 | - $("#cols input[name="+data[i].name+"]")[0].checked = data[i].checked; | |
| 761 | - } | |
| 762 | - | |
| 763 | - $("#checkboxForAll")[0].checked = allCheck; | |
| 764 | - | |
| 765 | - } | |
| 766 | - }); | |
| 767 | - | |
| 768 | - | |
| 769 | - }); | |
| 770 | - | |
| 771 | - | |
| 772 | - function DateMinus(date1){ | |
| 773 | - if(date1==null){ | |
| 774 | - return true; | |
| 775 | - } | |
| 776 | - | |
| 777 | - var sdate = new Date(date1); | |
| 778 | - var now = new Date(); | |
| 779 | - var days = sdate.getTime()-now.getTime(); | |
| 780 | - var day = parseInt(days / (1000 * 60 * 60 * 24)); | |
| 781 | - console.log(day); | |
| 782 | - if(day<120){ | |
| 783 | - return false; | |
| 784 | - } | |
| 785 | - return true; | |
| 338 | + { | |
| 339 | + field: 'roadType', | |
| 340 | + title: '道路类型' | |
| 341 | + }, | |
| 342 | + { | |
| 343 | + field: 'ticketPrice', | |
| 344 | + title: '票价' | |
| 345 | + }, | |
| 346 | + { | |
| 347 | + field: 'firstStation', | |
| 348 | + title: '首站' | |
| 349 | + }, | |
| 350 | + { | |
| 351 | + field: 'startEnd', | |
| 352 | + title: '起讫站' | |
| 353 | + }, | |
| 354 | + { | |
| 355 | + field: 'firstTime', | |
| 356 | + title: '首战时间' | |
| 357 | + }, | |
| 358 | + { | |
| 359 | + field: 'lastStation', | |
| 360 | + title: '末站' | |
| 361 | + }, | |
| 362 | + { | |
| 363 | + field: 'lastTime', | |
| 364 | + title: '末站首战时间' | |
| 365 | + }, | |
| 366 | + { | |
| 367 | + field: 'mileageUp', | |
| 368 | + title: '上行里程数' | |
| 369 | + }, | |
| 370 | + { | |
| 371 | + field: 'mileageDown', | |
| 372 | + title: '下行里程数' | |
| 373 | + }, | |
| 374 | + { | |
| 375 | + field: 'averageMileage', | |
| 376 | + title: '平均里程数' | |
| 377 | + }, | |
| 378 | + { | |
| 379 | + field: 'stationUp', | |
| 380 | + title: '站级数(上行)' | |
| 381 | + }, | |
| 382 | + { | |
| 383 | + field: 'stationDown', | |
| 384 | + title: '站级数(下行)' | |
| 385 | + },{ | |
| 386 | + field: 'travelTimeUp', | |
| 387 | + title: '行驶时间(上行)' | |
| 388 | + },{ | |
| 389 | + field: 'travelTimeDown', | |
| 390 | + title: '行驶时间(下行)' | |
| 391 | + },{ | |
| 392 | + field: 'travelIntervalUp', | |
| 393 | + title: '行驶间隔(高峰)' | |
| 394 | + },{ | |
| 395 | + field: 'travelIntervalDown', | |
| 396 | + title: '行驶间隔(低谷)' | |
| 397 | + },{ | |
| 398 | + field: 'warrantVehiclesLarge', | |
| 399 | + title: '经营权证(大巴)' | |
| 400 | + }, { | |
| 401 | + field: 'warrantVehiclesMiddle', | |
| 402 | + title: '经营权证(中巴)' | |
| 403 | + },{ | |
| 404 | + field: 'vehiclesNumber', | |
| 405 | + title: '实际配车数' | |
| 406 | + }, { | |
| 407 | + field: 'numberVehiclesLarge', | |
| 408 | + title: '实际车辆数(大巴)' | |
| 409 | + }, { | |
| 410 | + field: 'numberVehiclesMiddle', | |
| 411 | + title: '实际车辆数(中巴)' | |
| 412 | + },{ | |
| 413 | + field: 'carPlate', | |
| 414 | + title: '车辆自编号' | |
| 415 | + },{ | |
| 416 | + field: 'numberPerson', | |
| 417 | + title: '线路总配人数' | |
| 418 | + },{ | |
| 419 | + field: 'numberPersonDriver', | |
| 420 | + title: '人数司机' | |
| 421 | + }, { | |
| 422 | + field: 'numberPersonSales', | |
| 423 | + title: '售票员数' | |
| 424 | + },{ | |
| 425 | + field: 'busEvNumber', | |
| 426 | + title: '新能源车数' | |
| 427 | + },{ | |
| 428 | + field: 'directions', | |
| 429 | + title: '线路走向' | |
| 430 | + },{ | |
| 431 | + field: 'numberOfManage', | |
| 432 | + title: '经营权证数' | |
| 433 | + },{ | |
| 434 | + field: 'halfwayStation', | |
| 435 | + title: '站点名称' | |
| 436 | + },{ | |
| 437 | + field: 'fullCustomerPercent', | |
| 438 | + title: '高峰系数' | |
| 439 | + },{ | |
| 440 | + field: 'lowCustomerPercent', | |
| 441 | + title: '低谷系数' | |
| 442 | + }, { | |
| 443 | + field: 'divideLevel', | |
| 444 | + title: '间隔等级' | |
| 445 | + },{ | |
| 446 | + field: 'hasTimelists', | |
| 447 | + title: '是否挂牌' | |
| 448 | + },{ | |
| 449 | + field: 'isMetro', | |
| 450 | + title: '是否轨交末班车衔接' | |
| 451 | + },{ | |
| 452 | + field: 'metroTime', | |
| 453 | + title: '轨交时间' | |
| 454 | + },{ | |
| 455 | + field: 'coldBonusType', | |
| 456 | + title: '冷僻线路补贴类型' | |
| 457 | + }*/]; | |
| 458 | + | |
| 459 | + | |
| 460 | + createTable(cols); | |
| 461 | + }); | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + function detail(id,examineType,width, height) { | |
| 466 | + table.set(); | |
| 467 | + var url=prefix+'/examine' | |
| 468 | + var _url = $.operate.detailUrl(id); | |
| 469 | + var options = { | |
| 470 | + title: table.options.modalName + "详细", | |
| 471 | + width: width, | |
| 472 | + height: height, | |
| 473 | + url: _url, | |
| 474 | + skin: 'layui-layer-gray', | |
| 475 | + btn: ['通过','未通过'], | |
| 476 | + yes: function () { | |
| 477 | + var data={'id':id,'examineType':examineType,'examineStatus':'2'} | |
| 478 | + $.post(url, data, function(result) { | |
| 479 | + if (result.code == web_status.SUCCESS) { | |
| 480 | + $.modal.closeAll(); | |
| 481 | + $.table.refresh(); | |
| 482 | + $.modal.alertSuccess(result.msg); | |
| 483 | + }else { | |
| 484 | + $.modal.alertError(result.msg); | |
| 485 | + } | |
| 486 | + }); | |
| 487 | + }, | |
| 488 | + btn2:function () { | |
| 489 | + var data={'id':id,'examineType':examineType,'examineStatus':'1'} | |
| 490 | + $.post(url, data, function(result) { | |
| 491 | + if (result.code == web_status.SUCCESS) { | |
| 492 | + $.table.refresh(); | |
| 493 | + $.modal.alertSuccess(result.msg) | |
| 494 | + }else { | |
| 495 | + $.modal.alertError(result.msg); | |
| 496 | + } | |
| 497 | + }); | |
| 498 | + } | |
| 499 | + }; | |
| 500 | + $.modal.openOptions(options); | |
| 786 | 501 | } |
| 787 | - </script> | |
| 788 | 502 | |
| 503 | + </script> | |
| 789 | 504 | <style> |
| 790 | 505 | .col_checkbox { |
| 791 | 506 | width: 33%; | ... | ... |
bsthLineProfiles/src/main/resources/templates/system/lineHistory/add.html
| 1 | 1 | <!DOCTYPE html> |
| 2 | 2 | <html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
| 3 | 3 | <head> |
| 4 | - <th:block th:include="include :: header('新增【请填写功能名称】')" /> | |
| 4 | + <th:block th:include="include :: header('添加线路档案信息')" /> | |
| 5 | 5 | <th:block th:include="include :: datetimepicker-css" /> |
| 6 | 6 | </head> |
| 7 | 7 | <body class="white-bg"> |
| 8 | 8 | <div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
| 9 | 9 | <form class="form-horizontal m" id="form-line-add"> |
| 10 | 10 | <div class="form-group"> |
| 11 | - <label class="col-sm-3 control-label">夜间停车场(无):</label> | |
| 12 | - <div class="col-sm-8"> | |
| 13 | - <input name="eventId" class="form-control" type="text"> | |
| 14 | - </div> | |
| 15 | - </div> | |
| 16 | - <div class="form-group"> | |
| 17 | - <label class="col-sm-3 control-label">夜间停车场(无):</label> | |
| 18 | - <div class="col-sm-8"> | |
| 19 | - <input name="lineId" class="form-control" type="text"> | |
| 20 | - </div> | |
| 21 | - </div> | |
| 22 | - <div class="form-group"> | |
| 23 | 11 | <label class="col-sm-3 control-label">线路名称:</label> |
| 24 | 12 | <div class="col-sm-8"> |
| 25 | 13 | <input name="lineName" class="form-control" type="text"> |
| ... | ... | @@ -44,78 +32,130 @@ |
| 44 | 32 | </div> |
| 45 | 33 | </div> |
| 46 | 34 | <div class="form-group"> |
| 47 | - <label class="col-sm-3 control-label">营运方式 全程/区间/大站/定班/跨线/B线:</label> | |
| 35 | + <label class="col-sm-3 control-label">营运方式:</label> | |
| 48 | 36 | <div class="col-sm-8"> |
| 49 | - <select name="serviceType" class="form-control m-b"> | |
| 50 | - <option value="">所有</option> | |
| 37 | + <select name="serviceType" | |
| 38 | + th:with="type=${@dict.getType('serviceType')}" | |
| 39 | + class="form-control m-b"> | |
| 40 | + <option value=""></option> | |
| 41 | + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 42 | + th:value="${dict.dictValue}"> | |
| 43 | + | |
| 44 | + </option> | |
| 51 | 45 | </select> |
| 52 | - <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span> | |
| 53 | 46 | </div> |
| 54 | 47 | </div> |
| 55 | - <div class="form-group"> | |
| 48 | + | |
| 49 | + <div class="form-group"> | |
| 56 | 50 | <label class="col-sm-3 control-label">线路属性:</label> |
| 57 | 51 | <div class="col-sm-8"> |
| 58 | - <input name="lineLevel" class="form-control" type="text"> | |
| 52 | + <select name="lineLevel" | |
| 53 | + th:with="type=${@dict.getType('lineLevel')}" | |
| 54 | + class="form-control m-b"> | |
| 55 | + <option value=""></option> | |
| 56 | + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 57 | + th:value="${dict.dictValue}"> | |
| 58 | + </option> | |
| 59 | + </select> | |
| 59 | 60 | </div> |
| 60 | 61 | </div> |
| 61 | 62 | <div class="form-group"> |
| 62 | - <label class="col-sm-3 control-label">线路属性:</label> | |
| 63 | + <label class="col-sm-3 control-label">线路类型:</label> | |
| 63 | 64 | <div class="col-sm-8"> |
| 64 | - <select name="lineType" class="form-control m-b"> | |
| 65 | - <option value="">所有</option> | |
| 65 | + <select name="lineType" th:with="type=${@dict.getType('lineType')}" | |
| 66 | + class="form-control m-b"> | |
| 67 | + <option value=""></option> | |
| 68 | + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 69 | + th:value="${dict.dictValue}"> | |
| 70 | + </option> | |
| 66 | 71 | </select> |
| 67 | - <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span> | |
| 68 | 72 | </div> |
| 69 | 73 | </div> |
| 70 | 74 | <div class="form-group"> |
| 71 | 75 | <label class="col-sm-3 control-label">区属:</label> |
| 72 | 76 | <div class="col-sm-8"> |
| 73 | - <input name="district" class="form-control" type="text"> | |
| 77 | + <select name="district" th:with="type=${@dict.getType('district')}" | |
| 78 | + class="form-control m-b"> | |
| 79 | + <option value=""></option> | |
| 80 | + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 81 | + th:value="${dict.dictValue}"> | |
| 82 | + </option> | |
| 83 | + </select> | |
| 74 | 84 | </div> |
| 75 | 85 | </div> |
| 76 | 86 | <div class="form-group"> |
| 77 | 87 | <label class="col-sm-3 control-label">是否区内:</label> |
| 78 | 88 | <div class="col-sm-8"> |
| 79 | - <input name="inoutDistrict" class="form-control" type="text"> | |
| 89 | + <select name="inoutDistrict" | |
| 90 | + th:with="type=${@dict.getType('trueFalse')}" | |
| 91 | + class="form-control m-b"> | |
| 92 | + <option value=""></option> | |
| 93 | + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 94 | + th:value="${dict.dictValue}"> | |
| 95 | + | |
| 96 | + </option> | |
| 97 | + </select> | |
| 80 | 98 | </div> |
| 81 | 99 | </div> |
| 82 | 100 | <div class="form-group"> |
| 83 | - <label class="col-sm-3 control-label">营运状态 运营中/撤销/暂停:</label> | |
| 101 | + <label class="col-sm-3 control-label">营运状态:</label> | |
| 84 | 102 | <div class="col-sm-8"> |
| 85 | - <input name="serviceState" class="form-control" type="text"> | |
| 103 | + <select name="serviceState" | |
| 104 | + th:with="type=${@dict.getType('serviceState')}" | |
| 105 | + class="form-control m-b"> | |
| 106 | + <option value=""></option> | |
| 107 | + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 108 | + th:value="${dict.dictValue}"> | |
| 109 | + </option> | |
| 110 | + </select> | |
| 86 | 111 | </div> |
| 87 | 112 | </div> |
| 88 | 113 | <div class="form-group"> |
| 89 | 114 | <label class="col-sm-3 control-label">车辆类型 多选:</label> |
| 90 | - <div class="col-sm-8"> | |
| 91 | - <select name="busType" class="form-control m-b"> | |
| 92 | - <option value="">所有</option> | |
| 93 | - </select> | |
| 94 | - <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span> | |
| 115 | + <div class="col-sm-8" th:with="type=${@dict.getType('busType')}"> | |
| 116 | + <label class="checkbox-inline" th:each="dict : ${type}" | |
| 117 | + style="display: block"> <input type="checkbox" | |
| 118 | + name="busType" | |
| 119 | + th:text="${dict.dictLabel}" th:value="${dict.dictValue}" /></label> | |
| 95 | 120 | </div> |
| 96 | 121 | </div> |
| 97 | 122 | <div class="form-group"> |
| 98 | 123 | <label class="col-sm-3 control-label">是否空调:</label> |
| 99 | 124 | <div class="col-sm-8"> |
| 100 | - <select name="airConditionerType" class="form-control m-b"> | |
| 101 | - <option value="">所有</option> | |
| 125 | + <select name="airConditionerType" | |
| 126 | + th:with="type=${@dict.getType('airConditionerType')}" | |
| 127 | + class="form-control m-b"> | |
| 128 | + <option value=""></option> | |
| 129 | + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 130 | + th:value="${dict.dictValue}"> | |
| 131 | + </option> | |
| 102 | 132 | </select> |
| 103 | - <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span> | |
| 104 | 133 | </div> |
| 105 | 134 | </div> |
| 106 | 135 | <div class="form-group"> |
| 107 | 136 | <label class="col-sm-3 control-label">售票类型:</label> |
| 108 | 137 | <div class="col-sm-8"> |
| 109 | - <select name="sellTicketType" class="form-control m-b"> | |
| 110 | - <option value="">所有</option> | |
| 138 | + <select name="sellTicketType" | |
| 139 | + th:with="type=${@dict.getType('sellTicketType')}" | |
| 140 | + class="form-control m-b"> | |
| 141 | + <option value=""></option> | |
| 142 | + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 143 | + th:value="${dict.dictValue}"> | |
| 144 | + </option> | |
| 111 | 145 | </select> |
| 112 | - <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span> | |
| 113 | 146 | </div> |
| 114 | 147 | </div> |
| 115 | 148 | <div class="form-group"> |
| 116 | 149 | <label class="col-sm-3 control-label">运营时间:</label> |
| 117 | 150 | <div class="col-sm-8"> |
| 118 | - <input name="serviceTime" class="form-control" type="text"> | |
| 151 | + <select name="serviceTime" | |
| 152 | + th:with="type=${@dict.getType('serviceTime')}" | |
| 153 | + class="form-control m-b"> | |
| 154 | + <option value=""></option> | |
| 155 | + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 156 | + th:value="${dict.dictValue}"> | |
| 157 | + </option> | |
| 158 | + </select> | |
| 119 | 159 | </div> |
| 120 | 160 | </div> |
| 121 | 161 | <div class="form-group"> |
| ... | ... | @@ -187,7 +227,14 @@ |
| 187 | 227 | <div class="form-group"> |
| 188 | 228 | <label class="col-sm-3 control-label">是否逻辑删除:</label> |
| 189 | 229 | <div class="col-sm-8"> |
| 190 | - <input name="isLogicDelete" class="form-control" type="text"> | |
| 230 | + <select name="isLogicDelete" | |
| 231 | + th:with="type=${@dict.getType('trueFalse')}" | |
| 232 | + class="form-control m-b"> | |
| 233 | + <option value=""></option> | |
| 234 | + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 235 | + th:value="${dict.dictValue}"> | |
| 236 | + </option> | |
| 237 | + </select> | |
| 191 | 238 | </div> |
| 192 | 239 | </div> |
| 193 | 240 | <div class="form-group"> |
| ... | ... | @@ -223,16 +270,49 @@ |
| 223 | 270 | <div class="form-group"> |
| 224 | 271 | <label class="col-sm-3 control-label">是否权证:</label> |
| 225 | 272 | <div class="col-sm-8"> |
| 226 | - <input name="isWarrant" class="form-control" type="text"> | |
| 273 | + <select name="isWarrant" id="isWarrant" | |
| 274 | + th:with="type=${@dict.getType('trueFalse')}" | |
| 275 | + class="form-control m-b"> | |
| 276 | + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 277 | + th:value="${dict.dictValue}" th:selected="${dict.dictValue=='1'}"> | |
| 278 | + </option> | |
| 279 | + </select> | |
| 280 | + </div> | |
| 281 | + </div> | |
| 282 | + <div class="form-group"> | |
| 283 | + <label class="col-sm-3 control-label">权证开通日期:</label> | |
| 284 | + <div class="col-sm-8"> | |
| 285 | + <div class="input-group date"> | |
| 286 | + <input name="isWarrantStartTime" id="isWarrantStartTime" | |
| 287 | + class="form-control" placeholder="yyyy-MM-dd" type="text" | |
| 288 | + autocomplete="off"> <span class="input-group-addon"><i | |
| 289 | + class="fa fa-calendar"></i></span> | |
| 290 | + </div> | |
| 291 | + | |
| 292 | + </div> | |
| 293 | + </div> | |
| 294 | + <div class="form-group"> | |
| 295 | + <label class="col-sm-3 control-label">权证到期日期:</label> | |
| 296 | + <div class="col-sm-8"> | |
| 297 | + <div class="input-group date"> | |
| 298 | + <input name="isWarrantEndTime" id="isWarrantEndTime" | |
| 299 | + class="form-control" placeholder="yyyy-MM-dd" type="text" | |
| 300 | + autocomplete="off"> <span class="input-group-addon"><i | |
| 301 | + class="fa fa-calendar"></i></span> | |
| 302 | + </div> | |
| 303 | + | |
| 227 | 304 | </div> |
| 228 | 305 | </div> |
| 229 | 306 | <div class="form-group"> |
| 230 | 307 | <label class="col-sm-3 control-label">道路类型:</label> |
| 231 | 308 | <div class="col-sm-8"> |
| 232 | - <select name="roadType" class="form-control m-b"> | |
| 233 | - <option value="">所有</option> | |
| 234 | - </select> | |
| 235 | - <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span> | |
| 309 | + <div class="col-sm-8" th:with="type=${@dict.getType('roadType')}"> | |
| 310 | + <label class="checkbox-inline" th:each="dict : ${type}" | |
| 311 | + style="display: block"> <input type="checkbox" | |
| 312 | + name="roadType" | |
| 313 | + th:text="${dict.dictLabel}" th:value="${dict.dictValue}" /> | |
| 314 | + </label> | |
| 315 | + </div> | |
| 236 | 316 | </div> |
| 237 | 317 | </div> |
| 238 | 318 | <div class="form-group"> |
| ... | ... | @@ -326,13 +406,13 @@ |
| 326 | 406 | </div> |
| 327 | 407 | </div> |
| 328 | 408 | <div class="form-group"> |
| 329 | - <label class="col-sm-3 control-label">经营权证:</label> | |
| 409 | + <label class="col-sm-3 control-label">经营权证(大巴):</label> | |
| 330 | 410 | <div class="col-sm-8"> |
| 331 | 411 | <input name="warrantVehiclesLarge" class="form-control" type="text"> |
| 332 | 412 | </div> |
| 333 | 413 | </div> |
| 334 | 414 | <div class="form-group"> |
| 335 | - <label class="col-sm-3 control-label">经营权证:</label> | |
| 415 | + <label class="col-sm-3 control-label">经营权证(中巴):</label> | |
| 336 | 416 | <div class="col-sm-8"> |
| 337 | 417 | <input name="warrantVehiclesMiddle" class="form-control" type="text"> |
| 338 | 418 | </div> |
| ... | ... | @@ -344,13 +424,13 @@ |
| 344 | 424 | </div> |
| 345 | 425 | </div> |
| 346 | 426 | <div class="form-group"> |
| 347 | - <label class="col-sm-3 control-label">实际车辆数:</label> | |
| 427 | + <label class="col-sm-3 control-label">实际车辆数(大):</label> | |
| 348 | 428 | <div class="col-sm-8"> |
| 349 | 429 | <input name="numberVehiclesLarge" class="form-control" type="text"> |
| 350 | 430 | </div> |
| 351 | 431 | </div> |
| 352 | 432 | <div class="form-group"> |
| 353 | - <label class="col-sm-3 control-label">实际车辆数:</label> | |
| 433 | + <label class="col-sm-3 control-label">实际车辆数(中):</label> | |
| 354 | 434 | <div class="col-sm-8"> |
| 355 | 435 | <input name="numberVehiclesMiddle" class="form-control" type="text"> |
| 356 | 436 | </div> |
| ... | ... | @@ -424,14 +504,24 @@ |
| 424 | 504 | <div class="form-group"> |
| 425 | 505 | <label class="col-sm-3 control-label">是否挂牌:</label> |
| 426 | 506 | <div class="col-sm-8"> |
| 427 | - <input name="hasTimelists" class="form-control" type="text"> | |
| 507 | + <select name="hasTimelists" | |
| 508 | + th:with="type=${@dict.getType('trueFalse')}" | |
| 509 | + class="form-control m-b"> | |
| 510 | + <option value=""></option> | |
| 511 | + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 512 | + th:value="${dict.dictValue}"> | |
| 513 | + </option> | |
| 514 | + </select> | |
| 428 | 515 | </div> |
| 429 | 516 | </div> |
| 430 | 517 | <div class="form-group"> |
| 431 | 518 | <label class="col-sm-3 control-label">是否轨交末班车衔接:</label> |
| 432 | - <div class="col-sm-8"> | |
| 433 | - <input name="isMetro" class="form-control" type="text"> | |
| 434 | - </div> | |
| 519 | + <select name="isMetro" th:with="type=${@dict.getType('trueFalse')}" | |
| 520 | + class="form-control m-b"> | |
| 521 | + <option value=""></option> | |
| 522 | + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" | |
| 523 | + th:value="${dict.dictValue}"></option> | |
| 524 | + </select> | |
| 435 | 525 | </div> |
| 436 | 526 | <div class="form-group"> |
| 437 | 527 | <label class="col-sm-3 control-label">轨交时间:</label> |
| ... | ... | @@ -445,10 +535,7 @@ |
| 445 | 535 | <div class="form-group"> |
| 446 | 536 | <label class="col-sm-3 control-label">冷僻线路补贴类型:</label> |
| 447 | 537 | <div class="col-sm-8"> |
| 448 | - <select name="coldBonusType" class="form-control m-b"> | |
| 449 | - <option value="">所有</option> | |
| 450 | - </select> | |
| 451 | - <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span> | |
| 538 | + <input name="coldBonusType" lass="form-control" type="text"> | |
| 452 | 539 | </div> |
| 453 | 540 | </div> |
| 454 | 541 | <div class="form-group"> |
| ... | ... | @@ -508,12 +595,6 @@ |
| 508 | 595 | </div> |
| 509 | 596 | </div> |
| 510 | 597 | </div> |
| 511 | - <div class="form-group"> | |
| 512 | - <label class="col-sm-3 control-label">夜间停车场(无):</label> | |
| 513 | - <div class="col-sm-8"> | |
| 514 | - <input name="nightParking" class="form-control" type="text"> | |
| 515 | - </div> | |
| 516 | - </div> | |
| 517 | 598 | </form> |
| 518 | 599 | </div> |
| 519 | 600 | <th:block th:include="include :: footer" /> |
| ... | ... | @@ -521,7 +602,26 @@ |
| 521 | 602 | <script th:inline="javascript"> |
| 522 | 603 | var prefix = ctx + "system/line" |
| 523 | 604 | $("#form-line-add").validate({ |
| 524 | - focusCleanup: true | |
| 605 | + rules:{ | |
| 606 | + isWarrantStartTime:{ | |
| 607 | + required:function (){ | |
| 608 | + return $('#isWarrant').val()==='1'; | |
| 609 | + }, | |
| 610 | + }, | |
| 611 | + isWarrantEndTime:{ | |
| 612 | + required:function (){ | |
| 613 | + return $('#isWarrant').val()==='1'; | |
| 614 | + }, | |
| 615 | + }, | |
| 616 | + }, | |
| 617 | + messages: { | |
| 618 | + isWarrantStartTime: { | |
| 619 | + required: "请选择日期", | |
| 620 | + }, | |
| 621 | + isWarrantEndTime: { | |
| 622 | + required: "请选择日期", | |
| 623 | + } | |
| 624 | + },focusCleanup: true | |
| 525 | 625 | }); |
| 526 | 626 | |
| 527 | 627 | function submitHandler() { |
| ... | ... | @@ -577,6 +677,18 @@ |
| 577 | 677 | minView: "month", |
| 578 | 678 | autoclose: true |
| 579 | 679 | }); |
| 680 | + | |
| 681 | + $("input[name='isWarrantStartTime']").datetimepicker({ | |
| 682 | + format: "yyyy-mm-dd", | |
| 683 | + minView: "month", | |
| 684 | + autoclose: true | |
| 685 | + }); | |
| 686 | + $("input[name='isWarrantEndTime']").datetimepicker({ | |
| 687 | + format: "yyyy-mm-dd", | |
| 688 | + minView: "month", | |
| 689 | + autoclose: true | |
| 690 | + }); | |
| 691 | + | |
| 580 | 692 | </script> |
| 581 | 693 | </body> |
| 582 | 694 | </html> |
| 583 | 695 | \ No newline at end of file | ... | ... |
bsthLineProfiles/src/main/resources/templates/system/lineHistory/edit.html
| ... | ... | @@ -117,7 +117,7 @@ |
| 117 | 117 | </div> |
| 118 | 118 | <div class="form-group"> |
| 119 | 119 | <label class="col-sm-3 control-label">车辆类型:</label> |
| 120 | - <div class="col-sm-8" th:with="type=${@dict.getType('busType')}"> | |
| 120 | + <div class="col-sm-8" th:with="type=${@dict.getType('busType')}" name="busType"> | |
| 121 | 121 | <label class="checkbox-inline" th:each="dict : ${type}" |
| 122 | 122 | style="display: block"> <input type="checkbox" |
| 123 | 123 | name="busType" |
| ... | ... | @@ -290,7 +290,7 @@ |
| 290 | 290 | <div class="form-group"> |
| 291 | 291 | <label class="col-sm-3 control-label">道路类型:</label> |
| 292 | 292 | <div class="col-sm-8"> |
| 293 | - <div class="col-sm-8" th:with="type=${@dict.getType('roadType')}"> | |
| 293 | + <div class="col-sm-8" th:with="type=${@dict.getType('roadType')}" name="roadType"> | |
| 294 | 294 | <label class="checkbox-inline" th:each="dict : ${type}" |
| 295 | 295 | style="display: block"> <input type="checkbox" |
| 296 | 296 | name="roadType" |
| ... | ... | @@ -560,7 +560,7 @@ |
| 560 | 560 | class="form-control" type="text"> |
| 561 | 561 | </div> |
| 562 | 562 | </div> |
| 563 | - <div class="form-group"> | |
| 563 | + <!--<div class="form-group"> | |
| 564 | 564 | <label class="col-sm-3 control-label">月度营收:</label> |
| 565 | 565 | <div class="col-sm-8"> |
| 566 | 566 | <input name="revenuesMonth" th:field="*{revenuesMonth}" |
| ... | ... | @@ -615,7 +615,7 @@ |
| 615 | 615 | <input name="personAvg" th:field="*{personAvg}" |
| 616 | 616 | class="form-control" type="text"> |
| 617 | 617 | </div> |
| 618 | - </div> | |
| 618 | + </div>--> | |
| 619 | 619 | |
| 620 | 620 | <div class="form-group"> |
| 621 | 621 | <label class="col-sm-3 control-label">启用时间:</label> |
| ... | ... | @@ -692,13 +692,30 @@ |
| 692 | 692 | } |
| 693 | 693 | } |
| 694 | 694 | }); */ |
| 695 | - | |
| 696 | 695 | $.post("/system/line/findByName", |
| 697 | 696 | { |
| 698 | 697 | name : $("#lineName").val() |
| 699 | 698 | }, |
| 700 | 699 | function(data) { |
| 701 | - for ( var i in data) { | |
| 700 | + var bsthTLineOld=data[0]; | |
| 701 | + var bsthTLineNew=data[1]; | |
| 702 | + if(bsthTLineNew!=null){ | |
| 703 | + console.log(bsthTLineNew) | |
| 704 | + for(let i in bsthTLineOld){ | |
| 705 | + var o=bsthTLineOld[i]==null?'':bsthTLineOld[i]; | |
| 706 | + var n=bsthTLineNew[i]==null?'':bsthTLineNew[i]; | |
| 707 | + if(o!=n){ | |
| 708 | + console.log(i) | |
| 709 | + i=i=='fcompany'?'fCompany':i; | |
| 710 | + i=i=='plineId'?'pLineId':i; | |
| 711 | + var input=document.getElementsByName(i)[0]; | |
| 712 | + if(input!=undefined){ | |
| 713 | + input.style.color='red' | |
| 714 | + } | |
| 715 | + } | |
| 716 | + } | |
| 717 | + } | |
| 718 | + /*for ( var i in data) { | |
| 702 | 719 | |
| 703 | 720 | if(i == "fcompany"){ |
| 704 | 721 | console.log(i); |
| ... | ... | @@ -747,7 +764,7 @@ |
| 747 | 764 | |
| 748 | 765 | } |
| 749 | 766 | |
| 750 | - } | |
| 767 | + }*/ | |
| 751 | 768 | |
| 752 | 769 | }); |
| 753 | 770 | ... | ... |