|
@@ -9,6 +9,7 @@ import com.steerinfo.dil.util.DataChange;
|
|
|
import com.steerinfo.route.mapper.TmstruckArrivalResultMapper;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.ArrayList;
|
|
@@ -45,6 +46,7 @@ public class TmstruckReceiptResultServiceImpl implements ITmstruckReceiptResultS
|
|
|
private TmstruckArrivalResultMapper tmstruckArrivalResultMapper;
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public synchronized BigDecimal addTmstruckReceiptResult(String orderNumber, TmstruckReceiptResult tmstruckReceiptResult) {
|
|
|
long id;
|
|
|
if(tmstruckReceiptResultMapper.selectMaxId()==null){
|