|
@@ -2758,15 +2758,37 @@ public class AddRepairBusinessServiceImpl implements AddRepairBusinessService {
|
|
|
|
|
|
// //////////////////////////////////////////
|
|
|
@Override
|
|
|
- @Transactional(rollbackFor = Exception.class)
|
|
|
+ // @Transactional(rollbackFor = Exception.class)
|
|
|
public Boolean csfun() throws Exception {
|
|
|
List<Brand> addmx = new ArrayList<>();
|
|
|
List<Brand> upMxd = new ArrayList<>();
|
|
|
List<Test> ttt = new ArrayList<>();
|
|
|
- // 取数据
|
|
|
- csfuna(upMxd,ttt);
|
|
|
- // 表中插入数据
|
|
|
- csfunb(addmx,upMxd,ttt);
|
|
|
+ List<Test> tx = new ArrayList<>();
|
|
|
+
|
|
|
+ try {
|
|
|
+ try{
|
|
|
+ Test tt = new Test();
|
|
|
+ tt.setId("1");
|
|
|
+ tx.add(tt);
|
|
|
+ testService.saveBatch(tx);
|
|
|
+ } catch (Exception ex) {
|
|
|
+ log.error("A失败:", ex);
|
|
|
+ }
|
|
|
+
|
|
|
+ Test t = new Test();
|
|
|
+ t.setId("2");
|
|
|
+ ttt.add(t);
|
|
|
+ testService.saveBatch(ttt);
|
|
|
+
|
|
|
+
|
|
|
+ } catch (Exception ex) {
|
|
|
+ log.error("B失败:", ex);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
// 网络请求
|
|
|
// csfunbc();
|