修改移动端内容,后端添加了所有查询接口
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
package com.klp.pocket.service;
|
||||
|
||||
import com.klp.pocket.domain.vo.ProductionStatisticsVo;
|
||||
import com.klp.pocket.domain.vo.CrewProductionVo;
|
||||
import com.klp.pocket.domain.vo.SpecDistributionVo;
|
||||
import com.klp.pocket.domain.vo.TeamPerformanceVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 生产统计Service接口
|
||||
*/
|
||||
public interface IKlptcm1PdoExcoilService {
|
||||
|
||||
/**
|
||||
* 查询生产统计汇总数据
|
||||
* @param startDate 开始日期
|
||||
* @param endDate 结束日期
|
||||
* @return 统计数据
|
||||
*/
|
||||
ProductionStatisticsVo getProductionStatistics(String startDate, String endDate);
|
||||
|
||||
/**
|
||||
* 查询班组产量统计
|
||||
* @param startDate 开始日期
|
||||
* @param endDate 结束日期
|
||||
* @return 班组产量列表
|
||||
*/
|
||||
List<CrewProductionVo> getCrewProduction(String startDate, String endDate);
|
||||
|
||||
/**
|
||||
* 查询厚度分布
|
||||
* @param startDate 开始日期
|
||||
* @param endDate 结束日期
|
||||
* @return 厚度分布列表
|
||||
*/
|
||||
List<SpecDistributionVo> getThicknessDistribution(String startDate, String endDate);
|
||||
|
||||
/**
|
||||
* 查询宽度分布
|
||||
* @param startDate 开始日期
|
||||
* @param endDate 结束日期
|
||||
* @return 宽度分布列表
|
||||
*/
|
||||
List<SpecDistributionVo> getWidthDistribution(String startDate, String endDate);
|
||||
|
||||
/**
|
||||
* 查询班组绩效统计
|
||||
* @param startDate 开始日期
|
||||
* @param endDate 结束日期
|
||||
* @return 班组绩效列表(按综合评分倒序)
|
||||
*/
|
||||
List<TeamPerformanceVo> getTeamPerformance(String startDate, String endDate);
|
||||
}
|
||||
|
||||
@@ -25,6 +25,12 @@ public interface IKlptcm1ProPlantStateDefineService {
|
||||
|
||||
List<PlantStateWithValueVo> selectByValue(String name);
|
||||
|
||||
/**
|
||||
* 获取所有定义及其当前值
|
||||
* @return 所有定义列表,每个定义包含对应的当前值
|
||||
*/
|
||||
List<PlantStateWithValueVo> selectAllWithValues();
|
||||
|
||||
Klptcm1ProPlantStateDefine selectById(BigDecimal id);
|
||||
|
||||
int insert(Klptcm1ProPlantStateDefine entity);
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.klp.pocket.service;
|
||||
|
||||
import com.klp.pocket.domain.vo.Klptcm1ShiftCurrentVo;
|
||||
|
||||
/**
|
||||
* 当前班组Service接口
|
||||
*/
|
||||
public interface IKlptcm1ShiftCurrentService {
|
||||
|
||||
/**
|
||||
* 查询当前班组信息
|
||||
* @return 当前班组信息
|
||||
*/
|
||||
Klptcm1ShiftCurrentVo getCurrentShift();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
package com.klp.pocket.service.impl;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.klp.pocket.domain.vo.ProductionStatisticsVo;
|
||||
import com.klp.pocket.domain.vo.CrewProductionVo;
|
||||
import com.klp.pocket.domain.vo.SpecDistributionVo;
|
||||
import com.klp.pocket.domain.vo.TeamPerformanceVo;
|
||||
import com.klp.pocket.mapper.Klptcm1PdoExcoilMapper;
|
||||
import com.klp.pocket.service.IKlptcm1PdoExcoilService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 生产统计Service实现类
|
||||
*/
|
||||
@RequiredArgsConstructor
|
||||
@DS("slave")
|
||||
@Service
|
||||
public class Klptcm1PdoExcoilServiceImpl implements IKlptcm1PdoExcoilService {
|
||||
|
||||
private final Klptcm1PdoExcoilMapper excoilMapper;
|
||||
|
||||
@Override
|
||||
public ProductionStatisticsVo getProductionStatistics(String startDate, String endDate) {
|
||||
return excoilMapper.selectProductionStatistics(startDate, endDate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CrewProductionVo> getCrewProduction(String startDate, String endDate) {
|
||||
return excoilMapper.selectCrewProduction(startDate, endDate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SpecDistributionVo> getThicknessDistribution(String startDate, String endDate) {
|
||||
return excoilMapper.selectThicknessDistribution(startDate, endDate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SpecDistributionVo> getWidthDistribution(String startDate, String endDate) {
|
||||
return excoilMapper.selectWidthDistribution(startDate, endDate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<TeamPerformanceVo> getTeamPerformance(String startDate, String endDate) {
|
||||
return excoilMapper.selectTeamPerformance(startDate, endDate);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,6 +42,11 @@ public class Klptcm1ProPlantStateDefineServiceImpl implements IKlptcm1ProPlantSt
|
||||
return defineMapper.selectByValue(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PlantStateWithValueVo> selectAllWithValues() {
|
||||
return defineMapper.selectAllWithValues();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Klptcm1ProPlantStateDefine selectById(BigDecimal id) {
|
||||
return defineMapper.selectById(id);
|
||||
|
||||
@@ -71,12 +71,15 @@ public class Klptcm1ProStoppageServiceImpl implements IKlptcm1ProStoppageService
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getUNIT()), Klptcm1ProStoppage::getUnit, bo.getUNIT());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getSETON()), Klptcm1ProStoppage::getSeton, bo.getSETON());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getREMARK()), Klptcm1ProStoppage::getRemark, bo.getREMARK());
|
||||
lqw.eq(bo.getStartDate() != null, Klptcm1ProStoppage::getStartDate, bo.getStartDate());
|
||||
lqw.eq(bo.getEndDate() != null, Klptcm1ProStoppage::getEndDate, bo.getEndDate());
|
||||
// 日期范围查询:查询停机开始时间在指定范围内的记录
|
||||
// bo.startDate 是查询开始时间,stoppage.startDate 是停机开始时间
|
||||
lqw.ge(bo.getStartDate() != null, Klptcm1ProStoppage::getStartDate, bo.getStartDate());
|
||||
// bo.endDate 是查询结束时间,stoppage.startDate 是停机开始时间
|
||||
lqw.le(bo.getEndDate() != null, Klptcm1ProStoppage::getStartDate, bo.getEndDate());
|
||||
lqw.eq(bo.getDURATION() != null, Klptcm1ProStoppage::getDuration, bo.getDURATION());
|
||||
lqw.eq(bo.getInsDate() != null, Klptcm1ProStoppage::getInsDate, bo.getInsDate());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getStopType()), Klptcm1ProStoppage::getStopType, bo.getStopType());
|
||||
//倒叙
|
||||
//倒序
|
||||
lqw.orderByDesc(Klptcm1ProStoppage::getInsDate);
|
||||
return lqw;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.klp.pocket.service.impl;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.klp.pocket.domain.vo.Klptcm1ShiftCurrentVo;
|
||||
import com.klp.pocket.mapper.Klptcm1ShiftCurrentMapper;
|
||||
import com.klp.pocket.service.IKlptcm1ShiftCurrentService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 当前班组Service实现类
|
||||
*/
|
||||
@RequiredArgsConstructor
|
||||
@DS("slave")
|
||||
@Service
|
||||
public class Klptcm1ShiftCurrentServiceImpl implements IKlptcm1ShiftCurrentService {
|
||||
|
||||
private final Klptcm1ShiftCurrentMapper shiftCurrentMapper;
|
||||
|
||||
@Override
|
||||
public Klptcm1ShiftCurrentVo getCurrentShift() {
|
||||
return shiftCurrentMapper.selectCurrent();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user