|
@@ -173,8 +173,13 @@ public class EhsdPurchaseServiceImpl extends ServiceImpl<EhsdPurchaseMapper, Ehs
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
- wrapper.eq("t1", EhsdPurchase::getCompanyId, SecurityUtils.getCompanyId());
|
|
|
+
|
|
|
+ Long companyId = SecurityUtils.getCompanyId();
|
|
|
+ if (!Objects.equals(companyId, 100L)) {
|
|
|
+ wrapper.eq("t1", EhsdPurchase::getCompanyId, companyId);
|
|
|
+ } else {
|
|
|
+ wrapper.eq("t1", EhsdPurchase::getCompanyId, dto.getCompanyId());
|
|
|
+ }
|
|
|
|
|
|
wrapper.orderByDesc("t1", EhsdPurchase::getCreateTime);
|
|
|
|