8012 in_id

master
yinq 2 years ago
parent 48a392d9b1
commit 22ec7d68f9

@ -9,6 +9,7 @@ import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType; import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.system.domain.scada.OrderInfo; import com.ruoyi.system.domain.scada.OrderInfo;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ImosPrPlanMapper; import com.ruoyi.system.mapper.ImosPrPlanMapper;
import com.ruoyi.system.domain.ImosPrPlan_MyBatis; import com.ruoyi.system.domain.ImosPrPlan_MyBatis;
@ -28,6 +29,9 @@ public class ImosPrPlanServiceImpl implements IImosPrPlanService
@Autowired @Autowired
private ImosPrPlanMapper imosPrPlanMapper; private ImosPrPlanMapper imosPrPlanMapper;
@Value("${in_id}")
private int in_id;
/** /**
* *
* *
@ -117,47 +121,47 @@ public class ImosPrPlanServiceImpl implements IImosPrPlanService
@Override @Override
public List<OrderInfo> getUHullPlanInfo() { public List<OrderInfo> getUHullPlanInfo() {
return imosPrPlanMapper.getUHullPlanInfo(1); return imosPrPlanMapper.getUHullPlanInfo(in_id);
} }
@Override @Override
public List<OrderInfo> getAbsorbClassPlanInfo() { public List<OrderInfo> getAbsorbClassPlanInfo() {
return imosPrPlanMapper.getAbsorbClassPlanInfo(1); return imosPrPlanMapper.getAbsorbClassPlanInfo(in_id);
} }
@Override @Override
public List<OrderInfo> getAbsorbPlanInfo() { public List<OrderInfo> getAbsorbPlanInfo() {
return imosPrPlanMapper.getAbsorbPlanInfo(1); return imosPrPlanMapper.getAbsorbPlanInfo(in_id);
} }
@Override @Override
public List<OrderInfo> getAbsorbInventory() { public List<OrderInfo> getAbsorbInventory() {
return imosPrPlanMapper.getLinerInventoryInfo(1); return imosPrPlanMapper.getLinerInventoryInfo(in_id);
} }
@Override @Override
public List<OrderInfo> getAluminumClassPlanInfo() { public List<OrderInfo> getAluminumClassPlanInfo() {
return imosPrPlanMapper.getAluminumClassPlanInfo(1); return imosPrPlanMapper.getAluminumClassPlanInfo(in_id);
} }
@Override @Override
public List<OrderInfo> getAluminumPlanInfo() { public List<OrderInfo> getAluminumPlanInfo() {
return imosPrPlanMapper.getAluminumPlanInfo(1); return imosPrPlanMapper.getAluminumPlanInfo(in_id);
} }
@Override @Override
public List<OrderInfo> getPreinstalledPlanInfo() { public List<OrderInfo> getPreinstalledPlanInfo() {
return imosPrPlanMapper.getPreinstalledPlanInfo(1); return imosPrPlanMapper.getPreinstalledPlanInfo(in_id);
} }
@Override @Override
public List<OrderInfo> getAluminumInventory() { public List<OrderInfo> getAluminumInventory() {
return imosPrPlanMapper.getLinerInventoryInfo(1); return imosPrPlanMapper.getLinerInventoryInfo(in_id);
} }
@Override @Override
public List<OrderInfo> getPreinstalledInventory() { public List<OrderInfo> getPreinstalledInventory() {
return imosPrPlanMapper.getLinerInventoryInfo(1); return imosPrPlanMapper.getLinerInventoryInfo(in_id);
} }
@ -168,14 +172,14 @@ public class ImosPrPlanServiceImpl implements IImosPrPlanService
@Override @Override
public List<OrderInfo> getSumUHullPlanInfo() { public List<OrderInfo> getSumUHullPlanInfo() {
return imosPrPlanMapper.getSumUHullPlanInfo(1); return imosPrPlanMapper.getSumUHullPlanInfo(in_id);
} }
@Override @Override
public String getFoamerPlanHourInfo() { public String getFoamerPlanHourInfo() {
List<OrderInfo> orderInfo = imosPrPlanMapper.getFoamerPlanHourInfo(1); List<OrderInfo> orderInfo = imosPrPlanMapper.getFoamerPlanHourInfo(in_id);
List<String> orderTypeList = new ArrayList<>(); List<String> orderTypeList = new ArrayList<>();
List<Long> planQtyList = new ArrayList<>(); List<Long> planQtyList = new ArrayList<>();
@ -307,7 +311,7 @@ public class ImosPrPlanServiceImpl implements IImosPrPlanService
@Override @Override
public String getFoamerPlanHourInfo2() { public String getFoamerPlanHourInfo2() {
List<OrderInfo> orderInfo = imosPrPlanMapper.getFoamerPlanHourInfo(1); List<OrderInfo> orderInfo = imosPrPlanMapper.getFoamerPlanHourInfo(in_id);
List<String> orderTypeList = new ArrayList<>(); List<String> orderTypeList = new ArrayList<>();
List<Long> planQtyList = new ArrayList<>(); List<Long> planQtyList = new ArrayList<>();
@ -440,7 +444,7 @@ public class ImosPrPlanServiceImpl implements IImosPrPlanService
@Override @Override
public String getUHullPlanHourInfo() { public String getUHullPlanHourInfo() {
try{ try{
List<OrderInfo> orderInfo = imosPrPlanMapper.getUhullPlanHourInfo(1); List<OrderInfo> orderInfo = imosPrPlanMapper.getUhullPlanHourInfo(in_id);
List<OrderInfo> collect = orderInfo.stream().filter(x -> !x.getOrderType().isEmpty()).collect(Collectors.toList()); List<OrderInfo> collect = orderInfo.stream().filter(x -> !x.getOrderType().isEmpty()).collect(Collectors.toList());
@ -517,7 +521,7 @@ public class ImosPrPlanServiceImpl implements IImosPrPlanService
@Override @Override
public String getAbsorbPlanHourInfo() { public String getAbsorbPlanHourInfo() {
List<OrderInfo> orderInfo = imosPrPlanMapper.getAbsorbPlanHourInfo(1); List<OrderInfo> orderInfo = imosPrPlanMapper.getAbsorbPlanHourInfo(in_id);
List<String> orderTypeList = new ArrayList<>(); List<String> orderTypeList = new ArrayList<>();
List<Long> planQtyList = new ArrayList<>(); List<Long> planQtyList = new ArrayList<>();
@ -588,12 +592,12 @@ public class ImosPrPlanServiceImpl implements IImosPrPlanService
@Override @Override
public List<OrderInfo> getAbsorbOutPutByType() { public List<OrderInfo> getAbsorbOutPutByType() {
return imosPrPlanMapper.getAbsorbOutPutByType(1); return imosPrPlanMapper.getAbsorbOutPutByType(in_id);
} }
@Override @Override
public String getAluminumPlanHourInfo() { public String getAluminumPlanHourInfo() {
List<OrderInfo> orderInfo = imosPrPlanMapper.getAluminumPlanHourInfo(1); List<OrderInfo> orderInfo = imosPrPlanMapper.getAluminumPlanHourInfo(in_id);
List<String> orderTypeList = new ArrayList<>(); List<String> orderTypeList = new ArrayList<>();
List<Long> planQtyList = new ArrayList<>(); List<Long> planQtyList = new ArrayList<>();
@ -664,12 +668,12 @@ public class ImosPrPlanServiceImpl implements IImosPrPlanService
@Override @Override
public List<OrderInfo> getAluminumOutPutByType() { public List<OrderInfo> getAluminumOutPutByType() {
return imosPrPlanMapper.getAluminumOutPutByType(1); return imosPrPlanMapper.getAluminumOutPutByType(in_id);
} }
@Override @Override
public String getPreinstalledPlanHourInfo() { public String getPreinstalledPlanHourInfo() {
List<OrderInfo> orderInfo = imosPrPlanMapper.getPreinstalledPlanHourInfo(1); List<OrderInfo> orderInfo = imosPrPlanMapper.getPreinstalledPlanHourInfo(in_id);
List<String> orderTypeList = new ArrayList<>(); List<String> orderTypeList = new ArrayList<>();
List<Long> planQtyList = new ArrayList<>(); List<Long> planQtyList = new ArrayList<>();
@ -739,33 +743,33 @@ public class ImosPrPlanServiceImpl implements IImosPrPlanService
} }
@Override @Override
public List<OrderInfo> getPlanInfoChart(){ public List<OrderInfo> getPlanInfoChart(){
return imosPrPlanMapper.getFoamerOutPutByType(1); return imosPrPlanMapper.getFoamerOutPutByType(in_id);
} }
@Override @Override
public List<OrderInfo> getFoamerInventoryInfo() { public List<OrderInfo> getFoamerInventoryInfo() {
return imosPrPlanMapper.getFoamerInventoryInfo(1); return imosPrPlanMapper.getFoamerInventoryInfo(in_id);
} }
@Override @Override
public List<OrderInfo> getUhullInventoryInfo() { public List<OrderInfo> getUhullInventoryInfo() {
return imosPrPlanMapper.getUhullInventoryInfo(1); return imosPrPlanMapper.getUhullInventoryInfo(in_id);
} }
@Override @Override
public List<OrderInfo> getUHullOutPutByType(){ public List<OrderInfo> getUHullOutPutByType(){
return imosPrPlanMapper.getUHullOutPutByType(1); return imosPrPlanMapper.getUHullOutPutByType(in_id);
} }
@Override @Override
public List<OrderInfo> getLinerInventoryInfo() { public List<OrderInfo> getLinerInventoryInfo() {
return imosPrPlanMapper.getLinerInventoryInfo(1); return imosPrPlanMapper.getLinerInventoryInfo(in_id);
} }
@Override @Override
@DataSource(value = DataSourceType.MASTER) @DataSource(value = DataSourceType.MASTER)
public List<OrderInfo> getAbsorbHourOutPutByDevice() { public List<OrderInfo> getAbsorbHourOutPutByDevice() {
return imosPrPlanMapper.getPlanInfoToday(1); return imosPrPlanMapper.getPlanInfoToday(in_id);
} }
} }

Loading…
Cancel
Save