Commit 3d5ec8e3adfd327105ebb1c2e52098171247d5fa
1 parent
1c476e0b
update...
Showing
1 changed file
with
5 additions
and
3 deletions
src/main/java/com/bsth/server_ws/util/WSDataConver.java
| @@ -651,6 +651,8 @@ public class WSDataConver { | @@ -651,6 +651,8 @@ public class WSDataConver { | ||
| 651 | int currentDay = cal.get(Calendar.DAY_OF_MONTH); | 651 | int currentDay = cal.get(Calendar.DAY_OF_MONTH); |
| 652 | for(int i = 1; i <= maxDate; i++){ | 652 | for(int i = 1; i <= maxDate; i++){ |
| 653 | lcPb = new LsLcPb(); | 653 | lcPb = new LsLcPb(); |
| 654 | + lcPb.setDay(i); | ||
| 655 | + | ||
| 654 | rq = fdate + "-" + (i < 10?"0":"") + i; | 656 | rq = fdate + "-" + (i < 10?"0":"") + i; |
| 655 | rq2 = rq.replaceAll("-", ""); | 657 | rq2 = rq.replaceAll("-", ""); |
| 656 | 658 | ||
| @@ -658,9 +660,6 @@ public class WSDataConver { | @@ -658,9 +660,6 @@ public class WSDataConver { | ||
| 658 | yhList = oilMultimap.get(rq2); | 660 | yhList = oilMultimap.get(rq2); |
| 659 | jhList = planMultimap.get(rq2); | 661 | jhList = planMultimap.get(rq2); |
| 660 | 662 | ||
| 661 | - /*if(jhList == null && pbList.size() == 0) | ||
| 662 | - lcPb.setType(4);//休息 | ||
| 663 | - else */ | ||
| 664 | if(i < currentDay){ | 663 | if(i < currentDay){ |
| 665 | if(pbList == null || pbList.size() == 0) | 664 | if(pbList == null || pbList.size() == 0) |
| 666 | lcPb.setType(4);//休息 | 665 | lcPb.setType(4);//休息 |
| @@ -688,6 +687,8 @@ public class WSDataConver { | @@ -688,6 +687,8 @@ public class WSDataConver { | ||
| 688 | lcPb.setPbbd(minusMinute(outPlan.getFcsj(), 15)); | 687 | lcPb.setPbbd(minusMinute(outPlan.getFcsj(), 15)); |
| 689 | lcPb.setPbyc(outPlan.getClZbh()); | 688 | lcPb.setPbyc(outPlan.getClZbh()); |
| 690 | } | 689 | } |
| 690 | + else | ||
| 691 | + lcPb.setType(4);//休息 | ||
| 691 | } | 692 | } |
| 692 | } | 693 | } |
| 693 | 694 | ||
| @@ -717,6 +718,7 @@ public class WSDataConver { | @@ -717,6 +718,7 @@ public class WSDataConver { | ||
| 717 | sb.append("," + lcPb.getPbyc()); | 718 | sb.append("," + lcPb.getPbyc()); |
| 718 | break; | 719 | break; |
| 719 | } | 720 | } |
| 721 | + sb.append("," + lcPb.getDay()); | ||
| 720 | array[i] = sb.toString(); | 722 | array[i] = sb.toString(); |
| 721 | } | 723 | } |
| 722 | } catch (NoSuchFieldException e) { | 724 | } catch (NoSuchFieldException e) { |