oms仓储预约单按创建时间查询修改;
This commit is contained in:
-28
@@ -137,34 +137,6 @@ public class ReserveStockInOrderApplicationService {
|
||||
}
|
||||
}
|
||||
|
||||
// 库管角色过滤:不展示已创建(status=1)的入库单
|
||||
// 说明:部分场景下角色码可能不在 userPo.roleCode 中,而在 loginUser.roles/roleList 中。
|
||||
// if (loginUser != null) {
|
||||
// String targetRoleCode = "KGY-001";
|
||||
// boolean isKuGuan = false;
|
||||
//
|
||||
// String roleCode = loginUser.getUserPo() != null ? loginUser.getUserPo().getRoleCode() : null;
|
||||
// if (StringUtils.isNotBlank(roleCode) && roleCode.contains(targetRoleCode)) {
|
||||
// isKuGuan = true;
|
||||
// }
|
||||
//
|
||||
// if (!isKuGuan && loginUser.getRoleList() != null) {
|
||||
// isKuGuan = loginUser.getRoleList().stream()
|
||||
// .anyMatch(rc -> StringUtils.isNotBlank(rc) && rc.contains(targetRoleCode));
|
||||
// }
|
||||
//
|
||||
// if (!isKuGuan && loginUser.getRoles() != null) {
|
||||
// isKuGuan = loginUser.getRoles().stream()
|
||||
// .anyMatch(rc -> StringUtils.isNotBlank(rc) && rc.contains(targetRoleCode));
|
||||
// }
|
||||
//
|
||||
// if (isKuGuan) {
|
||||
// Integer currentGtStatus = stockInOrderDO.getGtStatus();
|
||||
// if (currentGtStatus == null || currentGtStatus < 1) {
|
||||
// stockInOrderDO.setGtStatus(1); // status > 1
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
return stockInOrderDomainService.queryList(stockInOrderDO);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user