bug
jiangping
2023-12-06 1f4e7d0f73a73e7350cf5a1df279d5f30904c5d5
server/src/main/java/doumeemes/service/ext/impl/MaterialDistributeExtServiceImpl.java
@@ -10,6 +10,7 @@
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;
@@ -25,6 +26,9 @@
@Service
public class MaterialDistributeExtServiceImpl implements MaterialDistributeExtService {
    @Autowired
    private ProceduresExtService proceduresExtService;
    @Autowired
    private MaterialDistributeExtMapper materialDistributeExtMapper;
@@ -50,6 +54,10 @@
                        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));