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 */ @Service public class RmWtqdServiceImpl extends ServiceImpl implements IRmWtqdService { @Autowired private IRmWtqdgeoService rmWtqdgeoService; @Autowired private RmWtqdMapper rmWtqdMapper; @Override public List selectByMainId(String mainId) { return rmWtqdMapper.selectByMainId(mainId); } @Override public void deleteRmWtqd(String id){ LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); queryWrapper.eq(RmWtqdgeo::getWtid,id); String wtgeoid=rmWtqdgeoService.getOne(queryWrapper).getId(); rmWtqdgeoService.removeById(wtgeoid); } }