| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 | 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 */@Servicepublic class RmJbxxServiceImpl extends ServiceImpl<RmJbxxMapper, RmJbxx> 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<? extends Serializable> 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);		}	}	}
 |