Merge remote-tracking branch 'origin/main'

This commit is contained in:
gaoqr
2024-08-28 20:33:49 +08:00
@@ -274,14 +274,14 @@ public class OptimizePlanServiceImpl implements OptimizePlanService {
Long planId = respVO.getPlanId(); Long planId = respVO.getPlanId();
List<Long> goodsNo = respVO.getGoodsNo(); List<Long> goodsNo = respVO.getGoodsNo();
LoginUser loginUser = SecurityFrameworkUtils.getLoginUser(); // LoginUser loginUser = SecurityFrameworkUtils.getLoginUser();
assert loginUser != null; // assert loginUser != null;
//
if(!loginUser.getIsSupAdmin()){ // if(!loginUser.getIsSupAdmin()){
//
throw exception(INSUFFICIENT_PERMISSIONS); // throw exception(INSUFFICIENT_PERMISSIONS);
//
} // }
PlanDO planDO = planMapper.selectById(planId); PlanDO planDO = planMapper.selectById(planId);
if (planDO == null) { if (planDO == null) {