|
@@ -49,13 +49,13 @@ public class CostDocumentTemplateFileManagerImpl extends BaseManagerImpl<CostDoc
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public List<CostDocumentTemplateFile> queryByDocumentId(String documentId) {
|
|
|
|
|
|
|
+ public List<CostDocumentTemplateFile> queryByDocumentId(String documentId,String whereValue) {
|
|
|
List<CostDocumentTemplateFile> documentFileList = this.getDocumentFileList(documentId);
|
|
List<CostDocumentTemplateFile> documentFileList = this.getDocumentFileList(documentId);
|
|
|
QueryWrapper<CostDocumentTemplateFile> eq = new QueryWrapper<CostDocumentTemplateFile>().eq("document_id", documentId);
|
|
QueryWrapper<CostDocumentTemplateFile> eq = new QueryWrapper<CostDocumentTemplateFile>().eq("document_id", documentId);
|
|
|
for (CostDocumentTemplateFile costProjectDocumentFile : documentFileList) {
|
|
for (CostDocumentTemplateFile costProjectDocumentFile : documentFileList) {
|
|
|
try {
|
|
try {
|
|
|
//获取whereValue字段值
|
|
//获取whereValue字段值
|
|
|
- costProjectDocumentFile.setDataValue(this.baseMapper.getColValue(costProjectDocumentFile.getTableName(), costProjectDocumentFile.getColName(), costProjectDocumentFile.getWhereName(), costProjectDocumentFile.getWhereValue()));
|
|
|
|
|
|
|
+ costProjectDocumentFile.setDataValue(this.baseMapper.getColValue(costProjectDocumentFile.getTableName(), costProjectDocumentFile.getColName(), costProjectDocumentFile.getWhereValue(),whereValue));
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
throw new BaseException("获取字段失败:" + costProjectDocumentFile.getColName());
|
|
throw new BaseException("获取字段失败:" + costProjectDocumentFile.getColName());
|
|
|
}
|
|
}
|