|
@@ -125,11 +125,11 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, OrderInfo> implem
|
|
|
.or(r -> r.eq("o", OrderInfo::getSource, 1))
|
|
|
);
|
|
|
|
|
|
-// List<Long> detpIdList = sysUserService.getDetpIdListByUserId(SecurityUtils.getUserId());
|
|
|
-// if (detpIdList.size() > 0) {
|
|
|
-// wrapper.in("o", OrderInfo::getDepartmentId, detpIdList);
|
|
|
-// wrapper.eq("o", OrderInfo::getCreateUser, SecurityUtils.getUserId());
|
|
|
-// }
|
|
|
+ List<Long> detpIdList = sysUserService.getDetpIdListByUserId(SecurityUtils.getUserId());
|
|
|
+ if (detpIdList.size() > 0) {
|
|
|
+ wrapper.in("o", OrderInfo::getDepartmentId, detpIdList);
|
|
|
+ wrapper.eq("o", OrderInfo::getCreateUser, SecurityUtils.getUserId());
|
|
|
+ }
|
|
|
|
|
|
if (Objects.equals(dto.getLinkedStatementOfAccount(), 0)) {
|
|
|
wrapper.isNull("o.statement_of_account_id");
|