|
|
@ -12,6 +12,7 @@ import org.jeecg.modules.ocr.model.OcrMetadataConfigSaveModel;
|
|
|
|
import org.jeecg.modules.ocr.service.IOcrMetadataConfigDetailService;
|
|
|
|
import org.jeecg.modules.ocr.service.IOcrMetadataConfigDetailService;
|
|
|
|
import org.jeecg.modules.ocr.service.IOcrMetadataConfigService;
|
|
|
|
import org.jeecg.modules.ocr.service.IOcrMetadataConfigService;
|
|
|
|
import org.jeecg.modules.ocr.vo.OcrMetadataConfigVo;
|
|
|
|
import org.jeecg.modules.ocr.vo.OcrMetadataConfigVo;
|
|
|
|
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
|
|
|
|
|
|
|
@ -149,4 +150,18 @@ public class OcrMetadataConfigServiceImpl extends ServiceImpl<OcrMetadataConfigM
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return allList;
|
|
|
|
return allList;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public OcrMetadataConfigVo findById(String id) {
|
|
|
|
|
|
|
|
OcrMetadataConfigVo copyEntityVo=new OcrMetadataConfigVo();
|
|
|
|
|
|
|
|
OcrMetadataConfig ocrMetadataConfig = this.getById(id);
|
|
|
|
|
|
|
|
BeanUtils.copyProperties(ocrMetadataConfig,copyEntityVo);
|
|
|
|
|
|
|
|
List<OcrMetadataConfigDetail> list = ocrMetadataConfigDetailService.list(new LambdaQueryWrapper<OcrMetadataConfigDetail>().eq(OcrMetadataConfigDetail::getMetadataConfigId, id));
|
|
|
|
|
|
|
|
String fieldName = list.stream().map(o -> o.getFieldName()).collect(Collectors.joining(","));
|
|
|
|
|
|
|
|
String getField = list.stream().map(o -> o.getGetField()).collect(Collectors.joining(","));
|
|
|
|
|
|
|
|
copyEntityVo.setResultName(fieldName);
|
|
|
|
|
|
|
|
copyEntityVo.setGetField(getField);
|
|
|
|
|
|
|
|
copyEntityVo.setOcrMetadataConfigDetailList(list);
|
|
|
|
|
|
|
|
return copyEntityVo;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|