修复bug

This commit is contained in:
wulin 2020-11-19 19:07:48 +08:00
parent 4fd958c721
commit fcc482ac6f

View File

@ -154,7 +154,7 @@ public class ResultModelServiceImpl extends ServiceImpl<ResultModelMapper, Resul
BeanUtils.copyProperties(req, resultTagetLib);
resultTagetLib.setModelId(resultModel.getId());
resultTagetLib.setOrderBy(libOrderBy);
if(req.getWeight() != null){
if(req.getWeight() != null && (req.getIsDelete() == null || req.getIsDelete().intValue() == 0){
tagLibWeight = tagLibWeight.add(req.getWeight());
if(!resultModel.getWeight().equals(BigDecimal.ZERO) && tagLibWeight.compareTo(resultModel.getWeight()) == 1){
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();//事务回滚