| | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.yuanchu.mom.dto.BushingDto; |
| | | import com.yuanchu.mom.dto.FiberDto; |
| | | import com.yuanchu.mom.dto.FibersDto; |
| | | import com.yuanchu.mom.mapper.InsBushingMapper; |
| | | import com.yuanchu.mom.pojo.InsBushing; |
| | |
| | | if(bushingDto.getFiber().size()==0){ |
| | | bushingDto.setFibers(insBushingMapper.selectFibersByBushingId(insBushing.getId())); |
| | | for (FibersDto fibers : bushingDto.getFibers()) { |
| | | getTemplateThing(fibers.getProductList()); |
| | | // getTemplateThing(fibers.getProductList()); |
| | | fibers.setFiber(insBushingMapper.selectFiberByFibersId(fibers.getId())); |
| | | for (FiberDto fiberDto : fibers.getFiber()) { |
| | | getTemplateThing(fiberDto.getProductList()); |
| | | } |
| | | } |
| | | }else{ |
| | | for (FiberDto fiberDto : bushingDto.getFiber()) { |
| | | getTemplateThing(fiberDto.getProductList()); |
| | | // for (FiberDto fiberDto : fibers.getFiber()) { |
| | | // getTemplateThing(fiberDto.getProductList()); |
| | | // } |
| | | } |
| | | } |
| | | // else{ |
| | | // for (FiberDto fiberDto : bushingDto.getFiber()) { |
| | | // getTemplateThing(fiberDto.getProductList()); |
| | | // } |
| | | // } |
| | | bushingDtos.add(bushingDto); |
| | | } |
| | | return bushingDtos; |