From d1fad75dbbcd1858ee7699a9ee100d0265cecf9b Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Tue, 21 Apr 2026 14:56:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86]?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hxhq/business/dto/study/StudyFormFillResource.java | 15 +++++++++++++++ .../business/service/impl/StudyFormFillServiceImpl.java | 8 ++++++++ 2 files changed, 23 insertions(+) diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/dto/study/StudyFormFillResource.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/dto/study/StudyFormFillResource.java index ca43472..17bfac4 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/dto/study/StudyFormFillResource.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/dto/study/StudyFormFillResource.java @@ -43,6 +43,13 @@ public class StudyFormFillResource { @JsonSetter(nulls = Nulls.SKIP) private Integer type=null; + + /** + * 配置类型:1:试剂;3:给药制剂;5:麻精药;7:供试品 9:细胞;11:细菌 + */ + @JsonSetter(nulls = Nulls.SKIP) + private Integer elnType=null; + /** * 失效日期 */ @@ -78,6 +85,14 @@ public class StudyFormFillResource { */ private String yxzqdw; + public Integer getElnType() { + return elnType; + } + + public void setElnType(Integer elnType) { + this.elnType = elnType; + } + public String getMc() { return mc; } diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java index 764e965..daa938a 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java @@ -783,6 +783,14 @@ public class StudyFormFillServiceImpl extends ServiceImpl studyFormFillResourceList = JSONUtil.toList(studyFormFill.getResource(), StudyFormFillResource.class); + //如果elnType 不为空,则设置type为空 + for(StudyFormFillResource studyFormFillResource:studyFormFillResourceList){ + if(studyFormFillResource.getElnType()!=null&&studyFormFillResource.getElnType().intValue()>0){ + studyFormFillResource.setType(null); + } + } + studyFormFill.setResource(JSONObject.toJSONString(studyFormFillResourceList)); // 处置,存放,用量 sjService.genResource(studyFormFill, template);