1、ebom 设计人员查询
This commit is contained in:
parent
a524472638
commit
016b1f8c15
|
|
@ -54,7 +54,7 @@ public interface BomNewEbomParentMapper extends BaseMapper<BomNewEbomParentEntit
|
|||
|
||||
Set<String> getSelfParentMaterialNo(@Param("createdBy") String createdBy ,@Param("list") Set<String> list);
|
||||
|
||||
List<BomNewEbomParentVO> getParentForMaterialNoSeach(@Param("materialNoList") List<String> materialNoList ,@Param("dataType") Integer dataType , @Param("createdBy") String createdBy);
|
||||
List<BomNewEbomParentVO> getParentForMaterialNoSeach(@Param("materialNoList") List<String> materialNoList ,@Param("dataType") Integer dataType , @Param("technicianIs") Integer technicianIs, @Param("createdBy") String createdBy);
|
||||
|
||||
List<BomNewEbomParentVO> getChildForMaterialNoSeach(@Param("materialNoList") List<String> materialNoList,@Param("bomRowIds") Collection<Long> bomRowIds , @Param("createdBy") String createdBy );
|
||||
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
|||
materialNos.addAll(parentMaterialByMaterialNo);
|
||||
if (CollUtil.isNotEmpty(materialNos)) {
|
||||
List<BomNewEbomParentVO> childs=new ArrayList<>();
|
||||
List<BomNewEbomParentVO> parents = this.getBaseMapper().getParentForMaterialNoSeach(materialNos, query.getDataType() ,(getSelfIs && query.getDataType().equals(0) )?SessionUtil.getUserCode():null );
|
||||
List<BomNewEbomParentVO> parents = this.getBaseMapper().getParentForMaterialNoSeach(materialNos, query.getDataType() ,userRoleService.technician()?1:0, SessionUtil.getUserCode() );
|
||||
if(CollUtil.isNotEmpty(parents)) {
|
||||
childs = this.getBaseMapper().getChildForMaterialNoSeach(materialNos, parents.stream().map(u -> u.getRowId()).collect(Collectors.toSet()), (getSelfIs && query.getDataType().equals(0)) ? SessionUtil.getUserCode() : null);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -105,9 +105,11 @@
|
|||
status = 4
|
||||
</if>
|
||||
<if test="dataType==0" >
|
||||
status < 4
|
||||
<if test="createdBy!=null and createdBy!=''">
|
||||
and created_by=#{createdBy} and status=1
|
||||
<if test="technicianIs==0 ">
|
||||
and created_by=#{createdBy} and status in (1,3)
|
||||
</if>
|
||||
<if test="technicianIs==1 ">
|
||||
and (created_by=#{createdBy} or status=2 )
|
||||
</if>
|
||||
|
||||
</if>
|
||||
|
|
|
|||
Loading…
Reference in New Issue