diff --git a/lis-interfaceCommon/src/main/java/com/czlis/interfaceCommon/constants/LisinterfaceNameConstants.java b/lis-interfaceCommon/src/main/java/com/czlis/interfaceCommon/constants/LisinterfaceNameConstants.java
index c04c0dd..e1e878d 100644
--- a/lis-interfaceCommon/src/main/java/com/czlis/interfaceCommon/constants/LisinterfaceNameConstants.java
+++ b/lis-interfaceCommon/src/main/java/com/czlis/interfaceCommon/constants/LisinterfaceNameConstants.java
@@ -28,4 +28,21 @@ public class LisinterfaceNameConstants {
* 撤销报告-0
*/
public static final String REPORTCANCAL = "0";
+
+ //区域lis接口
+ /**
+ * 获取门诊申请单
+ */
+ public static final String GET_REG_OUTPATIENT_INFO = "GET_REG_OUTPATIENT_INFO";
+ /**
+ * 获取住院申请单
+ */
+ public static final String GET_REG_INP_INFO = "GET_REG_INP_INFO";
+ /**
+ * 修改状态接口
+ */
+ //public static final String MODIFY_REG_STATUS = "MODIFY_REG_STATUS";
+
+
+
}
diff --git a/lis-interfaceCommon/src/main/java/com/czlis/interfaceCommon/mapper/SysUserCommMapper.java b/lis-interfaceCommon/src/main/java/com/czlis/interfaceCommon/mapper/SysUserCommMapper.java
new file mode 100644
index 0000000..4a66b3a
--- /dev/null
+++ b/lis-interfaceCommon/src/main/java/com/czlis/interfaceCommon/mapper/SysUserCommMapper.java
@@ -0,0 +1,8 @@
+package com.czlis.interfaceCommon.mapper;
+
+import com.czlis.common.core.domain.entity.SysUser;
+
+public interface SysUserCommMapper {
+
+ SysUser getSysUserOne(String user_name);
+}
diff --git a/lis-interfaceCommon/src/main/java/com/czlis/interfaceCommon/pojo/inter/reg/GetRegInpInfo.java b/lis-interfaceCommon/src/main/java/com/czlis/interfaceCommon/pojo/inter/reg/GetRegInpInfo.java
new file mode 100644
index 0000000..8eaee2c
--- /dev/null
+++ b/lis-interfaceCommon/src/main/java/com/czlis/interfaceCommon/pojo/inter/reg/GetRegInpInfo.java
@@ -0,0 +1,29 @@
+package com.czlis.interfaceCommon.pojo.inter.reg;
+
+import cn.hutool.json.JSONUtil;
+import com.czlis.interfaceCommon.service.LisInterfaceType;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+public class GetRegInpInfo implements LisInterfaceType {
+ private String dept;
+ private String stime;
+ private String etime;
+ private String userId;
+ private String bz;
+ private String yljg;
+ private String ip;
+
+
+
+
+
+ @Override
+ public String serializationJson() {
+ return JSONUtil.toJsonStr(this);
+ }
+}
diff --git a/lis-interfaceCommon/src/main/java/com/czlis/interfaceCommon/pojo/inter/reg/GetRegOutPatientInfo.java b/lis-interfaceCommon/src/main/java/com/czlis/interfaceCommon/pojo/inter/reg/GetRegOutPatientInfo.java
new file mode 100644
index 0000000..2c0825b
--- /dev/null
+++ b/lis-interfaceCommon/src/main/java/com/czlis/interfaceCommon/pojo/inter/reg/GetRegOutPatientInfo.java
@@ -0,0 +1,25 @@
+package com.czlis.interfaceCommon.pojo.inter.reg;
+
+import cn.hutool.json.JSONUtil;
+import com.czlis.interfaceCommon.service.LisInterfaceType;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+public class GetRegOutPatientInfo implements LisInterfaceType {
+ private String yljg;
+ private String brdh;
+ private String userid;
+ private String stime;
+ private String etime;
+ private String bz1;
+ private String ip;
+
+ @Override
+ public String serializationJson() {
+ return JSONUtil.toJsonStr(this);
+ }
+}
diff --git a/lis-interfaceCommon/src/main/java/com/czlis/interfaceCommon/utils/CommonUtil.java b/lis-interfaceCommon/src/main/java/com/czlis/interfaceCommon/utils/CommonUtil.java
index 6a60793..45417b8 100644
--- a/lis-interfaceCommon/src/main/java/com/czlis/interfaceCommon/utils/CommonUtil.java
+++ b/lis-interfaceCommon/src/main/java/com/czlis/interfaceCommon/utils/CommonUtil.java
@@ -1,5 +1,6 @@
package com.czlis.interfaceCommon.utils;
+import com.czlis.common.core.domain.entity.SysUser;
import com.czlis.common.core.domain.entity.lis.*;
import com.czlis.common.utils.ComDictUtils;
import com.czlis.common.utils.ComOptionUtils;
@@ -87,6 +88,9 @@ public class CommonUtil {
LabInputmdlMapper labInputmdlMapper;
@Autowired
LabInputmdlDetailMapper labInputmdlDetailMapper;
+ @Autowired
+ SysUserCommMapper sysUserCommMapper;
+
//====检验主表操作方法集合===
public LabPat getLabPatOne(Date jyrq, String yq, String ybh) {
return labPatMapper.getLabPatOne(jyrq, yq, ybh);
@@ -668,4 +672,8 @@ public class CommonUtil {
public String getLocalconfig(String smac) {
return comLocalconfigMapper.getLocalconfig(smac);
}
+
+ public SysUser getSysUserOne(String user_name){
+ return sysUserCommMapper.getSysUserOne(user_name);
+ }
}
diff --git a/lis-interfaceCommon/src/main/resources/mapper/SysUserCommMapper.xml b/lis-interfaceCommon/src/main/resources/mapper/SysUserCommMapper.xml
new file mode 100644
index 0000000..f08ec54
--- /dev/null
+++ b/lis-interfaceCommon/src/main/resources/mapper/SysUserCommMapper.xml
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/lis-system/src/main/java/com/czlis/system/config/ApplicationConfig.java b/lis-system/src/main/java/com/czlis/system/config/ApplicationConfig.java
index a42f391..0d80fa9 100644
--- a/lis-system/src/main/java/com/czlis/system/config/ApplicationConfig.java
+++ b/lis-system/src/main/java/com/czlis/system/config/ApplicationConfig.java
@@ -36,15 +36,15 @@ import java.util.stream.Collectors;
@Slf4j
public class ApplicationConfig {
- @Autowired
- private ComDictMapper comDictMapper;
+// @Autowired
+// private ComDictMapper comDictMapper;
@Autowired
private SysConfigServiceImpl sysConfigService;
@Autowired
private SysJobServiceImpl sysJobService;
//选择性提供缓存的字典类别
- private List list = Arrays.asList("GROUP","AU","BT","DG", "DP", "FT", "HOS","LG","PT","PW","SRD","SX","UT","CM","VF");
+ //private List list = Arrays.asList("GROUP","AU","BT","DG", "DP", "FT", "HOS","LG","PT","PW","SRD","SX","UT","CM","VF");
/**
* 时区配置
@@ -57,24 +57,24 @@ public class ApplicationConfig {
/**
* 加载字典缓存数据
*/
- @Bean
- public void loadingDictCache() {
- TimerTask task = new TimerTask(){
- @Override
- public void run() {
- try {
- //清空所有com_dict缓存
- ComDictUtils.clearDictCache();
- List comDictList=comDictMapper.getComDictListin(list);
- list.stream().forEach(zdlb -> ComDictUtils.setDictCache(zdlb,comDictList.stream().filter(lis->zdlb.equals(lis.getZdlb())).collect(Collectors.toList())));
- } catch (Exception e) {
- log.error("获取lis代码字典失败,异步执行{}方法失败",this, e);
- }
- }
- };
- AsyncManager.me().execute(task);
-
- }
+// @Bean
+// public void loadingDictCache() {
+// TimerTask task = new TimerTask(){
+// @Override
+// public void run() {
+// try {
+// //清空所有com_dict缓存
+// ComDictUtils.clearDictCache();
+// List comDictList=comDictMapper.getComDictListin(list);
+// list.stream().forEach(zdlb -> ComDictUtils.setDictCache(zdlb,comDictList.stream().filter(lis->zdlb.equals(lis.getZdlb())).collect(Collectors.toList())));
+// } catch (Exception e) {
+// log.error("获取lis代码字典失败,异步执行{}方法失败",this, e);
+// }
+// }
+// };
+// AsyncManager.me().execute(task);
+//
+// }
/**
* 加载系统配置缓存
diff --git a/sql/lis8.0/ruoyi_lis8.0_sqlserver.sql b/sql/lis8.0/ruoyi_lis8.0_sqlserver.sql
index 2bbfda7..ba15be1 100644
--- a/sql/lis8.0/ruoyi_lis8.0_sqlserver.sql
+++ b/sql/lis8.0/ruoyi_lis8.0_sqlserver.sql
@@ -1358,7 +1358,7 @@ if not exists(select 1 from dbo.sys_config where config_id = '3' )
if not exists(select 1 from dbo.sys_config where config_id = '4' )
begin
INSERT INTO dbo.sys_config (config_id, config_name, config_key, config_value, config_type, create_by, create_time, update_by, update_time, remark)
- VALUES (4, '账号自助-验证码开关', 'sys.account.captchaEnabled', 'true', 'Y', 'admin', '2025-05-13 11:40:21.12', '', NULL, '是否开启验证码功能(true开启,false关闭)')
+ VALUES (4, '账号自助-验证码开关', 'sys.account.captchaEnabled', 'false', 'Y', 'admin', '2025-05-13 11:40:21.12', '', NULL, '是否开启验证码功能(true开启,false关闭)')
end
diff --git a/sql/lis8.0/updatedb_lis8.0.sql b/sql/lis8.0/updatedb_lis8.0.sql
index 85baf6a..68bbb88 100644
--- a/sql/lis8.0/updatedb_lis8.0.sql
+++ b/sql/lis8.0/updatedb_lis8.0.sql
@@ -94,6 +94,11 @@ if not exists(SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'com_
alter table com_opt add status varchar(10)
end
+if not exists(SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'com_opt' AND COLUMN_NAME = 'lx')
+ begin
+ alter table com_opt add lx varchar(10)
+ end
+
if not exists(select 1 from com_opt where yq = '' and xxdh = 'A5MERGEA4')
begin
insert into com_opt(yq,xxdh,xxlb,xxqz,bz,lx) values('','A5MERGEA4','SYS','0','A5报告单是否合并成A4打印','1')
@@ -312,6 +317,25 @@ if not exists(SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'reg_
alter table reg_TransitSample add checkPUR varchar(1000)
end
+if not exists(SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'reg_TransitSample' and COLUMN_NAME = 'BackReasons')
+ begin
+ alter table reg_TransitSample add BackReasons varchar(500)
+ end
+
+if not exists(SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'reg_TransitSample' and COLUMN_NAME = 'BackUserCode')
+ begin
+ alter table reg_TransitSample add BackUserCode varchar(50)
+ end
+
+if not exists(SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'reg_TransitSample' and COLUMN_NAME = 'BackUserName')
+ begin
+ alter table reg_TransitSample add BackUserName varchar(50)
+ end
+
+if not exists(SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'reg_TransitSample' and COLUMN_NAME = 'BackTime')
+ begin
+ alter table reg_TransitSample add BackTime datetime
+ end
if not exists(SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'req_dict')
begin
diff --git a/sql/lis8.0/web_fs_printReport.sql b/sql/lis8.0/web_fs_printReport.sql
new file mode 100644
index 0000000..3020882
--- /dev/null
+++ b/sql/lis8.0/web_fs_printReport.sql
@@ -0,0 +1,70 @@
+
+
+CREATE VIEW [dbo].[web_fs_printReport]
+AS
+
+select isnull((select bz from com_dict where zdlb='HOS' AND zddh=a.yljg),a.yljg) yljg,a.jyrq,
+
+--a.yq,
+z.yqmc as yq,
+a.ybh ,a.brxm,
+--a.brdh,
+e.bz1 brdh,
+a.ch,
+--a.jymd
+e.jymd as jymd
+,a.zd,isnull(e.sqsj,a.sqsj) as sqsj,isnull(e.cysj,a.cyrq) as cyrq,isnull(e.jssj,a.sqsj) as lastdt,a.confirmdt,a.confirmer,a.sqh,
+(CONVERT(varchar(12), a.jyrq, 112)+'_'+rtrim(a.yq)+'_'+a.ybh) as bgdh,y.xmdh,y.csjg,y.refs,y.dw,y.result_flag,z.yqmc,z.yqdl,
+(select c.xmmc from xm_info c where c.yq=a.yq and c.xmdh=y.xmdh) as xmmc,
+(CONVERT(varchar(10),a.nl)+(select b.zdmc from com_dict b where zdlb='AU' and a.nldw=b.zddh)) as nl,
+(select b.zdmc from com_dict b where zdlb='DP' and a.ksdh=b.zddh) as ksname,
+(select b.zdmc from com_dict b where zdlb='PT' and a.brly=b.zddh) as brlyname,
+(CASE WHEN a.brxb = '1' THEN 'ÄÐ' WHEN a.brxb = '2' THEN 'Ů' ELSE 'ÆäËû' END) as brxbname,
+isnull((select b.zdmc from com_dict b where zdlb='BT' and a.yblx=b.zddh),a.yblx) as yblxname,
+isnull((select b.zdmc from com_dict b where zdlb='SRD' and a.sjys=b.zddh),a.sjys) as sjysname,
+b.dyxh,
+(case y.result_flag when 'Q' then '+' when 'L' THEN '¡ý' WHEN 'H' then '¡ü' else '' end) flag,
+a.yhdh AS lastuser,
+(select dzqm from com_usr c where a.confirmer=c.yhdh) confirmerpic,
+(select dzqm from com_usr c where a.yhdh=c.yhdh) as lastpic,a.bz AS bz
+from lab_pat a left join lab_reqmain e on a.sqh=e.sqh,lab_result y,lab_instr z ,xm_info b
+where y.yq=b.yq and y.xmdh=b.xmdh and a.jyrq=y.jyrq
+and a.yq=y.yq and y.ybh=a.ybh and a.brxm is not null and a.yq=z.yq
+and a.brly='3'
+and a.jyrq >getdate()-360
+union all
+
+
+select isnull((select bz from com_dict where zdlb='HOS' AND zddh=a.yljg),a.yljg) yljg,a.jyrq,
+
+--a.yq,
+z.yqmc as yq,
+a.ybh ,a.brxm,
+--a.brdh,
+a.brdh brdh,
+a.ch,
+--a.jymd
+e.jymd as jymd
+,a.zd,isnull(e.sqsj,a.sqsj) as sqsj,isnull(e.cysj,a.cyrq) as cyrq,isnull(e.jssj,a.sqsj) as lastdt,a.confirmdt,a.confirmer,a.sqh,
+(CONVERT(varchar(12), a.jyrq, 112)+'_'+rtrim(a.yq)+'_'+a.ybh) as bgdh,y.xmdh,y.csjg,y.refs,y.dw,y.result_flag,z.yqmc,z.yqdl,
+(select c.xmmc from xm_info c where c.yq=a.yq and c.xmdh=y.xmdh) as xmmc,
+(CONVERT(varchar(10),a.nl)+(select b.zdmc from com_dict b where zdlb='AU' and a.nldw=b.zddh)) as nl,
+(select b.zdmc from com_dict b where zdlb='DP' and a.ksdh=b.zddh) as ksname,
+(select b.zdmc from com_dict b where zdlb='PT' and a.brly=b.zddh) as brlyname,
+(CASE WHEN a.brxb = '1' THEN 'ÄÐ' WHEN a.brxb = '2' THEN 'Ů' ELSE 'ÆäËû' END) as brxbname,
+isnull((select b.zdmc from com_dict b where zdlb='BT' and a.yblx=b.zddh),a.yblx) as yblxname,
+isnull((select b.zdmc from com_dict b where zdlb='SRD' and a.sjys=b.zddh),a.sjys) as sjysname,
+b.dyxh,
+(case y.result_flag when 'Q' then '+' when 'L' THEN '¡ý' WHEN 'H' then '¡ü' else '' end) flag,
+a.yhdh AS lastuser,
+(select dzqm from com_usr c where a.confirmer=c.yhdh) confirmerpic,
+(select dzqm from com_usr c where a.yhdh=c.yhdh) as lastpic,a.bz AS bz
+from lab_pat a left join lab_reqmain e on a.sqh=e.sqh,lab_result y,lab_instr z ,xm_info b
+where y.yq=b.yq and y.xmdh=b.xmdh and a.jyrq=y.jyrq
+and a.yq=y.yq and y.ybh=a.ybh and a.brxm is not null and a.yq=z.yq
+and a.brly='1'
+and a.jyrq >getdate()-360
+
+GO
+
+
diff --git a/sql/lis8.0/web_getReportsList.sql b/sql/lis8.0/web_getReportsList.sql
new file mode 100644
index 0000000..bb2870b
--- /dev/null
+++ b/sql/lis8.0/web_getReportsList.sql
@@ -0,0 +1,77 @@
+
+/****** Object: View [dbo].[web_getReportsList] Script Date: 11/14/2025 17:09:18 ******/
+SET ANSI_NULLS ON
+GO
+
+SET QUOTED_IDENTIFIER ON
+GO
+
+
+
+
+CREATE VIEW [dbo].[web_getReportsList]
+AS
+
+--select isnull((select bz from com_dict where zdlb='HOS' AND zddh=a.yljg),a.yljg) yljg, a.jyrq, CONVERT(varchar(100), a.jyrq, 23) as jyrqname,a.yq,a.ybh,a.yblx,a.brxm,
+----a.brdh,
+--(case when a.brly = '1' then a.brdh else isnull(e.bz1,a.brdh) end ) brdh,
+--a.ch,a.jymd,a.zd,a.sqh,a.ksdh,isnull(a.jzbz,'0') as jzbz,isnull(a.alarmflag,'0') as alarmflag,isnull(a.dybz,'0') as dybz,
+--(convert(varchar(10),a.nl)+(select b.zdmc from com_dict b where zdlb='AU' and a.nldw=b.zddh)) as nl,
+--(select b.zdmc from com_dict b where zdlb='DP' and a.ksdh=b.zddh) as ksname,
+--(select b.zdmc from com_dict b where zdlb='PT' and a.brly=b.zddh) as brlyname,
+--(CASE WHEN a.brxb = '1' THEN 'ÄÐ' WHEN a.brxb = '2' THEN 'Ů' ELSE 'ÆäËû' END) as brxbname,
+--isnull((select b.zdmc from com_dict b where zdlb='BT' and a.yblx=b.zddh),a.yblx) as yblxname,
+--isnull((select b.zdmc from com_dict b where zdlb='SRD' and a.sjys=b.zddh),a.sjys) as sjysname,
+--z.yqmc,z.yqdl from lab_pat a left join lab_reqmain e on a.sqh=e.sqh,lab_instr z
+--where a.brxm<>'' and a.yq=z.yq and --a.jymd<>''
+-- jgbz ='2'
+
+
+ select c.sqsj, isnull((select bz from com_dict where zdlb='HOS' AND zddh=a.yljg),a.yljg) yljg, a.jyrq, CONVERT(varchar(100), a.jyrq, 23) as jyrqname,a.yq,a.ybh,a.yblx,a.brxm,
+a.brdh,c.cysj,c.zxsj,c.bbsjsj,c.jssj,a.confirmdt as confirmtime,
+
+a.ch,a.jymd,a.zd,a.sqh,a.ksdh,isnull(a.jzbz,'0') as jzbz,isnull(a.alarmflag,'0') as alarmflag,isnull(a.dybz,'0') as dybz,
+(convert(varchar(10),a.nl)+(select b.zdmc from com_dict b where zdlb='AU' and a.nldw=b.zddh)) as nl,
+(select b.zdmc from com_dict b where zdlb='DP' and a.ksdh=b.zddh) as ksname,
+(select b.zdmc from com_dict b where zdlb='PT' and a.brly=b.zddh) as brlyname,
+(CASE WHEN a.brxb = '1' THEN 'ÄÐ' WHEN a.brxb = '2' THEN 'Ů' ELSE 'ÆäËû' END) as brxbname,
+isnull((select b.zdmc from com_dict b where zdlb='BT' and a.yblx=b.zddh),a.yblx) as yblxname,
+isnull((select b.zdmc from com_dict b where zdlb='SRD' and a.sjys=b.zddh),a.sjys) as sjysname,
+z.yqmc,z.yqdl,dysj from lab_pat a ,lab_instr z ,lab_reqmain c
+where a.brxm<>'' and a.yq=z.yq and --a.jymd<>''
+ jgbz ='2'
+ and a.brly='1' and c.sqh = a.sqh
+ union all
+ select e.sqsj, isnull((select bz from com_dict where zdlb='HOS' AND zddh=a.yljg),a.yljg) yljg, a.jyrq, CONVERT(varchar(100), a.jyrq, 23) as jyrqname,a.yq,a.ybh,a.yblx,a.brxm,
+--a.brdh,
+isnull(e.bz1,e.brdh) brdh,e.cysj,e.zxsj,e.bbsjsj,e.jssj,a.confirmdt as confirmtime,
+a.ch,a.jymd,a.zd,a.sqh,a.ksdh,isnull(a.jzbz,'0') as jzbz,isnull(a.alarmflag,'0') as alarmflag,isnull(a.dybz,'0') as dybz,
+(convert(varchar(10),a.nl)+(select b.zdmc from com_dict b where zdlb='AU' and a.nldw=b.zddh)) as nl,
+(select b.zdmc from com_dict b where zdlb='DP' and a.ksdh=b.zddh) as ksname,
+(select b.zdmc from com_dict b where zdlb='PT' and a.brly=b.zddh) as brlyname,
+(CASE WHEN a.brxb = '1' THEN 'ÄÐ' WHEN a.brxb = '2' THEN 'Ů' ELSE 'ÆäËû' END) as brxbname,
+isnull((select b.zdmc from com_dict b where zdlb='BT' and a.yblx=b.zddh),a.yblx) as yblxname,
+isnull((select b.zdmc from com_dict b where zdlb='SRD' and a.sjys=b.zddh),a.sjys) as sjysname,
+z.yqmc,z.yqdl,a.dysj dysj from lab_pat a join lab_reqmain e on a.sqh=e.sqh,lab_instr z
+where a.brxm<>'' and a.yq=z.yq and --a.jymd<>''
+ jgbz ='2'
+ and a.brly<>'1'
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+GO
+
+
diff --git a/sql/lis8.0/web_getresultmed.sql b/sql/lis8.0/web_getresultmed.sql
new file mode 100644
index 0000000..e4e8d22
--- /dev/null
+++ b/sql/lis8.0/web_getresultmed.sql
@@ -0,0 +1,40 @@
+
+
+CREATE view [dbo].[web_getresultmed]
+as
+ select (CONVERT(varchar(12), a.jyrq, 112)+'_'+rtrim(c.yq)+'_'+a.ybh) as bgdh,
+ --(case when a.brly = '1' then a.brdh else isnull(g.bz1,a.brdh) end ) brdh ,
+ a.brdh as brdh,
+ c.xmmc,
+ e.ywmc,
+ d.*,
+ (select textresult from lab_result where yq=d.yq and ybh=d.ybh and jyrq=d.jyrq and xmdh=d.xmdh) textresult1
+ from lab_Pat a --left join lab_result b on a.yq=b.yq and a.ybh=b.ybh and a.jyrq=b.jyrq and b.xmdh=d.xmdh
+ join lab_resultmed d on a.yq=d.yq and a.ybh=d.ybh and a.jyrq=d.jyrq
+ join xm_info c on d.yq=c.yq and d.xmdh=c.xmdh
+ join lab_reqmain g on g.sqh=a.sqh
+ join xm_med e on d.ywdh=e.ywdh
+ join lab_instr on a.yq=lab_instr.yq and yqdl='ϸ¾úÒÇ'
+ where a.jgbz='2' --and a.ybh like '%2017001%'
+ and a.brly='1'
+ union all
+
+ select (CONVERT(varchar(12), a.jyrq, 112)+'_'+rtrim(c.yq)+'_'+a.ybh) as bgdh,
+-- (case when a.brly = '1' then a.brdh else isnull(g.bz1,a.brdh) end ) brdh ,
+g.bz1 as brdh,
+ c.xmmc,
+ e.ywmc,
+ d.*,
+ (select textresult from lab_result where yq=d.yq and ybh=d.ybh and jyrq=d.jyrq and xmdh=d.xmdh) textresult1
+ from lab_Pat a --left join lab_result b on a.yq=b.yq and a.ybh=b.ybh and a.jyrq=b.jyrq and b.xmdh=d.xmdh
+ join lab_resultmed d on a.yq=d.yq and a.ybh=d.ybh and a.jyrq=d.jyrq
+ join xm_info c on d.yq=c.yq and d.xmdh=c.xmdh
+ join lab_reqmain g on g.sqh=a.sqh
+ join xm_med e on d.ywdh=e.ywdh
+ join lab_instr on a.yq=lab_instr.yq and yqdl='ϸ¾úÒÇ'
+ where a.jgbz='2' --and a.ybh like '%2017001%'
+ and a.brly<>'1'
+
+GO
+
+
diff --git a/sql/lis8.0/web_result.sql b/sql/lis8.0/web_result.sql
new file mode 100644
index 0000000..1815867
--- /dev/null
+++ b/sql/lis8.0/web_result.sql
@@ -0,0 +1,33 @@
+
+CREATE view [dbo].[web_result]
+ as
+select a.[wyh]
+ ,a.[jyrq]
+ ,a.[yq]
+ ,a.[ybh]
+ ,a.[xmdh]
+ ,a.[csjg]
+ ,a.[od]
+ ,a.[cutoff]
+ --,a.[jgbz]
+ ,a.[bz1]
+ ,a.[bz2]
+ ,a.[yhdh]
+ ,a.[textresult]
+ ,a.[instrid]
+ ,a.[operdt]
+ ,a.[operna]
+ ,a.[refs]
+ ,a.[flag]
+ ,a.[dw]
+ ,a.[result_flag] jgbz
+ ,a.[alarm_flag]
+ ,a.[redo_flag]
+ ,a.[sqxmdh],
+ b.xmmc,
+ b.dyxh
+ from lab_result a join xm_info b on a.yq=b.yq and a.xmdh=b.xmdh
+
+GO
+
+
diff --git a/transitPF/src/main/java/com/czlis/transitPF/controller/RegReportController.java b/transitPF/src/main/java/com/czlis/transitPF/controller/RegReportController.java
new file mode 100644
index 0000000..bc3435b
--- /dev/null
+++ b/transitPF/src/main/java/com/czlis/transitPF/controller/RegReportController.java
@@ -0,0 +1,48 @@
+package com.czlis.transitPF.controller;
+
+import com.czlis.common.core.controller.BaseController;
+import com.czlis.common.core.domain.Result;
+import com.czlis.common.core.page.TableDataInfo;
+import com.czlis.transitPF.mapper.RegReportMapper;
+import com.czlis.transitPF.pojo.DTO.RegItemVO;
+import com.czlis.transitPF.pojo.RegTransitSample;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+import java.util.Map;
+
+
+/**
+ * 区域检验中心,报表统计
+ */
+@Api(tags = "区域检验中心-报表统计")
+@RestController
+@RequestMapping("/transitReport")
+@Slf4j
+public class RegReportController extends BaseController {
+
+ @Autowired
+ RegReportMapper regReportMapper;
+
+ @ApiOperation("样本报表数据")
+ @GetMapping("/sampleTypeCount")
+ public TableDataInfo getSampleTypeCount(RegTransitSample regTransitSample){
+ startPage();
+ List