Ver código fonte

字典编辑:保存新增

yucheng 3 anos atrás
pai
commit
9a12ce012c

+ 1 - 1
dmp-business/dmp-rwd-version/src/main/java/com/persagy/dmp/rwd/demand/service/impl/DictionaryDemandServiceImpl.java

@@ -34,7 +34,7 @@ public class DictionaryDemandServiceImpl extends ServiceImpl<DictionaryDemandMap
             vo.setBillState(DemandBillState.SAVING.getIndex());
         }
         vo.setValid(ValidEnum.TRUE.getType());
-        save(vo);
+        saveOrUpdate(vo);
         // 保存后,更新编码(有值就不再更新了)
         getBaseMapper().updateMaxCode(vo.getId());
         return getById(vo.getId());