From 17b5b646142a88fedcffb8639f593eadecab92a1 Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Mon, 19 Jan 2026 12:10:01 +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]=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/GyzjFfjlJcgjServiceImpl.java | 4 +- .../business/service/impl/GyzjJcgjServiceImpl.java | 5 +- .../business/service/impl/GyzjTzServiceImpl.java | 4 +- .../service/impl/MjyFfjlJcgjServiceImpl.java | 4 +- .../business/service/impl/MjyJcgjServiceImpl.java | 3 +- .../business/service/impl/MjyTzServiceImpl.java | 2 +- .../impl/StudyFormApplyJcgjServiceImpl.java | 5 +- .../impl/StudyFormApplyQmxxServiceImpl.java | 5 +- .../service/impl/StudyFormApplyServiceImpl.java | 5 +- .../service/impl/StudyFormFillJcgjServiceImpl.java | 6 +- .../service/impl/StudyFormFillQmxxServiceImpl.java | 4 +- .../service/impl/StudyFormFillServiceImpl.java | 2 +- .../service/impl/StudyFormPlanJcgjServiceImpl.java | 5 +- .../service/impl/StudyFormPlanQmxxServiceImpl.java | 5 +- .../service/impl/StudyFormPlanServiceImpl.java | 3 +- .../service/impl/StudyFormPreJcgjServiceImpl.java | 5 +- .../service/impl/StudyFormPreQmxxServiceImpl.java | 6 +- .../service/impl/StudyFormPreServiceImpl.java | 6 +- .../java/com/hxhq/business/utils/GyzjJcnrUtil.java | 154 -------------------- .../java/com/hxhq/business/utils/MjyJcnrUtil.java | 151 -------------------- .../com/hxhq/business/utils/StudyFormUtil.java | 99 ------------- .../java/com/hxhq/business/utils/TemplateUtil.java | 116 --------------- .../com/hxhq/business/utils/lang/GyzjJcnrUtil.java | 155 +++++++++++++++++++++ .../com/hxhq/business/utils/lang/MjyJcnrUtil.java | 151 ++++++++++++++++++++ .../hxhq/business/utils/lang/StudyFormUtil.java | 100 +++++++++++++ .../com/hxhq/business/utils/lang/TemplateUtil.java | 117 ++++++++++++++++ .../hxhq/business/utils/pdf/resource/Dosage.java | 2 +- .../com/hxhq/business/utils/pdf/resource/Drug.java | 2 +- .../hxhq/business/utils/pdf/template/SP001.java | 7 - .../utils/pdf/template/TemplateBaseUtil.java | 7 +- 30 files changed, 544 insertions(+), 596 deletions(-) delete mode 100644 hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/GyzjJcnrUtil.java delete mode 100644 hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/MjyJcnrUtil.java delete mode 100644 hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/StudyFormUtil.java delete mode 100644 hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/TemplateUtil.java create mode 100644 hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/lang/GyzjJcnrUtil.java create mode 100644 hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/lang/MjyJcnrUtil.java create mode 100644 hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/lang/StudyFormUtil.java create mode 100644 hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/lang/TemplateUtil.java diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjFfjlJcgjServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjFfjlJcgjServiceImpl.java index 09515a0..d3fec72 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjFfjlJcgjServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjFfjlJcgjServiceImpl.java @@ -4,17 +4,15 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.hxhq.business.domain.GyzjFfjlJcgj; -import com.hxhq.business.domain.GyzjFfjlJcgj; import com.hxhq.business.mapper.GyzjFfjlJcgjMapper; import com.hxhq.business.service.IGyzjFfjlJcgjService; import com.hxhq.business.utils.JctUtil; -import com.hxhq.business.utils.GyzjJcnrUtil; +import com.hxhq.business.utils.lang.GyzjJcnrUtil; import com.hxhq.common.core.exception.ServiceException; import com.hxhq.common.core.utils.StringUtils; import com.hxhq.system.api.domain.SysUser; import org.springframework.stereotype.Service; -import java.rmi.ServerException; import java.util.List; import java.util.Map; diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjJcgjServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjJcgjServiceImpl.java index 2a0637c..7124da8 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjJcgjServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjJcgjServiceImpl.java @@ -6,16 +6,13 @@ import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.hxhq.business.domain.GyzjJcgj; -import com.hxhq.business.domain.GyzjJcgj; -import com.hxhq.business.domain.GyzjJcgj; import com.hxhq.business.utils.JctUtil; -import com.hxhq.business.utils.GyzjJcnrUtil; +import com.hxhq.business.utils.lang.GyzjJcnrUtil; import com.hxhq.common.core.exception.ServiceException; import com.hxhq.common.core.utils.StringUtils; import com.hxhq.system.api.domain.SysUser; import org.springframework.stereotype.Service; import com.hxhq.business.mapper.GyzjJcgjMapper; -import com.hxhq.business.domain.GyzjJcgj; import com.hxhq.business.service.IGyzjJcgjService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjTzServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjTzServiceImpl.java index 7e92e49..d7632c3 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjTzServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjTzServiceImpl.java @@ -3,14 +3,12 @@ package com.hxhq.business.service.impl; import java.util.List; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; -import com.hxhq.business.domain.GyzjJcgj; import com.hxhq.business.domain.GyzjTz; -import com.hxhq.business.utils.GyzjJcnrUtil; +import com.hxhq.business.utils.lang.GyzjJcnrUtil; import com.hxhq.common.core.exception.ServiceException; import com.hxhq.system.api.domain.SysUser; import org.springframework.stereotype.Service; import com.hxhq.business.mapper.GyzjTzMapper; -import com.hxhq.business.domain.GyzjTz; import com.hxhq.business.service.IGyzjTzService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyFfjlJcgjServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyFfjlJcgjServiceImpl.java index d71b7ce..fcd6d8f 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyFfjlJcgjServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyFfjlJcgjServiceImpl.java @@ -3,12 +3,10 @@ package com.hxhq.business.service.impl; import java.util.List; import java.util.Map; -import com.alibaba.fastjson2.JSONObject; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; -import com.hxhq.business.domain.MjyJcgj; import com.hxhq.business.utils.JctUtil; -import com.hxhq.business.utils.MjyJcnrUtil; +import com.hxhq.business.utils.lang.MjyJcnrUtil; import com.hxhq.common.core.exception.ServiceException; import com.hxhq.common.core.utils.StringUtils; import com.hxhq.system.api.domain.SysUser; diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyJcgjServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyJcgjServiceImpl.java index d94325d..668543a 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyJcgjServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyJcgjServiceImpl.java @@ -3,12 +3,11 @@ package com.hxhq.business.service.impl; import java.util.List; import java.util.Map; -import com.alibaba.fastjson2.JSONObject; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.hxhq.business.domain.MjyJcgj; import com.hxhq.business.utils.JctUtil; -import com.hxhq.business.utils.MjyJcnrUtil; +import com.hxhq.business.utils.lang.MjyJcnrUtil; import com.hxhq.common.core.exception.ServiceException; import com.hxhq.common.core.utils.StringUtils; import com.hxhq.system.api.domain.SysUser; diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyTzServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyTzServiceImpl.java index e180c96..5d4b07c 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyTzServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyTzServiceImpl.java @@ -4,7 +4,7 @@ import java.util.List; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; -import com.hxhq.business.utils.MjyJcnrUtil; +import com.hxhq.business.utils.lang.MjyJcnrUtil; import com.hxhq.common.core.exception.ServiceException; import com.hxhq.system.api.domain.SysUser; import org.springframework.stereotype.Service; diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyJcgjServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyJcgjServiceImpl.java index 88dd4b2..b9f3189 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyJcgjServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyJcgjServiceImpl.java @@ -7,16 +7,13 @@ import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.hxhq.business.domain.StudyFormApplyJcgj; -import com.hxhq.business.domain.StudyFormPreJcgj; import com.hxhq.business.utils.JctUtil; -import com.hxhq.business.utils.StudyFormUtil; +import com.hxhq.business.utils.lang.StudyFormUtil; import com.hxhq.common.core.exception.ServiceException; -import com.hxhq.common.core.utils.DateUtils; import com.hxhq.common.core.utils.StringUtils; import com.hxhq.system.api.domain.SysUser; import org.springframework.stereotype.Service; import com.hxhq.business.mapper.StudyFormApplyJcgjMapper; -import com.hxhq.business.domain.StudyFormApplyJcgj; import com.hxhq.business.service.IStudyFormApplyJcgjService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyQmxxServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyQmxxServiceImpl.java index 18a8fe0..d4587bc 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyQmxxServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyQmxxServiceImpl.java @@ -4,14 +4,11 @@ import java.util.List; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.hxhq.business.domain.StudyFormApplyQmxx; -import com.hxhq.business.domain.StudyFormPreQmxx; -import com.hxhq.business.utils.StudyFormUtil; +import com.hxhq.business.utils.lang.StudyFormUtil; import com.hxhq.common.core.exception.ServiceException; -import com.hxhq.common.core.utils.DateUtils; import com.hxhq.system.api.domain.SysUser; import org.springframework.stereotype.Service; import com.hxhq.business.mapper.StudyFormApplyQmxxMapper; -import com.hxhq.business.domain.StudyFormApplyQmxx; import com.hxhq.business.service.IStudyFormApplyQmxxService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyServiceImpl.java index 22490e1..e33abff 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyServiceImpl.java @@ -6,21 +6,18 @@ import com.alibaba.fastjson2.JSONObject; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.hxhq.business.domain.*; -import com.hxhq.business.dto.mjy.DetailDto; import com.hxhq.business.dto.study.StudyFormApplyListDto; import com.hxhq.business.enums.NormalEnum; import com.hxhq.business.enums.study.StudyFormApplyBdztEnum; -import com.hxhq.business.enums.study.StudyFormApplyBdztEnum; import com.hxhq.business.enums.zykgl.JcgjlxEnum; import com.hxhq.business.enums.zykgl.JcmcysEnum; -import com.hxhq.business.enums.zykgl.JlztEnum; import com.hxhq.business.form.study.*; import com.hxhq.business.form.study.StudyFormApplySearchForm; import com.hxhq.business.service.IStudyFormApplyJcgjService; import com.hxhq.business.service.IStudyFormApplyQmxxService; import com.hxhq.business.utils.JctUtil; import com.hxhq.business.utils.ObjectCompareUtil; -import com.hxhq.business.utils.StudyFormUtil; +import com.hxhq.business.utils.lang.StudyFormUtil; import com.hxhq.common.core.exception.ServiceException; import com.hxhq.common.core.utils.StringUtils; import com.hxhq.common.security.utils.SecurityUtils; diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillJcgjServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillJcgjServiceImpl.java index cc3812d..51169a1 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillJcgjServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillJcgjServiceImpl.java @@ -6,14 +6,10 @@ import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; -import com.hxhq.business.domain.GyzjJcgj; -import com.hxhq.business.domain.StudyFormPreJcgj; import com.hxhq.business.enums.zykgl.JcgjlxEnum; -import com.hxhq.business.utils.StudyFormUtil; +import com.hxhq.business.utils.lang.StudyFormUtil; import com.hxhq.business.utils.JctUtil; -import com.hxhq.business.utils.StudyFormUtil; import com.hxhq.common.core.exception.ServiceException; -import com.hxhq.common.core.utils.DateUtils; import com.hxhq.common.core.utils.StringUtils; import com.hxhq.system.api.domain.SysUser; import org.springframework.stereotype.Service; diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillQmxxServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillQmxxServiceImpl.java index 08b3ed7..0370a73 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillQmxxServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillQmxxServiceImpl.java @@ -3,10 +3,8 @@ package com.hxhq.business.service.impl; import java.util.List; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; -import com.hxhq.business.domain.StudyFormPreQmxx; -import com.hxhq.business.utils.StudyFormUtil; +import com.hxhq.business.utils.lang.StudyFormUtil; import com.hxhq.common.core.exception.ServiceException; -import com.hxhq.common.core.utils.DateUtils; import com.hxhq.system.api.domain.SysUser; import org.springframework.stereotype.Service; import com.hxhq.business.mapper.StudyFormFillQmxxMapper; 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 57c1325..75c514b 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 @@ -17,7 +17,7 @@ import com.hxhq.business.form.study.StudyFormFillSearchForm; import com.hxhq.business.service.*; import com.hxhq.business.utils.JctUtil; import com.hxhq.business.utils.ObjectCompareUtil; -import com.hxhq.business.utils.StudyFormUtil; +import com.hxhq.business.utils.lang.StudyFormUtil; import com.hxhq.common.core.exception.ServiceException; import com.hxhq.common.core.utils.StringUtils; import com.hxhq.common.security.utils.SecurityUtils; diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanJcgjServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanJcgjServiceImpl.java index 090c4bd..f162229 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanJcgjServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanJcgjServiceImpl.java @@ -7,16 +7,13 @@ import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.hxhq.business.domain.StudyFormPlanJcgj; -import com.hxhq.business.domain.StudyFormPlanJcgj; import com.hxhq.business.utils.JctUtil; -import com.hxhq.business.utils.StudyFormUtil; +import com.hxhq.business.utils.lang.StudyFormUtil; import com.hxhq.common.core.exception.ServiceException; -import com.hxhq.common.core.utils.DateUtils; import com.hxhq.common.core.utils.StringUtils; import com.hxhq.system.api.domain.SysUser; import org.springframework.stereotype.Service; import com.hxhq.business.mapper.StudyFormPlanJcgjMapper; -import com.hxhq.business.domain.StudyFormPlanJcgj; import com.hxhq.business.service.IStudyFormPlanJcgjService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanQmxxServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanQmxxServiceImpl.java index 3c3ab6b..a5624c3 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanQmxxServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanQmxxServiceImpl.java @@ -4,14 +4,11 @@ import java.util.List; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.hxhq.business.domain.StudyFormPlanQmxx; -import com.hxhq.business.domain.StudyFormPlanQmxx; -import com.hxhq.business.utils.StudyFormUtil; +import com.hxhq.business.utils.lang.StudyFormUtil; import com.hxhq.common.core.exception.ServiceException; -import com.hxhq.common.core.utils.DateUtils; import com.hxhq.system.api.domain.SysUser; import org.springframework.stereotype.Service; import com.hxhq.business.mapper.StudyFormPlanQmxxMapper; -import com.hxhq.business.domain.StudyFormPlanQmxx; import com.hxhq.business.service.IStudyFormPlanQmxxService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanServiceImpl.java index 5da583e..613555e 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanServiceImpl.java @@ -9,7 +9,6 @@ import com.hxhq.business.domain.*; import com.hxhq.business.domain.StudyFormPlan; import com.hxhq.business.dto.study.StudyFormPlanListDto; import com.hxhq.business.enums.study.StudyFormPlanBdztEnum; -import com.hxhq.business.enums.study.StudyFormPlanBdztEnum; import com.hxhq.business.enums.zykgl.JcgjlxEnum; import com.hxhq.business.enums.zykgl.JcmcysEnum; import com.hxhq.business.form.study.StudyFormPlanSearchForm; @@ -18,7 +17,7 @@ import com.hxhq.business.service.IStudyFormPlanJcgjService; import com.hxhq.business.service.IStudyFormPlanQmxxService; import com.hxhq.business.utils.JctUtil; import com.hxhq.business.utils.ObjectCompareUtil; -import com.hxhq.business.utils.StudyFormUtil; +import com.hxhq.business.utils.lang.StudyFormUtil; import com.hxhq.common.core.exception.ServiceException; import com.hxhq.common.core.utils.StringUtils; import com.hxhq.common.security.utils.SecurityUtils; diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreJcgjServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreJcgjServiceImpl.java index 8ee107b..46fefa0 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreJcgjServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreJcgjServiceImpl.java @@ -6,17 +6,14 @@ import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; -import com.hxhq.business.domain.MjyJcgj; import com.hxhq.business.domain.StudyFormPreJcgj; import com.hxhq.business.utils.JctUtil; -import com.hxhq.business.utils.StudyFormUtil; +import com.hxhq.business.utils.lang.StudyFormUtil; import com.hxhq.common.core.exception.ServiceException; -import com.hxhq.common.core.utils.DateUtils; import com.hxhq.common.core.utils.StringUtils; import com.hxhq.system.api.domain.SysUser; import org.springframework.stereotype.Service; import com.hxhq.business.mapper.StudyFormPreJcgjMapper; -import com.hxhq.business.domain.StudyFormPreJcgj; import com.hxhq.business.service.IStudyFormPreJcgjService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreQmxxServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreQmxxServiceImpl.java index e133943..e475bef 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreQmxxServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreQmxxServiceImpl.java @@ -4,15 +4,11 @@ import java.util.List; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.hxhq.business.domain.StudyFormPreQmxx; -import com.hxhq.business.domain.StudyFormPreJcgj; -import com.hxhq.business.utils.StudyFormUtil; +import com.hxhq.business.utils.lang.StudyFormUtil; import com.hxhq.common.core.exception.ServiceException; -import com.hxhq.common.core.utils.DateUtils; -import com.hxhq.common.core.utils.StringUtils; import com.hxhq.system.api.domain.SysUser; import org.springframework.stereotype.Service; import com.hxhq.business.mapper.StudyFormPreQmxxMapper; -import com.hxhq.business.domain.StudyFormPreQmxx; import com.hxhq.business.service.IStudyFormPreQmxxService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreServiceImpl.java index 10a2c9b..404784e 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreServiceImpl.java @@ -7,20 +7,17 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.hxhq.business.domain.*; import com.hxhq.business.dto.study.StudyFormPreListDto; -import com.hxhq.business.enums.NormalEnum; -import com.hxhq.business.enums.study.StudyFormPlanBdztEnum; import com.hxhq.business.enums.study.StudyFormPreBdztEnum; import com.hxhq.business.enums.study.StudyFormPreFzrshztEnum; import com.hxhq.business.enums.zykgl.JcgjlxEnum; import com.hxhq.business.enums.zykgl.JcmcysEnum; -import com.hxhq.business.form.common.SignForm; import com.hxhq.business.form.study.StudyFormPreAuditForm; import com.hxhq.business.form.study.StudyFormPreSearchForm; import com.hxhq.business.form.study.StudyFormUpdateForm; import com.hxhq.business.service.*; import com.hxhq.business.utils.JctUtil; import com.hxhq.business.utils.ObjectCompareUtil; -import com.hxhq.business.utils.StudyFormUtil; +import com.hxhq.business.utils.lang.StudyFormUtil; import com.hxhq.common.core.exception.ServiceException; import com.hxhq.common.core.utils.StringUtils; import com.hxhq.common.security.utils.SecurityUtils; @@ -30,7 +27,6 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.hxhq.business.mapper.StudyFormPreMapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.web.bind.annotation.PostMapping; /** * 试验-预填单Service业务层处理 diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/GyzjJcnrUtil.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/GyzjJcnrUtil.java deleted file mode 100644 index c0aeaff..0000000 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/GyzjJcnrUtil.java +++ /dev/null @@ -1,154 +0,0 @@ -package com.hxhq.business.utils; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import java.util.HashMap; -import java.util.LinkedHashMap; -import java.util.Map; - -/** - * @author tanfei - */ -public class GyzjJcnrUtil { - private static final Logger logger = LoggerFactory.getLogger(GyzjJcnrUtil.class.getName()); - private static HashMap mapLang=new HashMap<>(); - static { - mapLang.put("入库","In Storage"); - mapLang.put("未入库","Not in Storage"); - mapLang.put("已发放","In Use"); - mapLang.put("已锁定","'Locked'"); - mapLang.put("待归档","Pending Archiving"); - mapLang.put("归档","'Archived'"); - mapLang.put("待解档","Pending De-archiving"); - mapLang.put("借阅开始时间","Checkout Start Date"); - mapLang.put("借阅结束时间","Checkout End Date"); - mapLang.put("处置方式","Dispose Method"); - mapLang.put("处置原因","Reason"); - mapLang.put("处置量","Amount"); - mapLang.put("处置人","Operator"); - mapLang.put("复核人","Reviewer"); - mapLang.put("监督人","Supervisor"); - mapLang.put("钥匙1领取人","Key 1 User"); - mapLang.put("钥匙2领取人","Key 2 User"); - mapLang.put("出库量","Out Amount"); - mapLang.put("转移条件","Transfer Condition"); - mapLang.put("出库毛重","Check-out Gross Weight"); - mapLang.put("入库毛重","Check-in Gross Weight"); - mapLang.put("使用量","Usage Amount"); - mapLang.put("归还人1","Returner 1"); - mapLang.put("归还人2","Returner 2"); - mapLang.put("库管员1","Warehouse Keeper 1"); - mapLang.put("库管员2","Warehouse Keeper 2"); - mapLang.put("签名人1","Signed By 1"); - mapLang.put("签名人2","Signed By 2"); - mapLang.put("入库位置","Check-in Location"); - mapLang.put("入库条件","Check-in Condition"); - mapLang.put("入库净重","Check-in Net Weight"); - mapLang.put("入库量","Total Amount"); - mapLang.put("申请备注","Apply Comment"); - mapLang.put("审核备注","Approve Comment"); - mapLang.put("领取人","Recipient"); - mapLang.put("领取人2","Recipient 2"); - mapLang.put("发放人","Issuer"); - mapLang.put("发放人2","Issuer 2"); - mapLang.put("存储条件","Storage Condition"); - mapLang.put("存储位置","Storage Location"); - mapLang.put("使用人","User"); - mapLang.put("领取/归还人","Recipient/Returner"); - mapLang.put("发放/接收人","Issuer/Receiver"); - mapLang.put("操作类型","Action"); - mapLang.put("操作量","Amount"); - mapLang.put("备注/原因","Comment/Reason"); - mapLang.put("操作时间","Datetime"); - mapLang.put("名称","Name"); - mapLang.put("编号","ID"); - mapLang.put("浓度","Concentration"); - mapLang.put("库存量","Amount"); - mapLang.put("失效日期","Expiration"); - mapLang.put("制剂状态","Status"); - mapLang.put("所属表单","In Record"); - mapLang.put("所属试验信息","From Study"); - mapLang.put("表单所属人","By User"); - mapLang.put("基本信息","Information"); - mapLang.put("表单信息","Record Information"); - mapLang.put("稽查轨迹","Track Record"); - mapLang.put("给药制剂台账","Dose Table"); - mapLang.put("备注","Comment"); - mapLang.put("签名人","Signed By"); - - mapLang.put("申请解档","Apply for De-archiving"); - mapLang.put("申请借阅","Apply for Check-out"); - mapLang.put("申请归档","Apply for Archiving"); - mapLang.put("锁定给药制剂","Lock Drug"); - mapLang.put("解锁给药制剂","Unlock Drug"); - mapLang.put("处置药剂","Dispose Substance"); - mapLang.put("处置容器","Dispose Container"); - mapLang.put("钥匙发放","Issue Key"); - mapLang.put("申请编辑","Apply Edit"); - mapLang.put("同意编辑","Approve Edit"); - mapLang.put("拒绝编辑","Reject Edit"); - mapLang.put("修改库存申请","Apply Edit Inventory"); - mapLang.put("同意修改库存","Approve Edit Inventory"); - mapLang.put("拒绝修改库存","Reject Edit Inventory"); - mapLang.put("归还","Return"); - mapLang.put("确认归还","Confirm Check-in"); - mapLang.put("领取发放","Distribution"); - mapLang.put("存储","Storage"); - mapLang.put("取出","Take Out"); - mapLang.put("给药制剂详情","Dose Information"); - - mapLang.put("表单名称","Preset Name"); - mapLang.put("锁定发放记录","Lock Record"); - mapLang.put("解锁发放记录","Unlock Record"); - mapLang.put("给药制剂入库","Dose Formulation Check-in"); - mapLang.put("同意入库","Approve Check-in"); - mapLang.put("拒绝入库","Reject Check-in"); - mapLang.put("目的","Purpose"); - - } - - - public static void main(String[] args) { - Map formData = new LinkedHashMap<>(); - formData.put("申请备注", "1111"); - formData.put("审核备注", "22"); - logger.info(getJcnrEn(formData)); - } - /** - * 获取英文 - * @param name - * @return - */ - public static String getEn(String name) { - return mapLang.get(name); - } - - - /** - * 稽查名称英文 - * @param map - * @return - */ - public static String getJcnrEn(Map map) { - Map result =new LinkedHashMap<>(); - for (Map.Entry entry : map.entrySet()) { - result.put(mapLang.get(entry.getKey()),entry.getValue()); - } - return JctUtil.formatStr(result); - } - - /** - * 稽查名称英文 - * @param map - * @return - */ - public static Map getMapEn(Map map) { - Map result =new LinkedHashMap<>(); - for (Map.Entry entry : map.entrySet()) { - result.put(mapLang.get(entry.getKey()),entry.getValue()); - } - return result; - } - -} diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/MjyJcnrUtil.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/MjyJcnrUtil.java deleted file mode 100644 index b12af56..0000000 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/MjyJcnrUtil.java +++ /dev/null @@ -1,151 +0,0 @@ -package com.hxhq.business.utils; - -import com.alibaba.fastjson2.JSONObject; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import java.util.HashMap; -import java.util.LinkedHashMap; -import java.util.Map; - -/** - * @author tanfei - */ -public class MjyJcnrUtil { - private static final Logger logger = LoggerFactory.getLogger(MjyJcnrUtil.class.getName()); - private static HashMap mapLang=new HashMap<>(); - static { - mapLang.put("入库","In Storage"); - mapLang.put("未入库","Not in Storage"); - mapLang.put("已发放","In Use"); - mapLang.put("已锁定","'Locked'"); - mapLang.put("待归档","Pending Archiving"); - mapLang.put("归档","'Archived'"); - mapLang.put("待解档","Pending De-archiving"); - mapLang.put("借阅开始时间","Checkout Start Date"); - mapLang.put("借阅结束时间","Checkout End Date"); - mapLang.put("处置方式","Dispose Method"); - mapLang.put("处置原因","Reason"); - mapLang.put("处置量","Amount"); - mapLang.put("处置人","Operator"); - mapLang.put("复核人","Reviewer"); - mapLang.put("监督人","Supervisor"); - mapLang.put("钥匙1领取人","Key 1 User"); - mapLang.put("钥匙2领取人","Key 2 User"); - mapLang.put("发放人","Issuer"); - mapLang.put("发放人2","Issuer 2"); - mapLang.put("出库量","Out Amount"); - mapLang.put("转移条件","Transfer Condition"); - mapLang.put("出库毛重","Check-out Gross Weight"); - mapLang.put("入库毛重","Check-in Gross Weight"); - mapLang.put("使用量","Usage Amount"); - mapLang.put("归还人1","Returner 1"); - mapLang.put("归还人2","Returner 2"); - mapLang.put("库管员1","Warehouse Keeper 1"); - mapLang.put("库管员2","Warehouse Keeper 2"); - mapLang.put("签名人1","Signed By 1"); - mapLang.put("签名人2","Signed By 2"); - mapLang.put("申请备注","Apply Comment"); - mapLang.put("审核备注","Approve Comment"); - mapLang.put("存储条件","Storage Condition"); - mapLang.put("存储位置","Storage Location"); - mapLang.put("使用人","User"); - mapLang.put("领取/归还人","Recipient/Returner"); - mapLang.put("发放/接收人","Issuer/Receiver"); - mapLang.put("操作类型","Action"); - mapLang.put("操作量","Amount"); - mapLang.put("备注/原因","Comment/Reason"); - mapLang.put("操作时间","Datetime"); - mapLang.put("名称","Name"); - mapLang.put("编号","ID"); - mapLang.put("浓度","Concentration"); - mapLang.put("库存量","Amount"); - mapLang.put("失效日期","Expiration"); - mapLang.put("制剂状态","Status"); - mapLang.put("所属表单","In Record"); - mapLang.put("所属试验信息","From Study"); - mapLang.put("表单所属人","By User"); - mapLang.put("基本信息","Information"); - mapLang.put("表单信息","Record Information"); - mapLang.put("稽查轨迹","Track Record"); - mapLang.put("给药制剂台账","Dose Table"); - mapLang.put("备注","Comment"); - mapLang.put("签名人","Signed By"); - - - - mapLang.put("申请解档","Apply for De-archiving"); - mapLang.put("申请借阅","Apply for Check-out"); - mapLang.put("申请归档","Apply for Archiving"); - mapLang.put("锁定麻精药","Lock Drug"); - mapLang.put("解锁麻精药","Unlock Drug"); - mapLang.put("处置药剂","Dispose Substance"); - mapLang.put("处置容器","Dispose Container"); - mapLang.put("钥匙发放","Issue Key"); - mapLang.put("申请编辑","Apply Edit"); - mapLang.put("同意编辑","Approve Edit"); - mapLang.put("拒绝编辑","Reject Edit"); - mapLang.put("修改库存申请","Apply Change Inventory"); - mapLang.put("同意修改库存","Approve Change Inventory"); - mapLang.put("拒绝修改库存","Reject Change Inventory"); - mapLang.put("归还","Return"); - mapLang.put("领取发放","Distribution"); - mapLang.put("存储","Storage"); - mapLang.put("取出","Take Out"); - - mapLang.put("表单名称","Preset Name"); - mapLang.put("锁定发放记录","Lock Record"); - mapLang.put("解锁发放记录","Unlock Record"); - mapLang.put("麻精药入库","Controlled Drug Check-in"); - mapLang.put("目的","Purpose"); - mapLang.put("麻精药详情","Drug Information"); - - mapLang.put("入库位置","入库位置"); - mapLang.put("入库条件","入库条件"); - mapLang.put("减少量","减少量"); - } - - - - public static void main(String[] args) { - Map formData = new LinkedHashMap<>(); - formData.put("申请备注", "1111"); - formData.put("审核备注", "22"); - logger.info(getJcnrEn(formData)); - } - /** - * 获取英文 - * @param qmyy - * @return - */ - public static String getEn(String qmyy) { - return mapLang.get(qmyy); - } - - /** - * 获取稽查内容英文 - * @param map - * @return - */ - public static String getJcnrEn(Map map) { - Map result =new LinkedHashMap<>(); - for (Map.Entry entry : map.entrySet()) { - result.put(mapLang.get(entry.getKey()),entry.getValue()); - } - return JctUtil.formatStr(result); - } - - /** - * 获取稽查内容英文 - * @param map - * @return - */ - public static Map getMapEn(Map map) { - Map result =new LinkedHashMap<>(); - for (Map.Entry entry : map.entrySet()) { - result.put(mapLang.get(entry.getKey()),entry.getValue()); - } - return result; - } - -} diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/StudyFormUtil.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/StudyFormUtil.java deleted file mode 100644 index f1d60e4..0000000 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/StudyFormUtil.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.hxhq.business.utils; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import java.util.HashMap; -import java.util.LinkedHashMap; -import java.util.Map; - -/** - * @author tanfei - */ -public class StudyFormUtil { - private static final Logger logger = LoggerFactory.getLogger(StudyFormUtil.class.getName()); - private static HashMap mapJcnr=new HashMap<>(); - private static HashMap mapQmyy=new HashMap<>(); - static { - //region 稽查内容 - - mapJcnr.put("字段名","Field"); - mapJcnr.put("原值","Old Value"); - mapJcnr.put("新值","New Value"); - mapJcnr.put("原因","Reason"); - mapJcnr.put("生长情况","Growth Status"); - mapJcnr.put("新归属人","New Owner"); - mapJcnr.put("原归属人","Old Owner"); - mapJcnr.put("填入值","Input Data"); - mapJcnr.put("填写人","Data Entry Person"); - mapJcnr.put("意见回复","意见回复"); - mapJcnr.put("复核意见","复核意见"); - //endregion - - //region 稽查名称 - mapQmyy.put("更换归属人","Change Owner"); - mapQmyy.put("良好","Good"); - mapQmyy.put("中","Average"); - mapQmyy.put("差","Bad"); - mapQmyy.put("修改","Edit"); - mapQmyy.put("修改记录","Change Data"); - mapQmyy.put("填写","Create Record"); - mapQmyy.put("意见回复","意见回复"); - mapQmyy.put("复核意见","复核意见"); - mapQmyy.put("免复核通过","免复核通过"); - mapQmyy.put("复核拒绝","Verification Reject"); - mapQmyy.put("复核通过","Verification Pass"); - mapQmyy.put("填写并提交记录","Create and Submit Record"); - mapQmyy.put("废止拒绝","废止拒绝"); - mapQmyy.put("废止通过","废止通过"); - mapQmyy.put("申请废止","申请废止"); - mapQmyy.put("开始现场复核","Start on-Site Verification"); - mapQmyy.put("结束现场复核","End on-Site Verification"); - mapQmyy.put("申明协作","Declaration of Collaboration"); - mapQmyy.put("已审阅","Reviewed"); - mapQmyy.put("审核通过","Approved"); - mapQmyy.put("补充说明","Additional Remark"); - mapQmyy.put("审核拒绝","Reject after Review"); - mapQmyy.put("制作保存预制表单","Save Record Preset"); - mapQmyy.put("制作提交预制表单","Submit Record Preset"); - mapQmyy.put("创建记录","Create Record"); - mapQmyy.put("填写并保存记录","Create and Save Record"); - mapQmyy.put("申请关闭","Apply Close"); - mapQmyy.put("关闭拒绝","Close Reject"); - mapQmyy.put("关闭同意","Close Approve"); - - //endregion - - } - - - - public static void main(String[] args) { - Map formData = new LinkedHashMap<>(); - formData.put("申请备注", "1111"); - formData.put("审核备注", "22"); - logger.info(getJcnrEn(formData)); - } - /** - * 获取签名意义英文 - * @param qmyy - * @return - */ - public static String getQmyyEn(String qmyy) { - return mapQmyy.get(qmyy); - } - - /** - * 稽查名称英文 - * @param map - * @return - */ - public static String getJcnrEn(Map map) { - Map result =new HashMap<>(); - for (Map.Entry entry : map.entrySet()) { - result.put(mapJcnr.get(entry.getKey()),entry.getValue()); - } - return JctUtil.formatStr(result); - } - -} diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/TemplateUtil.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/TemplateUtil.java deleted file mode 100644 index 4fc0d1b..0000000 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/TemplateUtil.java +++ /dev/null @@ -1,116 +0,0 @@ -package com.hxhq.business.utils; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import java.util.HashMap; -import java.util.LinkedHashMap; -import java.util.Map; - -/** - * @author tanfei - */ -public class TemplateUtil { - private static final Logger logger = LoggerFactory.getLogger(TemplateUtil.class.getName()); - private static HashMap mapLang=new HashMap<>(); - static { - mapLang.put("试验基本信息","Test Basic Information"); - mapLang.put("试验试剂信息","Test Reagent Information"); - mapLang.put("仪器使用信息","Instrument Usage Information"); - mapLang.put("存储条件","Storage Conditions"); - mapLang.put("操作步骤","Operation Steps"); - mapLang.put("备注","Remarks"); - - mapLang.put("试验名称","Study Name"); - mapLang.put("试验编号","Study Number"); - mapLang.put("方法编号","Method Code"); - mapLang.put("版本号","Version Number"); - mapLang.put("试验配制条件","Study Configuration Conditions"); - mapLang.put("预填","Pre-Fill"); - mapLang.put("实际","Actual"); - mapLang.put("配置时间","Configuration Time"); - mapLang.put("开始时间","Start Time"); - mapLang.put("结束时间","End Time"); - mapLang.put("目标溶液名称","Target Solution Name"); - mapLang.put("目标溶液编号","Target Solution Code"); - mapLang.put("目标溶液预计浓度","Target Solution Expected Concentration"); - mapLang.put("目标溶液实际浓度","Target Solution Actual Concentration"); - mapLang.put("目标溶液预计体积","Target Solution Expected Volume"); - mapLang.put("目标溶液实际体积","Target Solution Actual Volume"); - mapLang.put("有效周期","Effective Period"); - mapLang.put("失效日","Expiry Date"); - mapLang.put("处理批编号","Analysis Batch Number"); - mapLang.put("容器材质","Container Material"); - mapLang.put("处理时间","Work Time"); - - mapLang.put("试剂名称","Reagent Name"); - mapLang.put("编号","Code"); - mapLang.put("批号","Batch Number"); - mapLang.put("浓度/含量/纯度","Concentration/Content/Purity"); - mapLang.put("来源","Source"); - - - mapLang.put("仪器名称","Instrument Name"); - mapLang.put("仪器型号","Instrument Model"); - mapLang.put("仪器编号","Instrument Number"); - mapLang.put("下次测试/校准/检定日期","Next Test/Calibration/Verification Date"); - - mapLang.put("给药剂量或组别","Administration Dose or Group"); - mapLang.put("配制浓度","Preparation Concentration"); - mapLang.put("配制体积","Preparation Volume"); - mapLang.put("其他","Other"); - mapLang.put("其他信息","Other Information"); - mapLang.put("单位","unit"); - - mapLang.put("签名人","Signed By"); - mapLang.put("签名意义","Meaning of Signature"); - mapLang.put("签名时间","Date"); - mapLang.put("备注原因","Comment/Reason"); - - - - - } - - public static void main(String[] args) { - Map formData = new LinkedHashMap<>(); - formData.put("申请备注", "1111"); - formData.put("审核备注", "22"); - logger.info(getJcnrEn(formData)); - } - /** - * 获取英文 - * @param qmyy - * @return - */ - public static String getEn(String qmyy) { - return mapLang.get(qmyy); - } - - /** - * 获取稽查内容英文 - * @param map - * @return - */ - public static String getJcnrEn(Map map) { - Map result =new LinkedHashMap<>(); - for (Map.Entry entry : map.entrySet()) { - result.put(mapLang.get(entry.getKey()),entry.getValue()); - } - return JctUtil.formatStr(result); - } - - /** - * 获取稽查内容英文 - * @param map - * @return - */ - public static Map getMapEn(Map map) { - Map result =new LinkedHashMap<>(); - for (Map.Entry entry : map.entrySet()) { - result.put(mapLang.get(entry.getKey()),entry.getValue()); - } - return result; - } - -} diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/lang/GyzjJcnrUtil.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/lang/GyzjJcnrUtil.java new file mode 100644 index 0000000..8616bf7 --- /dev/null +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/lang/GyzjJcnrUtil.java @@ -0,0 +1,155 @@ +package com.hxhq.business.utils.lang; + +import com.hxhq.business.utils.JctUtil; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.Map; + +/** + * @author tanfei + */ +public class GyzjJcnrUtil { + private static final Logger logger = LoggerFactory.getLogger(GyzjJcnrUtil.class.getName()); + private static HashMap mapLang=new HashMap<>(); + static { + mapLang.put("入库","In Storage"); + mapLang.put("未入库","Not in Storage"); + mapLang.put("已发放","In Use"); + mapLang.put("已锁定","'Locked'"); + mapLang.put("待归档","Pending Archiving"); + mapLang.put("归档","'Archived'"); + mapLang.put("待解档","Pending De-archiving"); + mapLang.put("借阅开始时间","Checkout Start Date"); + mapLang.put("借阅结束时间","Checkout End Date"); + mapLang.put("处置方式","Dispose Method"); + mapLang.put("处置原因","Reason"); + mapLang.put("处置量","Amount"); + mapLang.put("处置人","Operator"); + mapLang.put("复核人","Reviewer"); + mapLang.put("监督人","Supervisor"); + mapLang.put("钥匙1领取人","Key 1 User"); + mapLang.put("钥匙2领取人","Key 2 User"); + mapLang.put("出库量","Out Amount"); + mapLang.put("转移条件","Transfer Condition"); + mapLang.put("出库毛重","Check-out Gross Weight"); + mapLang.put("入库毛重","Check-in Gross Weight"); + mapLang.put("使用量","Usage Amount"); + mapLang.put("归还人1","Returner 1"); + mapLang.put("归还人2","Returner 2"); + mapLang.put("库管员1","Warehouse Keeper 1"); + mapLang.put("库管员2","Warehouse Keeper 2"); + mapLang.put("签名人1","Signed By 1"); + mapLang.put("签名人2","Signed By 2"); + mapLang.put("入库位置","Check-in Location"); + mapLang.put("入库条件","Check-in Condition"); + mapLang.put("入库净重","Check-in Net Weight"); + mapLang.put("入库量","Total Amount"); + mapLang.put("申请备注","Apply Comment"); + mapLang.put("审核备注","Approve Comment"); + mapLang.put("领取人","Recipient"); + mapLang.put("领取人2","Recipient 2"); + mapLang.put("发放人","Issuer"); + mapLang.put("发放人2","Issuer 2"); + mapLang.put("存储条件","Storage Condition"); + mapLang.put("存储位置","Storage Location"); + mapLang.put("使用人","User"); + mapLang.put("领取/归还人","Recipient/Returner"); + mapLang.put("发放/接收人","Issuer/Receiver"); + mapLang.put("操作类型","Action"); + mapLang.put("操作量","Amount"); + mapLang.put("备注/原因","Comment/Reason"); + mapLang.put("操作时间","Datetime"); + mapLang.put("名称","Name"); + mapLang.put("编号","ID"); + mapLang.put("浓度","Concentration"); + mapLang.put("库存量","Amount"); + mapLang.put("失效日期","Expiration"); + mapLang.put("制剂状态","Status"); + mapLang.put("所属表单","In Record"); + mapLang.put("所属试验信息","From Study"); + mapLang.put("表单所属人","By User"); + mapLang.put("基本信息","Information"); + mapLang.put("表单信息","Record Information"); + mapLang.put("稽查轨迹","Track Record"); + mapLang.put("给药制剂台账","Dose Table"); + mapLang.put("备注","Comment"); + mapLang.put("签名人","Signed By"); + + mapLang.put("申请解档","Apply for De-archiving"); + mapLang.put("申请借阅","Apply for Check-out"); + mapLang.put("申请归档","Apply for Archiving"); + mapLang.put("锁定给药制剂","Lock Drug"); + mapLang.put("解锁给药制剂","Unlock Drug"); + mapLang.put("处置药剂","Dispose Substance"); + mapLang.put("处置容器","Dispose Container"); + mapLang.put("钥匙发放","Issue Key"); + mapLang.put("申请编辑","Apply Edit"); + mapLang.put("同意编辑","Approve Edit"); + mapLang.put("拒绝编辑","Reject Edit"); + mapLang.put("修改库存申请","Apply Edit Inventory"); + mapLang.put("同意修改库存","Approve Edit Inventory"); + mapLang.put("拒绝修改库存","Reject Edit Inventory"); + mapLang.put("归还","Return"); + mapLang.put("确认归还","Confirm Check-in"); + mapLang.put("领取发放","Distribution"); + mapLang.put("存储","Storage"); + mapLang.put("取出","Take Out"); + mapLang.put("给药制剂详情","Dose Information"); + + mapLang.put("表单名称","Preset Name"); + mapLang.put("锁定发放记录","Lock Record"); + mapLang.put("解锁发放记录","Unlock Record"); + mapLang.put("给药制剂入库","Dose Formulation Check-in"); + mapLang.put("同意入库","Approve Check-in"); + mapLang.put("拒绝入库","Reject Check-in"); + mapLang.put("目的","Purpose"); + + } + + + public static void main(String[] args) { + Map formData = new LinkedHashMap<>(); + formData.put("申请备注", "1111"); + formData.put("审核备注", "22"); + logger.info(getJcnrEn(formData)); + } + /** + * 获取英文 + * @param name + * @return + */ + public static String getEn(String name) { + return mapLang.get(name); + } + + + /** + * 稽查名称英文 + * @param map + * @return + */ + public static String getJcnrEn(Map map) { + Map result =new LinkedHashMap<>(); + for (Map.Entry entry : map.entrySet()) { + result.put(mapLang.get(entry.getKey()),entry.getValue()); + } + return JctUtil.formatStr(result); + } + + /** + * 稽查名称英文 + * @param map + * @return + */ + public static Map getMapEn(Map map) { + Map result =new LinkedHashMap<>(); + for (Map.Entry entry : map.entrySet()) { + result.put(mapLang.get(entry.getKey()),entry.getValue()); + } + return result; + } + +} diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/lang/MjyJcnrUtil.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/lang/MjyJcnrUtil.java new file mode 100644 index 0000000..ccf0b48 --- /dev/null +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/lang/MjyJcnrUtil.java @@ -0,0 +1,151 @@ +package com.hxhq.business.utils.lang; + +import com.hxhq.business.utils.JctUtil; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.Map; + +/** + * @author tanfei + */ +public class MjyJcnrUtil { + private static final Logger logger = LoggerFactory.getLogger(MjyJcnrUtil.class.getName()); + private static HashMap mapLang=new HashMap<>(); + static { + mapLang.put("入库","In Storage"); + mapLang.put("未入库","Not in Storage"); + mapLang.put("已发放","In Use"); + mapLang.put("已锁定","'Locked'"); + mapLang.put("待归档","Pending Archiving"); + mapLang.put("归档","'Archived'"); + mapLang.put("待解档","Pending De-archiving"); + mapLang.put("借阅开始时间","Checkout Start Date"); + mapLang.put("借阅结束时间","Checkout End Date"); + mapLang.put("处置方式","Dispose Method"); + mapLang.put("处置原因","Reason"); + mapLang.put("处置量","Amount"); + mapLang.put("处置人","Operator"); + mapLang.put("复核人","Reviewer"); + mapLang.put("监督人","Supervisor"); + mapLang.put("钥匙1领取人","Key 1 User"); + mapLang.put("钥匙2领取人","Key 2 User"); + mapLang.put("发放人","Issuer"); + mapLang.put("发放人2","Issuer 2"); + mapLang.put("出库量","Out Amount"); + mapLang.put("转移条件","Transfer Condition"); + mapLang.put("出库毛重","Check-out Gross Weight"); + mapLang.put("入库毛重","Check-in Gross Weight"); + mapLang.put("使用量","Usage Amount"); + mapLang.put("归还人1","Returner 1"); + mapLang.put("归还人2","Returner 2"); + mapLang.put("库管员1","Warehouse Keeper 1"); + mapLang.put("库管员2","Warehouse Keeper 2"); + mapLang.put("签名人1","Signed By 1"); + mapLang.put("签名人2","Signed By 2"); + mapLang.put("申请备注","Apply Comment"); + mapLang.put("审核备注","Approve Comment"); + mapLang.put("存储条件","Storage Condition"); + mapLang.put("存储位置","Storage Location"); + mapLang.put("使用人","User"); + mapLang.put("领取/归还人","Recipient/Returner"); + mapLang.put("发放/接收人","Issuer/Receiver"); + mapLang.put("操作类型","Action"); + mapLang.put("操作量","Amount"); + mapLang.put("备注/原因","Comment/Reason"); + mapLang.put("操作时间","Datetime"); + mapLang.put("名称","Name"); + mapLang.put("编号","ID"); + mapLang.put("浓度","Concentration"); + mapLang.put("库存量","Amount"); + mapLang.put("失效日期","Expiration"); + mapLang.put("制剂状态","Status"); + mapLang.put("所属表单","In Record"); + mapLang.put("所属试验信息","From Study"); + mapLang.put("表单所属人","By User"); + mapLang.put("基本信息","Information"); + mapLang.put("表单信息","Record Information"); + mapLang.put("稽查轨迹","Track Record"); + mapLang.put("给药制剂台账","Dose Table"); + mapLang.put("备注","Comment"); + mapLang.put("签名人","Signed By"); + + + + mapLang.put("申请解档","Apply for De-archiving"); + mapLang.put("申请借阅","Apply for Check-out"); + mapLang.put("申请归档","Apply for Archiving"); + mapLang.put("锁定麻精药","Lock Drug"); + mapLang.put("解锁麻精药","Unlock Drug"); + mapLang.put("处置药剂","Dispose Substance"); + mapLang.put("处置容器","Dispose Container"); + mapLang.put("钥匙发放","Issue Key"); + mapLang.put("申请编辑","Apply Edit"); + mapLang.put("同意编辑","Approve Edit"); + mapLang.put("拒绝编辑","Reject Edit"); + mapLang.put("修改库存申请","Apply Change Inventory"); + mapLang.put("同意修改库存","Approve Change Inventory"); + mapLang.put("拒绝修改库存","Reject Change Inventory"); + mapLang.put("归还","Return"); + mapLang.put("领取发放","Distribution"); + mapLang.put("存储","Storage"); + mapLang.put("取出","Take Out"); + + mapLang.put("表单名称","Preset Name"); + mapLang.put("锁定发放记录","Lock Record"); + mapLang.put("解锁发放记录","Unlock Record"); + mapLang.put("麻精药入库","Controlled Drug Check-in"); + mapLang.put("目的","Purpose"); + mapLang.put("麻精药详情","Drug Information"); + + mapLang.put("入库位置","入库位置"); + mapLang.put("入库条件","入库条件"); + mapLang.put("减少量","减少量"); + } + + + + public static void main(String[] args) { + Map formData = new LinkedHashMap<>(); + formData.put("申请备注", "1111"); + formData.put("审核备注", "22"); + logger.info(getJcnrEn(formData)); + } + /** + * 获取英文 + * @param qmyy + * @return + */ + public static String getEn(String qmyy) { + return mapLang.get(qmyy); + } + + /** + * 获取稽查内容英文 + * @param map + * @return + */ + public static String getJcnrEn(Map map) { + Map result =new LinkedHashMap<>(); + for (Map.Entry entry : map.entrySet()) { + result.put(mapLang.get(entry.getKey()),entry.getValue()); + } + return JctUtil.formatStr(result); + } + + /** + * 获取稽查内容英文 + * @param map + * @return + */ + public static Map getMapEn(Map map) { + Map result =new LinkedHashMap<>(); + for (Map.Entry entry : map.entrySet()) { + result.put(mapLang.get(entry.getKey()),entry.getValue()); + } + return result; + } + +} diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/lang/StudyFormUtil.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/lang/StudyFormUtil.java new file mode 100644 index 0000000..9540743 --- /dev/null +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/lang/StudyFormUtil.java @@ -0,0 +1,100 @@ +package com.hxhq.business.utils.lang; + +import com.hxhq.business.utils.JctUtil; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.Map; + +/** + * @author tanfei + */ +public class StudyFormUtil { + private static final Logger logger = LoggerFactory.getLogger(StudyFormUtil.class.getName()); + private static HashMap mapJcnr=new HashMap<>(); + private static HashMap mapQmyy=new HashMap<>(); + static { + //region 稽查内容 + + mapJcnr.put("字段名","Field"); + mapJcnr.put("原值","Old Value"); + mapJcnr.put("新值","New Value"); + mapJcnr.put("原因","Reason"); + mapJcnr.put("生长情况","Growth Status"); + mapJcnr.put("新归属人","New Owner"); + mapJcnr.put("原归属人","Old Owner"); + mapJcnr.put("填入值","Input Data"); + mapJcnr.put("填写人","Data Entry Person"); + mapJcnr.put("意见回复","意见回复"); + mapJcnr.put("复核意见","复核意见"); + //endregion + + //region 稽查名称 + mapQmyy.put("更换归属人","Change Owner"); + mapQmyy.put("良好","Good"); + mapQmyy.put("中","Average"); + mapQmyy.put("差","Bad"); + mapQmyy.put("修改","Edit"); + mapQmyy.put("修改记录","Change Data"); + mapQmyy.put("填写","Create Record"); + mapQmyy.put("意见回复","意见回复"); + mapQmyy.put("复核意见","复核意见"); + mapQmyy.put("免复核通过","免复核通过"); + mapQmyy.put("复核拒绝","Verification Reject"); + mapQmyy.put("复核通过","Verification Pass"); + mapQmyy.put("填写并提交记录","Create and Submit Record"); + mapQmyy.put("废止拒绝","废止拒绝"); + mapQmyy.put("废止通过","废止通过"); + mapQmyy.put("申请废止","申请废止"); + mapQmyy.put("开始现场复核","Start on-Site Verification"); + mapQmyy.put("结束现场复核","End on-Site Verification"); + mapQmyy.put("申明协作","Declaration of Collaboration"); + mapQmyy.put("已审阅","Reviewed"); + mapQmyy.put("审核通过","Approved"); + mapQmyy.put("补充说明","Additional Remark"); + mapQmyy.put("审核拒绝","Reject after Review"); + mapQmyy.put("制作保存预制表单","Save Record Preset"); + mapQmyy.put("制作提交预制表单","Submit Record Preset"); + mapQmyy.put("创建记录","Create Record"); + mapQmyy.put("填写并保存记录","Create and Save Record"); + mapQmyy.put("申请关闭","Apply Close"); + mapQmyy.put("关闭拒绝","Close Reject"); + mapQmyy.put("关闭同意","Close Approve"); + + //endregion + + } + + + + public static void main(String[] args) { + Map formData = new LinkedHashMap<>(); + formData.put("申请备注", "1111"); + formData.put("审核备注", "22"); + logger.info(getJcnrEn(formData)); + } + /** + * 获取签名意义英文 + * @param qmyy + * @return + */ + public static String getQmyyEn(String qmyy) { + return mapQmyy.get(qmyy); + } + + /** + * 稽查名称英文 + * @param map + * @return + */ + public static String getJcnrEn(Map map) { + Map result =new HashMap<>(); + for (Map.Entry entry : map.entrySet()) { + result.put(mapJcnr.get(entry.getKey()),entry.getValue()); + } + return JctUtil.formatStr(result); + } + +} diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/lang/TemplateUtil.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/lang/TemplateUtil.java new file mode 100644 index 0000000..39315df --- /dev/null +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/lang/TemplateUtil.java @@ -0,0 +1,117 @@ +package com.hxhq.business.utils.lang; + +import com.hxhq.business.utils.JctUtil; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.Map; + +/** + * @author tanfei + */ +public class TemplateUtil { + private static final Logger logger = LoggerFactory.getLogger(TemplateUtil.class.getName()); + private static HashMap mapLang=new HashMap<>(); + static { + mapLang.put("试验基本信息","Test Basic Information"); + mapLang.put("试验试剂信息","Test Reagent Information"); + mapLang.put("仪器使用信息","Instrument Usage Information"); + mapLang.put("存储条件","Storage Conditions"); + mapLang.put("操作步骤","Operation Steps"); + mapLang.put("备注","Remarks"); + + mapLang.put("试验名称","Study Name"); + mapLang.put("试验编号","Study Number"); + mapLang.put("方法编号","Method Code"); + mapLang.put("版本号","Version Number"); + mapLang.put("试验配制条件","Study Configuration Conditions"); + mapLang.put("预填","Pre-Fill"); + mapLang.put("实际","Actual"); + mapLang.put("配置时间","Configuration Time"); + mapLang.put("开始时间","Start Time"); + mapLang.put("结束时间","End Time"); + mapLang.put("目标溶液名称","Target Solution Name"); + mapLang.put("目标溶液编号","Target Solution Code"); + mapLang.put("目标溶液预计浓度","Target Solution Expected Concentration"); + mapLang.put("目标溶液实际浓度","Target Solution Actual Concentration"); + mapLang.put("目标溶液预计体积","Target Solution Expected Volume"); + mapLang.put("目标溶液实际体积","Target Solution Actual Volume"); + mapLang.put("有效周期","Effective Period"); + mapLang.put("失效日","Expiry Date"); + mapLang.put("处理批编号","Analysis Batch Number"); + mapLang.put("容器材质","Container Material"); + mapLang.put("处理时间","Work Time"); + + mapLang.put("试剂名称","Reagent Name"); + mapLang.put("编号","Code"); + mapLang.put("批号","Batch Number"); + mapLang.put("浓度/含量/纯度","Concentration/Content/Purity"); + mapLang.put("来源","Source"); + + + mapLang.put("仪器名称","Instrument Name"); + mapLang.put("仪器型号","Instrument Model"); + mapLang.put("仪器编号","Instrument Number"); + mapLang.put("下次测试/校准/检定日期","Next Test/Calibration/Verification Date"); + + mapLang.put("给药剂量或组别","Administration Dose or Group"); + mapLang.put("配制浓度","Preparation Concentration"); + mapLang.put("配制体积","Preparation Volume"); + mapLang.put("其他","Other"); + mapLang.put("其他信息","Other Information"); + mapLang.put("单位","unit"); + + mapLang.put("签名人","Signed By"); + mapLang.put("签名意义","Meaning of Signature"); + mapLang.put("签名时间","Date"); + mapLang.put("备注原因","Comment/Reason"); + + + + + } + + public static void main(String[] args) { + Map formData = new LinkedHashMap<>(); + formData.put("申请备注", "1111"); + formData.put("审核备注", "22"); + logger.info(getJcnrEn(formData)); + } + /** + * 获取英文 + * @param qmyy + * @return + */ + public static String getEn(String qmyy) { + return mapLang.get(qmyy); + } + + /** + * 获取稽查内容英文 + * @param map + * @return + */ + public static String getJcnrEn(Map map) { + Map result =new LinkedHashMap<>(); + for (Map.Entry entry : map.entrySet()) { + result.put(mapLang.get(entry.getKey()),entry.getValue()); + } + return JctUtil.formatStr(result); + } + + /** + * 获取稽查内容英文 + * @param map + * @return + */ + public static Map getMapEn(Map map) { + Map result =new LinkedHashMap<>(); + for (Map.Entry entry : map.entrySet()) { + result.put(mapLang.get(entry.getKey()),entry.getValue()); + } + return result; + } + +} diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/resource/Dosage.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/resource/Dosage.java index 58fc9a9..465c628 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/resource/Dosage.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/resource/Dosage.java @@ -6,7 +6,7 @@ import com.hxhq.business.domain.GyzjJcgj; import com.hxhq.business.domain.GyzjTz; import com.hxhq.business.dto.gyzj.DetailDto; import com.hxhq.business.enums.zykgl.ZjztEnum; -import com.hxhq.business.utils.GyzjJcnrUtil; +import com.hxhq.business.utils.lang.GyzjJcnrUtil; import com.hxhq.business.utils.pdf.PdfBaseUtil; import com.hxhq.business.utils.pdf.PdfExportUtil; import com.hxhq.common.core.utils.StringUtils; diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/resource/Drug.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/resource/Drug.java index 1badc9b..4124f9e 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/resource/Drug.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/resource/Drug.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.hxhq.business.domain.*; import com.hxhq.business.dto.mjy.DetailDto; import com.hxhq.business.enums.zykgl.ZjztEnum; -import com.hxhq.business.utils.MjyJcnrUtil; +import com.hxhq.business.utils.lang.MjyJcnrUtil; import com.hxhq.business.utils.pdf.PdfBaseUtil; import com.hxhq.business.utils.pdf.PdfExportUtil; import com.hxhq.common.core.utils.StringUtils; diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/template/SP001.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/template/SP001.java index 399734e..499ce0e 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/template/SP001.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/template/SP001.java @@ -1,20 +1,13 @@ package com.hxhq.business.utils.pdf.template; -import com.alibaba.fastjson2.JSONArray; import com.alibaba.fastjson2.JSONObject; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; import com.hxhq.business.domain.*; -import com.hxhq.business.utils.TemplateUtil; import com.hxhq.business.utils.pdf.PdfBaseUtil; import com.hxhq.business.utils.pdf.PdfExportUtil; import com.hxhq.common.core.utils.StringUtils; import com.hxhq.common.security.utils.SecurityUtils; import com.hxhq.system.api.model.LoginUser; import com.itextpdf.text.*; -import com.itextpdf.text.pdf.BaseFont; -import com.itextpdf.text.pdf.PdfPCell; -import com.itextpdf.text.pdf.PdfPTable; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/template/TemplateBaseUtil.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/template/TemplateBaseUtil.java index 2891049..ca33687 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/template/TemplateBaseUtil.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/pdf/template/TemplateBaseUtil.java @@ -4,16 +4,12 @@ import com.alibaba.fastjson2.JSONArray; import com.alibaba.fastjson2.JSONObject; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; -import com.hxhq.business.domain.StudyFormFill; import com.hxhq.business.domain.StudyFormFillJcgj; import com.hxhq.business.domain.StudyFormFillQmxx; -import com.hxhq.business.domain.Template; -import com.hxhq.business.utils.TemplateUtil; +import com.hxhq.business.utils.lang.TemplateUtil; import com.hxhq.business.utils.pdf.PdfBaseUtil; import com.hxhq.business.utils.pdf.PdfExportUtil; import com.hxhq.common.core.utils.StringUtils; -import com.hxhq.common.security.utils.SecurityUtils; -import com.hxhq.system.api.model.LoginUser; import com.itextpdf.text.*; import com.itextpdf.text.pdf.BaseFont; import com.itextpdf.text.pdf.PdfPCell; @@ -21,7 +17,6 @@ import com.itextpdf.text.pdf.PdfPTable; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import java.io.FileOutputStream; import java.io.IOException; import java.util.List; import java.util.*;