| | |
| | | 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.common.exception.JeecgBootException; |
| | |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | @Override |
| | | public MesMaterialTransferRequest queryByReservationCode(String reservationCode) { |
| | | LambdaQueryWrapper<MesMaterialTransferRequest> queryWrapper = new LambdaQueryWrapper<>(); |
| | | queryWrapper.eq(MesMaterialTransferRequest::getReservationCode, reservationCode); |
| | | queryWrapper.eq(MesMaterialTransferRequest::getDelFlag, CommonConstant.DEL_FLAG_0); |
| | | List<MesMaterialTransferRequest> list = super.list(queryWrapper); |
| | | if (CollectionUtil.isNotEmpty(list)) { |
| | | return list.get(0); |
| | | } |
| | | return null; |
| | | } |
| | | } |