根据医院系统拆分10个子项目,区分10个数据源
parent
20e57e00ff
commit
090771acd2
@ -0,0 +1,80 @@
|
||||
<project 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/maven-v4_0_0.xsd">
|
||||
<parent>
|
||||
<artifactId>docus-collector-server</artifactId>
|
||||
<groupId>com.docus</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>bl-sysem</artifactId>
|
||||
<name>Archetype - bl-sysem</name>
|
||||
<url>http://maven.apache.org</url>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.docus</groupId>
|
||||
<artifactId>docus-sys</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.docus</groupId>
|
||||
<artifactId>docus-medical-record</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<!-- <resources>-->
|
||||
<!-- <resource>-->
|
||||
<!-- <directory>src/main/java</directory>-->
|
||||
<!-- <includes>-->
|
||||
<!-- <include>**/*.xml</include>-->
|
||||
<!-- </includes>-->
|
||||
<!-- </resource>-->
|
||||
<!-- <resource>-->
|
||||
<!-- <directory>src/main/resources</directory>-->
|
||||
<!-- </resource>-->
|
||||
<!-- </resources>-->
|
||||
|
||||
<plugins>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-resources</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources/mapper</directory>
|
||||
<includes>
|
||||
<include>**/*.*</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
<outputDirectory>../collect-sdry/target/collect-sdry/mybatis.mapper/bl-mapper</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>**/*.xml</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
@ -0,0 +1,11 @@
|
||||
package com.docus.server.bl.common;
|
||||
|
||||
/**
|
||||
* @author linrf
|
||||
* @date 2023/6/9 11:19
|
||||
*/
|
||||
public class DSKeyConstants {
|
||||
|
||||
public static final String DS_KEY = "bl";
|
||||
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.docus.server.bl.common.annotation;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@Target({ElementType.TYPE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
@Component
|
||||
public @interface CacheLayer {
|
||||
String value() default "";
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.docus.server.bl.infrastructure.cache;
|
||||
|
||||
public class DeptCacheLayer {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.docus.server.bl.infrastructure.client;
|
||||
|
||||
public class DownLoadAPI {
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.bl.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.bl.common.DSKeyConstants;
|
||||
import com.docus.server.sys.common.pojo.dto.DeptDTO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface BlDeptMapper {
|
||||
|
||||
List<DeptDTO> getDeptListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.bl.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.bl.common.DSKeyConstants;
|
||||
import com.docus.server.record.pojo.dto.TBasicDTO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface BlTBasicMapper {
|
||||
|
||||
List<TBasicDTO> getTBasicListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.bl.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.bl.common.DSKeyConstants;
|
||||
import com.docus.server.sys.common.pojo.dto.UserDTO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface BlUserMapper {
|
||||
|
||||
List<UserDTO> getUserListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.docus.server.bl.service;
|
||||
|
||||
import com.docus.server.record.pojo.dto.TBasicDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.DeptDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.UserDTO;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface IBlService {
|
||||
List<DeptDTO> getDeptListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
|
||||
List<UserDTO> getUserListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
|
||||
List<TBasicDTO> getTBasicListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.docus.server.bl.service.impl;
|
||||
|
||||
import com.docus.server.bl.infrastructure.mapper.BlDeptMapper;
|
||||
import com.docus.server.bl.infrastructure.mapper.BlTBasicMapper;
|
||||
import com.docus.server.bl.infrastructure.mapper.BlUserMapper;
|
||||
import com.docus.server.bl.service.IBlService;
|
||||
import com.docus.server.record.pojo.dto.TBasicDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.DeptDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.UserDTO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class BlServiceImpl implements IBlService {
|
||||
|
||||
private final BlDeptMapper blDeptMapper;
|
||||
private final BlUserMapper blUserMapper;
|
||||
private final BlTBasicMapper blTBasicMapper;
|
||||
|
||||
@Override
|
||||
public List<DeptDTO> getDeptListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
return blDeptMapper.getDeptListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public List<UserDTO> getUserListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
return blUserMapper.getUserListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<TBasicDTO> getTBasicListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
return blTBasicMapper.getTBasicListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
<?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.bl.infrastructure.mapper.BlDeptMapper">
|
||||
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- mysql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his`.`his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT (#{pageNum} - 1) * #{pageSize} , #{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
<!-- mssqsql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
select top pageSize `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name
|
||||
from (select row_number()
|
||||
over(order by sno asc) as rownumber,*
|
||||
from student) temp_row
|
||||
where rownumber>((pageNum-1)*pageSize);
|
||||
</select>
|
||||
-->
|
||||
|
||||
<!-- oracle
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT * FROM
|
||||
(SELECT tt.*,ROWNUM AS RN FROM
|
||||
(SELECT t.* FROM ${tableName} t
|
||||
where 1=1
|
||||
ORDER BY t.createTime DESC,t.id ) tt
|
||||
WHERE tt.ROWNUM <= #{pageNum}*#{pageSize}
|
||||
) rs
|
||||
WHERE rs.RN > #{pageNum-1}*#{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,49 @@
|
||||
<?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.bl.infrastructure.mapper.BlTBasicMapper">
|
||||
|
||||
<select id="getTBasicListView" resultType="com.docus.server.record.pojo.dto.TBasicDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his_basic`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- mysql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his`.`his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT (#{pageNum} - 1) * #{pageSize} , #{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
<!-- mssqsql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
select top pageSize `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name
|
||||
from (select row_number()
|
||||
over(order by sno asc) as rownumber,*
|
||||
from student) temp_row
|
||||
where rownumber>((pageNum-1)*pageSize);
|
||||
</select>
|
||||
-->
|
||||
|
||||
<!-- oracle
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT * FROM
|
||||
(SELECT tt.*,ROWNUM AS RN FROM
|
||||
(SELECT t.* FROM ${tableName} t
|
||||
where 1=1
|
||||
ORDER BY t.createTime DESC,t.id ) tt
|
||||
WHERE tt.ROWNUM <= #{pageNum}*#{pageSize}
|
||||
) rs
|
||||
WHERE rs.RN > #{pageNum-1}*#{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,49 @@
|
||||
<?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.bl.infrastructure.mapper.BlUserMapper">
|
||||
|
||||
<select id="getUserListView" resultType="com.docus.server.sys.common.pojo.dto.UserDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his_user`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- mysql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his`.`his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT (#{pageNum} - 1) * #{pageSize} , #{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
<!-- mssqsql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
select top pageSize `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name
|
||||
from (select row_number()
|
||||
over(order by sno asc) as rownumber,*
|
||||
from student) temp_row
|
||||
where rownumber>((pageNum-1)*pageSize);
|
||||
</select>
|
||||
-->
|
||||
|
||||
<!-- oracle
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT * FROM
|
||||
(SELECT tt.*,ROWNUM AS RN FROM
|
||||
(SELECT t.* FROM ${tableName} t
|
||||
where 1=1
|
||||
ORDER BY t.createTime DESC,t.id ) tt
|
||||
WHERE tt.ROWNUM <= #{pageNum}*#{pageSize}
|
||||
) rs
|
||||
WHERE rs.RN > #{pageNum-1}*#{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,80 @@
|
||||
<project 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/maven-v4_0_0.xsd">
|
||||
<parent>
|
||||
<artifactId>docus-collector-server</artifactId>
|
||||
<groupId>com.docus</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>ecg-sysem</artifactId>
|
||||
<name>Archetype - ecg-sysem</name>
|
||||
<url>http://maven.apache.org</url>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.docus</groupId>
|
||||
<artifactId>docus-sys</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.docus</groupId>
|
||||
<artifactId>docus-medical-record</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<!-- <resources>-->
|
||||
<!-- <resource>-->
|
||||
<!-- <directory>src/main/java</directory>-->
|
||||
<!-- <includes>-->
|
||||
<!-- <include>**/*.xml</include>-->
|
||||
<!-- </includes>-->
|
||||
<!-- </resource>-->
|
||||
<!-- <resource>-->
|
||||
<!-- <directory>src/main/resources</directory>-->
|
||||
<!-- </resource>-->
|
||||
<!-- </resources>-->
|
||||
|
||||
<plugins>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-resources</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources/mapper</directory>
|
||||
<includes>
|
||||
<include>**/*.*</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
<outputDirectory>../collect-sdry/target/collect-sdry/mybatis.mapper/ecg-mapper</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>**/*.xml</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
@ -0,0 +1,11 @@
|
||||
package com.docus.server.ecg.common;
|
||||
|
||||
/**
|
||||
* @author linrf
|
||||
* @date 2023/6/9 11:19
|
||||
*/
|
||||
public class DSKeyConstants {
|
||||
|
||||
public static final String DS_KEY = "ecg";
|
||||
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.docus.server.ecg.common.annotation;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@Target({ElementType.TYPE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
@Component
|
||||
public @interface CacheLayer {
|
||||
String value() default "";
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
package com.docus.server.ecg.infrastructure.cache;
|
||||
|
||||
|
||||
public class DeptCacheLayer {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.docus.server.ecg.infrastructure.client;
|
||||
|
||||
public class DownLoadAPI {
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.ecg.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.ecg.common.DSKeyConstants;
|
||||
import com.docus.server.sys.common.pojo.dto.DeptDTO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface EcgDeptMapper {
|
||||
|
||||
List<DeptDTO> getDeptListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.ecg.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.ecg.common.DSKeyConstants;
|
||||
import com.docus.server.record.pojo.dto.TBasicDTO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface EcgTBasicMapper {
|
||||
|
||||
List<TBasicDTO> getTBasicListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.ecg.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.ecg.common.DSKeyConstants;
|
||||
import com.docus.server.sys.common.pojo.dto.UserDTO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface EcgUserMapper {
|
||||
|
||||
List<UserDTO> getUserListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.docus.server.ecg.service;
|
||||
|
||||
import com.docus.server.record.pojo.dto.TBasicDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.DeptDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.UserDTO;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface IEcgService {
|
||||
List<DeptDTO> getDeptListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
|
||||
List<UserDTO> getUserListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
|
||||
List<TBasicDTO> getTBasicListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.docus.server.ecg.service.impl;
|
||||
|
||||
import com.docus.server.ecg.infrastructure.mapper.EcgDeptMapper;
|
||||
import com.docus.server.ecg.infrastructure.mapper.EcgTBasicMapper;
|
||||
import com.docus.server.ecg.infrastructure.mapper.EcgUserMapper;
|
||||
import com.docus.server.ecg.service.IEcgService;
|
||||
import com.docus.server.record.pojo.dto.TBasicDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.DeptDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.UserDTO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class EcgServiceImpl implements IEcgService {
|
||||
|
||||
private final EcgDeptMapper hisDeptMapper;
|
||||
private final EcgUserMapper hisUserMapper;
|
||||
private final EcgTBasicMapper hisTBasicMapper;
|
||||
|
||||
@Override
|
||||
public List<DeptDTO> getDeptListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
return hisDeptMapper.getDeptListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public List<UserDTO> getUserListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
return hisUserMapper.getUserListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<TBasicDTO> getTBasicListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
return hisTBasicMapper.getTBasicListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
<?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.ecg.infrastructure.mapper.EcgDeptMapper">
|
||||
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- mysql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his`.`his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT (#{pageNum} - 1) * #{pageSize} , #{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
<!-- mssqsql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
select top pageSize `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name
|
||||
from (select row_number()
|
||||
over(order by sno asc) as rownumber,*
|
||||
from student) temp_row
|
||||
where rownumber>((pageNum-1)*pageSize);
|
||||
</select>
|
||||
-->
|
||||
|
||||
<!-- oracle
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT * FROM
|
||||
(SELECT tt.*,ROWNUM AS RN FROM
|
||||
(SELECT t.* FROM ${tableName} t
|
||||
where 1=1
|
||||
ORDER BY t.createTime DESC,t.id ) tt
|
||||
WHERE tt.ROWNUM <= #{pageNum}*#{pageSize}
|
||||
) rs
|
||||
WHERE rs.RN > #{pageNum-1}*#{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,49 @@
|
||||
<?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.ecg.infrastructure.mapper.EcgTBasicMapper">
|
||||
|
||||
<select id="getTBasicListView" resultType="com.docus.server.record.pojo.dto.TBasicDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his_basic`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- mysql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his`.`his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT (#{pageNum} - 1) * #{pageSize} , #{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
<!-- mssqsql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
select top pageSize `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name
|
||||
from (select row_number()
|
||||
over(order by sno asc) as rownumber,*
|
||||
from student) temp_row
|
||||
where rownumber>((pageNum-1)*pageSize);
|
||||
</select>
|
||||
-->
|
||||
|
||||
<!-- oracle
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT * FROM
|
||||
(SELECT tt.*,ROWNUM AS RN FROM
|
||||
(SELECT t.* FROM ${tableName} t
|
||||
where 1=1
|
||||
ORDER BY t.createTime DESC,t.id ) tt
|
||||
WHERE tt.ROWNUM <= #{pageNum}*#{pageSize}
|
||||
) rs
|
||||
WHERE rs.RN > #{pageNum-1}*#{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,49 @@
|
||||
<?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.ecg.infrastructure.mapper.EcgUserMapper">
|
||||
|
||||
<select id="getUserListView" resultType="com.docus.server.sys.common.pojo.dto.UserDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his_user`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- mysql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his`.`his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT (#{pageNum} - 1) * #{pageSize} , #{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
<!-- mssqsql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
select top pageSize `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name
|
||||
from (select row_number()
|
||||
over(order by sno asc) as rownumber,*
|
||||
from student) temp_row
|
||||
where rownumber>((pageNum-1)*pageSize);
|
||||
</select>
|
||||
-->
|
||||
|
||||
<!-- oracle
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT * FROM
|
||||
(SELECT tt.*,ROWNUM AS RN FROM
|
||||
(SELECT t.* FROM ${tableName} t
|
||||
where 1=1
|
||||
ORDER BY t.createTime DESC,t.id ) tt
|
||||
WHERE tt.ROWNUM <= #{pageNum}*#{pageSize}
|
||||
) rs
|
||||
WHERE rs.RN > #{pageNum-1}*#{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,80 @@
|
||||
<project 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/maven-v4_0_0.xsd">
|
||||
<parent>
|
||||
<artifactId>docus-collector-server</artifactId>
|
||||
<groupId>com.docus</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>emr-sysem</artifactId>
|
||||
<name>Archetype - emr-sysem</name>
|
||||
<url>http://maven.apache.org</url>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.docus</groupId>
|
||||
<artifactId>docus-sys</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.docus</groupId>
|
||||
<artifactId>docus-medical-record</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<!-- <resources>-->
|
||||
<!-- <resource>-->
|
||||
<!-- <directory>src/main/java</directory>-->
|
||||
<!-- <includes>-->
|
||||
<!-- <include>**/*.xml</include>-->
|
||||
<!-- </includes>-->
|
||||
<!-- </resource>-->
|
||||
<!-- <resource>-->
|
||||
<!-- <directory>src/main/resources</directory>-->
|
||||
<!-- </resource>-->
|
||||
<!-- </resources>-->
|
||||
|
||||
<plugins>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-resources</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources/mapper</directory>
|
||||
<includes>
|
||||
<include>**/*.*</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
<outputDirectory>../collect-sdry/target/collect-sdry/mybatis.mapper/emr-mapper</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>**/*.xml</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
@ -0,0 +1,11 @@
|
||||
package com.docus.server.emr.common;
|
||||
|
||||
/**
|
||||
* @author linrf
|
||||
* @date 2023/6/9 11:19
|
||||
*/
|
||||
public class DSKeyConstants {
|
||||
|
||||
public static final String DS_KEY = "emr";
|
||||
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.docus.server.emr.common.annotation;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@Target({ElementType.TYPE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
@Component
|
||||
public @interface CacheLayer {
|
||||
String value() default "";
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
package com.docus.server.emr.infrastructure.cache;
|
||||
|
||||
|
||||
public class DeptCacheLayer {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.docus.server.emr.infrastructure.client;
|
||||
|
||||
public class DownLoadAPI {
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.emr.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.emr.common.DSKeyConstants;
|
||||
import com.docus.server.sys.common.pojo.dto.DeptDTO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface EmrDeptMapper {
|
||||
|
||||
List<DeptDTO> getDeptListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.emr.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.emr.common.DSKeyConstants;
|
||||
import com.docus.server.record.pojo.dto.TBasicDTO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface EmrTBasicMapper {
|
||||
|
||||
List<TBasicDTO> getTBasicListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.emr.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.emr.common.DSKeyConstants;
|
||||
import com.docus.server.sys.common.pojo.dto.UserDTO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface EmrUserMapper {
|
||||
|
||||
List<UserDTO> getUserListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.docus.server.emr.service;
|
||||
|
||||
import com.docus.server.record.pojo.dto.TBasicDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.DeptDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.UserDTO;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface IEmrService {
|
||||
List<DeptDTO> getDeptListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
|
||||
List<UserDTO> getUserListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
|
||||
List<TBasicDTO> getTBasicListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.docus.server.emr.service.impl;
|
||||
|
||||
import com.docus.server.emr.infrastructure.mapper.EmrDeptMapper;
|
||||
import com.docus.server.emr.infrastructure.mapper.EmrTBasicMapper;
|
||||
import com.docus.server.emr.infrastructure.mapper.EmrUserMapper;
|
||||
import com.docus.server.emr.service.IEmrService;
|
||||
import com.docus.server.record.pojo.dto.TBasicDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.DeptDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.UserDTO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class EmrServiceImpl implements IEmrService {
|
||||
|
||||
private final EmrDeptMapper hisDeptMapper;
|
||||
private final EmrUserMapper hisUserMapper;
|
||||
private final EmrTBasicMapper hisTBasicMapper;
|
||||
|
||||
@Override
|
||||
public List<DeptDTO> getDeptListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
return hisDeptMapper.getDeptListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public List<UserDTO> getUserListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
return hisUserMapper.getUserListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<TBasicDTO> getTBasicListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
return hisTBasicMapper.getTBasicListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
<?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.emr.infrastructure.mapper.EmrDeptMapper">
|
||||
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- mysql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his`.`his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT (#{pageNum} - 1) * #{pageSize} , #{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
<!-- mssqsql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
select top pageSize `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name
|
||||
from (select row_number()
|
||||
over(order by sno asc) as rownumber,*
|
||||
from student) temp_row
|
||||
where rownumber>((pageNum-1)*pageSize);
|
||||
</select>
|
||||
-->
|
||||
|
||||
<!-- oracle
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT * FROM
|
||||
(SELECT tt.*,ROWNUM AS RN FROM
|
||||
(SELECT t.* FROM ${tableName} t
|
||||
where 1=1
|
||||
ORDER BY t.createTime DESC,t.id ) tt
|
||||
WHERE tt.ROWNUM <= #{pageNum}*#{pageSize}
|
||||
) rs
|
||||
WHERE rs.RN > #{pageNum-1}*#{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,49 @@
|
||||
<?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.emr.infrastructure.mapper.EmrTBasicMapper">
|
||||
|
||||
<select id="getTBasicListView" resultType="com.docus.server.record.pojo.dto.TBasicDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his_basic`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- mysql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his`.`his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT (#{pageNum} - 1) * #{pageSize} , #{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
<!-- mssqsql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
select top pageSize `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name
|
||||
from (select row_number()
|
||||
over(order by sno asc) as rownumber,*
|
||||
from student) temp_row
|
||||
where rownumber>((pageNum-1)*pageSize);
|
||||
</select>
|
||||
-->
|
||||
|
||||
<!-- oracle
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT * FROM
|
||||
(SELECT tt.*,ROWNUM AS RN FROM
|
||||
(SELECT t.* FROM ${tableName} t
|
||||
where 1=1
|
||||
ORDER BY t.createTime DESC,t.id ) tt
|
||||
WHERE tt.ROWNUM <= #{pageNum}*#{pageSize}
|
||||
) rs
|
||||
WHERE rs.RN > #{pageNum-1}*#{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,49 @@
|
||||
<?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.emr.infrastructure.mapper.EmrUserMapper">
|
||||
|
||||
<select id="getUserListView" resultType="com.docus.server.sys.common.pojo.dto.UserDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his_user`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- mysql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his`.`his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT (#{pageNum} - 1) * #{pageSize} , #{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
<!-- mssqsql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
select top pageSize `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name
|
||||
from (select row_number()
|
||||
over(order by sno asc) as rownumber,*
|
||||
from student) temp_row
|
||||
where rownumber>((pageNum-1)*pageSize);
|
||||
</select>
|
||||
-->
|
||||
|
||||
<!-- oracle
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT * FROM
|
||||
(SELECT tt.*,ROWNUM AS RN FROM
|
||||
(SELECT t.* FROM ${tableName} t
|
||||
where 1=1
|
||||
ORDER BY t.createTime DESC,t.id ) tt
|
||||
WHERE tt.ROWNUM <= #{pageNum}*#{pageSize}
|
||||
) rs
|
||||
WHERE rs.RN > #{pageNum-1}*#{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,80 @@
|
||||
<project 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/maven-v4_0_0.xsd">
|
||||
<parent>
|
||||
<artifactId>docus-collector-server</artifactId>
|
||||
<groupId>com.docus</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>hl-sysem</artifactId>
|
||||
<name>Archetype - hl-sysem</name>
|
||||
<url>http://maven.apache.org</url>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.docus</groupId>
|
||||
<artifactId>docus-sys</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.docus</groupId>
|
||||
<artifactId>docus-medical-record</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<!-- <resources>-->
|
||||
<!-- <resource>-->
|
||||
<!-- <directory>src/main/java</directory>-->
|
||||
<!-- <includes>-->
|
||||
<!-- <include>**/*.xml</include>-->
|
||||
<!-- </includes>-->
|
||||
<!-- </resource>-->
|
||||
<!-- <resource>-->
|
||||
<!-- <directory>src/main/resources</directory>-->
|
||||
<!-- </resource>-->
|
||||
<!-- </resources>-->
|
||||
|
||||
<plugins>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-resources</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources/mapper</directory>
|
||||
<includes>
|
||||
<include>**/*.*</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
<outputDirectory>../collect-sdry/target/collect-sdry/mybatis.mapper/hl-mapper</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>**/*.xml</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
@ -0,0 +1,11 @@
|
||||
package com.docus.server.hl.common;
|
||||
|
||||
/**
|
||||
* @author linrf
|
||||
* @date 2023/6/9 11:19
|
||||
*/
|
||||
public class DSKeyConstants {
|
||||
|
||||
public static final String DS_KEY = "hl";
|
||||
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.docus.server.hl.common.annotation;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@Target({ElementType.TYPE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
@Component
|
||||
public @interface CacheLayer {
|
||||
String value() default "";
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.docus.server.hl.infrastructure.cache;
|
||||
|
||||
public class DeptCacheLayer {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.docus.server.hl.infrastructure.client;
|
||||
|
||||
public class DownLoadAPI {
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.hl.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.hl.common.DSKeyConstants;
|
||||
import com.docus.server.sys.common.pojo.dto.DeptDTO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface HlDeptMapper {
|
||||
|
||||
List<DeptDTO> getDeptListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.hl.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.hl.common.DSKeyConstants;
|
||||
import com.docus.server.record.pojo.dto.TBasicDTO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface HlTBasicMapper {
|
||||
|
||||
List<TBasicDTO> getTBasicListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.hl.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.hl.common.DSKeyConstants;
|
||||
import com.docus.server.sys.common.pojo.dto.UserDTO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface HlUserMapper {
|
||||
|
||||
List<UserDTO> getUserListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.docus.server.hl.service;
|
||||
|
||||
import com.docus.server.record.pojo.dto.TBasicDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.DeptDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.UserDTO;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface IHlService {
|
||||
List<DeptDTO> getDeptListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
|
||||
List<UserDTO> getUserListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
|
||||
List<TBasicDTO> getTBasicListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.docus.server.hl.service.impl;
|
||||
|
||||
import com.docus.server.hl.infrastructure.mapper.HlDeptMapper;
|
||||
import com.docus.server.hl.infrastructure.mapper.HlTBasicMapper;
|
||||
import com.docus.server.hl.infrastructure.mapper.HlUserMapper;
|
||||
import com.docus.server.hl.service.IHlService;
|
||||
import com.docus.server.record.pojo.dto.TBasicDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.DeptDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.UserDTO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class HlServiceImpl implements IHlService {
|
||||
|
||||
private final HlDeptMapper hisDeptMapper;
|
||||
private final HlUserMapper hisUserMapper;
|
||||
private final HlTBasicMapper hisTBasicMapper;
|
||||
|
||||
@Override
|
||||
public List<DeptDTO> getDeptListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
return hisDeptMapper.getDeptListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public List<UserDTO> getUserListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
return hisUserMapper.getUserListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<TBasicDTO> getTBasicListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
return hisTBasicMapper.getTBasicListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
<?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.hl.infrastructure.mapper.HlDeptMapper">
|
||||
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- mysql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his`.`his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT (#{pageNum} - 1) * #{pageSize} , #{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
<!-- mssqsql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
select top pageSize `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name
|
||||
from (select row_number()
|
||||
over(order by sno asc) as rownumber,*
|
||||
from student) temp_row
|
||||
where rownumber>((pageNum-1)*pageSize);
|
||||
</select>
|
||||
-->
|
||||
|
||||
<!-- oracle
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT * FROM
|
||||
(SELECT tt.*,ROWNUM AS RN FROM
|
||||
(SELECT t.* FROM ${tableName} t
|
||||
where 1=1
|
||||
ORDER BY t.createTime DESC,t.id ) tt
|
||||
WHERE tt.ROWNUM <= #{pageNum}*#{pageSize}
|
||||
) rs
|
||||
WHERE rs.RN > #{pageNum-1}*#{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,49 @@
|
||||
<?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.hl.infrastructure.mapper.HlTBasicMapper">
|
||||
|
||||
<select id="getTBasicListView" resultType="com.docus.server.record.pojo.dto.TBasicDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his_basic`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- mysql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his`.`his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT (#{pageNum} - 1) * #{pageSize} , #{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
<!-- mssqsql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
select top pageSize `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name
|
||||
from (select row_number()
|
||||
over(order by sno asc) as rownumber,*
|
||||
from student) temp_row
|
||||
where rownumber>((pageNum-1)*pageSize);
|
||||
</select>
|
||||
-->
|
||||
|
||||
<!-- oracle
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT * FROM
|
||||
(SELECT tt.*,ROWNUM AS RN FROM
|
||||
(SELECT t.* FROM ${tableName} t
|
||||
where 1=1
|
||||
ORDER BY t.createTime DESC,t.id ) tt
|
||||
WHERE tt.ROWNUM <= #{pageNum}*#{pageSize}
|
||||
) rs
|
||||
WHERE rs.RN > #{pageNum-1}*#{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,49 @@
|
||||
<?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.hl.infrastructure.mapper.HlUserMapper">
|
||||
|
||||
<select id="getUserListView" resultType="com.docus.server.sys.common.pojo.dto.UserDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his_user`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- mysql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his`.`his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT (#{pageNum} - 1) * #{pageSize} , #{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
<!-- mssqsql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
select top pageSize `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name
|
||||
from (select row_number()
|
||||
over(order by sno asc) as rownumber,*
|
||||
from student) temp_row
|
||||
where rownumber>((pageNum-1)*pageSize);
|
||||
</select>
|
||||
-->
|
||||
|
||||
<!-- oracle
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT * FROM
|
||||
(SELECT tt.*,ROWNUM AS RN FROM
|
||||
(SELECT t.* FROM ${tableName} t
|
||||
where 1=1
|
||||
ORDER BY t.createTime DESC,t.id ) tt
|
||||
WHERE tt.ROWNUM <= #{pageNum}*#{pageSize}
|
||||
) rs
|
||||
WHERE rs.RN > #{pageNum-1}*#{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,80 @@
|
||||
<project 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/maven-v4_0_0.xsd">
|
||||
<parent>
|
||||
<artifactId>docus-collector-server</artifactId>
|
||||
<groupId>com.docus</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>issubmit-sysem</artifactId>
|
||||
<name>Archetype - issubmit-sysem</name>
|
||||
<url>http://maven.apache.org</url>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.docus</groupId>
|
||||
<artifactId>docus-sys</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.docus</groupId>
|
||||
<artifactId>docus-medical-record</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<!-- <resources>-->
|
||||
<!-- <resource>-->
|
||||
<!-- <directory>src/main/java</directory>-->
|
||||
<!-- <includes>-->
|
||||
<!-- <include>**/*.xml</include>-->
|
||||
<!-- </includes>-->
|
||||
<!-- </resource>-->
|
||||
<!-- <resource>-->
|
||||
<!-- <directory>src/main/resources</directory>-->
|
||||
<!-- </resource>-->
|
||||
<!-- </resources>-->
|
||||
|
||||
<plugins>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-resources</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources/mapper</directory>
|
||||
<includes>
|
||||
<include>**/*.*</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
<outputDirectory>../collect-sdry/target/collect-sdry/mybatis.mapper/issubmit-mapper</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>**/*.xml</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
@ -0,0 +1,11 @@
|
||||
package com.docus.server.issubmit.common;
|
||||
|
||||
/**
|
||||
* @author linrf
|
||||
* @date 2023/6/9 11:19
|
||||
*/
|
||||
public class DSKeyConstants {
|
||||
|
||||
public static final String DS_KEY = "issubmit";
|
||||
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.docus.server.issubmit.common.annotation;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@Target({ElementType.TYPE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
@Component
|
||||
public @interface CacheLayer {
|
||||
String value() default "";
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
package com.docus.server.issubmit.infrastructure.cache;
|
||||
|
||||
|
||||
public class DeptCacheLayer {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.docus.server.issubmit.infrastructure.client;
|
||||
|
||||
public class DownLoadAPI {
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.issubmit.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.issubmit.common.DSKeyConstants;
|
||||
import com.docus.server.sys.common.pojo.dto.DeptDTO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface IssubmitDeptMapper {
|
||||
|
||||
List<DeptDTO> getDeptListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.issubmit.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.issubmit.common.DSKeyConstants;
|
||||
import com.docus.server.record.pojo.dto.TBasicDTO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface IssubmitTBasicMapper {
|
||||
|
||||
List<TBasicDTO> getTBasicListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.issubmit.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.issubmit.common.DSKeyConstants;
|
||||
import com.docus.server.sys.common.pojo.dto.UserDTO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface IssubmitUserMapper {
|
||||
|
||||
List<UserDTO> getUserListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.docus.server.issubmit.service;
|
||||
|
||||
import com.docus.server.record.pojo.dto.TBasicDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.DeptDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.UserDTO;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface IIssubmitService {
|
||||
List<DeptDTO> getDeptListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
|
||||
List<UserDTO> getUserListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
|
||||
List<TBasicDTO> getTBasicListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.docus.server.issubmit.service.impl;
|
||||
|
||||
import com.docus.server.issubmit.infrastructure.mapper.IssubmitDeptMapper;
|
||||
import com.docus.server.issubmit.infrastructure.mapper.IssubmitTBasicMapper;
|
||||
import com.docus.server.issubmit.infrastructure.mapper.IssubmitUserMapper;
|
||||
import com.docus.server.issubmit.service.IIssubmitService;
|
||||
import com.docus.server.record.pojo.dto.TBasicDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.DeptDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.UserDTO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class IssubmitServiceImpl implements IIssubmitService {
|
||||
|
||||
private final IssubmitDeptMapper hisDeptMapper;
|
||||
private final IssubmitUserMapper hisUserMapper;
|
||||
private final IssubmitTBasicMapper hisTBasicMapper;
|
||||
|
||||
@Override
|
||||
public List<DeptDTO> getDeptListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
return hisDeptMapper.getDeptListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public List<UserDTO> getUserListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
return hisUserMapper.getUserListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<TBasicDTO> getTBasicListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
return hisTBasicMapper.getTBasicListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
<?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.issubmit.infrastructure.mapper.IssubmitDeptMapper">
|
||||
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- mysql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his`.`his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT (#{pageNum} - 1) * #{pageSize} , #{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
<!-- mssqsql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
select top pageSize `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name
|
||||
from (select row_number()
|
||||
over(order by sno asc) as rownumber,*
|
||||
from student) temp_row
|
||||
where rownumber>((pageNum-1)*pageSize);
|
||||
</select>
|
||||
-->
|
||||
|
||||
<!-- oracle
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT * FROM
|
||||
(SELECT tt.*,ROWNUM AS RN FROM
|
||||
(SELECT t.* FROM ${tableName} t
|
||||
where 1=1
|
||||
ORDER BY t.createTime DESC,t.id ) tt
|
||||
WHERE tt.ROWNUM <= #{pageNum}*#{pageSize}
|
||||
) rs
|
||||
WHERE rs.RN > #{pageNum-1}*#{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,49 @@
|
||||
<?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.issubmit.infrastructure.mapper.IssubmitTBasicMapper">
|
||||
|
||||
<select id="getTBasicListView" resultType="com.docus.server.record.pojo.dto.TBasicDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his_basic`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- mysql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his`.`his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT (#{pageNum} - 1) * #{pageSize} , #{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
<!-- mssqsql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
select top pageSize `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name
|
||||
from (select row_number()
|
||||
over(order by sno asc) as rownumber,*
|
||||
from student) temp_row
|
||||
where rownumber>((pageNum-1)*pageSize);
|
||||
</select>
|
||||
-->
|
||||
|
||||
<!-- oracle
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT * FROM
|
||||
(SELECT tt.*,ROWNUM AS RN FROM
|
||||
(SELECT t.* FROM ${tableName} t
|
||||
where 1=1
|
||||
ORDER BY t.createTime DESC,t.id ) tt
|
||||
WHERE tt.ROWNUM <= #{pageNum}*#{pageSize}
|
||||
) rs
|
||||
WHERE rs.RN > #{pageNum-1}*#{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,49 @@
|
||||
<?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.issubmit.infrastructure.mapper.IssubmitUserMapper">
|
||||
|
||||
<select id="getUserListView" resultType="com.docus.server.sys.common.pojo.dto.UserDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his_user`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- mysql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his`.`his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT (#{pageNum} - 1) * #{pageSize} , #{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
<!-- mssqsql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
select top pageSize `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name
|
||||
from (select row_number()
|
||||
over(order by sno asc) as rownumber,*
|
||||
from student) temp_row
|
||||
where rownumber>((pageNum-1)*pageSize);
|
||||
</select>
|
||||
-->
|
||||
|
||||
<!-- oracle
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT * FROM
|
||||
(SELECT tt.*,ROWNUM AS RN FROM
|
||||
(SELECT t.* FROM ${tableName} t
|
||||
where 1=1
|
||||
ORDER BY t.createTime DESC,t.id ) tt
|
||||
WHERE tt.ROWNUM <= #{pageNum}*#{pageSize}
|
||||
) rs
|
||||
WHERE rs.RN > #{pageNum-1}*#{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,80 @@
|
||||
<project 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/maven-v4_0_0.xsd">
|
||||
<parent>
|
||||
<artifactId>docus-collector-server</artifactId>
|
||||
<groupId>com.docus</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>lis-sysem</artifactId>
|
||||
<name>Archetype - lis-sysem</name>
|
||||
<url>http://maven.apache.org</url>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.docus</groupId>
|
||||
<artifactId>docus-sys</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.docus</groupId>
|
||||
<artifactId>docus-medical-record</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<!-- <resources>-->
|
||||
<!-- <resource>-->
|
||||
<!-- <directory>src/main/java</directory>-->
|
||||
<!-- <includes>-->
|
||||
<!-- <include>**/*.xml</include>-->
|
||||
<!-- </includes>-->
|
||||
<!-- </resource>-->
|
||||
<!-- <resource>-->
|
||||
<!-- <directory>src/main/resources</directory>-->
|
||||
<!-- </resource>-->
|
||||
<!-- </resources>-->
|
||||
|
||||
<plugins>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-resources</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources/mapper</directory>
|
||||
<includes>
|
||||
<include>**/*.*</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
<outputDirectory>../collect-sdry/target/collect-sdry/mybatis.mapper/lis-mapper</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>**/*.xml</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
@ -0,0 +1,11 @@
|
||||
package com.docus.server.lis.common;
|
||||
|
||||
/**
|
||||
* @author linrf
|
||||
* @date 2023/6/9 11:19
|
||||
*/
|
||||
public class DSKeyConstants {
|
||||
|
||||
public static final String DS_KEY = "lis";
|
||||
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.docus.server.lis.common.annotation;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@Target({ElementType.TYPE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
@Component
|
||||
public @interface CacheLayer {
|
||||
String value() default "";
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
package com.docus.server.lis.infrastructure.cache;
|
||||
|
||||
|
||||
public class DeptCacheLayer {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.docus.server.lis.infrastructure.client;
|
||||
|
||||
public class DownLoadAPI {
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.lis.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.lis.common.DSKeyConstants;
|
||||
import com.docus.server.sys.common.pojo.dto.DeptDTO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface LisDeptMapper {
|
||||
|
||||
List<DeptDTO> getDeptListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.lis.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.lis.common.DSKeyConstants;
|
||||
import com.docus.server.record.pojo.dto.TBasicDTO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface LisTBasicMapper {
|
||||
|
||||
List<TBasicDTO> getTBasicListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.lis.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.lis.common.DSKeyConstants;
|
||||
import com.docus.server.sys.common.pojo.dto.UserDTO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface LisUserMapper {
|
||||
|
||||
List<UserDTO> getUserListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.docus.server.lis.service;
|
||||
|
||||
import com.docus.server.record.pojo.dto.TBasicDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.DeptDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.UserDTO;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface ILisService {
|
||||
List<DeptDTO> getDeptListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
|
||||
List<UserDTO> getUserListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
|
||||
List<TBasicDTO> getTBasicListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.docus.server.lis.service.impl;
|
||||
|
||||
import com.docus.server.lis.infrastructure.mapper.LisDeptMapper;
|
||||
import com.docus.server.lis.infrastructure.mapper.LisTBasicMapper;
|
||||
import com.docus.server.lis.infrastructure.mapper.LisUserMapper;
|
||||
import com.docus.server.lis.service.ILisService;
|
||||
import com.docus.server.record.pojo.dto.TBasicDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.DeptDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.UserDTO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class LisServiceImpl implements ILisService {
|
||||
|
||||
private final LisDeptMapper hisDeptMapper;
|
||||
private final LisUserMapper hisUserMapper;
|
||||
private final LisTBasicMapper hisTBasicMapper;
|
||||
|
||||
@Override
|
||||
public List<DeptDTO> getDeptListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
return hisDeptMapper.getDeptListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public List<UserDTO> getUserListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
return hisUserMapper.getUserListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<TBasicDTO> getTBasicListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
return hisTBasicMapper.getTBasicListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
<?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.lis.infrastructure.mapper.LisDeptMapper">
|
||||
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- mysql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his`.`his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT (#{pageNum} - 1) * #{pageSize} , #{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
<!-- mssqsql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
select top pageSize `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name
|
||||
from (select row_number()
|
||||
over(order by sno asc) as rownumber,*
|
||||
from student) temp_row
|
||||
where rownumber>((pageNum-1)*pageSize);
|
||||
</select>
|
||||
-->
|
||||
|
||||
<!-- oracle
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT * FROM
|
||||
(SELECT tt.*,ROWNUM AS RN FROM
|
||||
(SELECT t.* FROM ${tableName} t
|
||||
where 1=1
|
||||
ORDER BY t.createTime DESC,t.id ) tt
|
||||
WHERE tt.ROWNUM <= #{pageNum}*#{pageSize}
|
||||
) rs
|
||||
WHERE rs.RN > #{pageNum-1}*#{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,49 @@
|
||||
<?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.lis.infrastructure.mapper.LisTBasicMapper">
|
||||
|
||||
<select id="getTBasicListView" resultType="com.docus.server.record.pojo.dto.TBasicDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his_basic`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- mysql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his`.`his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT (#{pageNum} - 1) * #{pageSize} , #{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
<!-- mssqsql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
select top pageSize `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name
|
||||
from (select row_number()
|
||||
over(order by sno asc) as rownumber,*
|
||||
from student) temp_row
|
||||
where rownumber>((pageNum-1)*pageSize);
|
||||
</select>
|
||||
-->
|
||||
|
||||
<!-- oracle
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT * FROM
|
||||
(SELECT tt.*,ROWNUM AS RN FROM
|
||||
(SELECT t.* FROM ${tableName} t
|
||||
where 1=1
|
||||
ORDER BY t.createTime DESC,t.id ) tt
|
||||
WHERE tt.ROWNUM <= #{pageNum}*#{pageSize}
|
||||
) rs
|
||||
WHERE rs.RN > #{pageNum-1}*#{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,49 @@
|
||||
<?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.lis.infrastructure.mapper.LisUserMapper">
|
||||
|
||||
<select id="getUserListView" resultType="com.docus.server.sys.common.pojo.dto.UserDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his_user`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- mysql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his`.`his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT (#{pageNum} - 1) * #{pageSize} , #{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
<!-- mssqsql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
select top pageSize `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name
|
||||
from (select row_number()
|
||||
over(order by sno asc) as rownumber,*
|
||||
from student) temp_row
|
||||
where rownumber>((pageNum-1)*pageSize);
|
||||
</select>
|
||||
-->
|
||||
|
||||
<!-- oracle
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT * FROM
|
||||
(SELECT tt.*,ROWNUM AS RN FROM
|
||||
(SELECT t.* FROM ${tableName} t
|
||||
where 1=1
|
||||
ORDER BY t.createTime DESC,t.id ) tt
|
||||
WHERE tt.ROWNUM <= #{pageNum}*#{pageSize}
|
||||
) rs
|
||||
WHERE rs.RN > #{pageNum-1}*#{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,80 @@
|
||||
<project 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/maven-v4_0_0.xsd">
|
||||
<parent>
|
||||
<artifactId>docus-collector-server</artifactId>
|
||||
<groupId>com.docus</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>pacs-sysem</artifactId>
|
||||
<name>Archetype - pacs-sysem</name>
|
||||
<url>http://maven.apache.org</url>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.docus</groupId>
|
||||
<artifactId>docus-sys</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.docus</groupId>
|
||||
<artifactId>docus-medical-record</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<!-- <resources>-->
|
||||
<!-- <resource>-->
|
||||
<!-- <directory>src/main/java</directory>-->
|
||||
<!-- <includes>-->
|
||||
<!-- <include>**/*.xml</include>-->
|
||||
<!-- </includes>-->
|
||||
<!-- </resource>-->
|
||||
<!-- <resource>-->
|
||||
<!-- <directory>src/main/resources</directory>-->
|
||||
<!-- </resource>-->
|
||||
<!-- </resources>-->
|
||||
|
||||
<plugins>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-resources</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources/mapper</directory>
|
||||
<includes>
|
||||
<include>**/*.*</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
<outputDirectory>../collect-sdry/target/collect-sdry/mybatis.mapper/pacs-mapper</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>**/*.xml</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
@ -0,0 +1,11 @@
|
||||
package com.docus.server.pacs.common;
|
||||
|
||||
/**
|
||||
* @author linrf
|
||||
* @date 2023/6/9 11:19
|
||||
*/
|
||||
public class DSKeyConstants {
|
||||
|
||||
public static final String DS_KEY = "pacs";
|
||||
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.docus.server.pacs.common.annotation;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@Target({ElementType.TYPE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
@Component
|
||||
public @interface CacheLayer {
|
||||
String value() default "";
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
package com.docus.server.pacs.infrastructure.cache;
|
||||
|
||||
|
||||
public class DeptCacheLayer {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.docus.server.pacs.infrastructure.client;
|
||||
|
||||
public class DownLoadAPI {
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.pacs.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.pacs.common.DSKeyConstants;
|
||||
import com.docus.server.sys.common.pojo.dto.DeptDTO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface PacsDeptMapper {
|
||||
|
||||
List<DeptDTO> getDeptListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.pacs.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.pacs.common.DSKeyConstants;
|
||||
import com.docus.server.record.pojo.dto.TBasicDTO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface PacsTBasicMapper {
|
||||
|
||||
List<TBasicDTO> getTBasicListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.pacs.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.pacs.common.DSKeyConstants;
|
||||
import com.docus.server.sys.common.pojo.dto.UserDTO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface PacsUserMapper {
|
||||
|
||||
List<UserDTO> getUserListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.docus.server.pacs.service;
|
||||
|
||||
import com.docus.server.record.pojo.dto.TBasicDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.DeptDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.UserDTO;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface IPacsService {
|
||||
List<DeptDTO> getDeptListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
|
||||
List<UserDTO> getUserListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
|
||||
List<TBasicDTO> getTBasicListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.docus.server.pacs.service.impl;
|
||||
|
||||
import com.docus.server.pacs.infrastructure.mapper.PacsDeptMapper;
|
||||
import com.docus.server.pacs.infrastructure.mapper.PacsTBasicMapper;
|
||||
import com.docus.server.pacs.infrastructure.mapper.PacsUserMapper;
|
||||
import com.docus.server.pacs.service.IPacsService;
|
||||
import com.docus.server.record.pojo.dto.TBasicDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.DeptDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.UserDTO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class PacsServiceImpl implements IPacsService {
|
||||
|
||||
private final PacsDeptMapper hisDeptMapper;
|
||||
private final PacsUserMapper hisUserMapper;
|
||||
private final PacsTBasicMapper hisTBasicMapper;
|
||||
|
||||
@Override
|
||||
public List<DeptDTO> getDeptListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
return hisDeptMapper.getDeptListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public List<UserDTO> getUserListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
return hisUserMapper.getUserListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<TBasicDTO> getTBasicListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
return hisTBasicMapper.getTBasicListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
<?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.pacs.infrastructure.mapper.PacsDeptMapper">
|
||||
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- mysql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his`.`his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT (#{pageNum} - 1) * #{pageSize} , #{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
<!-- mssqsql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
select top pageSize `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name
|
||||
from (select row_number()
|
||||
over(order by sno asc) as rownumber,*
|
||||
from student) temp_row
|
||||
where rownumber>((pageNum-1)*pageSize);
|
||||
</select>
|
||||
-->
|
||||
|
||||
<!-- oracle
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT * FROM
|
||||
(SELECT tt.*,ROWNUM AS RN FROM
|
||||
(SELECT t.* FROM ${tableName} t
|
||||
where 1=1
|
||||
ORDER BY t.createTime DESC,t.id ) tt
|
||||
WHERE tt.ROWNUM <= #{pageNum}*#{pageSize}
|
||||
) rs
|
||||
WHERE rs.RN > #{pageNum-1}*#{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,49 @@
|
||||
<?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.pacs.infrastructure.mapper.PacsTBasicMapper">
|
||||
|
||||
<select id="getTBasicListView" resultType="com.docus.server.record.pojo.dto.TBasicDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his_basic`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- mysql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his`.`his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT (#{pageNum} - 1) * #{pageSize} , #{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
<!-- mssqsql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
select top pageSize `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name
|
||||
from (select row_number()
|
||||
over(order by sno asc) as rownumber,*
|
||||
from student) temp_row
|
||||
where rownumber>((pageNum-1)*pageSize);
|
||||
</select>
|
||||
-->
|
||||
|
||||
<!-- oracle
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT * FROM
|
||||
(SELECT tt.*,ROWNUM AS RN FROM
|
||||
(SELECT t.* FROM ${tableName} t
|
||||
where 1=1
|
||||
ORDER BY t.createTime DESC,t.id ) tt
|
||||
WHERE tt.ROWNUM <= #{pageNum}*#{pageSize}
|
||||
) rs
|
||||
WHERE rs.RN > #{pageNum-1}*#{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,49 @@
|
||||
<?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.pacs.infrastructure.mapper.PacsUserMapper">
|
||||
|
||||
<select id="getUserListView" resultType="com.docus.server.sys.common.pojo.dto.UserDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his_user`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- mysql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name FROM `his`.`his_dept`
|
||||
WHERE update_time between #{startDate} and #{endDate}
|
||||
order by update_time asc
|
||||
LIMIT (#{pageNum} - 1) * #{pageSize} , #{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
<!-- mssqsql
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
select top pageSize `update_time` as update_time ,`dept_code` as dept_code,`dept_name` as dept_name
|
||||
from (select row_number()
|
||||
over(order by sno asc) as rownumber,*
|
||||
from student) temp_row
|
||||
where rownumber>((pageNum-1)*pageSize);
|
||||
</select>
|
||||
-->
|
||||
|
||||
<!-- oracle
|
||||
<select id="getDeptListView" resultType="com.docus.server.sys.common.pojo.dto.DeptDTO">
|
||||
SELECT * FROM
|
||||
(SELECT tt.*,ROWNUM AS RN FROM
|
||||
(SELECT t.* FROM ${tableName} t
|
||||
where 1=1
|
||||
ORDER BY t.createTime DESC,t.id ) tt
|
||||
WHERE tt.ROWNUM <= #{pageNum}*#{pageSize}
|
||||
) rs
|
||||
WHERE rs.RN > #{pageNum-1}*#{pageSize}
|
||||
</select>
|
||||
-->
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,80 @@
|
||||
<project 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/maven-v4_0_0.xsd">
|
||||
<parent>
|
||||
<artifactId>docus-collector-server</artifactId>
|
||||
<groupId>com.docus</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>vte-sysem</artifactId>
|
||||
<name>Archetype - vte-sysem</name>
|
||||
<url>http://maven.apache.org</url>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.docus</groupId>
|
||||
<artifactId>docus-sys</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.docus</groupId>
|
||||
<artifactId>docus-medical-record</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<!-- <resources>-->
|
||||
<!-- <resource>-->
|
||||
<!-- <directory>src/main/java</directory>-->
|
||||
<!-- <includes>-->
|
||||
<!-- <include>**/*.xml</include>-->
|
||||
<!-- </includes>-->
|
||||
<!-- </resource>-->
|
||||
<!-- <resource>-->
|
||||
<!-- <directory>src/main/resources</directory>-->
|
||||
<!-- </resource>-->
|
||||
<!-- </resources>-->
|
||||
|
||||
<plugins>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-resources</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources/mapper</directory>
|
||||
<includes>
|
||||
<include>**/*.*</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
<outputDirectory>../collect-sdry/target/collect-sdry/mybatis.mapper/vte-mapper</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>**/*.xml</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
@ -0,0 +1,11 @@
|
||||
package com.docus.server.vte.common;
|
||||
|
||||
/**
|
||||
* @author linrf
|
||||
* @date 2023/6/9 11:19
|
||||
*/
|
||||
public class DSKeyConstants {
|
||||
|
||||
public static final String DS_KEY = "vte";
|
||||
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.docus.server.vte.common.annotation;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@Target({ElementType.TYPE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
@Component
|
||||
public @interface CacheLayer {
|
||||
String value() default "";
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
package com.docus.server.vte.infrastructure.cache;
|
||||
|
||||
|
||||
public class DeptCacheLayer {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.docus.server.vte.infrastructure.client;
|
||||
|
||||
public class DownLoadAPI {
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.vte.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.sys.common.pojo.dto.DeptDTO;
|
||||
import com.docus.server.vte.common.DSKeyConstants;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface VteDeptMapper {
|
||||
|
||||
List<DeptDTO> getDeptListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.vte.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.record.pojo.dto.TBasicDTO;
|
||||
import com.docus.server.vte.common.DSKeyConstants;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface VteTBasicMapper {
|
||||
|
||||
List<TBasicDTO> getTBasicListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.docus.server.vte.infrastructure.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.sys.common.pojo.dto.UserDTO;
|
||||
import com.docus.server.vte.common.DSKeyConstants;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@DS(DSKeyConstants.DS_KEY)
|
||||
public interface VteUserMapper {
|
||||
|
||||
List<UserDTO> getUserListView(@Param("startDate") Date startDate,
|
||||
@Param("endDate") Date endDate,
|
||||
@Param("offset") int offset,
|
||||
@Param("pageSize") int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.docus.server.vte.service;
|
||||
|
||||
import com.docus.server.record.pojo.dto.TBasicDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.DeptDTO;
|
||||
import com.docus.server.sys.common.pojo.dto.UserDTO;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface IVteService {
|
||||
List<DeptDTO> getDeptListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
|
||||
List<UserDTO> getUserListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
|
||||
List<TBasicDTO> getTBasicListView(Date startDate, Date endDate, int pageNum, int pageSize);
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue