增加查询

This commit is contained in:
BF-202309241046\Administrator 2024-07-04 13:07:01 +08:00
parent 77f20e616a
commit 1de556b5ad
2 changed files with 21 additions and 2 deletions

View File

@ -35,6 +35,7 @@ import lombok.extern.slf4j.Slf4j;
import nflg.product.common.constant.STATE;
import nflg.product.common.vo.ResultVO;
import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@ -107,6 +108,24 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
@Resource
private BomNewSapErrorMsgService bomNewSapErrorMsgService;
public List<BomNewEbomParentVO> getParentChild( Long rowId) {
return this.getBaseMapper().getParentChild(rowId);
}
public List<BomNewEbomParentVO> getParentChildBatch( List<Long> rowIds) {
return this.getBaseMapper().getParentChildBatch(rowIds);
}
/**
* 获取列表
*

View File

@ -223,14 +223,14 @@
<!--获取子级-->
<select id="getParentChild" resultType="com.nflg.product.bomnew.pojo.vo.BomNewEbomParentVO">
select *
select *,bom_version_row_id as bom_row_id
from t_bom_new_ebom_child
where parent_row_id = #{rowId}
order by order_number
</select>
<select id="getParentChildBatch" resultType="com.nflg.product.bomnew.pojo.vo.BomNewEbomParentVO">
select *
select *,bom_version_row_id as bom_row_id
from t_bom_new_ebom_child
where parent_row_id in
<foreach collection="rowIds" item="rowId" open="(" separator="," close=")">