| 1234567891011121314151617181920212223242526272829303132333435363738 | package org.jeecg.modules.demo.hzz.yhyc.service.impl;import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;import org.jeecg.modules.demo.hzz.yhyc.entity.RmWtqd;import org.jeecg.modules.demo.hzz.yhyc.geo.entity.RmWtqdgeo;import org.jeecg.modules.demo.hzz.yhyc.geo.service.IRmWtqdgeoService;import org.jeecg.modules.demo.hzz.yhyc.mapper.RmWtqdMapper;import org.jeecg.modules.demo.hzz.yhyc.service.IRmWtqdService;import org.springframework.stereotype.Service;import java.util.List;import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;import org.springframework.beans.factory.annotation.Autowired;/** * @Description: 问题清单 * @Author: jeecg-boot * @Date:   2021-11-26 * @Version: V1.0 */@Servicepublic class RmWtqdServiceImpl extends ServiceImpl<RmWtqdMapper, RmWtqd> implements IRmWtqdService {	@Autowired	private IRmWtqdgeoService rmWtqdgeoService;	@Autowired	private RmWtqdMapper rmWtqdMapper;	@Override	public List<RmWtqd> selectByMainId(String mainId) {		return rmWtqdMapper.selectByMainId(mainId);	}	@Override	public void deleteRmWtqd(String id){		LambdaQueryWrapper<RmWtqdgeo> queryWrapper = new LambdaQueryWrapper<>();		queryWrapper.eq(RmWtqdgeo::getWtid,id);		String wtgeoid=rmWtqdgeoService.getOne(queryWrapper).getId();		rmWtqdgeoService.removeById(wtgeoid);	}}
 |