This commit is contained in:
xiaofajia 2024-10-26 17:52:48 +08:00
commit e8b1e7a655
2 changed files with 3 additions and 2 deletions

View File

@ -233,6 +233,7 @@ public class DlRepairBookingServiceImpl extends ServiceImpl<DlRepairBookingMappe
* @date 15:52 2024/10/26
**/
@Override
@TenantIgnore
public List<UserDTO> getAllServicer(Long tenantId) {
return roleApi.selectUserListByRoleCode(tenantId, RepairRoleEnum.ADVISOR.getCode());
}

View File

@ -558,8 +558,8 @@ public class DlRepairSoServiceImpl extends ServiceImpl<DlRepairSoMapper, DlRepai
// 更新采购单的状态如果是全部入库完了就是03已入库反之不变
// 查该采购单的所有采购配件
List<DlRepairSoi> sois = repairSoiService.list(new LambdaQueryWrapper<DlRepairSoi>().eq(DlRepairSoi::getSoId, reqVO.getId()));
// 过滤出入库数量等于采购数量的数据
List<DlRepairSoi> allInSois = sois.stream().filter(item -> item.getInCount().equals(item.getGoodsCount())).collect(Collectors.toList());
// 过滤出入库数量大于等于采购数量的数据 入库数量可以大于采购的数量
List<DlRepairSoi> allInSois = sois.stream().filter(item -> item.getInCount() >= item.getGoodsCount()).collect(Collectors.toList());
// 如果allInSois的size就是sois的size那就是全部都入库了
if (CollectionUtil.isNotEmpty(allInSois) && allInSois.size() == sois.size()) {
// 更新采购单的状态为已入库