You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.4 KiB
Java
41 lines
1.4 KiB
Java
package com.supervision.police.service.impl;
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
import cn.hutool.core.lang.Assert;
|
|
import cn.hutool.core.util.StrUtil;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.supervision.police.domain.FileEvidenceProperty;
|
|
import com.supervision.police.dto.OCREvidencePropertyDTO;
|
|
import com.supervision.police.service.FileEvidencePropertyService;
|
|
import com.supervision.police.mapper.FileEvidencePropertyMapper;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* @author Administrator
|
|
* @description 针对表【file_evidence_property】的数据库操作Service实现
|
|
* @createDate 2024-09-04 15:10:13
|
|
*/
|
|
@Service
|
|
public class FileEvidencePropertyServiceImpl extends ServiceImpl<FileEvidencePropertyMapper, FileEvidenceProperty>
|
|
implements FileEvidencePropertyService {
|
|
|
|
@Override
|
|
public List<OCREvidencePropertyDTO> listPrewByFileIdList(List<String> fileIdList) {
|
|
return super.getBaseMapper().listPrewByFileIdList(fileIdList);
|
|
}
|
|
|
|
@Override
|
|
public void removeByEvidenceAndFileId(String evidenceId, String fileId) {
|
|
Assert.isFalse(StrUtil.isAllEmpty(evidenceId,fileId), "案件id和文件id不能全为空");
|
|
|
|
super.lambdaUpdate().eq(StrUtil.isNotEmpty(evidenceId),FileEvidenceProperty::getEvidenceId, evidenceId)
|
|
.eq(StrUtil.isNotEmpty(fileId),FileEvidenceProperty::getFileId, fileId).remove();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|