PBOM工作表,查询1020数据时取消只能查本人的限制

This commit is contained in:
大米 2024-08-18 17:35:53 +08:00
parent 2c7db34d4a
commit 8640baa627
1 changed files with 4 additions and 1 deletions

View File

@ -165,7 +165,10 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
return new Page<>();
} else {
String queryFac= StrUtil.isBlank(query.getFacCode())? userRoleService.getUserFactory():query.getFacCode();
//查1020 时不限制只能查本人的
if(StrUtil.isNotBlank(query.getFacCode()) && EBomConstant.XIAN_TAO_FACTORY_CODE_1020.equals(query.getFacCode()) ){
query.setShowMySelfOnly(0);
}
Page<BomNewPbomParentVO> result = this.getBaseMapper().workDetailsListByPage(new Page<>(query.getPage()
, query.getPageSize()), query, queryFac, SessionUtil.getDepartRowId(), SessionUtil.getUserCode());
materialMainService.intiMaterialInfo(result.getRecords(), EBomConstant.EBOM_IGNORED_FIELDS_INIT_MATERIAL_DEFAULT);