|
|
@@ -24,6 +24,7 @@ import com.mokamrp.privates.entity.PostBasePageHandle;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
@@ -180,7 +181,7 @@ public class FosterwxMobileWxfriendServiceImpl extends ServiceImpl<FosterwxMobil
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
|
-
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public VoltaHandle<Boolean> importData(List<Map<String,String>> row, User authUser) throws Exception{
|
|
|
VoltaHandle<Boolean> res = new VoltaHandle<>();
|
|
|
if (row.size() <= 0) {
|