bug修改
This commit is contained in:
parent
e62e5e4cf8
commit
be4d901595
|
|
@ -44,7 +44,7 @@ public interface BomNewMbomParentMapper extends BaseMapper<BomNewMbomParentEntit
|
|||
* @param rowId
|
||||
* @return
|
||||
*/
|
||||
List<BomNewMbomMiddleVO> getParentChild(@Param("rowId") Long rowId );
|
||||
List<BomNewMbomMiddleVO> getParentChild(@Param("rowId") Long rowId ,@Param("bomRowId") Long bomRowId);
|
||||
|
||||
BomNewMbomMiddleVO getParentById(@Param("rowId") Long rowId );
|
||||
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ public class BomNewMbomParentService extends ServiceImpl<BomNewMbomParentMapper,
|
|||
if (Objects.equals(dto.getRowId(), dto.getBomRowId())) {
|
||||
_rowId = 0l;
|
||||
}
|
||||
List<BomNewMbomMiddleVO> listChild = this.getBaseMapper().getParentChild(_rowId);
|
||||
List<BomNewMbomMiddleVO> listChild = this.getBaseMapper().getParentChild(_rowId,dto.getBomRowId());
|
||||
if (CollectionUtil.isNotEmpty(listChild)) {
|
||||
listChild.forEach(child -> {
|
||||
IndexListTree.sysnParentParam(parent, child);
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@
|
|||
<if test="query.facCode!=null and query.facCode!=''">
|
||||
and fac_code=#{query.facCode}
|
||||
</if>
|
||||
|
||||
|
||||
<if test="query.status!=null and query.status==1">
|
||||
<if test="query.startDate!=null and query.startDate!='' and query.endDate!=null and query.endDate!=''">
|
||||
|
|
@ -112,6 +113,9 @@
|
|||
left join t_bom_new_mbom_back_material as t2
|
||||
on t1.row_id=t2.detail_row_id
|
||||
where t1.parent_row_id = #{rowId}
|
||||
<if test="bomRowId!=null and bomRowId!=0">
|
||||
and t1.bom_row_id=#{bomRowId}
|
||||
</if>
|
||||
order by t1.order_number
|
||||
</select>
|
||||
|
||||
|
|
@ -138,7 +142,9 @@
|
|||
on t1.bom_row_id=t2.row_id
|
||||
where t1.bom_row_id=t2.row_id and t2.last_version_is=1
|
||||
|
||||
|
||||
<if test="query.status!=null and query.status!=0">
|
||||
and t2.status=#{query.status}
|
||||
</if>
|
||||
<if test="query.facCode!=null and query.facCode!=''">
|
||||
and t1.fac_code=#{query.facCode}
|
||||
</if>
|
||||
|
|
|
|||
Loading…
Reference in New Issue