add - mes生产接口:班组统计、小时产量、物料产量、库存统计

master
wenjy 2 years ago
parent c9635228ac
commit f9fd7882f9

@ -1,10 +1,20 @@
package com.productionboard.controller;
import com.alibaba.fastjson.JSONArray;
import com.productionboard.entity.MesProduction.MesHourProdutionStatistics;
import com.productionboard.entity.MesProduction.MesMaterialProductionStatistics;
import com.productionboard.entity.MesProduction.MesMaterialStoreStatistics;
import com.productionboard.entity.MesProduction.MesTeamStatistics;
import com.productionboard.service.IMesProductionDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author WenJY
@ -14,6 +24,9 @@ import org.springframework.web.bind.annotation.ResponseBody;
@RequestMapping("/adsorptionTank")
public class AdsorptionTankController {
@Autowired
private IMesProductionDataService iMesProductionDataService;
private String prefix = "adsorptionTank/index";
@GetMapping()
@ -22,6 +35,64 @@ public class AdsorptionTankController {
return prefix;
}
/**
*
* @author WenJY
* @date 2022-06-09 16:38
* @return java.lang.String
*/
@GetMapping("/getTeamStatisticsJson")
@ResponseBody
public String getTeamStatisticsJson(){
List<MesTeamStatistics> mesTeamStatisticsList = iMesProductionDataService.getMesTeamStatisticsList("1002");
if(mesTeamStatisticsList.size()>0){
return JSONArray.toJSONString(mesTeamStatisticsList.get(0));
}
return JSONArray.toJSONString(new MesTeamStatistics());
}
/**
* MES
* @author WenJY
* @date 2022-06-09 16:54
* @return java.lang.String
*/
@GetMapping("/getHourProdutionJson")
@ResponseBody
public String getHourProdutionStatisticsJson(){
List<MesHourProdutionStatistics> mesHourProdutionStatisticsList = iMesProductionDataService.getMesHourProdutionStatisticsList("1002");
return JSONArray.toJSONString(mesHourProdutionStatisticsList);
}
/**
* MES
* @author WenJY
* @date 2022-06-09 17:06
* @return java.lang.String
*/
@GetMapping("/getMaterialProdutionJson")
@ResponseBody
public String getMaterialProdutionStatisticsJson(){
List<MesMaterialProductionStatistics> mesMaterialProductionStatisticsList = iMesProductionDataService.getMesMaterialProductionStatisticsList("1002");
return JSONArray.toJSONString(mesMaterialProductionStatisticsList);
}
/**
* MES
* @author WenJY
* @date 2022-06-09 17:18
* @return java.lang.String
*/
@GetMapping("/getMaterialStoreJson")
@ResponseBody
public String getMesMaterialStoreStatisticsJson(){
List<MesMaterialStoreStatistics> mesMaterialStoreStatisticsList = iMesProductionDataService.getMesMaterialStoreStatisticsList("1002");
return JSONArray.toJSONString(mesMaterialStoreStatisticsList);
}
/**
*
*

@ -1,10 +1,20 @@
package com.productionboard.controller;
import com.alibaba.fastjson.JSONArray;
import com.productionboard.entity.MesProduction.MesHourProdutionStatistics;
import com.productionboard.entity.MesProduction.MesMaterialProductionStatistics;
import com.productionboard.entity.MesProduction.MesMaterialStoreStatistics;
import com.productionboard.entity.MesProduction.MesTeamStatistics;
import com.productionboard.service.IMesProductionDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author WenJY
@ -14,6 +24,9 @@ import org.springframework.web.bind.annotation.ResponseBody;
@RequestMapping("/aluminumTank")
public class AluminumTtankController {
@Autowired
private IMesProductionDataService iMesProductionDataService;
private String prefix = "aluminumTank/index";
@GetMapping()
@ -22,6 +35,66 @@ public class AluminumTtankController {
return prefix;
}
/**
*
* @author WenJY
* @date 2022-06-09 16:38
* @return java.lang.String
*/
@GetMapping("/getTeamStatisticsJson")
@ResponseBody
public String getTeamStatisticsJson(){
List<MesTeamStatistics> mesTeamStatisticsList = iMesProductionDataService.getMesTeamStatisticsList("1002");
if(mesTeamStatisticsList.size()>0){
return JSONArray.toJSONString(mesTeamStatisticsList.get(0));
}
return JSONArray.toJSONString(new MesTeamStatistics());
}
/**
* MES
* @author WenJY
* @date 2022-06-09 16:54
* @return java.lang.String
*/
@GetMapping("/getHourProdutionJson")
@ResponseBody
public String getHourProdutionStatisticsJson(){
List<MesHourProdutionStatistics> mesHourProdutionStatisticsList = iMesProductionDataService.getMesHourProdutionStatisticsList("1002");
if(mesHourProdutionStatisticsList.size()>0){
return JSONArray.toJSONString(mesHourProdutionStatisticsList);
}
return JSONArray.toJSONString(new ArrayList<MesHourProdutionStatistics>());
}
/**
* MES
* @author WenJY
* @date 2022-06-09 17:06
* @return java.lang.String
*/
@GetMapping("/getMaterialProdutionJson")
@ResponseBody
public String getMaterialProdutionStatisticsJson(){
List<MesMaterialProductionStatistics> mesMaterialProductionStatisticsList = iMesProductionDataService.getMesMaterialProductionStatisticsList("1002");
return JSONArray.toJSONString(mesMaterialProductionStatisticsList);
}
/**
* MES
* @author WenJY
* @date 2022-06-09 17:18
* @return java.lang.String
*/
@GetMapping("/getMaterialStoreJson")
@ResponseBody
public String getMesMaterialStoreStatisticsJson(){
List<MesMaterialStoreStatistics> mesMaterialStoreStatisticsList = iMesProductionDataService.getMesMaterialStoreStatisticsList("1002");
return JSONArray.toJSONString(mesMaterialStoreStatisticsList);
}
/**
*
*

@ -1,10 +1,20 @@
package com.productionboard.controller;
import com.alibaba.fastjson.JSONArray;
import com.productionboard.entity.MesProduction.MesHourProdutionStatistics;
import com.productionboard.entity.MesProduction.MesMaterialProductionStatistics;
import com.productionboard.entity.MesProduction.MesMaterialStoreStatistics;
import com.productionboard.entity.MesProduction.MesTeamStatistics;
import com.productionboard.service.IMesProductionDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author WenJY
@ -14,6 +24,9 @@ import org.springframework.web.bind.annotation.ResponseBody;
@RequestMapping("/foamBox")
public class FoamBoxController {
@Autowired
private IMesProductionDataService iMesProductionDataService;
private String prefix = "foamBox/index";
@GetMapping()
@ -22,6 +35,66 @@ public class FoamBoxController {
return prefix;
}
/**
*
* @author WenJY
* @date 2022-06-09 16:38
* @return java.lang.String
*/
@GetMapping("/getTeamStatisticsJson")
@ResponseBody
public String getTeamStatisticsJson(){
List<MesTeamStatistics> mesTeamStatisticsList = iMesProductionDataService.getMesTeamStatisticsList("1002");
if(mesTeamStatisticsList.size()>0){
return JSONArray.toJSONString(mesTeamStatisticsList.get(0));
}
return JSONArray.toJSONString(new MesTeamStatistics());
}
/**
* MES
* @author WenJY
* @date 2022-06-09 16:54
* @return java.lang.String
*/
@GetMapping("/getHourProdutionJson")
@ResponseBody
public String getHourProdutionStatisticsJson(){
List<MesHourProdutionStatistics> mesHourProdutionStatisticsList = iMesProductionDataService.getMesHourProdutionStatisticsList("1002");
if(mesHourProdutionStatisticsList.size()>0){
return JSONArray.toJSONString(mesHourProdutionStatisticsList);
}
return JSONArray.toJSONString(new ArrayList<MesHourProdutionStatistics>());
}
/**
* MES
* @author WenJY
* @date 2022-06-09 17:06
* @return java.lang.String
*/
@GetMapping("/getMaterialProdutionJson")
@ResponseBody
public String getMaterialProdutionStatisticsJson(){
List<MesMaterialProductionStatistics> mesMaterialProductionStatisticsList = iMesProductionDataService.getMesMaterialProductionStatisticsList("1002");
return JSONArray.toJSONString(mesMaterialProductionStatisticsList);
}
/**
* MES
* @author WenJY
* @date 2022-06-09 17:18
* @return java.lang.String
*/
@GetMapping("/getMaterialStoreJson")
@ResponseBody
public String getMesMaterialStoreStatisticsJson(){
List<MesMaterialStoreStatistics> mesMaterialStoreStatisticsList = iMesProductionDataService.getMesMaterialStoreStatisticsList("1002");
return JSONArray.toJSONString(mesMaterialStoreStatisticsList);
}
/**
*
*

@ -1,10 +1,20 @@
package com.productionboard.controller;
import com.alibaba.fastjson.JSONArray;
import com.productionboard.entity.MesProduction.MesHourProdutionStatistics;
import com.productionboard.entity.MesProduction.MesMaterialProductionStatistics;
import com.productionboard.entity.MesProduction.MesMaterialStoreStatistics;
import com.productionboard.entity.MesProduction.MesTeamStatistics;
import com.productionboard.service.IMesProductionDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author WenJY
@ -14,6 +24,9 @@ import org.springframework.web.bind.annotation.ResponseBody;
@RequestMapping("/preassemble")
public class PreassembleController {
@Autowired
private IMesProductionDataService iMesProductionDataService;
private String prefix = "preassemble/index";
@GetMapping()
@ -22,6 +35,66 @@ public class PreassembleController {
return prefix;
}
/**
*
* @author WenJY
* @date 2022-06-09 16:38
* @return java.lang.String
*/
@GetMapping("/getTeamStatisticsJson")
@ResponseBody
public String getTeamStatisticsJson(){
List<MesTeamStatistics> mesTeamStatisticsList = iMesProductionDataService.getMesTeamStatisticsList("1002");
if(mesTeamStatisticsList.size()>0){
return JSONArray.toJSONString(mesTeamStatisticsList.get(0));
}
return JSONArray.toJSONString(new MesTeamStatistics());
}
/**
* MES
* @author WenJY
* @date 2022-06-09 16:54
* @return java.lang.String
*/
@GetMapping("/getHourProdutionJson")
@ResponseBody
public String getHourProdutionStatisticsJson(){
List<MesHourProdutionStatistics> mesHourProdutionStatisticsList = iMesProductionDataService.getMesHourProdutionStatisticsList("1002");
if(mesHourProdutionStatisticsList.size()>0){
return JSONArray.toJSONString(mesHourProdutionStatisticsList);
}
return JSONArray.toJSONString(new ArrayList<MesHourProdutionStatistics>());
}
/**
* MES
* @author WenJY
* @date 2022-06-09 17:06
* @return java.lang.String
*/
@GetMapping("/getMaterialProdutionJson")
@ResponseBody
public String getMaterialProdutionStatisticsJson(){
List<MesMaterialProductionStatistics> mesMaterialProductionStatisticsList = iMesProductionDataService.getMesMaterialProductionStatisticsList("1002");
return JSONArray.toJSONString(mesMaterialProductionStatisticsList);
}
/**
* MES
* @author WenJY
* @date 2022-06-09 17:18
* @return java.lang.String
*/
@GetMapping("/getMaterialStoreJson")
@ResponseBody
public String getMesMaterialStoreStatisticsJson(){
List<MesMaterialStoreStatistics> mesMaterialStoreStatisticsList = iMesProductionDataService.getMesMaterialStoreStatisticsList("1002");
return JSONArray.toJSONString(mesMaterialStoreStatisticsList);
}
/**
*
*

@ -2,11 +2,18 @@ package com.productionboard.controller;
import com.alibaba.fastjson.JSONArray;
import com.productionboard.entity.BasicScadaDeviceinfo;
import com.productionboard.entity.MesProduction.MesHourProdutionStatistics;
import com.productionboard.entity.MesProduction.MesMaterialProductionStatistics;
import com.productionboard.entity.MesProduction.MesMaterialStoreStatistics;
import com.productionboard.entity.MesProduction.MesTeamStatistics;
import com.productionboard.service.IMesProductionDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.ArrayList;
import java.util.List;
/**
@ -19,6 +26,9 @@ import java.util.List;
@RequestMapping("/tankShell")
public class TankShellController {
@Autowired
private IMesProductionDataService iMesProductionDataService;
private String prefix = "tankShell/index";
@GetMapping()
@ -26,6 +36,66 @@ public class TankShellController {
return prefix;
}
/**
*
* @author WenJY
* @date 2022-06-09 16:38
* @return java.lang.String
*/
@GetMapping("/getTeamStatisticsJson")
@ResponseBody
public String getTeamStatisticsJson(){
List<MesTeamStatistics> mesTeamStatisticsList = iMesProductionDataService.getMesTeamStatisticsList("1002");
if(mesTeamStatisticsList.size()>0){
return JSONArray.toJSONString(mesTeamStatisticsList.get(0));
}
return JSONArray.toJSONString(new MesTeamStatistics());
}
/**
* MES
* @author WenJY
* @date 2022-06-09 16:54
* @return java.lang.String
*/
@GetMapping("/getHourProdutionJson")
@ResponseBody
public String getHourProdutionStatisticsJson(){
List<MesHourProdutionStatistics> mesHourProdutionStatisticsList = iMesProductionDataService.getMesHourProdutionStatisticsList("1002");
if(mesHourProdutionStatisticsList.size()>0){
return JSONArray.toJSONString(mesHourProdutionStatisticsList);
}
return JSONArray.toJSONString(new ArrayList<MesHourProdutionStatistics>());
}
/**
* MES
* @author WenJY
* @date 2022-06-09 17:06
* @return java.lang.String
*/
@GetMapping("/getMaterialProdutionJson")
@ResponseBody
public String getMaterialProdutionStatisticsJson(){
List<MesMaterialProductionStatistics> mesMaterialProductionStatisticsList = iMesProductionDataService.getMesMaterialProductionStatisticsList("1002");
return JSONArray.toJSONString(mesMaterialProductionStatisticsList);
}
/**
* MES
* @author WenJY
* @date 2022-06-09 17:18
* @return java.lang.String
*/
@GetMapping("/getMaterialStoreJson")
@ResponseBody
public String getMesMaterialStoreStatisticsJson(){
List<MesMaterialStoreStatistics> mesMaterialStoreStatisticsList = iMesProductionDataService.getMesMaterialStoreStatisticsList("1002");
return JSONArray.toJSONString(mesMaterialStoreStatisticsList);
}
/**
*
*

@ -0,0 +1,33 @@
package com.productionboard.entity.MesProduction;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
*
* @author WenJY
* @date 20220609 16:43
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SCADA_PRODUCTION_B")
public class MesHourProdutionStatistics implements Serializable {
/** 小时数 */
@TableField("hournumber")
private String xValue;
/** 产量数 */
@TableField("productionamount")
private String yValue;
/** 工位编号 */
@TableField("POSIONID")
private String locationNumber;
}

