REQ-2596-ExtAxProperty保存删除数据,新开事务提交
This commit is contained in:
parent
73913fc980
commit
5356549e48
@ -6,6 +6,8 @@ import cn.axzo.workflow.core.service.ExtAxPropertyService;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
@ -29,6 +31,7 @@ public class ExtAxPropertyServiceImpl implements ExtAxPropertyService {
|
||||
private ExtAxPropertyMapper mapper;
|
||||
|
||||
@Override
|
||||
@Transactional(propagation = Propagation.REQUIRES_NEW)
|
||||
public ExtAxProperty add(ExtAxProperty property) {
|
||||
mapper.insert(property);
|
||||
return property;
|
||||
@ -51,6 +54,7 @@ public class ExtAxPropertyServiceImpl implements ExtAxPropertyService {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(propagation = Propagation.REQUIRES_NEW)
|
||||
public int delete(String name, String value) {
|
||||
if (!StringUtils.hasText(name)) {
|
||||
return 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user