|
|
@@ -31,6 +31,7 @@ import org.springblade.sing.active.vo.ActiveHelpVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.lang.reflect.Array;
|
|
|
import java.util.ArrayList;
|
|
|
@@ -65,6 +66,7 @@ public class ActiveHelpRecordServiceImpl extends BaseServiceImpl<ActiveHelpRecor
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional
|
|
|
public boolean recordHide(List<Long> recordIds) {
|
|
|
Assert.notNull(recordIds,"请选择助力记录");
|
|
|
List<ActiveHelpRecord> activeHelpRecords = super.listByIds(recordIds);
|
|
|
@@ -75,6 +77,7 @@ public class ActiveHelpRecordServiceImpl extends BaseServiceImpl<ActiveHelpRecor
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional
|
|
|
public boolean recordShow(List<Long> recordIds) {
|
|
|
Assert.notNull(recordIds,"请选择助力记录");
|
|
|
List<ActiveHelpRecord> activeHelpRecords = super.listByIds(recordIds);
|
|
|
@@ -85,6 +88,7 @@ public class ActiveHelpRecordServiceImpl extends BaseServiceImpl<ActiveHelpRecor
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional
|
|
|
public boolean recordHideByIp(List<String> ips) {
|
|
|
List<ActiveHelpRecord> activeHelpRecords = new ArrayList<>();
|
|
|
for (String ip : ips) {
|
|
|
@@ -97,6 +101,7 @@ public class ActiveHelpRecordServiceImpl extends BaseServiceImpl<ActiveHelpRecor
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional
|
|
|
public boolean recordShowByIp(List<String> ips) {
|
|
|
List<ActiveHelpRecord> activeHelpRecords = new ArrayList<>();
|
|
|
for (String ip : ips) {
|