Commit e92f9a217b28d007f683f06b07ebdee5b6d4707f
1 parent
3c3f246b
update...
Showing
3 changed files
with
12 additions
and
8 deletions
src/main/java/com/bsth/server_ws/attendance/AttendanceServiceSoap.java
| @@ -64,7 +64,7 @@ public class AttendanceServiceSoap implements AttendanceService, ApplicationCont | @@ -64,7 +64,7 @@ public class AttendanceServiceSoap implements AttendanceService, ApplicationCont | ||
| 64 | Map<String, String> types = ddyAuthorityService.findMultiType(jsySet); | 64 | Map<String, String> types = ddyAuthorityService.findMultiType(jsySet); |
| 65 | 65 | ||
| 66 | //转换成工资系统想要的数据 | 66 | //转换成工资系统想要的数据 |
| 67 | - result.value = WSDataConver.to_jsyAttendanceNH(plans, reals, types, rq); | 67 | + result.value = WSDataConver.to_jsyAttendanceNH(plans, reals, jsySet, types, rq); |
| 68 | }catch (Exception e){ | 68 | }catch (Exception e){ |
| 69 | logger.error("", e); | 69 | logger.error("", e); |
| 70 | fError.value = "服务器出现异常!"; | 70 | fError.value = "服务器出现异常!"; |
src/main/java/com/bsth/server_ws/electric_oil/entity/Electric.java
| @@ -53,7 +53,7 @@ public class Electric { | @@ -53,7 +53,7 @@ public class Electric { | ||
| 53 | elec.setGsBm(car.getCompanyCode()); | 53 | elec.setGsBm(car.getCompanyCode()); |
| 54 | elec.setGsName(BusinessCodeData.code2Name.get(elec.getGsBm())); | 54 | elec.setGsName(BusinessCodeData.code2Name.get(elec.getGsBm())); |
| 55 | elec.setFgsBm(car.getBrancheCompanyCode()); | 55 | elec.setFgsBm(car.getBrancheCompanyCode()); |
| 56 | - elec.setFgsName(BusinessCodeData.code2Name.get(elec.getFgsBm())); | 56 | + elec.setFgsName(BusinessCodeData.code2Name.get(elec.getGsBm() + "_" + elec.getFgsBm())); |
| 57 | elec.setRq(fmtyyyyMMdd.parseDateTime(clsCDL.getYyrq()).toDate()); | 57 | elec.setRq(fmtyyyyMMdd.parseDateTime(clsCDL.getYyrq()).toDate()); |
| 58 | elec.setCreateDate(fmtyyyyMMddHHmmss.parseDateTime(clsCDL.getCreateRq()).toDate()); | 58 | elec.setCreateDate(fmtyyyyMMddHHmmss.parseDateTime(clsCDL.getCreateRq()).toDate()); |
| 59 | elec.setNbbm(nbbm); | 59 | elec.setNbbm(nbbm); |
src/main/java/com/bsth/server_ws/util/WSDataConver.java
| @@ -537,16 +537,19 @@ public class WSDataConver { | @@ -537,16 +537,19 @@ public class WSDataConver { | ||
| 537 | * @param types | 537 | * @param types |
| 538 | * @return | 538 | * @return |
| 539 | */ | 539 | */ |
| 540 | - public static Jsy_attendance[] to_jsyAttendanceNH(List<SchedulePlanInfo> plans, List<ScheduleRealInfo> reals, Map<String, String> types, String rq) { | ||
| 541 | - List<String> ghArray = new ArrayList<>(types.keySet()); | ||
| 542 | - Jsy_attendance[] rs = new Jsy_attendance[ghArray.size()]; | 540 | + public static Jsy_attendance[] to_jsyAttendanceNH(List<SchedulePlanInfo> plans, List<ScheduleRealInfo> reals, Set<String> jsySet, Map<String, String> types, String rq) { |
| 541 | + //List<String> ghArray = new ArrayList<>(types.keySet()); | ||
| 542 | + Jsy_attendance[] rs = new Jsy_attendance[jsySet.size()]; | ||
| 543 | 543 | ||
| 544 | Jsy_attendance attendance; | 544 | Jsy_attendance attendance; |
| 545 | SchedulePlanInfo plan; | 545 | SchedulePlanInfo plan; |
| 546 | ScheduleRealInfo real; | 546 | ScheduleRealInfo real; |
| 547 | - String jGh; | ||
| 548 | - for(int i = 0; i < ghArray.size(); i ++){ | ||
| 549 | - jGh = ghArray.get(i); | 547 | + //String jGh; |
| 548 | + | ||
| 549 | + int i = 0; | ||
| 550 | + for(String jGh : jsySet){ | ||
| 551 | + //for(int i = 0; i < ghArray.size(); i ++){ | ||
| 552 | + //jGh = ghArray.get(i); | ||
| 550 | 553 | ||
| 551 | attendance = new Jsy_attendance(); | 554 | attendance = new Jsy_attendance(); |
| 552 | attendance.setRq(rq); | 555 | attendance.setRq(rq); |
| @@ -581,6 +584,7 @@ public class WSDataConver { | @@ -581,6 +584,7 @@ public class WSDataConver { | ||
| 581 | } | 584 | } |
| 582 | 585 | ||
| 583 | rs[i] = attendance; | 586 | rs[i] = attendance; |
| 587 | + i++; | ||
| 584 | } | 588 | } |
| 585 | return rs; | 589 | return rs; |
| 586 | } | 590 | } |