From 22ec7d68f997543e64cfe8f8d8e54284a1daceaf Mon Sep 17 00:00:00 2001 From: yinq <1345442242@qq.com> Date: Sun, 2 Oct 2022 12:56:15 +0800 Subject: [PATCH] 8012 in_id --- .../service/impl/ImosPrPlanServiceImpl.java | 52 ++++++++++--------- 1 file changed, 28 insertions(+), 24 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ImosPrPlanServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ImosPrPlanServiceImpl.java index a0d2212..23bbbe1 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ImosPrPlanServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ImosPrPlanServiceImpl.java @@ -9,6 +9,7 @@ import com.ruoyi.common.annotation.DataSource; import com.ruoyi.common.enums.DataSourceType; import com.ruoyi.system.domain.scada.OrderInfo; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import com.ruoyi.system.mapper.ImosPrPlanMapper; import com.ruoyi.system.domain.ImosPrPlan_MyBatis; @@ -28,6 +29,9 @@ public class ImosPrPlanServiceImpl implements IImosPrPlanService @Autowired private ImosPrPlanMapper imosPrPlanMapper; + @Value("${in_id}") + private int in_id; + /** * 查询工单 * @@ -117,47 +121,47 @@ public class ImosPrPlanServiceImpl implements IImosPrPlanService @Override public List getUHullPlanInfo() { - return imosPrPlanMapper.getUHullPlanInfo(1); + return imosPrPlanMapper.getUHullPlanInfo(in_id); } @Override public List getAbsorbClassPlanInfo() { - return imosPrPlanMapper.getAbsorbClassPlanInfo(1); + return imosPrPlanMapper.getAbsorbClassPlanInfo(in_id); } @Override public List getAbsorbPlanInfo() { - return imosPrPlanMapper.getAbsorbPlanInfo(1); + return imosPrPlanMapper.getAbsorbPlanInfo(in_id); } @Override public List getAbsorbInventory() { - return imosPrPlanMapper.getLinerInventoryInfo(1); + return imosPrPlanMapper.getLinerInventoryInfo(in_id); } @Override public List getAluminumClassPlanInfo() { - return imosPrPlanMapper.getAluminumClassPlanInfo(1); + return imosPrPlanMapper.getAluminumClassPlanInfo(in_id); } @Override public List getAluminumPlanInfo() { - return imosPrPlanMapper.getAluminumPlanInfo(1); + return imosPrPlanMapper.getAluminumPlanInfo(in_id); } @Override public List getPreinstalledPlanInfo() { - return imosPrPlanMapper.getPreinstalledPlanInfo(1); + return imosPrPlanMapper.getPreinstalledPlanInfo(in_id); } @Override public List getAluminumInventory() { - return imosPrPlanMapper.getLinerInventoryInfo(1); + return imosPrPlanMapper.getLinerInventoryInfo(in_id); } @Override public List getPreinstalledInventory() { - return imosPrPlanMapper.getLinerInventoryInfo(1); + return imosPrPlanMapper.getLinerInventoryInfo(in_id); } @@ -168,14 +172,14 @@ public class ImosPrPlanServiceImpl implements IImosPrPlanService @Override public List getSumUHullPlanInfo() { - return imosPrPlanMapper.getSumUHullPlanInfo(1); + return imosPrPlanMapper.getSumUHullPlanInfo(in_id); } @Override public String getFoamerPlanHourInfo() { - List orderInfo = imosPrPlanMapper.getFoamerPlanHourInfo(1); + List orderInfo = imosPrPlanMapper.getFoamerPlanHourInfo(in_id); List orderTypeList = new ArrayList<>(); List planQtyList = new ArrayList<>(); @@ -307,7 +311,7 @@ public class ImosPrPlanServiceImpl implements IImosPrPlanService @Override public String getFoamerPlanHourInfo2() { - List orderInfo = imosPrPlanMapper.getFoamerPlanHourInfo(1); + List orderInfo = imosPrPlanMapper.getFoamerPlanHourInfo(in_id); List orderTypeList = new ArrayList<>(); List planQtyList = new ArrayList<>(); @@ -440,7 +444,7 @@ public class ImosPrPlanServiceImpl implements IImosPrPlanService @Override public String getUHullPlanHourInfo() { try{ - List orderInfo = imosPrPlanMapper.getUhullPlanHourInfo(1); + List orderInfo = imosPrPlanMapper.getUhullPlanHourInfo(in_id); List collect = orderInfo.stream().filter(x -> !x.getOrderType().isEmpty()).collect(Collectors.toList()); @@ -517,7 +521,7 @@ public class ImosPrPlanServiceImpl implements IImosPrPlanService @Override public String getAbsorbPlanHourInfo() { - List orderInfo = imosPrPlanMapper.getAbsorbPlanHourInfo(1); + List orderInfo = imosPrPlanMapper.getAbsorbPlanHourInfo(in_id); List orderTypeList = new ArrayList<>(); List planQtyList = new ArrayList<>(); @@ -588,12 +592,12 @@ public class ImosPrPlanServiceImpl implements IImosPrPlanService @Override public List getAbsorbOutPutByType() { - return imosPrPlanMapper.getAbsorbOutPutByType(1); + return imosPrPlanMapper.getAbsorbOutPutByType(in_id); } @Override public String getAluminumPlanHourInfo() { - List orderInfo = imosPrPlanMapper.getAluminumPlanHourInfo(1); + List orderInfo = imosPrPlanMapper.getAluminumPlanHourInfo(in_id); List orderTypeList = new ArrayList<>(); List planQtyList = new ArrayList<>(); @@ -664,12 +668,12 @@ public class ImosPrPlanServiceImpl implements IImosPrPlanService @Override public List getAluminumOutPutByType() { - return imosPrPlanMapper.getAluminumOutPutByType(1); + return imosPrPlanMapper.getAluminumOutPutByType(in_id); } @Override public String getPreinstalledPlanHourInfo() { - List orderInfo = imosPrPlanMapper.getPreinstalledPlanHourInfo(1); + List orderInfo = imosPrPlanMapper.getPreinstalledPlanHourInfo(in_id); List orderTypeList = new ArrayList<>(); List planQtyList = new ArrayList<>(); @@ -739,33 +743,33 @@ public class ImosPrPlanServiceImpl implements IImosPrPlanService } @Override public List getPlanInfoChart(){ - return imosPrPlanMapper.getFoamerOutPutByType(1); + return imosPrPlanMapper.getFoamerOutPutByType(in_id); } @Override public List getFoamerInventoryInfo() { - return imosPrPlanMapper.getFoamerInventoryInfo(1); + return imosPrPlanMapper.getFoamerInventoryInfo(in_id); } @Override public List getUhullInventoryInfo() { - return imosPrPlanMapper.getUhullInventoryInfo(1); + return imosPrPlanMapper.getUhullInventoryInfo(in_id); } @Override public List getUHullOutPutByType(){ - return imosPrPlanMapper.getUHullOutPutByType(1); + return imosPrPlanMapper.getUHullOutPutByType(in_id); } @Override public List getLinerInventoryInfo() { - return imosPrPlanMapper.getLinerInventoryInfo(1); + return imosPrPlanMapper.getLinerInventoryInfo(in_id); } @Override @DataSource(value = DataSourceType.MASTER) public List getAbsorbHourOutPutByDevice() { - return imosPrPlanMapper.getPlanInfoToday(1); + return imosPrPlanMapper.getPlanInfoToday(in_id); } }