PBOM-草稿显示在别人的物料下面
This commit is contained in:
parent
f8a6845dce
commit
a356e4d242
|
|
@ -46,9 +46,9 @@ public interface BomNewPbomParentMapper extends BaseMapper<BomNewPbomParentEntit
|
|||
|
||||
void updatePBomMaterialUse();
|
||||
|
||||
List<BomNewPbomParentVO> getParentForMaterialNoSeach(@Param("userFac") String userFac,@Param("materialNoList") List<String> materialNoList);
|
||||
List<BomNewPbomParentVO> getParentForMaterialNoSeach(@Param("userFac") String userFac,@Param("materialNoList") List<String> materialNoList,@Param("userCode")String userCode);
|
||||
|
||||
List<BomNewPbomParentVO> getChildForMaterialNoSeach(@Param("userFac") String userFac,@Param("materialNoList") List<String> materialNoList,@Param("materialNo")String materialNo);
|
||||
List<BomNewPbomParentVO> getChildForMaterialNoSeach(@Param("userFac") String userFac,@Param("materialNoList") List<String> materialNoList,@Param("materialNo")String materialNo,@Param("userCode")String userCode);
|
||||
|
||||
|
||||
Integer checkIsRoot(@Param("materialNo")String materialNo);
|
||||
|
|
|
|||
|
|
@ -145,8 +145,8 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
|
|||
if (CollUtil.isNotEmpty(parentMaterialByMaterialNo)) {
|
||||
String queryFac= StrUtil.isBlank(query.getFacCode())? userRoleService.getUserFactory():query.getFacCode();
|
||||
|
||||
List<BomNewPbomParentVO> parents = this.getBaseMapper().getParentForMaterialNoSeach(queryFac , parentMaterialByMaterialNo);
|
||||
List<BomNewPbomParentVO> childs = this.getBaseMapper().getChildForMaterialNoSeach(queryFac , parentMaterialByMaterialNo, materialNo);
|
||||
List<BomNewPbomParentVO> parents = this.getBaseMapper().getParentForMaterialNoSeach(queryFac , parentMaterialByMaterialNo,SessionUtil.getUserCode());
|
||||
List<BomNewPbomParentVO> childs = this.getBaseMapper().getChildForMaterialNoSeach(queryFac , parentMaterialByMaterialNo, materialNo,SessionUtil.getUserCode());
|
||||
List<BomNewPbomParentVO> data = new ArrayList<>();
|
||||
data.addAll(parents);
|
||||
data.addAll(childs);
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@
|
|||
<!--物料编码搜索-父级-->
|
||||
<select id="getParentForMaterialNoSeach" resultType="com.nflg.product.bomnew.pojo.vo.BomNewPbomParentVO">
|
||||
SELECT created_by as bomCreatedBy , row_id as bomRowId, row_id as childBomRowId, a.*
|
||||
FROM t_bom_new_pbom_parent a where a.last_version_is=1 and a.status=1
|
||||
FROM t_bom_new_pbom_parent a where a.last_version_is=1 and a.status=1 and a.created_by=#{userCode}
|
||||
<if test="userFac!=null and userFac!=''">
|
||||
and fac_code=#{userFac}
|
||||
</if> and material_no in
|
||||
|
|
@ -227,7 +227,7 @@
|
|||
from t_bom_new_pbom_parent a
|
||||
join t_bom_new_pbom_child b on a.row_id =b.parent_row_id
|
||||
left join t_bom_new_pbom_parent c on b.material_no=c.material_no and b.fac_code=c.fac_code and c.last_version_is=1
|
||||
where a.last_version_is=1 and a.status=1
|
||||
where a.last_version_is=1 and a.status=1 and a.created_by=#{userCode}
|
||||
<if test="userFac!=null and userFac!=''">
|
||||
and a.fac_code=#{userFac}
|
||||
</if>
|
||||
|
|
|
|||
Loading…
Reference in New Issue