6069小时产量改

master
yinq 2 years ago
parent 4406126f2d
commit 75cf160ab4

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

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

@ -3,6 +3,7 @@ package com.productionboard.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.productionboard.entity.MesProduction.MesHourProdutionStatistics; import com.productionboard.entity.MesProduction.MesHourProdutionStatistics;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
@ -16,4 +17,19 @@ import java.util.List;
@Repository @Repository
public interface MesHourProdutionStatisticsMapper extends BaseMapper<MesHourProdutionStatistics> { 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; break;
case "1004": case "1004":
adsorptionTankTeamStatistics = teamStatisticsMapper.getAdsorptionTankTeamStatistics(this.in_id); adsorptionTankTeamStatistics = teamStatisticsMapper.getAdsorptionTankTeamStatistics(this.in_id);
break;
case "1006": case "1006":
adsorptionTankTeamStatistics = teamStatisticsMapper.getAdsorptionTankTeamStatistics6(this.in_id); adsorptionTankTeamStatistics = teamStatisticsMapper.getAdsorptionTankTeamStatistics6(this.in_id);
break;
case "1009": case "1009":
adsorptionTankTeamStatistics = teamStatisticsMapper.getAdsorptionTankTeamStatistics9(this.in_id); adsorptionTankTeamStatistics = teamStatisticsMapper.getAdsorptionTankTeamStatistics9(this.in_id);
break;
default: default:
break; break;
} }
@ -74,9 +77,21 @@ public class MesProductionDataServiceImpl implements IMesProductionDataService {
@Override @Override
@Select("") @Select("")
public List<MesHourProdutionStatistics> getMesHourProdutionStatisticsList(String locationNumber) { public List<MesHourProdutionStatistics> getMesHourProdutionStatisticsList(String locationNumber) {
QueryWrapper<MesHourProdutionStatistics> wrapper = new QueryWrapper<MesHourProdutionStatistics>(); List<MesHourProdutionStatistics> mesHourProdutionStatistics = new ArrayList<>();
wrapper.eq("POSIONID",locationNumber); switch (locationNumber) {
List<MesHourProdutionStatistics> mesHourProdutionStatistics = hourProdutionStatisticsMapper.selectList(wrapper); 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; return mesHourProdutionStatistics;
} }

Loading…
Cancel
Save