package org.jeecg.modules.mes.service.impl;
|
|
import cn.hutool.core.collection.CollectionUtil;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import org.jeecg.common.constant.CommonConstant;
|
import org.jeecg.modules.mes.entity.MesTransferOrderPrint;
|
import org.jeecg.modules.mes.mapper.MesTransferOrderPrintMapper;
|
import org.jeecg.modules.mes.service.IMesTransferOrderPrintService;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
/**
|
* @Description: 移库单打印
|
* @Author: jeecg-boot
|
* @Date: 2025-07-04
|
* @Version: V1.0
|
*/
|
@Service
|
public class MesTransferOrderPrintServiceImpl extends ServiceImpl<MesTransferOrderPrintMapper, MesTransferOrderPrint> implements IMesTransferOrderPrintService {
|
|
@Override
|
public List<MesTransferOrderPrint> queryOrderPrintByOrderId(String orderId) {
|
return baseMapper.queryOrderPrintByOrderId(orderId);
|
}
|
|
@Override
|
public MesTransferOrderPrint queryByOrderCode(String orderCode) {
|
LambdaQueryWrapper<MesTransferOrderPrint> wrapper = new LambdaQueryWrapper<>();
|
wrapper.eq(MesTransferOrderPrint::getWorkOrderCode, orderCode);
|
wrapper.eq(MesTransferOrderPrint::getDelFlag, CommonConstant.DEFAULT_0);
|
List<MesTransferOrderPrint> list = super.list(wrapper);
|
if(CollectionUtil.isNotEmpty(list)) {
|
return list.get(0);
|
}
|
return null;
|
}
|
}
|