|
|
@ -6,6 +6,7 @@ import com.win.framework.common.pojo.PageResult; |
|
|
|
import com.win.framework.mybatis.core.query.LambdaQueryWrapperX; |
|
|
|
import com.win.framework.mybatis.core.mapper.BaseMapperX; |
|
|
|
import com.win.module.mes.controller.workstation.vo.*; |
|
|
|
import com.win.module.mes.dal.dataobject.workstation.WorkstationEquipmentDO; |
|
|
|
import com.win.module.mes.dal.dataobject.workstation.WorkstationProcessDO; |
|
|
|
import com.win.module.mes.dal.dataobject.workstation.MesTeamDO; |
|
|
|
import org.apache.ibatis.annotations.Mapper; |
|
|
@ -21,7 +22,6 @@ public interface WorkstationProcessMapper extends BaseMapperX<WorkstationProcess |
|
|
|
default PageResult<WorkstationProcessDO> selectPage(WorkstationProcessPageReqVO reqVO) { |
|
|
|
return selectPage(reqVO, new LambdaQueryWrapperX<WorkstationProcessDO>() |
|
|
|
.eqIfPresent(WorkstationProcessDO::getWorkstationCode, reqVO.getWorkstationCode()) |
|
|
|
.eqIfPresent(WorkstationProcessDO::getProductionCode, reqVO.getProductionCode()) |
|
|
|
.eqIfPresent(WorkstationProcessDO::getProcessCode, reqVO.getProcessCode()) |
|
|
|
.betweenIfPresent(WorkstationProcessDO::getCreateTime, reqVO.getCreateTime()) |
|
|
|
.betweenIfPresent(WorkstationProcessDO::getDeletionTime, reqVO.getDeletionTime()) |
|
|
@ -35,7 +35,6 @@ public interface WorkstationProcessMapper extends BaseMapperX<WorkstationProcess |
|
|
|
default List<WorkstationProcessDO> selectList(WorkstationProcessExportReqVO reqVO) { |
|
|
|
return selectList(new LambdaQueryWrapperX<WorkstationProcessDO>() |
|
|
|
.eqIfPresent(WorkstationProcessDO::getWorkstationCode, reqVO.getWorkstationCode()) |
|
|
|
.eqIfPresent(WorkstationProcessDO::getProductionCode, reqVO.getProductionCode()) |
|
|
|
.eqIfPresent(WorkstationProcessDO::getProcessCode, reqVO.getProcessCode()) |
|
|
|
.betweenIfPresent(WorkstationProcessDO::getCreateTime, reqVO.getCreateTime()) |
|
|
|
.betweenIfPresent(WorkstationProcessDO::getDeletionTime, reqVO.getDeletionTime()) |
|
|
@ -48,19 +47,22 @@ public interface WorkstationProcessMapper extends BaseMapperX<WorkstationProcess |
|
|
|
default WorkstationProcessDO selectByCode(WorkstationProcessExcelVO reqVO) { |
|
|
|
return selectOne(new LambdaQueryWrapperX<WorkstationProcessDO>() |
|
|
|
.eqIfPresent(WorkstationProcessDO::getProcessCode, reqVO.getProcessCode()) |
|
|
|
.eqIfPresent(WorkstationProcessDO::getWorkstationCode, reqVO.getWorkstationCode()) |
|
|
|
.eqIfPresent(WorkstationProcessDO::getProductionCode, reqVO.getProductionCode())); |
|
|
|
.eqIfPresent(WorkstationProcessDO::getWorkstationCode, reqVO.getWorkstationCode())); |
|
|
|
} |
|
|
|
default WorkstationProcessDO selectByCode(WorkstationProcessRelationReqVO reqVO) { |
|
|
|
return selectOne(new LambdaQueryWrapperX<WorkstationProcessDO>() |
|
|
|
.eqIfPresent(WorkstationProcessDO::getProductionCode, reqVO.getProductionCode()) |
|
|
|
.eqIfPresent(WorkstationProcessDO::getWorkstationCode,reqVO.getWorkstationCode()) |
|
|
|
.eqIfPresent(WorkstationProcessDO::getProcessCode,reqVO.getProcessCode())); |
|
|
|
} |
|
|
|
Long count(String workstationCode); |
|
|
|
List<WorkstationProcessDO> listByWorkstationCode(String workstationCode); |
|
|
|
|
|
|
|
Long checkCountByWorkstationCode(String workstationCode, boolean b); |
|
|
|
Long checkCountByWorkstationCode(String workstationCode); |
|
|
|
|
|
|
|
List<MesTeamDO> checkListByWorkstationCode(String workstationCode); |
|
|
|
int deleteRelation(WorkstationProcessRelationReqVO workstationProcessRelationReqVO); |
|
|
|
|
|
|
|
List<MesTeamDO> checkListByWorkstationCode(String workstationCode, boolean b); |
|
|
|
default void createRelation(List<WorkstationProcessDO> workstationEquipmentDO){ |
|
|
|
insertBatch(workstationEquipmentDO); |
|
|
|
} |
|
|
|
} |
|
|
|