package org.jeecg.modules.demo.hzz.yhyc.service.impl; import org.jeecg.modules.demo.hzz.yhyc.entity.RmJbxx; import org.jeecg.modules.demo.hzz.yhyc.entity.RmMbqd; import org.jeecg.modules.demo.hzz.yhyc.entity.RmWtqd; import org.jeecg.modules.demo.hzz.yhyc.entity.RmMbfjb; import org.jeecg.modules.demo.hzz.yhyc.entity.RmRwqd; import org.jeecg.modules.demo.hzz.yhyc.entity.RmZrycsqd; import org.jeecg.modules.demo.hzz.yhyc.mapper.RmMbqdMapper; import org.jeecg.modules.demo.hzz.yhyc.mapper.RmWtqdMapper; import org.jeecg.modules.demo.hzz.yhyc.mapper.RmMbfjbMapper; import org.jeecg.modules.demo.hzz.yhyc.mapper.RmRwqdMapper; import org.jeecg.modules.demo.hzz.yhyc.mapper.RmZrycsqdMapper; import org.jeecg.modules.demo.hzz.yhyc.mapper.RmJbxxMapper; import org.jeecg.modules.demo.hzz.yhyc.service.IRmJbxxService; import org.springframework.stereotype.Service; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.transaction.annotation.Transactional; import java.io.Serializable; import java.util.List; import java.util.Collection; /** * @Description: 基本信息表 * @Author: jeecg-boot * @Date: 2021-11-26 * @Version: V1.0 */ @Service public class RmJbxxServiceImpl extends ServiceImpl implements IRmJbxxService { @Autowired private RmJbxxMapper rmJbxxMapper; @Autowired private RmMbqdMapper rmMbqdMapper; @Autowired private RmWtqdMapper rmWtqdMapper; @Autowired private RmMbfjbMapper rmMbfjbMapper; @Autowired private RmRwqdMapper rmRwqdMapper; @Autowired private RmZrycsqdMapper rmZrycsqdMapper; @Override @Transactional public void delMain(String id) { rmMbqdMapper.deleteByMainId(id); rmWtqdMapper.deleteByMainId(id); rmMbfjbMapper.deleteByMainId(id); rmRwqdMapper.deleteByMainId(id); rmZrycsqdMapper.deleteByMainId(id); rmJbxxMapper.deleteById(id); } @Override @Transactional public void delBatchMain(Collection idList) { for(Serializable id:idList) { rmMbqdMapper.deleteByMainId(id.toString()); rmWtqdMapper.deleteByMainId(id.toString()); rmMbfjbMapper.deleteByMainId(id.toString()); rmRwqdMapper.deleteByMainId(id.toString()); rmZrycsqdMapper.deleteByMainId(id.toString()); rmJbxxMapper.deleteById(id); } } }