diff --git a/productionboard/src/main/java/com/productionboard/service/impl/MesProductionDataServiceImpl.java b/productionboard/src/main/java/com/productionboard/service/impl/MesProductionDataServiceImpl.java index 7778f19..fad93b6 100644 --- a/productionboard/src/main/java/com/productionboard/service/impl/MesProductionDataServiceImpl.java +++ b/productionboard/src/main/java/com/productionboard/service/impl/MesProductionDataServiceImpl.java @@ -6,6 +6,7 @@ import com.productionboard.mapper.*; import com.productionboard.service.IMesProductionDataService; import org.apache.ibatis.annotations.Select; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import java.util.List; @@ -32,6 +33,10 @@ public class MesProductionDataServiceImpl implements IMesProductionDataService { private DeviceFaultMapper deviceFaultMapper; @Autowired private PlanInfoMapper planInfoMapper; + + @Value("${in_id}") + private int in_id; + /** * 通过工位号获取工位信息 * @author WenJY @@ -41,7 +46,7 @@ public class MesProductionDataServiceImpl implements IMesProductionDataService { */ @Override public List getMesTeamStatisticsList(String locationNumber) { - List adsorptionTankTeamStatistics = teamStatisticsMapper.getAdsorptionTankTeamStatistics(1); + List adsorptionTankTeamStatistics = teamStatisticsMapper.getAdsorptionTankTeamStatistics(this.in_id); return adsorptionTankTeamStatistics; } diff --git a/productionboard/src/main/resources/application.yml b/productionboard/src/main/resources/application.yml index 3b70347..bea2bcb 100644 --- a/productionboard/src/main/resources/application.yml +++ b/productionboard/src/main/resources/application.yml @@ -13,3 +13,5 @@ mybatis-plus: server: port: 6069 + +in_id: 1 \ No newline at end of file diff --git a/productionboard/target/classes/com/productionboard/service/impl/MesProductionDataServiceImpl.class b/productionboard/target/classes/com/productionboard/service/impl/MesProductionDataServiceImpl.class index 35ec3f2..401565c 100644 Binary files a/productionboard/target/classes/com/productionboard/service/impl/MesProductionDataServiceImpl.class and b/productionboard/target/classes/com/productionboard/service/impl/MesProductionDataServiceImpl.class differ