修复bug
This commit is contained in:
parent
4fd958c721
commit
fcc482ac6f
@ -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();//事务回滚
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user