#
luxiaotao1123
2022-02-13 fc545bfecf1a42228dec6b1258e5f8ac2ee43a68
src/main/java/zy/cloud/wms/manager/service/impl/DocTypeServiceImpl.java
@@ -1,12 +1,19 @@
package zy.cloud.wms.manager.service.impl;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import zy.cloud.wms.manager.mapper.DocTypeMapper;
import zy.cloud.wms.manager.entity.DocType;
import zy.cloud.wms.manager.service.DocTypeService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import javax.print.Doc;
@Service("docTypeService")
public class DocTypeServiceImpl extends ServiceImpl<DocTypeMapper, DocType> implements DocTypeService {
    @Override
    public DocType selectByNumAndHost(Long docType, Long hostId) {
        return this.selectOne(new EntityWrapper<DocType>().eq("doc_id", docType).eq("host_id", hostId));
    }
}