46b82245c8def8c724e51296ad481c86491ead1a.svn-base 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package org.jeecg.modules.demo.hzz.shjsgc.sjcjrwb.service.impl;
  2. import org.jeecg.modules.demo.hzz.shjsgc.sjcjrwb.entity.RmSjcjrwb;
  3. import org.jeecg.modules.demo.hzz.shjsgc.sjcjrwb.entity.RmCjjl;
  4. import org.jeecg.modules.demo.hzz.shjsgc.sjcjrwb.mapper.RmCjjlMapper;
  5. import org.jeecg.modules.demo.hzz.shjsgc.sjcjrwb.mapper.RmSjcjrwbMapper;
  6. import org.jeecg.modules.demo.hzz.shjsgc.sjcjrwb.service.IRmSjcjrwbService;
  7. import org.springframework.stereotype.Service;
  8. import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
  9. import org.springframework.beans.factory.annotation.Autowired;
  10. import org.springframework.transaction.annotation.Transactional;
  11. import java.io.Serializable;
  12. import java.util.List;
  13. import java.util.Collection;
  14. /**
  15. * @Description: 数据采集任务表
  16. * @Author: jeecg-boot
  17. * @Date: 2021-11-29
  18. * @Version: V1.0
  19. */
  20. @Service
  21. public class RmSjcjrwbServiceImpl extends ServiceImpl<RmSjcjrwbMapper, RmSjcjrwb> implements IRmSjcjrwbService {
  22. @Autowired
  23. private RmSjcjrwbMapper rmSjcjrwbMapper;
  24. @Autowired
  25. private RmCjjlMapper rmCjjlMapper;
  26. @Override
  27. @Transactional
  28. public void delMain(String id) {
  29. rmCjjlMapper.deleteByMainId(id);
  30. rmSjcjrwbMapper.deleteById(id);
  31. }
  32. @Override
  33. @Transactional
  34. public void delBatchMain(Collection<? extends Serializable> idList) {
  35. for(Serializable id:idList) {
  36. rmCjjlMapper.deleteByMainId(id.toString());
  37. rmSjcjrwbMapper.deleteById(id);
  38. }
  39. }
  40. }