|
@ -18,8 +18,10 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
import javax.transaction.Transactional; |
|
|
import java.io.IOException; |
|
|
import java.io.IOException; |
|
|
import java.net.URLEncoder; |
|
|
import java.net.URLEncoder; |
|
|
|
|
|
import java.sql.SQLException; |
|
|
import java.time.LocalDate; |
|
|
import java.time.LocalDate; |
|
|
import java.time.LocalDateTime; |
|
|
import java.time.LocalDateTime; |
|
|
import java.time.chrono.ChronoLocalDate; |
|
|
import java.time.chrono.ChronoLocalDate; |
|
@ -409,6 +411,7 @@ public class FundingServiceImpl implements IFundingService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
|
|
|
@Transactional(rollbackOn = SQLException.class) |
|
|
public Result<String> deleteActivity(Integer id) { |
|
|
public Result<String> deleteActivity(Integer id) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -417,9 +420,11 @@ public class FundingServiceImpl implements IFundingService { |
|
|
if(count == 0){ |
|
|
if(count == 0){ |
|
|
return Result.failure("活动不存在,删除失败"); |
|
|
return Result.failure("活动不存在,删除失败"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
fundingMapper.deleteActivity(id); |
|
|
fundingMapper.deleteActivity(id); |
|
|
fundingMapper.deleteDate(id); |
|
|
fundingMapper.deleteDate(id); |
|
|
fundingMapper.deleteZuser(id); |
|
|
fundingMapper.deleteZuser(id); |
|
|
|
|
|
|
|
|
return Result.success("删除成功"); |
|
|
return Result.success("删除成功"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|