|
@@ -67,36 +67,36 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
|
|
|
private static ISenYuDataSourceOne senYuDataSourceOne;
|
|
|
@Autowired
|
|
|
private static ISenYuDataSourceThree senYuDataSourceThree;
|
|
|
- @Override
|
|
|
- @Transactional
|
|
|
- public void saveMain(SyCostAllocation syCostAllocation, List<SyCostAllocationAccident> syCostAllocationAccidentList,List<SyCostAllocationCostpay> syCostAllocationCostpayList,List<SyCostAllocationFabric> syCostAllocationFabricList,List<SyCostAllocationIngredient> syCostAllocationIngredientList,List<SyCostAllocationShipdetail> syCostAllocationShipdetailList) {
|
|
|
- syCostAllocationMapper.insert(syCostAllocation);
|
|
|
- for(SyCostAllocationAccident entity:syCostAllocationAccidentList) {
|
|
|
-
|
|
|
- entity.setSyCostAllocationId(syCostAllocation.getId());
|
|
|
- syCostAllocationAccidentMapper.insert(entity);
|
|
|
- }
|
|
|
- for(SyCostAllocationCostpay entity:syCostAllocationCostpayList) {
|
|
|
-
|
|
|
- entity.setSyCostAllocationId(syCostAllocation.getId());
|
|
|
- syCostAllocationCostpayMapper.insert(entity);
|
|
|
- }
|
|
|
- for(SyCostAllocationFabric entity:syCostAllocationFabricList) {
|
|
|
-
|
|
|
- entity.setSyCostAllocationId(syCostAllocation.getId());
|
|
|
- syCostAllocationFabricMapper.insert(entity);
|
|
|
- }
|
|
|
- for(SyCostAllocationIngredient entity:syCostAllocationIngredientList) {
|
|
|
-
|
|
|
- entity.setSyCostAllocationId(syCostAllocation.getId());
|
|
|
- syCostAllocationIngredientMapper.insert(entity);
|
|
|
- }
|
|
|
- for(SyCostAllocationShipdetail entity:syCostAllocationShipdetailList) {
|
|
|
-
|
|
|
- entity.setSyCostAllocationId(syCostAllocation.getId());
|
|
|
- syCostAllocationShipdetailMapper.insert(entity);
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
public void saveMain(String plannum, JSONObject json) {
|
|
|
|