irradiation_standards
This commit is contained in:
@@ -30,7 +30,4 @@ COPY --from=build /app/physical-launcher/target/physical-launcher-3.7.0.jar phys
|
||||
COPY --from=build /app/templates ./templates
|
||||
ENV PROFILE=dev
|
||||
|
||||
RUN apt update && apt install -y tesseract-ocr libtesseract-dev
|
||||
ENV LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
|
||||
|
||||
CMD sleep 10;java -Djava.security.egd=file:/dev/./urandom -jar physical-launcher-3.7.0.jar --spring.profiles.active=${PROFILE}
|
||||
@@ -256,4 +256,9 @@ public class Experiment implements Serializable {
|
||||
@TableField(exist = false)
|
||||
private ExperimentReview ExperimentReview;
|
||||
|
||||
|
||||
@Schema(description = "辐照标准")
|
||||
@TableField(exist = false)
|
||||
private String radiationStandard;
|
||||
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
left join experiment_deviation_equipment d on d.experiment_id = e.id
|
||||
left join experiment_report r on r.experiment_id = e.id
|
||||
left join experiment_radiation_process rp on rp.experiment_id = e.id
|
||||
left join irradiation_standards ir on rp.radiation_standard = ir.id
|
||||
<where>
|
||||
e.status is not null
|
||||
<choose>
|
||||
@@ -24,6 +25,9 @@
|
||||
</otherwise>
|
||||
</choose>
|
||||
|
||||
<if test="experiment.radiationStandard != null and experiment.radiationStandard != ''">
|
||||
and ir.name like concat('%', #{experiment.radiationStandard}, '%')
|
||||
</if>
|
||||
<if test="experiment.radiationSourceType != null and experiment.radiationSourceType != ''">
|
||||
and rp.radiation_source like concat('%', #{experiment.radiationSourceType}, '%')
|
||||
</if>
|
||||
|
||||
@@ -425,9 +425,8 @@ public class ExperimentDocServiceImpl extends ServiceImpl<ExperimentDocMapper, E
|
||||
List<String> standardCode = new ArrayList<>();
|
||||
for (ExperimentRadiationProcess radiationProcess : radiationProcessList) {
|
||||
String radiationStandard = radiationProcess.getRadiationStandard();
|
||||
if (StringUtils.isNotBlank(radiationStandard) && radiationStandard.contains(",")) {
|
||||
String standardId = radiationStandard.split(",")[1];
|
||||
IrradiationStandards standards = irradiationStandardsService.getById(standardId);
|
||||
if (StringUtils.isNotBlank(radiationStandard)) {
|
||||
IrradiationStandards standards = irradiationStandardsService.getById(radiationStandard);
|
||||
if (Objects.nonNull(standards)) {
|
||||
standardName.add(standards.getName());
|
||||
standardCode.add(standards.getCode());
|
||||
|
||||
Reference in New Issue
Block a user