|
@@ -23,6 +23,7 @@ import org.apache.commons.lang.StringUtils;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.http.HttpHeaders;
|
|
import org.springframework.http.HttpHeaders;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.interceptor.TransactionAspectSupport;
|
|
import org.springframework.transaction.interceptor.TransactionAspectSupport;
|
|
import org.springframework.util.CollectionUtils;
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
@@ -228,6 +229,7 @@ public class ShipServiceImpl implements ShipService {
|
|
* ],
|
|
* ],
|
|
* }
|
|
* }
|
|
*/
|
|
*/
|
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
@Override
|
|
@Override
|
|
public ResponseJson<Integer> addDelivery(LogisticsDto logisticsDto) {
|
|
public ResponseJson<Integer> addDelivery(LogisticsDto logisticsDto) {
|
|
JSONArray logistics;
|
|
JSONArray logistics;
|