@ -0,0 +1,33 @@
package com.productionboard.entity.MesProduction;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* MES
* @author WenJY
* @date 20220609 17:01
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SCADA_PRODUCTION_C")
public class MesMaterialProductionStatistics implements Serializable {
/** 物料名称 */
@TableField("materialname")
private String xValue;
/** 产量数 */
@TableField("productionamount")
private String yValue;
/** 工位编号 */
@TableField("POSIONID")
private String locationNumber;
}

@ -0,0 +1,38 @@
package com.productionboard.entity.MesProduction;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
*
* @author WenJY
* @date 20220609 17:10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SCADA_PRODUCTION_E")
public class MesMaterialStoreStatistics implements Serializable {
/** 物料名称 */
@TableField("MATERIALNAME")
private String materialName;
/** 内胆库库存 */
@TableField("LINERSTOREAMOUNT")
private String lineStoreAmount;
/** 箱壳库库存 */
@TableField("HULLSTOREAMOUNT")
private String hullStoreAmount;
/** 工位编号 */
@TableField("POSIONID")
private String locationNumber;
}

@ -0,0 +1,40 @@
package com.productionboard.entity.MesProduction;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* @author WenJY
* @date 20220609 16:24
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SCADA_PRODUCTION_A")
public class MesTeamStatistics implements Serializable {
/** 班组名称 */
@TableField("CLASSNAME")
private String className;
/** 计划数量 */
@TableField("PLANAMOUNT")
private String planAmount;
/** 实际数量 */
@TableField("ACTUALAMOUNT")
private String actualAmount;
/** 差异值 */
@TableField("DIFFERENCEAMOUNT")
private String differenceAmount;
/** 工位编号 */
@TableField("POSIONID")
private String locationNumber;
}

