|  |  |  | 
|---|
|  |  |  | package com.zy.asrs.service.impl; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.mapper.EntityWrapper; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.plugins.Page; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.service.impl.ServiceImpl; | 
|---|
|  |  |  | import com.zy.asrs.entity.ManLocDetl; | 
|---|
|  |  |  | import org.springframework.stereotype.Service; | 
|---|
|  |  |  | import com.zy.asrs.entity.Mat; | 
|---|
|  |  |  | import com.zy.asrs.mapper.MatMapper; | 
|---|
|  |  |  | import com.zy.asrs.service.MatService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  | import java.util.Map; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Service("matService") | 
|---|
|  |  |  | public class MatServiceImpl extends ServiceImpl<MatMapper, Mat> implements MatService { | 
|---|
|  |  |  | 
|---|
|  |  |  | return this.baseMapper.selectByMatnr(matnr); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public Mat selectByMaktx(String maktx) { | 
|---|
|  |  |  | return this.selectOne(new EntityWrapper<Mat>().eq("maktx",maktx)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public Page<Mat> selectAllPage(Page<Mat> matPage) { | 
|---|
|  |  |  | Map<String, Object> condition = matPage.getCondition(); | 
|---|
|  |  |  | List<Mat> manLocDetls = baseMapper.selectAllPage(condition); | 
|---|
|  |  |  | matPage.setRecords(manLocDetls); | 
|---|
|  |  |  | matPage.setTotal(baseMapper.selectAllPageSize(condition)); | 
|---|
|  |  |  | return matPage; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|