|  |  |  | 
|---|
|  |  |  | import doumeemes.dao.ext.MaterialDistributeExtMapper; | 
|---|
|  |  |  | import com.github.pagehelper.PageHelper; | 
|---|
|  |  |  | import com.github.pagehelper.PageInfo; | 
|---|
|  |  |  | import doumeemes.service.ext.ProceduresExtService; | 
|---|
|  |  |  | import org.apache.commons.lang3.StringUtils; | 
|---|
|  |  |  | import org.apache.shiro.SecurityUtils; | 
|---|
|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
|---|
|  |  |  | 
|---|
|  |  |  | @Service | 
|---|
|  |  |  | public class MaterialDistributeExtServiceImpl implements MaterialDistributeExtService { | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private ProceduresExtService proceduresExtService; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private MaterialDistributeExtMapper materialDistributeExtMapper; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | mev.setUnionCategoryName(mev.getCmodelName()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(mev.getHasBom() >0 && Constants.equalsInteger(pageWrap.getModel().getQueryType(),Constants.ONE)){ | 
|---|
|  |  |  | //如果需要查询工艺路线工序,查询bom关联工艺路线的所有工序 | 
|---|
|  |  |  | mev.setProcedureList(proceduresExtService.getListByMaterialId(mev.getId())); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return PageData.from(new PageInfo<>(result)); | 
|---|