|
|
|
@ -29,6 +29,7 @@ import com.elink.esua.epdc.dto.VolunteerUnionFormDTO; |
|
|
|
import com.elink.esua.epdc.modules.volunteer.dao.VolunteerUnionDao; |
|
|
|
import com.elink.esua.epdc.modules.volunteer.entity.VolunteerUnionEntity; |
|
|
|
import com.elink.esua.epdc.modules.volunteer.redis.VolunteerUnionRedis; |
|
|
|
import com.elink.esua.epdc.modules.volunteer.service.VolunteerUnionActService; |
|
|
|
import com.elink.esua.epdc.modules.volunteer.service.VolunteerUnionService; |
|
|
|
import com.elink.esua.epdc.volunteer.VolunteerUnionDTO; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
@ -51,6 +52,8 @@ public class VolunteerUnionServiceImpl extends BaseServiceImpl<VolunteerUnionDao |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private VolunteerUnionRedis volunteerUnionRedis; |
|
|
|
@Autowired |
|
|
|
private VolunteerUnionActService volunteerUnionActService; |
|
|
|
|
|
|
|
@Override |
|
|
|
public PageData<VolunteerUnionDTO> page(Map<String, Object> params) { |
|
|
|
@ -103,8 +106,11 @@ public class VolunteerUnionServiceImpl extends BaseServiceImpl<VolunteerUnionDao |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void delete(String[] ids) { |
|
|
|
// 逻辑删除(@TableLogic 注解)
|
|
|
|
// 共建联盟 逻辑删除(@TableLogic 注解)
|
|
|
|
baseDao.deleteBatchIds(Arrays.asList(ids)); |
|
|
|
// 共建联盟活动 逻辑删除
|
|
|
|
String[] actIds = volunteerUnionActService.getUnionActIds(ids); |
|
|
|
volunteerUnionActService.delete(actIds); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
|