@ -0,0 +1,13 @@
package com.productionboard.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.productionboard.entity.MesProduction.MesHourProdutionStatistics;
import org.apache.ibatis.annotations.Mapper;
/**
* @author WenJY
* @date 20220609 16:45
*/
@Mapper
public interface MesHourProdutionStatisticsMapper extends BaseMapper<MesHourProdutionStatistics> {
}

@ -0,0 +1,13 @@
package com.productionboard.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.productionboard.entity.MesProduction.MesMaterialProductionStatistics;
import org.apache.ibatis.annotations.Mapper;
/**
* @author WenJY
* @date 20220609 17:02
*/
@Mapper
public interface MesMaterialProductionStatisticsMapper extends BaseMapper<MesMaterialProductionStatistics> {
}

@ -0,0 +1,14 @@
package com.productionboard.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.productionboard.entity.MesProduction.MesMaterialStoreStatistics;
import org.apache.ibatis.annotations.Mapper;
/**
* MES
* @author WenJY
* @date 20220609 17:14
*/
@Mapper
public interface MesMaterialStoreStatisticsMapper extends BaseMapper<MesMaterialStoreStatistics>{
}

@ -0,0 +1,14 @@
package com.productionboard.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.productionboard.entity.MesProduction.MesTeamStatistics;
import org.apache.ibatis.annotations.Mapper;
/**
* Mes
* @author WenJY
* @date 20220609 16:26
*/
@Mapper
public interface MesTeamStatisticsMapper extends BaseMapper<MesTeamStatistics> {
}

