优化生产-修改开料排单权限修改

This commit is contained in:
liuzhaotian
2024-08-28 17:28:39 +08:00
parent 8d2a2eaefa
commit 79bb032224
@@ -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) {