|
@@ -230,7 +230,7 @@ public class WorkOrderCurrentController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@PostMapping("/importEntrust")
|
|
|
- @Transactional
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public AjaxResult importEntrust(MultipartFile file) throws Exception {
|
|
|
AtomicInteger failureNum = new AtomicInteger();
|
|
|
StringBuilder successMsg = new StringBuilder();
|
|
@@ -289,7 +289,7 @@ public class WorkOrderCurrentController extends BaseController {
|
|
|
}
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
- System.out.println(e);
|
|
|
+ throw new RuntimeException("导入错误");
|
|
|
}
|
|
|
|
|
|
});
|
|
@@ -332,7 +332,7 @@ public class WorkOrderCurrentController extends BaseController {
|
|
|
this.addEntrust(bizEntrust);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
-
|
|
|
+ throw new RuntimeException("出现错误");
|
|
|
}
|
|
|
|
|
|
|
|
@@ -415,7 +415,7 @@ public class WorkOrderCurrentController extends BaseController {
|
|
|
}
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
+ throw new RuntimeException("出现错误");
|
|
|
}
|
|
|
|
|
|
});
|
|
@@ -458,7 +458,7 @@ public class WorkOrderCurrentController extends BaseController {
|
|
|
this.addEntrust(bizEntrust);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
-
|
|
|
+ throw new RuntimeException("出现错误");
|
|
|
}
|
|
|
|
|
|
|