@ -0,0 +1,53 @@
package com.productionboard.service;
import com.productionboard.entity.MesProduction.MesHourProdutionStatistics;
import com.productionboard.entity.MesProduction.MesMaterialProductionStatistics;
import com.productionboard.entity.MesProduction.MesMaterialStoreStatistics;
import com.productionboard.entity.MesProduction.MesTeamStatistics;
import com.productionboard.mapper.MesHourProdutionStatisticsMapper;
import java.util.List;
/**
* Mes
* @author WenJY
* @date 20220609 16:27
*/
public interface IMesProductionDataService {
/**
*
* @author WenJY
* @date 2022-06-09 16:33
* @param locationNumber
* @return java.util.List<com.productionboard.entity.MesProduction.MesTeamStatistics>
*/
List<MesTeamStatistics> getMesTeamStatisticsList(String locationNumber);
/**
* MES
* @author WenJY
* @date 2022-06-09 16:46
* @param locationNumber
* @return java.util.List<com.productionboard.entity.MesProduction.MesHourProdutionStatistics>
*/
List<MesHourProdutionStatistics> getMesHourProdutionStatisticsList(String locationNumber);
/**
* MES
* @author WenJY
* @date 2022-06-09 17:03
* @param locationNumber
* @return java.util.List<com.productionboard.entity.MesProduction.MesMaterialProductionStatistics>
*/
List<MesMaterialProductionStatistics> getMesMaterialProductionStatisticsList(String locationNumber);
/**
* MES
* @author WenJY
* @date 2022-06-09 17:15
* @param locationNumber
* @return java.util.List<com.productionboard.entity.MesProduction.MesMaterialStoreStatistics>
*/
List<MesMaterialStoreStatistics> getMesMaterialStoreStatisticsList(String locationNumber);
}

