|
@@ -39,6 +39,7 @@ import org.springblade.client.vo.GoodsDescVO;
|
|
|
import org.springblade.core.excel.util.ExcelUtil;
|
|
import org.springblade.core.excel.util.ExcelUtil;
|
|
|
import org.springblade.core.mp.support.Condition;
|
|
import org.springblade.core.mp.support.Condition;
|
|
|
import org.springblade.core.mp.support.Query;
|
|
import org.springblade.core.mp.support.Query;
|
|
|
|
|
+import org.springblade.core.secure.utils.AuthUtil;
|
|
|
import org.springblade.core.secure.utils.SecureUtil;
|
|
import org.springblade.core.secure.utils.SecureUtil;
|
|
|
import org.springblade.core.tool.api.R;
|
|
import org.springblade.core.tool.api.R;
|
|
|
import org.springblade.core.tool.utils.BeanUtil;
|
|
import org.springblade.core.tool.utils.BeanUtil;
|
|
@@ -158,6 +159,11 @@ public class PriceBankController extends BladeController {
|
|
|
lambdaQueryWrapper.le(Func.isNotEmpty(priceBank.getDateValidityEnd()),PriceBank::getEndTime,priceBank.getDateValidityEnd());
|
|
lambdaQueryWrapper.le(Func.isNotEmpty(priceBank.getDateValidityEnd()),PriceBank::getEndTime,priceBank.getDateValidityEnd());
|
|
|
lambdaQueryWrapper.eq(Func.isNotEmpty(priceBank.getBillType()),PriceBank::getBillType,priceBank.getBillType());
|
|
lambdaQueryWrapper.eq(Func.isNotEmpty(priceBank.getBillType()),PriceBank::getBillType,priceBank.getBillType());
|
|
|
lambdaQueryWrapper.orderByDesc(PriceBank::getId);
|
|
lambdaQueryWrapper.orderByDesc(PriceBank::getId);
|
|
|
|
|
+
|
|
|
|
|
+ lambdaQueryWrapper.and(qw -> qw.like(PriceBank::getSupervisorUserIdGroup, AuthUtil.getUserId())
|
|
|
|
|
+ .or().isNull(PriceBank::getSupervisorUserIdGroup)
|
|
|
|
|
+ .or().eq(PriceBank::getSupervisorUserIdGroup, ""));
|
|
|
|
|
+
|
|
|
IPage<PriceBank> pages = priceBankService.page(Condition.getPage(query), lambdaQueryWrapper);
|
|
IPage<PriceBank> pages = priceBankService.page(Condition.getPage(query), lambdaQueryWrapper);
|
|
|
if (CollectionUtils.isNotEmpty(pages.getRecords())){
|
|
if (CollectionUtils.isNotEmpty(pages.getRecords())){
|
|
|
pages.getRecords().stream().forEach(item ->{
|
|
pages.getRecords().stream().forEach(item ->{
|