|
@@ -308,7 +308,6 @@ public class AdminMachineController {
|
|
|
Produce produce = new Produce();
|
|
|
if (produceId == null || produceId.equals("")) {
|
|
|
produce = produceService.getProduceByOne();
|
|
|
-
|
|
|
} else {
|
|
|
produce.setProduceId(Integer.valueOf(produceId));
|
|
|
produce = produceService.getProduce(produce);
|
|
@@ -320,6 +319,7 @@ public class AdminMachineController {
|
|
|
String year = String.valueOf(date.get(Calendar.YEAR));
|
|
|
ptsMachineStatistics.setYear(year);
|
|
|
ptsMachineStatistics.setMachineType(produce.getProduceType());
|
|
|
+ ptsMachineStatistics.setProduceId(String.valueOf(produce.getProduceId()));
|
|
|
|
|
|
List<PtsMachineStatistics> ptsMachineStatisticsList = machineService.monthStatistics(ptsMachineStatistics);
|
|
|
if (ptsMachineStatisticsList.size() > 0) {
|