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 | 651 | int currentDay = cal.get(Calendar.DAY_OF_MONTH); |
| 652 | 652 | for(int i = 1; i <= maxDate; i++){ |
| 653 | 653 | lcPb = new LsLcPb(); |
| 654 | + lcPb.setDay(i); | |
| 655 | + | |
| 654 | 656 | rq = fdate + "-" + (i < 10?"0":"") + i; |
| 655 | 657 | rq2 = rq.replaceAll("-", ""); |
| 656 | 658 | |
| ... | ... | @@ -658,9 +660,6 @@ public class WSDataConver { |
| 658 | 660 | yhList = oilMultimap.get(rq2); |
| 659 | 661 | jhList = planMultimap.get(rq2); |
| 660 | 662 | |
| 661 | - /*if(jhList == null && pbList.size() == 0) | |
| 662 | - lcPb.setType(4);//休息 | |
| 663 | - else */ | |
| 664 | 663 | if(i < currentDay){ |
| 665 | 664 | if(pbList == null || pbList.size() == 0) |
| 666 | 665 | lcPb.setType(4);//休息 |
| ... | ... | @@ -688,6 +687,8 @@ public class WSDataConver { |
| 688 | 687 | lcPb.setPbbd(minusMinute(outPlan.getFcsj(), 15)); |
| 689 | 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 | 718 | sb.append("," + lcPb.getPbyc()); |
| 718 | 719 | break; |
| 719 | 720 | } |
| 721 | + sb.append("," + lcPb.getDay()); | |
| 720 | 722 | array[i] = sb.toString(); |
| 721 | 723 | } |
| 722 | 724 | } catch (NoSuchFieldException e) { | ... | ... |