| | |
| | | import com.zy.asrs.entity.MatBarcode; |
| | | import com.zy.asrs.mapper.MatBarcodeMapper; |
| | | import com.zy.asrs.service.MatBarcodeService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | @Service("MatBarcodeService") |
| | | public class MatBarcodeServiceImpl extends ServiceImpl<MatBarcodeMapper, MatBarcode> implements MatBarcodeService { |
| | | @Autowired |
| | | private MatBarcodeMapper matBarcodeMapper; |
| | | @Override |
| | | public MatBarcode selectbyMatnr(String matnr) { |
| | | return this.baseMapper.selectByMatnr(matnr); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteMatBarcode(List<MatBarcode> list) { |
| | | for (MatBarcode matBarcode : list) { |
| | | matBarcodeMapper.deleteByMatnr(matBarcode.getMatnr()); |
| | | } |
| | | } |
| | | } |