6069小时产量改

master
yinq 2 years ago
parent 4406126f2d
commit 75cf160ab4

@ -61,7 +61,7 @@ public class AluminumTtankController {
@ResponseBody
public String getHourProdutionStatisticsJson(){
List<MesHourProdutionStatistics> mesHourProdutionStatisticsList =
iMesProductionDataService.getMesHourProdutionStatisticsList("铝内胆");
iMesProductionDataService.getMesHourProdutionStatisticsList("1006");
if(mesHourProdutionStatisticsList.size()>0){
return JSONArray.toJSONString(mesHourProdutionStatisticsList);
}

@ -58,7 +58,7 @@ public class TankShellController {
@GetMapping("/getHourProdutionJson")
@ResponseBody
public String getHourProdutionStatisticsJson(){
List<MesHourProdutionStatistics> mesHourProdutionStatisticsList = iMesProductionDataService.getMesHourProdutionStatisticsList("箱壳");
List<MesHourProdutionStatistics> mesHourProdutionStatisticsList = iMesProductionDataService.getMesHourProdutionStatisticsList("1009");
if(mesHourProdutionStatisticsList.size()>0){
return JSONArray.toJSONString(mesHourProdutionStatisticsList);
}

@ -3,6 +3,7 @@ package com.productionboard.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.productionboard.entity.MesProduction.MesHourProdutionStatistics;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
@ -16,4 +17,19 @@ import java.util.List;
@Repository
public interface MesHourProdutionStatisticsMapper extends BaseMapper<MesHourProdutionStatistics> {
/**
*
* @param in_id
* @return
*/
@Select("select * from table ( scada_type_hourly_output_new6(#{in_id}) )")
List<MesHourProdutionStatistics> getMesHourProdutionStatisticsList6(@Param("in_id") Integer in_id);
/**
*
* @param in_id
* @return
*/
@Select("select * from table ( scada_type_hourly_output_new9(#{in_id}) )")
List<MesHourProdutionStatistics> getMesHourProdutionStatisticsList9(@Param("in_id") Integer in_id);
}

@ -54,10 +54,13 @@ public class MesProductionDataServiceImpl implements IMesProductionDataService {
break;
case "1004":
adsorptionTankTeamStatistics = teamStatisticsMapper.getAdsorptionTankTeamStatistics(this.in_id);
break;
case "1006":
adsorptionTankTeamStatistics = teamStatisticsMapper.getAdsorptionTankTeamStatistics6(this.in_id);
break;
case "1009":
adsorptionTankTeamStatistics = teamStatisticsMapper.getAdsorptionTankTeamStatistics9(this.in_id);
break;
default:
break;
}
@ -74,9 +77,21 @@ public class MesProductionDataServiceImpl implements IMesProductionDataService {
@Override
@Select("")
public List<MesHourProdutionStatistics> getMesHourProdutionStatisticsList(String locationNumber) {
QueryWrapper<MesHourProdutionStatistics> wrapper = new QueryWrapper<MesHourProdutionStatistics>();
wrapper.eq("POSIONID",locationNumber);
List<MesHourProdutionStatistics> mesHourProdutionStatistics = hourProdutionStatisticsMapper.selectList(wrapper);
List<MesHourProdutionStatistics> mesHourProdutionStatistics = new ArrayList<>();
switch (locationNumber) {
case "1001":
break;
case "1004":
break;
case "1006":
mesHourProdutionStatistics = hourProdutionStatisticsMapper.getMesHourProdutionStatisticsList6(this.in_id);
break;
case "1009":
mesHourProdutionStatistics = hourProdutionStatisticsMapper.getMesHourProdutionStatisticsList9(this.in_id);
break;
default:
break;
}
return mesHourProdutionStatistics;
}

Loading…
Cancel
Save