|
|
|
@ -17,6 +17,7 @@ import org.springblade.core.mp.support.Query; |
|
|
|
import org.springblade.core.secure.BladeUser; |
|
|
|
import org.springblade.core.secure.BladeUser; |
|
|
|
import org.springblade.core.secure.annotation.IsAdmin; |
|
|
|
import org.springblade.core.secure.annotation.IsAdmin; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
|
|
|
import org.springblade.core.tool.constant.BladeConstant; |
|
|
|
import org.springblade.core.tool.utils.DateUtil; |
|
|
|
import org.springblade.core.tool.utils.DateUtil; |
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
import org.springblade.wms.excel.StGoodsClassExcel; |
|
|
|
import org.springblade.wms.excel.StGoodsClassExcel; |
|
|
|
@ -190,7 +191,7 @@ public class StGoodsClassController extends BladeController { |
|
|
|
//if (!AuthUtil.isAdministrator()) {
|
|
|
|
//if (!AuthUtil.isAdministrator()) {
|
|
|
|
// queryWrapper.lambda().eq(StGoodsClass::getTenantId, bladeUser.getTenantId());
|
|
|
|
// queryWrapper.lambda().eq(StGoodsClass::getTenantId, bladeUser.getTenantId());
|
|
|
|
//}
|
|
|
|
//}
|
|
|
|
//queryWrapper.lambda().eq(StGoodsClassEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
|
|
|
|
queryWrapper.lambda().eq(StGoodsClass::getIsDeleted, BladeConstant.DB_NOT_DELETED); |
|
|
|
List<StGoodsClassExcel> list = stGoodsClassService.exportStGoodsClass(queryWrapper); |
|
|
|
List<StGoodsClassExcel> list = stGoodsClassService.exportStGoodsClass(queryWrapper); |
|
|
|
ExcelUtil.export(response, "物料类别表数据" + DateUtil.time(), "物料类别表数据表", list, StGoodsClassExcel.class); |
|
|
|
ExcelUtil.export(response, "物料类别表数据" + DateUtil.time(), "物料类别表数据表", list, StGoodsClassExcel.class); |
|
|
|
} |
|
|
|
} |
|
|
|
|