int: 湛江附属首页编目视图查询队列生成
commit
db3e7ceb7f
@ -0,0 +1,35 @@
|
||||
target/
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
|
||||
### STS ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
.sts4-cache
|
||||
docus-services/docus-services-system1/
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
*.log
|
||||
.idea
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
mvnw*
|
||||
*.cmd
|
||||
*.mvn
|
||||
### NetBeans ###
|
||||
/nbproject/private/
|
||||
/nbbuild/
|
||||
/dist/
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
build/
|
||||
!**/src/main/**/build/
|
||||
!**/src/test/**/build/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
||||
logs*
|
@ -0,0 +1,73 @@
|
||||
<assembly xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/assembly-1.0.0.xsd">
|
||||
|
||||
<id>exe</id>
|
||||
<formats>
|
||||
<format>dir</format>
|
||||
</formats>
|
||||
<includeBaseDirectory>false</includeBaseDirectory>
|
||||
|
||||
<fileSets>
|
||||
|
||||
<fileSet>
|
||||
<outputDirectory>/lib</outputDirectory>
|
||||
<directory>${basedir}/target/lib</directory>
|
||||
</fileSet>
|
||||
|
||||
<fileSet>
|
||||
<outputDirectory>/config</outputDirectory>
|
||||
<directory>${basedir}/target/resources</directory>
|
||||
<fileMode>0755</fileMode>
|
||||
<includes>
|
||||
<include>*.xml</include>
|
||||
<include>*.yml</include>
|
||||
<include>*.properties</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
|
||||
<fileSet>
|
||||
<outputDirectory>/dataConfig</outputDirectory>
|
||||
<directory>${basedir}/target/dataConfig</directory>
|
||||
<fileMode>0755</fileMode>
|
||||
<includes>
|
||||
<include>*.json</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
|
||||
<fileSet>
|
||||
<outputDirectory>/</outputDirectory>
|
||||
<directory>${basedir}/target/resources/bin</directory>
|
||||
<fileMode>0755</fileMode>
|
||||
<includes>
|
||||
<include>*.bat</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
|
||||
<fileSet>
|
||||
<outputDirectory>/</outputDirectory>
|
||||
<directory>${basedir}/target/resources/bin</directory>
|
||||
<fileMode>0755</fileMode>
|
||||
<includes>
|
||||
<include>*.xml</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
|
||||
<fileSet>
|
||||
<outputDirectory>/</outputDirectory>
|
||||
<directory>${basedir}</directory>
|
||||
<fileMode>0755</fileMode>
|
||||
<includes>
|
||||
<include>*.exe</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<!-- 将项目启动jar打包到boot目录中 -->
|
||||
<fileSet>
|
||||
<directory>${basedir}/target</directory>
|
||||
<outputDirectory>/</outputDirectory>
|
||||
<fileMode>0755</fileMode>
|
||||
<includes>
|
||||
<include>${project.build.finalName}.jar</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</assembly>
|
@ -0,0 +1,5 @@
|
||||
{
|
||||
"lastDate": "2024-08-13 00:00:00",
|
||||
"jobIntervalSeconds": 300,
|
||||
"sysCodes":"catalog"
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package com.docus.server;
|
||||
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
import java.util.Properties;
|
||||
|
||||
|
||||
@Slf4j
|
||||
@SpringBootApplication(scanBasePackages ={"com.docus"})
|
||||
@MapperScan("com.docus.server.**.mapper")
|
||||
public class AppRunBootstrap {
|
||||
public static void main(String[] args) {
|
||||
Properties props = System.getProperties();
|
||||
props.setProperty("org.apache.cxf.stax.allowInsecureParser", "1");
|
||||
props.setProperty("UseSunHttpHandler", "true");
|
||||
System.setProperty("javax.xml.parsers.DocumentBuilderFactory", "com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl");
|
||||
SpringApplication.run(AppRunBootstrap.class, args);
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package com.docus.server.archivesqlserver.entity;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 归档患者主表
|
||||
* @author YongBin Wen
|
||||
* @date 2024/8/13 16:33
|
||||
*/
|
||||
@ApiModel("归档患者主表")
|
||||
@Data
|
||||
public class ArchiveMaster {
|
||||
@ApiModelProperty("患者主键")
|
||||
private String id;
|
||||
@ApiModelProperty("住院号")
|
||||
private String inpNo;
|
||||
@ApiModelProperty("住院次数")
|
||||
private String visitId;
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.archivesqlserver.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.archivesqlserver.entity.ArchiveMaster;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author YongBin Wen
|
||||
* @date 2024/8/13 16:38
|
||||
*/
|
||||
@DS("archivesqlserver")
|
||||
public interface ArchiveMasterMapper {
|
||||
/**
|
||||
* 根据条件查询患者基础数据
|
||||
*
|
||||
* @param condition 查询条件
|
||||
* @return 患者基础数据集合
|
||||
*/
|
||||
List<ArchiveMaster> listByCondition(@Param("condition") ArchiveMaster condition);
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package com.docus.server.jobadmin.scheduler;
|
||||
|
||||
import com.docus.server.jobadmin.thread.ZjFsCatalogCollectTaskHelper;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* @author YongBin Wen
|
||||
* @date 2024/1/23 14:04
|
||||
*/
|
||||
|
||||
public class JobScheduler {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(JobScheduler.class);
|
||||
|
||||
public void init() throws Exception {
|
||||
ZjFsCatalogCollectTaskHelper.getInstance().start();
|
||||
|
||||
logger.info(">>>>>>>>> init job admin success.");
|
||||
}
|
||||
|
||||
|
||||
public void destroy() {
|
||||
ZjFsCatalogCollectTaskHelper.getInstance().toStop();
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package com.docus.server.rpc;
|
||||
|
||||
import com.docus.infrastructure.web.api.CommonResult;
|
||||
import com.docus.server.rpc.dto.TaskMakeupDto;
|
||||
|
||||
/**
|
||||
* @author YongBin Wen
|
||||
* @date 2024/8/13 17:40
|
||||
*/
|
||||
public interface V2ViewTaskCollectService {
|
||||
CommonResult<String> generateTaskByPatientIdAndSysCodes(TaskMakeupDto makeupDto);
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package com.docus.server.rpc.impl;
|
||||
|
||||
import com.docus.infrastructure.web.api.CommonResult;
|
||||
import com.docus.server.rpc.V2ViewTaskCollectService;
|
||||
import com.docus.server.rpc.dto.TaskMakeupDto;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author YongBin Wen
|
||||
* @date 2024/8/13 17:41
|
||||
*/
|
||||
@Service
|
||||
public class V2ViewTaskCollectServiceImpl implements V2ViewTaskCollectService {
|
||||
|
||||
@Override
|
||||
public CommonResult<String> generateTaskByPatientIdAndSysCodes(TaskMakeupDto makeupDto) {
|
||||
// todo(wyb): 调用任务生成
|
||||
return null;
|
||||
}
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package com.docus.server.zjfsjhemr.entity;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 湛江附属医院 首页编目数据
|
||||
*
|
||||
* @author YongBin Wen
|
||||
* @date 2024/8/13 16:07
|
||||
*/
|
||||
@ApiModel("湛江附属医院 首页编目数据")
|
||||
@Data
|
||||
public class ZjFsPatIndexView {
|
||||
|
||||
@ApiModelProperty("患者ID")
|
||||
private String patientId;
|
||||
@ApiModelProperty("住院号")
|
||||
private String inpNo;
|
||||
@ApiModelProperty("住院次数")
|
||||
private Integer visitId;
|
||||
@ApiModelProperty("入院日期")
|
||||
private Date admissionDateTime;
|
||||
@ApiModelProperty("出院日期")
|
||||
private Date dischargeDateTime;
|
||||
@ApiModelProperty("编目最后完成日期")
|
||||
private Date catalogDate;
|
||||
@ApiModelProperty("编目人员工号")
|
||||
private String catalogerId;
|
||||
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
@echo off
|
||||
|
||||
for /f "delims=" %%t in ('winsw.exe status') do set str=%%t
|
||||
echo %str%
|
||||
|
||||
|
||||
|
||||
if %str%==Started (
|
||||
echo "restart....."
|
||||
winsw stop
|
||||
PING 127.0.0.1 -n 10 -w 30000 >NUL
|
||||
winsw start
|
||||
)
|
||||
|
||||
|
||||
|
||||
if %str%==Stopped (
|
||||
echo "start....."
|
||||
winsw start
|
||||
)
|
||||
|
||||
|
||||
if %str%==NonExistent (
|
||||
echo "deploy and start....."
|
||||
winsw install
|
||||
winsw start
|
||||
echo c
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,21 @@
|
||||
set java_opts=-Xms512m -Xmx512m
|
||||
set key="java_opts"
|
||||
|
||||
|
||||
rem 文件不存在,就跳过
|
||||
if not exist java-ops.ini goto end
|
||||
|
||||
for /f "tokens=1,2 delims==" %%i in (java-ops.ini) do (
|
||||
if "%%i"==%key% set java_opts=%%j)
|
||||
echo java_opts is : %java_opts%
|
||||
|
||||
:end
|
||||
|
||||
rem 启动java
|
||||
|
||||
java %java_opts% -Dfile.encoding=utf-8 -jar -Dspring.profiles.active=@profile.name@ -Dloader.path=config,lib @project.build.finalName@.jar
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,13 @@
|
||||
@echo off
|
||||
|
||||
for /f "delims=" %%t in ('winsw.exe status') do set str=%%t
|
||||
echo %str%
|
||||
|
||||
|
||||
|
||||
if %str%==Started (
|
||||
winsw stop
|
||||
@echo wait program stop .....
|
||||
PING 127.0.0.1 -n 30 -w 10000 >NUL
|
||||
)
|
||||
|
@ -0,0 +1,19 @@
|
||||
@echo off
|
||||
|
||||
set deployDir=%1\docus-collect-taskcontrol
|
||||
if %deployDir%=="" set deployDir=d:\webroot\docus-collect-taskcontrol
|
||||
|
||||
set curr_file=%cd%
|
||||
cd /d %deployDir%
|
||||
call stop.bat
|
||||
cd %curr_file%
|
||||
sc query docus-backup-sys |Find "RUNNING" && ping 127.0.0.1 -n 10 >nul
|
||||
rd/s/q %deployDir%\lib
|
||||
rd/s/q %deployDir%\dataConfig
|
||||
rd/s/q %deployDir%\config
|
||||
del /s/q %deployDir%\*.jar
|
||||
xcopy /Y/E/I * %deployDir%
|
||||
|
||||
cd /d %deployDir%
|
||||
call install.bat
|
||||
|
@ -0,0 +1,8 @@
|
||||
<service>
|
||||
<id>docus-collect-taskcontrol</id>
|
||||
<name>生产-嘉时-采集任务控制服务</name>
|
||||
<description>生产-嘉时-采集任务控制服务</description>
|
||||
<startmode>Automatic</startmode>
|
||||
<executable>%BASE%\start.bat</executable>
|
||||
<log mode="none"></log>
|
||||
</service>
|
@ -0,0 +1,2 @@
|
||||
# If you use SLF4J. First, you need to tell log4jdbc-log4j2 that you want to use the SLF4J logger
|
||||
log4jdbc.spylogdelegator.name=net.sf.log4jdbc.log.slf4j.Slf4jSpyLogDelegator
|
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.docus.server.archivesqlserver.mapper.ArchiveMasterMapper">
|
||||
|
||||
|
||||
<select id="listByCondition" resultType="com.docus.server.archivesqlserver.entity.ArchiveMaster">
|
||||
select
|
||||
id,
|
||||
inp_no as inpNo,
|
||||
visit_id as visitId,
|
||||
from
|
||||
dbo.archive_master
|
||||
<where>
|
||||
<if test="condition.id !=null and condition.id != ''">
|
||||
AND id=#{condition.id}
|
||||
</if>
|
||||
<if test="condition.inpNo != null and condition.inpNo != ''">
|
||||
AND inp_no=#{condition.inpNo}
|
||||
</if>
|
||||
<if test="condition.visitId != null and condition.visitId != ''">
|
||||
AND visit_id=#{condition.visitId}
|
||||
</if>
|
||||
</where>
|
||||
|
||||
</select>
|
||||
</mapper>
|
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.docus.server.zjfsjhemr.mapper.ZjFsPatIndexViewMapper">
|
||||
|
||||
|
||||
<select id="listByCatalogDateRange" resultType="com.docus.server.zjfsjhemr.entity.ZjFsPatIndexView">
|
||||
select patient_id,
|
||||
inp_no,
|
||||
visit_id,
|
||||
admission_date_time,
|
||||
discharge_date_time,
|
||||
catalog_date,
|
||||
cataloger_id
|
||||
from jhemr.v_pat_index
|
||||
where catalog_date >= TO_DATE(#{startDate}, 'yyyy-mm-dd hh24:mi:ss')
|
||||
and catalog_date <![CDATA[<]]> TO_DATE(#{endDate}, 'yyyy-mm-dd hh24:mi:ss')
|
||||
order by catalog_date
|
||||
</select>
|
||||
<select id="maxCatalogDate" resultType="java.util.Date">
|
||||
select max(catalog_date) from jhemr.v_pat_index
|
||||
</select>
|
||||
</mapper>
|
Loading…
Reference in New Issue