事务的回滚
This commit is contained in:
parent
72ece8d418
commit
69e40de680
|
|
@ -177,7 +177,7 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService {
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional()
|
||||||
public AjaxResult submitOut(LeaseOutDetails record) {
|
public AjaxResult submitOut(LeaseOutDetails record) {
|
||||||
int res = 0;
|
int res = 0;
|
||||||
try {
|
try {
|
||||||
|
|
@ -223,7 +223,7 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService {
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("出库失败", e.getMessage());
|
log.error("出库失败", e.getMessage());
|
||||||
return AjaxResult.error("出库失败");
|
throw new RuntimeException("出库失败,修改任务状态失败");
|
||||||
}
|
}
|
||||||
return AjaxResult.success("出库成功");
|
return AjaxResult.success("出库成功");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue