| | |
| | | package com.whyc.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.dto.FileDirPath; |
| | |
| | | ProductBom productBom=mapper.selectOne(wrapper); |
| | | return new Response().setII(1,productBom!=null?true:false,productBom,"返回数据"); |
| | | } |
| | | |
| | | //获取产品的信息(不包含子料) |
| | | public ProductBom getProduct(String parentModel){ |
| | | QueryWrapper<ProductBom> query = Wrappers.query(); |
| | | query.eq("parent_model",parentModel).last(" limit 1"); |
| | | return mapper.selectOne(query); |
| | | } |
| | | } |