根据医院系统拆分10个子项目,区分10个数据源
parent
f037a18403
commit
20e57e00ff
@ -0,0 +1,13 @@
|
||||
package com.docus.server.his.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 "";
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
package com.docus.server.his.infrastructure;
|
||||
|
||||
import com.docus.core.util.json.JSON;
|
||||
import com.docus.server.his.infrastructure.mapper.HisDeptMapper;
|
||||
import com.docus.server.his.infrastructure.mapper.HisTBasicMapper;
|
||||
import com.docus.server.his.infrastructure.mapper.HisUserMapper;
|
||||
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 HisSysDao {
|
||||
|
||||
private final HisDeptMapper hisDeptMapper;
|
||||
private final HisUserMapper hisUserMapper;
|
||||
private final HisTBasicMapper hisTBasicMapper;
|
||||
|
||||
|
||||
public List<DeptDTO> getDeptListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
System.out.println("getDeptListView" + startDate + endDate + pageNum + pageSize);
|
||||
System.out.println("hisDeptMapper" + hisDeptMapper);
|
||||
List<DeptDTO> deptListView = hisDeptMapper.getDeptListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
System.out.println(JSON.toJSON(deptListView));
|
||||
return deptListView;
|
||||
}
|
||||
|
||||
|
||||
public List<UserDTO> getUserListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
return hisUserMapper.getUserListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
}
|
||||
|
||||
public void getMedicalRecordListView() {
|
||||
|
||||
}
|
||||
|
||||
public List<TBasicDTO> getTBasicListView(Date startDate, Date endDate, int pageNum, int pageSize) {
|
||||
return hisTBasicMapper.getTBasicListView(startDate, endDate, (pageNum - 1) * pageSize, pageSize);
|
||||
}
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.docus.server.his.infrastructure.cache;
|
||||
|
||||
public class DeptCacheLayer {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.docus.server.his.infrastructure.client;
|
||||
|
||||
public class DownLoadAPI {
|
||||
}
|
Loading…
Reference in New Issue