|
|
|
@ -8,6 +8,9 @@ import org.dromara.common.core.utils.MapstructUtils;
|
|
|
|
|
import org.dromara.common.core.utils.StringUtils;
|
|
|
|
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
|
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
|
|
import org.dromara.mes.domain.BaseClassTeamInfo;
|
|
|
|
|
import org.dromara.mes.domain.BaseShiftInfo;
|
|
|
|
|
import org.dromara.mes.domain.ProdBaseMachineInfo;
|
|
|
|
|
import org.dromara.mes.domain.ProdShiftChange;
|
|
|
|
|
import org.dromara.mes.domain.bo.ProdShiftChangeBo;
|
|
|
|
|
import org.dromara.mes.domain.vo.ProdShiftChangeVo;
|
|
|
|
@ -76,6 +79,21 @@ public class ProdShiftChangeServiceImpl implements IProdShiftChangeService {
|
|
|
|
|
Map<String, Object> params = bo.getParams();
|
|
|
|
|
MPJLambdaWrapper<ProdShiftChange> lqw = JoinWrappers.lambda(ProdShiftChange.class)
|
|
|
|
|
.selectAll(ProdShiftChange.class)
|
|
|
|
|
|
|
|
|
|
//连表查询班组名称
|
|
|
|
|
.select(BaseClassTeamInfo::getTeamName)
|
|
|
|
|
.leftJoin(BaseClassTeamInfo.class,BaseClassTeamInfo::getClassTeamId,ProdShiftChange::getClassTeamId)
|
|
|
|
|
|
|
|
|
|
//连表查询班次名称
|
|
|
|
|
.select(BaseShiftInfo::getShiftName)
|
|
|
|
|
.leftJoin(BaseShiftInfo.class,BaseShiftInfo::getShiftId,ProdShiftChange::getShiftId)
|
|
|
|
|
|
|
|
|
|
//连表查询机台名称
|
|
|
|
|
.select(ProdBaseMachineInfo::getMachineName)
|
|
|
|
|
.leftJoin(ProdBaseMachineInfo.class,ProdBaseMachineInfo::getMachineId,ProdShiftChange::getMachineId)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.eq(bo.getShiftChangeId() != null, ProdShiftChange::getShiftChangeId, bo.getShiftChangeId())
|
|
|
|
|
.eq(bo.getShiftChangeTime() != null, ProdShiftChange::getShiftChangeTime, bo.getShiftChangeTime())
|
|
|
|
|
.eq(bo.getMachineId() != null, ProdShiftChange::getMachineId, bo.getMachineId())
|
|
|
|
|