Commit 8eafdd4f by zhangxingmin

push

parent 1cd52091
...@@ -13,6 +13,8 @@ import lombok.extern.slf4j.Slf4j; ...@@ -13,6 +13,8 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
@Slf4j @Slf4j
@Service @Service
...@@ -39,6 +41,7 @@ public class ApiExpectedFortuneLogServiceImpl implements ApiExpectedFortuneLogSe ...@@ -39,6 +41,7 @@ public class ApiExpectedFortuneLogServiceImpl implements ApiExpectedFortuneLogSe
* @return * @return
*/ */
@Override @Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public Result saveExpectedFortuneLog(ApiExpectedFortuneLogDto dto) { public Result saveExpectedFortuneLog(ApiExpectedFortuneLogDto dto) {
ExpectedFortuneLog expectedFortuneLog = new ExpectedFortuneLog(); ExpectedFortuneLog expectedFortuneLog = new ExpectedFortuneLog();
BeanUtils.copyProperties(dto,expectedFortuneLog); BeanUtils.copyProperties(dto,expectedFortuneLog);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment