123456789101112131415161718192021222324252627 |
- package com.fdkankan.fusion.service.impl;
- import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
- import com.fdkankan.fusion.entity.TmAttachment;
- import com.fdkankan.fusion.mapper.ITmAttachmentMapper;
- import com.fdkankan.fusion.service.ITmAttachmentService;
- import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
- import org.springframework.stereotype.Service;
- /**
- * <p>
- * 服务实现类
- * </p>
- *
- * @author
- * @since 2023-07-28
- */
- @Service
- public class TmAttachmentServiceImpl extends ServiceImpl<ITmAttachmentMapper, TmAttachment> implements ITmAttachmentService {
- @Override
- public void deleteByProjectId(String projectId) {
- LambdaQueryWrapper<TmAttachment> wrapper = new LambdaQueryWrapper<>();
- wrapper.eq(TmAttachment::getProjectId,projectId);
- this.remove(wrapper);
- }
- }
|