TTInfoServiceImpl.java
780 Bytes
package com.bsth.service.schedule;
import com.bsth.entity.schedule.TTInfo;
import com.bsth.repository.schedule.TTInfoDetailRepository;
import com.bsth.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.transaction.Transactional;
import java.util.Map;
/**
* Created by xu on 16/5/12.
*/
@Service
@Transactional
public class TTInfoServiceImpl extends BaseServiceImpl<TTInfo, Long> implements TTInfoService {
@Autowired
private TTInfoDetailRepository ttInfoDetailRepository;
@Override
public Map<String, Object> delete(Long aLong) {
ttInfoDetailRepository.deleteByTtinfoId(aLong);
return super.delete(aLong);
}
}