|
@@ -563,7 +563,7 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
|
if(syPackingListTailoring.getIsReference()==1){
|
|
if(syPackingListTailoring.getIsReference()==1){
|
|
|
throw new JeecgBootException("已被托书参照,禁止删除!");
|
|
throw new JeecgBootException("已被托书参照,禁止删除!");
|
|
|
}
|
|
}
|
|
|
- if(!username.equals("admin")){
|
|
|
|
|
|
|
+ if(!username.equals("admin")&&syPackingListTailoring.getStatus().equals("1")){
|
|
|
throw new JeecgBootException("非管理员用户,不能直接删除提交状态的装箱单");
|
|
throw new JeecgBootException("非管理员用户,不能直接删除提交状态的装箱单");
|
|
|
}
|
|
}
|
|
|
syPackingListTailoringItemMapper.deleteByMainId(id);
|
|
syPackingListTailoringItemMapper.deleteByMainId(id);
|