From 2a5022a76b8aaf26fb1757bb589f161c1f8f9fff Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Wed, 21 Jan 2026 18:24:38 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A[=E8=AF=95=E9=AA=8C=E7=AE=A1?= =?UTF-8?q?=E7=90=86]bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/hxhq/business/domain/Template.java | 13 ++++++++++++- .../com/hxhq/business/dto/study/StudyFormFillListDto.java | 11 +++++++++++ .../java/com/hxhq/business/enums/template/ProductEnum.java | 14 +++++++------- .../business/service/impl/StudyFormFillServiceImpl.java | 5 ++--- .../main/resources/mapper/business/StudyFormFillMapper.xml | 2 +- .../src/main/resources/mapper/business/TemplateMapper.xml | 2 +- 6 files changed, 34 insertions(+), 13 deletions(-) diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/Template.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/Template.java index 28001e1..774addb 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/Template.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/Template.java @@ -46,9 +46,12 @@ public class Template extends MpBaseEntity /** 类型:1:普通模板;10:敏感模板 */ private Integer type; - /** 产物:1:试剂;3:供试品;5:给药制剂;7:麻精药 */ + /** 产物:1:试剂;3:给药制剂;5:麻精药 */ private Integer product; + /** 填报显示观察按钮:1:否;10:显示 */ + private Integer showGc; + /** 显示的编号 */ private String showSn; @@ -56,6 +59,14 @@ public class Template extends MpBaseEntity @TableField(exist = false) private String deptName; + public Integer getShowGc() { + return showGc; + } + + public void setShowGc(Integer showGc) { + this.showGc = showGc; + } + public String getExportMethod() { return exportMethod; } diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/dto/study/StudyFormFillListDto.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/dto/study/StudyFormFillListDto.java index 464bbb0..0a3eb5e 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/dto/study/StudyFormFillListDto.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/dto/study/StudyFormFillListDto.java @@ -13,6 +13,17 @@ public class StudyFormFillListDto extends StudyFormFill { */ private Long subjectLeader; + /** 填报显示观察按钮:1:否;10:显示 */ + private Integer showGc; + + public Integer getShowGc() { + return showGc; + } + + public void setShowGc(Integer showGc) { + this.showGc = showGc; + } + public Long getSubjectLeader() { return subjectLeader; } diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/enums/template/ProductEnum.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/enums/template/ProductEnum.java index e2a16f5..44bf1dc 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/enums/template/ProductEnum.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/enums/template/ProductEnum.java @@ -1,7 +1,7 @@ package com.hxhq.business.enums.template; /** - * 产物:1:试剂;3:供试品;5:给药制剂;7:麻精药 + * 产物:1:试剂;3:给药制剂;5:麻精药;7:无 * @author tanfei */ public enum ProductEnum { @@ -12,19 +12,19 @@ public enum ProductEnum { Sj(1, "试剂"), /** - * 供试品 + * 给药制剂 */ - Gsp(3, "供试品"), + Gyzj(3, "给药制剂"), /** - * 给药制剂 + * 麻精药 */ - Gyzj(5, "给药制剂"), + Mjy(5, "麻精药"), /** - * 麻精药 + * 无 */ - Mjy(7, "麻精药"); + none(7, "无"); private int value; private String text; 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 c50ab2f..b6ddaa5 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 @@ -325,6 +325,7 @@ public class StudyFormFillServiceImpl extends ServiceImpl - SELECT t.`id`,t.`sn`,t.`show_sn`,t.`name`,t.`dept_id`,t.`status`,t.`need_pre`,t.`type`,d.`dept_name` + SELECT t.`id`,t.`sn`,t.`show_sn`,t.`name`,t.`dept_id`,t.`status`,t.`need_pre`,t.`type`,d.`dept_name`,t.product FROM `t_template` t LEFT JOIN `sys_dept` d ON t.`dept_id`=d.`dept_id`