| | |
| | | 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; |
| | |
| | | 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; |
| | | } |
| | | } |