|
|
@@ -62,15 +62,15 @@ public class DutyServiceImpl extends ServiceImpl<TDutyMapper, TDuty> implements
|
|
|
ids.add(tDuty.getDutyId().longValue());
|
|
|
}
|
|
|
}
|
|
|
- List<Long> roleIds = findDutiesByAccountId(accountId);
|
|
|
- if (roleIds.size() > 0) {
|
|
|
- for (Long roleId : roleIds) {
|
|
|
- if (!ids.contains(roleId)) {
|
|
|
- TDuty duty = getRoleById(roleId);
|
|
|
- result.add(duty);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+// List<Long> roleIds = findDutiesByAccountId(accountId);
|
|
|
+// if (roleIds.size() > 0) {
|
|
|
+// for (Long roleId : roleIds) {
|
|
|
+// if (!ids.contains(roleId)) {
|
|
|
+// TDuty duty = getRoleById(roleId);
|
|
|
+// result.add(duty);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
@@ -251,7 +251,7 @@ public class DutyServiceImpl extends ServiceImpl<TDutyMapper, TDuty> implements
|
|
|
String merchantId = paginationRequest.getSearchParams().get("merchantId") == null ? "" : paginationRequest.getSearchParams().get("merchantId").toString();
|
|
|
if (StringUtils.isNotBlank(merchantId)) {
|
|
|
lambdaQueryWrapper.and(wq -> wq
|
|
|
- .eq(TDuty::getMerchantId, 0)
|
|
|
+// .eq(TDuty::getMerchantId, 0)
|
|
|
.or()
|
|
|
.eq(TDuty::getMerchantId, merchantId));
|
|
|
}
|