修复bug
This commit is contained in:
parent
fcc482ac6f
commit
cbc37c3549
@ -154,7 +154,7 @@ public class ResultModelServiceImpl extends ServiceImpl<ResultModelMapper, Resul
|
|||||||
BeanUtils.copyProperties(req, resultTagetLib);
|
BeanUtils.copyProperties(req, resultTagetLib);
|
||||||
resultTagetLib.setModelId(resultModel.getId());
|
resultTagetLib.setModelId(resultModel.getId());
|
||||||
resultTagetLib.setOrderBy(libOrderBy);
|
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());
|
tagLibWeight = tagLibWeight.add(req.getWeight());
|
||||||
if(!resultModel.getWeight().equals(BigDecimal.ZERO) && tagLibWeight.compareTo(resultModel.getWeight()) == 1){
|
if(!resultModel.getWeight().equals(BigDecimal.ZERO) && tagLibWeight.compareTo(resultModel.getWeight()) == 1){
|
||||||
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();//事务回滚
|
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();//事务回滚
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user