view和http 结合 xxl-job 实现逻辑
parent
526df4def5
commit
0b8a75410d
@ -1,16 +0,0 @@
|
|||||||
package com.docus.server.collect.dept;
|
|
||||||
|
|
||||||
import com.docus.server.collect.service.IHttpDeptCollectService;
|
|
||||||
import com.docus.server.sys.service.Dept;
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
@Component
|
|
||||||
public class HttpDeptCollectService implements IHttpDeptCollectService {
|
|
||||||
@Override
|
|
||||||
public List<Dept> getDepts(Date startDate, Date endDate, long pazeNum, long pageSize) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,34 @@
|
|||||||
|
package com.docus.server.collect.dept;
|
||||||
|
|
||||||
|
import com.docus.server.collect.service.IHttpDeptCollectService;
|
||||||
|
import com.docus.server.sys.pojo.dto.DeptDTO;
|
||||||
|
import com.google.common.collect.Lists;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
public class HttpDeptCollectServiceImpl implements IHttpDeptCollectService {
|
||||||
|
@Override
|
||||||
|
public List<DeptDTO> getDepts(Date startDate, Date endDate, long pazeNum, long pageSize) {
|
||||||
|
DeptDTO deptDTO = new DeptDTO();
|
||||||
|
deptDTO.setAuthorId("1");
|
||||||
|
deptDTO.setAuthorName("admin");
|
||||||
|
deptDTO.setDeptCode("1");
|
||||||
|
deptDTO.setDeptName("测试1科");
|
||||||
|
deptDTO.setMessageId("1");
|
||||||
|
deptDTO.setOperateType("save");
|
||||||
|
deptDTO.setReceiver("admin");
|
||||||
|
|
||||||
|
DeptDTO deptDTO1 = new DeptDTO();
|
||||||
|
deptDTO1.setAuthorId("2");
|
||||||
|
deptDTO1.setAuthorName("admin2");
|
||||||
|
deptDTO1.setDeptCode("2");
|
||||||
|
deptDTO1.setDeptName("测试2科");
|
||||||
|
deptDTO1.setMessageId("2");
|
||||||
|
deptDTO1.setOperateType("save2");
|
||||||
|
deptDTO1.setReceiver("admin2");
|
||||||
|
return Lists.newArrayList(deptDTO, deptDTO1);
|
||||||
|
}
|
||||||
|
}
|
@ -1,12 +1,12 @@
|
|||||||
package com.docus.server.collect.medical.record;
|
package com.docus.server.collect.medical.record;
|
||||||
|
|
||||||
import com.docus.server.record.domain.MedicalRecord;
|
|
||||||
import com.docus.server.sys.service.Dept;
|
|
||||||
import com.docus.server.collect.service.IParseService;
|
import com.docus.server.collect.service.IParseService;
|
||||||
import org.springframework.stereotype.Component;
|
import com.docus.server.record.pojo.entity.MedicalRecord;
|
||||||
|
import com.docus.server.sys.service.Dept;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
@Component
|
@Service
|
||||||
public class ParseService implements IParseService {
|
public class ParseServiceImpl implements IParseService {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MedicalRecord parseHandNumbness(String handNumbness) {
|
public MedicalRecord parseHandNumbness(String handNumbness) {
|
@ -1,27 +0,0 @@
|
|||||||
package com.docus.server.collect.domain;
|
|
||||||
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
@Component
|
|
||||||
public class TaskConfigService implements ITaskConfigService {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void updateAllPointerDate(String id, Date date){
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void updateIncPointerDate(String id, Date date){
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public TaskConfig getTaskConfig(String id){
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.docus.server.collect.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.docus.server.collect.infrastructure.mapper.TaskConfigMapper;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
public class TaskConfigServiceImpl extends ServiceImpl<TaskConfigMapper, TaskConfig> implements ITaskConfigService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void updateAllPointerDate(String id, Date date) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void updateIncPointerDate(String id, Date date) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public TaskConfig getTaskConfig(String id) {
|
||||||
|
return super.getById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -1,8 +1,10 @@
|
|||||||
package com.docus.server.collect.infrastructure.mapper;
|
package com.docus.server.collect.infrastructure.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.docus.server.collect.infrastructure.dao.ReceiveDeptInfoEntity;
|
import com.docus.server.collect.infrastructure.dao.ReceiveDeptInfoEntity;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
public interface ReceiveDeptInfoMapper {
|
@Mapper
|
||||||
|
public interface ReceiveDeptInfoMapper extends BaseMapper<ReceiveDeptInfoEntity> {
|
||||||
|
|
||||||
public void save(ReceiveDeptInfoEntity receiveDeptInfoEntity);
|
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.docus.server.collect.infrastructure.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.docus.server.collect.domain.TaskConfig;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author : linrf
|
||||||
|
* @create 2023/5/30 9:11
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface TaskConfigMapper extends BaseMapper<TaskConfig> {
|
||||||
|
}
|
@ -1,10 +1,10 @@
|
|||||||
package com.docus.server.collect.service;
|
package com.docus.server.collect.service;
|
||||||
|
|
||||||
import com.docus.server.sys.service.Dept;
|
import com.docus.server.sys.pojo.dto.DeptDTO;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public interface IHttpDeptCollectService {
|
public interface IHttpDeptCollectService {
|
||||||
List<Dept> getDepts(Date startDate, Date endDate, long pazeNum, long pageSize);
|
List<DeptDTO> getDepts(Date startDate, Date endDate, long pazeNum, long pageSize);
|
||||||
}
|
}
|
||||||
|
@ -1,12 +1,16 @@
|
|||||||
package com.docus.server.his.infrastructure.mapper;
|
package com.docus.server.his.infrastructure.mapper;
|
||||||
|
|
||||||
import com.docus.server.sys.service.Dept;
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.docus.server.sys.pojo.dto.DeptDTO;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
@DS("his")
|
||||||
public interface HisDeptMapper {
|
public interface HisDeptMapper {
|
||||||
|
|
||||||
public List<Dept> getDeptListView(@Param("startDate") Date startDate, @Param("endDate") Date endDate, @Param("pageNum") long pageNum, @Param("pageSize") long pageSize);
|
List<DeptDTO> getDeptListView(@Param("startDate") Date startDate, @Param("endDate") Date endDate, @Param("offset") long offset, @Param("pageSize") long pageSize);
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package com.docus.server.his.service;
|
package com.docus.server.his.service;
|
||||||
|
|
||||||
import com.docus.server.sys.service.Dept;
|
import com.docus.server.sys.pojo.dto.DeptDTO;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public interface IHisService {
|
public interface IHisService {
|
||||||
List<Dept> getDeptListView(Date startDate, Date endDate, long pazeNum, long pageSize);
|
List<DeptDTO> getDeptListView(Date startDate, Date endDate, long pazeNum, long pageSize);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue