Commit 2911e54c2e2cb8cfe211108c1dd83081567d2b40
1 parent
cb98ba6b
PSM-12
Showing
1 changed file
with
20 additions
and
12 deletions
src/main/java/com/bsth/entity/schedule/SchedulePlanInfo.java
| ... | ... | @@ -184,16 +184,7 @@ public class SchedulePlanInfo { |
| 184 | 184 | |
| 185 | 185 | // 关联的车辆信息 |
| 186 | 186 | this.cl = carConfigInfo.getCl().getId(); // 车辆id |
| 187 | -// this.clZbh = carConfigInfo.getCl().getInsideCode(); // 自编号/内部编号 | |
| 188 | - // 有时候自编号是内部编号的一部分,由-隔开,需要处理一下 | |
| 189 | - if (StringUtils.isNotEmpty(carConfigInfo.getCl().getInsideCode())) { | |
| 190 | - String[] incode_temp = carConfigInfo.getCl().getInsideCode().split("-"); | |
| 191 | - if (incode_temp.length > 1) { | |
| 192 | - this.clZbh = incode_temp[1]; | |
| 193 | - } else { | |
| 194 | - this.clZbh = incode_temp[0]; | |
| 195 | - } | |
| 196 | - } | |
| 187 | + this.clZbh = carConfigInfo.getCl().getInsideCode(); // 自编号/内部编号 | |
| 197 | 188 | |
| 198 | 189 | // TODO:报道时间,出场时间没有 |
| 199 | 190 | // 关联的驾驶员 |
| ... | ... | @@ -209,12 +200,29 @@ public class SchedulePlanInfo { |
| 209 | 200 | } |
| 210 | 201 | |
| 211 | 202 | this.j = employeeConfigInfo.getJsy().getId(); |
| 212 | - this.jGh = employeeConfigInfo.getJsy().getJobCode(); | |
| 203 | +// this.jGh = employeeConfigInfo.getJsy().getJobCode(); | |
| 204 | + if (StringUtils.isNotEmpty(employeeConfigInfo.getJsy().getJobCode())) { | |
| 205 | + String[] jsy_temp = employeeConfigInfo.getJsy().getJobCode().split("-"); | |
| 206 | + if (jsy_temp.length > 1) { | |
| 207 | + this.jGh = jsy_temp[1]; | |
| 208 | + } else { | |
| 209 | + this.jGh = jsy_temp[0]; | |
| 210 | + } | |
| 211 | + } | |
| 213 | 212 | this.jName = employeeConfigInfo.getJsy().getPersonnelName(); |
| 214 | 213 | // 关联的售票员 |
| 215 | 214 | if (employeeConfigInfo.getSpy() != null) { |
| 216 | 215 | this.s = employeeConfigInfo.getSpy().getId(); |
| 217 | - this.sGh = employeeConfigInfo.getSpy().getJobCode(); | |
| 216 | +// this.sGh = employeeConfigInfo.getSpy().getJobCode(); | |
| 217 | + if (StringUtils.isNotEmpty(employeeConfigInfo.getSpy().getJobCode())) { | |
| 218 | + String[] spy_temp = employeeConfigInfo.getSpy().getJobCode().split("-"); | |
| 219 | + if (spy_temp.length > 1) { | |
| 220 | + this.sGh = spy_temp[1]; | |
| 221 | + } else { | |
| 222 | + this.sGh = spy_temp[0]; | |
| 223 | + } | |
| 224 | + } | |
| 225 | + | |
| 218 | 226 | this.sName = employeeConfigInfo.getSpy().getPersonnelName(); |
| 219 | 227 | } |
| 220 | 228 | ... | ... |