修复bug

This commit is contained in:
wulin 2020-11-19 19:08:50 +08:00
parent fcc482ac6f
commit cbc37c3549

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 && (req.getIsDelete() == null || req.getIsDelete().intValue() == 0){
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();//事务回滚