Commit 0d6a9b1794be0546eac8355029ae1eb6c4ed2d9e
1 parent
09fea85d
1.线路调查表加入‘公司’列
Showing
4 changed files
with
36 additions
and
0 deletions
src/main/java/com/bsth/entity/calc/CalcInvestigateMonth.java
| @@ -17,8 +17,22 @@ public class CalcInvestigateMonth { | @@ -17,8 +17,22 @@ public class CalcInvestigateMonth { | ||
| 17 | private String xl; | 17 | private String xl; |
| 18 | /* 公司编码*/ | 18 | /* 公司编码*/ |
| 19 | private String gsbm; | 19 | private String gsbm; |
| 20 | + | ||
| 21 | + /** | ||
| 22 | + * 公司名称 | ||
| 23 | + */ | ||
| 24 | + @Transient | ||
| 25 | + private String gsName; | ||
| 26 | + | ||
| 20 | /* 分公司编码*/ | 27 | /* 分公司编码*/ |
| 21 | private String fgsbm; | 28 | private String fgsbm; |
| 29 | + | ||
| 30 | + /** | ||
| 31 | + * 分公司名称 | ||
| 32 | + */ | ||
| 33 | + @Transient | ||
| 34 | + private String fgsName; | ||
| 35 | + | ||
| 22 | /* 线路名称*/ | 36 | /* 线路名称*/ |
| 23 | private String xlmc; | 37 | private String xlmc; |
| 24 | /* 权证配车数*/ | 38 | /* 权证配车数*/ |
| @@ -327,4 +341,20 @@ public class CalcInvestigateMonth { | @@ -327,4 +341,20 @@ public class CalcInvestigateMonth { | ||
| 327 | public void setQqz(String qqz) { | 341 | public void setQqz(String qqz) { |
| 328 | this.qqz = qqz; | 342 | this.qqz = qqz; |
| 329 | } | 343 | } |
| 344 | + | ||
| 345 | + public String getGsName() { | ||
| 346 | + return gsName; | ||
| 347 | + } | ||
| 348 | + | ||
| 349 | + public void setGsName(String gsName) { | ||
| 350 | + this.gsName = gsName; | ||
| 351 | + } | ||
| 352 | + | ||
| 353 | + public String getFgsName() { | ||
| 354 | + return fgsName; | ||
| 355 | + } | ||
| 356 | + | ||
| 357 | + public void setFgsName(String fgsName) { | ||
| 358 | + this.fgsName = fgsName; | ||
| 359 | + } | ||
| 330 | } | 360 | } |
src/main/java/com/bsth/service/calc/impl/CalcMixServiceImpl.java
| @@ -371,6 +371,8 @@ public class CalcMixServiceImpl implements CalcMixService { | @@ -371,6 +371,8 @@ public class CalcMixServiceImpl implements CalcMixService { | ||
| 371 | } | 371 | } |
| 372 | 372 | ||
| 373 | for(CalcInvestigateMonth c : list){ | 373 | for(CalcInvestigateMonth c : list){ |
| 374 | + c.setGsName(BasicData.businessCodeNameMap.get(c.getGsbm())); | ||
| 375 | + c.setFgsName(BasicData.businessFgsCodeNameMap.get(String.format("%s_%s", c.getGsbm(), c.getFgsbm()))); | ||
| 374 | if("1".equals(nature)){ | 376 | if("1".equals(nature)){ |
| 375 | if(lineNature.containsKey(c.getXl()) && lineNature.get(c.getXl())){ | 377 | if(lineNature.containsKey(c.getXl()) && lineNature.get(c.getXl())){ |
| 376 | resList.add(c); | 378 | resList.add(c); |
| @@ -441,6 +443,8 @@ public class CalcMixServiceImpl implements CalcMixService { | @@ -441,6 +443,8 @@ public class CalcMixServiceImpl implements CalcMixService { | ||
| 441 | map.put("xlzd", c.getXlzd()!=null?c.getXlzd():""); | 443 | map.put("xlzd", c.getXlzd()!=null?c.getXlzd():""); |
| 442 | map.put("bz", c.getBz()!=null?c.getBz():""); | 444 | map.put("bz", c.getBz()!=null?c.getBz():""); |
| 443 | map.put("qqz", c.getQqz()!=null?c.getQqz():""); | 445 | map.put("qqz", c.getQqz()!=null?c.getQqz():""); |
| 446 | + map.put("gsName", BasicData.businessCodeNameMap.get(c.getGsbm())); | ||
| 447 | + map.put("fgsName", BasicData.businessFgsCodeNameMap.get(String.format("%s_%s", c.getGsbm(), c.getFgsbm()))); | ||
| 444 | mapList.add(map); | 448 | mapList.add(map); |
| 445 | } | 449 | } |
| 446 | listI.add(mapList.iterator()); | 450 | listI.add(mapList.iterator()); |
src/main/resources/static/pages/forms/calc/calcInvestigateMonth.html
| @@ -88,6 +88,7 @@ | @@ -88,6 +88,7 @@ | ||
| 88 | <tr> | 88 | <tr> |
| 89 | <td rowspan="2">序号</td> | 89 | <td rowspan="2">序号</td> |
| 90 | <td rowspan="2" style="min-width:90px">线路</td> | 90 | <td rowspan="2" style="min-width:90px">线路</td> |
| 91 | + <td rowspan="2" style="min-width:90px">公司</td> | ||
| 91 | <td rowspan="2" style="min-width:90px">权证配车数</td> | 92 | <td rowspan="2" style="min-width:90px">权证配车数</td> |
| 92 | <td rowspan="2">线路属性</td> | 93 | <td rowspan="2">线路属性</td> |
| 93 | <td rowspan="2">线路类型</td> | 94 | <td rowspan="2">线路类型</td> |
| @@ -320,6 +321,7 @@ | @@ -320,6 +321,7 @@ | ||
| 320 | <tr> | 321 | <tr> |
| 321 | <td>{{i + 1}}</td> | 322 | <td>{{i + 1}}</td> |
| 322 | <td>{{obj.xlmc}}</td> | 323 | <td>{{obj.xlmc}}</td> |
| 324 | + <td>{{obj.gsName}}</td> | ||
| 323 | <td>{{obj.qzpcs}}</td> | 325 | <td>{{obj.qzpcs}}</td> |
| 324 | <td>{{obj.xlsx}}</td> | 326 | <td>{{obj.xlsx}}</td> |
| 325 | <td>{{obj.xllx}}</td> | 327 | <td>{{obj.xllx}}</td> |
src/main/resources/static/pages/forms/mould/calcInvestigateMonth.xls
No preview for this file type