@ -0,0 +1,95 @@
package com.productionboard.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.productionboard.entity.MesProduction.MesHourProdutionStatistics;
import com.productionboard.entity.MesProduction.MesMaterialProductionStatistics;
import com.productionboard.entity.MesProduction.MesMaterialStoreStatistics;
import com.productionboard.entity.MesProduction.MesTeamStatistics;
import com.productionboard.mapper.MesHourProdutionStatisticsMapper;
import com.productionboard.mapper.MesMaterialProductionStatisticsMapper;
import com.productionboard.mapper.MesMaterialStoreStatisticsMapper;
import com.productionboard.mapper.MesTeamStatisticsMapper;
import com.productionboard.service.IMesProductionDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @author WenJY
* @date 20220609 16:28
*/
@Service
public class MesProductionDataServiceImpl implements IMesProductionDataService {
@Autowired
private MesTeamStatisticsMapper teamStatisticsMapper;
@Autowired
private MesHourProdutionStatisticsMapper hourProdutionStatisticsMapper;
@Autowired
private MesMaterialProductionStatisticsMapper materialProductionStatisticsMapper;
@Autowired
private MesMaterialStoreStatisticsMapper materialStoreStatisticsMapper;
/**
*
* @author WenJY
* @date 2022-06-09 16:33
* @param locationNumber
* @return java.util.List<com.productionboard.entity.MesProduction.MesTeamStatistics>
*/
@Override
public List<MesTeamStatistics> getMesTeamStatisticsList(String locationNumber) {
QueryWrapper<MesTeamStatistics> wrapper = new QueryWrapper<MesTeamStatistics>();
wrapper.eq("POSIONID",locationNumber);
List<MesTeamStatistics> mesTeamStatistics = teamStatisticsMapper.selectList(wrapper);
return mesTeamStatistics;
}
/**
* MES
* @author WenJY
* @date 2022-06-09 16:47
* @param locationNumber
* @return java.util.List<com.productionboard.entity.MesProduction.MesHourProdutionStatistics>
*/
@Override
public List<MesHourProdutionStatistics> getMesHourProdutionStatisticsList(String locationNumber) {
QueryWrapper<MesHourProdutionStatistics> wrapper = new QueryWrapper<MesHourProdutionStatistics>();
wrapper.eq("POSIONID",locationNumber);
List<MesHourProdutionStatistics> mesHourProdutionStatistics = hourProdutionStatisticsMapper.selectList(wrapper);
return mesHourProdutionStatistics;
}
/**
* MES
* @author WenJY
* @date 2022-06-09 17:03
* @param locationNumber
* @return java.util.List<com.productionboard.entity.MesProduction.MesMaterialProductionStatistics>
*/
@Override
public List<MesMaterialProductionStatistics> getMesMaterialProductionStatisticsList(String locationNumber) {
QueryWrapper<MesMaterialProductionStatistics> wrapper = new QueryWrapper<>();
wrapper.eq("POSIONID",locationNumber);
List<MesMaterialProductionStatistics> mesMaterialProductionStatistics = materialProductionStatisticsMapper.selectList(wrapper);
return mesMaterialProductionStatistics;
}
/**
* MES
* @author WenJY
* @date 2022-06-09 17:16
* @param locationNumber
* @return java.util.List<com.productionboard.entity.MesProduction.MesMaterialStoreStatistics>
*/
@Override
public List<MesMaterialStoreStatistics> getMesMaterialStoreStatisticsList(String locationNumber) {
QueryWrapper<MesMaterialStoreStatistics> wrapper = new QueryWrapper<>();
wrapper.eq("POSIONID",locationNumber);
List<MesMaterialStoreStatistics> mesMaterialStoreStatistics = materialStoreStatisticsMapper.selectList(wrapper);
return mesMaterialStoreStatistics;
}
}
Loading…
Cancel
Save