1.16
parent
0a15f6acdd
commit
d294516c49
|
@ -127,7 +127,7 @@ public class AuthFilter implements GlobalFilter, Ordered
|
||||||
{
|
{
|
||||||
token = request.getHeaders().getFirst(TokenConstants.SESSIONID);
|
token = request.getHeaders().getFirst(TokenConstants.SESSIONID);
|
||||||
}
|
}
|
||||||
// 如果前端设置了令牌前缀,则裁剪掉前缀
|
// 如果前端设置了令牌前缀,则裁剪掉前缀``
|
||||||
if (StringUtils.isNotEmpty(token) && token.startsWith(TokenConstants.PREFIX))
|
if (StringUtils.isNotEmpty(token) && token.startsWith(TokenConstants.PREFIX))
|
||||||
{
|
{
|
||||||
token = token.replaceFirst(TokenConstants.PREFIX, StringUtils.EMPTY);
|
token = token.replaceFirst(TokenConstants.PREFIX, StringUtils.EMPTY);
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
package doctor.controller;
|
||||||
|
|
||||||
|
import doctor.common.core.domain.HealthR;
|
||||||
|
import doctor.domain.vo.InquiryRecordVo;
|
||||||
|
import doctor.service.InquiryVerifyService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/inquiry/verify/v1")
|
||||||
|
public class HealthInquiryVerifyController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private InquiryVerifyService inquiryVerifyService;
|
||||||
|
|
||||||
|
@GetMapping("/findInquiryRecordList")
|
||||||
|
public HealthR<List<InquiryRecordVo>> findInquiryRecordList() {
|
||||||
|
List<InquiryRecordVo> inquiryRecordList = inquiryVerifyService.findInquiryRecordList();
|
||||||
|
return HealthR.ok(inquiryRecordList);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -19,35 +19,44 @@ import java.util.List;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/v1")
|
@RequestMapping("/v1")
|
||||||
public class HealthJobTitleController extends BaseController {
|
public class HealthJobTitleController {
|
||||||
@Autowired
|
@Autowired
|
||||||
private HealthJobTitleService healthJobTitleService;
|
private HealthJobTitleService healthJobTitleService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private BannersService bannersService;
|
private BannersService bannersService;
|
||||||
|
|
||||||
// @GetMapping("/findHistoryInquiryRecord")
|
|
||||||
// public HealthR<List<DoctorHistoryInquiryVo>> findHistoryInquiryRecord(@RequestHeader Integer doctorId,
|
|
||||||
// @RequestHeader String sessionId,
|
@GetMapping("/findDoctorNoticeReadNum")
|
||||||
// @RequestParam Integer page,
|
public HealthR<List<NoticeReadNumVo>> findDoctorNoticeReadNum(@RequestHeader Integer doctorId,
|
||||||
// @RequestParam Integer size) {
|
@RequestHeader String sessionId) {
|
||||||
// HealthR<List<DoctorHistoryInquiryVo>> healthR= healthJobTitleService.findHistoryInquiryRecord();
|
List<NoticeReadNumVo> healthR = healthJobTitleService.findDoctorNoticeReadNum(doctorId);
|
||||||
// return null;
|
return HealthR.ok(healthR);
|
||||||
// }
|
}
|
||||||
|
|
||||||
|
@GetMapping("/findHistoryInquiryRecord")
|
||||||
|
public HealthR<List<DoctorHistoryInquiryVo>> findHistoryInquiryRecord(@RequestHeader Integer doctorId,
|
||||||
|
@RequestHeader String sessionId,
|
||||||
|
@RequestParam Integer page,
|
||||||
|
@RequestParam Integer size) {
|
||||||
|
HealthR<List<DoctorHistoryInquiryVo>> healthR = healthJobTitleService.findHistoryInquiryRecord(page, size);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
@GetMapping("/findDoctorWallet")
|
@GetMapping("/findDoctorWallet")
|
||||||
public HealthR<WalletVo> findDoctorWallet(@RequestHeader Integer doctorId,
|
public HealthR<WalletVo> findDoctorWallet(@RequestHeader Integer doctorId,
|
||||||
@RequestHeader String sessionId) {
|
@RequestHeader String sessionId) {
|
||||||
|
|
||||||
WalletVo healthR= healthJobTitleService.findDoctorWallet(doctorId);
|
WalletVo healthR = healthJobTitleService.findDoctorWallet(doctorId);
|
||||||
return HealthR.ok(healthR);
|
return HealthR.ok(healthR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/drawCash")
|
@PostMapping("/drawCash")
|
||||||
public HealthR drawCash(@RequestHeader Integer doctorId,
|
public HealthR drawCash(@RequestHeader Integer doctorId,
|
||||||
@RequestHeader String sessionId,
|
@RequestHeader String sessionId,
|
||||||
@RequestParam Integer money) {
|
@RequestParam Integer money) {
|
||||||
HealthR healthR= healthJobTitleService.drawCash(doctorId,money);
|
HealthR healthR = healthJobTitleService.drawCash(doctorId, money);
|
||||||
return healthR;
|
return healthR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,32 +65,31 @@ public class HealthJobTitleController extends BaseController {
|
||||||
@RequestHeader String sessionId,
|
@RequestHeader String sessionId,
|
||||||
@RequestParam Integer page,
|
@RequestParam Integer page,
|
||||||
@RequestParam Integer count) {
|
@RequestParam Integer count) {
|
||||||
List<DoctorIncomeRecordVo> doctorIncomeRecordEntities=healthJobTitleService.findDoctorIncomeRecordList(doctorId,page,count);
|
List<DoctorIncomeRecordVo> doctorIncomeRecordEntities = healthJobTitleService.findDoctorIncomeRecordList(doctorId, page, count);
|
||||||
return HealthR.ok(doctorIncomeRecordEntities);
|
return HealthR.ok(doctorIncomeRecordEntities);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/bannersShow")
|
@GetMapping("/bannersShow")
|
||||||
public HealthR<List<Banners>> bannersShow(){
|
public HealthR<List<Banners>> bannersShow() {
|
||||||
List<Banners> banners = bannersService.bannersShow();
|
List<Banners> banners = bannersService.bannersShow();
|
||||||
return HealthR.ok(banners);
|
return HealthR.ok(banners);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/findJobTitleList")
|
@GetMapping("/findJobTitleList")
|
||||||
public HealthR<List<DoctorJobTitleEntity>> findJobTitleList() {
|
public HealthR<List<DoctorJobTitleEntity>> findJobTitleList() {
|
||||||
LoginUser loginUser = SecurityUtils.getLoginUser();
|
List<DoctorJobTitleEntity> doctorJobTitleEntities = healthJobTitleService.findJobTitleList();
|
||||||
List<DoctorJobTitleEntity> doctorJobTitleEntities=healthJobTitleService.findJobTitleList();
|
|
||||||
return HealthR.ok(doctorJobTitleEntities);
|
return HealthR.ok(doctorJobTitleEntities);
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping("/sendEmailCode")
|
@RequestMapping("/sendEmailCode")
|
||||||
public HealthR sendEmailCode(@RequestParam("email") String email) {
|
public HealthR sendEmailCode(@RequestParam("email") String email) {
|
||||||
HealthR healthR= healthJobTitleService.sendEmailCode(email);
|
HealthR healthR = healthJobTitleService.sendEmailCode(email);
|
||||||
return HealthR.ok(healthR);
|
return HealthR.ok(healthR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/applyJoin")
|
@PostMapping("/applyJoin")
|
||||||
public HealthR applyJoin(@RequestBody ApplyJoinDto applyJoinDto) {
|
public HealthR applyJoin(@RequestBody ApplyJoinDto applyJoinDto) {
|
||||||
HealthR healthR= healthJobTitleService.applyJoin(applyJoinDto);
|
HealthR healthR = healthJobTitleService.applyJoin(applyJoinDto);
|
||||||
return HealthR.ok(healthR);
|
return HealthR.ok(healthR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -98,6 +106,7 @@ public class HealthJobTitleController extends BaseController {
|
||||||
@RequestHeader String sessionId) {
|
@RequestHeader String sessionId) {
|
||||||
return HealthR.ok(healthJobTitleService.findDoctorById(doctorId));
|
return HealthR.ok(healthJobTitleService.findDoctorById(doctorId));
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/findSystemImagePic")
|
@GetMapping("/findSystemImagePic")
|
||||||
public HealthR<List<FindImagePicVo>> findSystemImagePic() {
|
public HealthR<List<FindImagePicVo>> findSystemImagePic() {
|
||||||
return HealthR.ok(healthJobTitleService.findSystemImagePic());
|
return HealthR.ok(healthJobTitleService.findSystemImagePic());
|
||||||
|
@ -107,7 +116,7 @@ public class HealthJobTitleController extends BaseController {
|
||||||
public HealthR uploadImagePic(@RequestParam("imagePic") MultipartFile imagePic,
|
public HealthR uploadImagePic(@RequestParam("imagePic") MultipartFile imagePic,
|
||||||
@RequestHeader String sessionId,
|
@RequestHeader String sessionId,
|
||||||
@RequestHeader Integer doctorId) {
|
@RequestHeader Integer doctorId) {
|
||||||
return HealthR.ok(healthJobTitleService.uploadImagePic(imagePic,doctorId,sessionId));
|
return HealthR.ok(healthJobTitleService.uploadImagePic(imagePic, doctorId, sessionId));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
package doctor.controller;
|
||||||
|
|
||||||
|
import doctor.common.core.domain.HealthR;
|
||||||
|
import doctor.domain.vo.SickCircleVo;
|
||||||
|
import doctor.service.SickCircleService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/sickCircle/v1")
|
||||||
|
public class HealthSickController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private SickCircleService sickCircleService;
|
||||||
|
|
||||||
|
@GetMapping("/findSickCircleList")
|
||||||
|
public HealthR<List<SickCircleVo>> sickCircleList(@RequestParam Integer page,
|
||||||
|
@RequestParam Integer count,
|
||||||
|
@RequestParam Integer departmentId) {
|
||||||
|
List<SickCircleVo> sickCircleList = sickCircleService.findSickCircleList(page, count, departmentId);
|
||||||
|
return HealthR.ok(sickCircleList);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,49 @@
|
||||||
|
package doctor.domain.entity;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import javax.persistence.*;
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class SickCircleEntity {
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
|
private Integer userId;
|
||||||
|
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
private Integer departmentId;
|
||||||
|
|
||||||
|
private Integer adoptCommentId;
|
||||||
|
|
||||||
|
private String disease;
|
||||||
|
|
||||||
|
|
||||||
|
private String detail;
|
||||||
|
|
||||||
|
private String treatmentHospital;
|
||||||
|
|
||||||
|
private Date treatmentStartTime;
|
||||||
|
|
||||||
|
private Date treatmentEndTime;
|
||||||
|
|
||||||
|
private String treatmentProcess;
|
||||||
|
|
||||||
|
private String picture;
|
||||||
|
|
||||||
|
private Date releaseTime;
|
||||||
|
|
||||||
|
private Date adoptTime;
|
||||||
|
|
||||||
|
private Integer amount;
|
||||||
|
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
private Integer collectionNum;
|
||||||
|
|
||||||
|
private Integer commentNum;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
package doctor.domain.entity;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class doctorSystemNoticeEntity {
|
||||||
|
private Integer id;
|
||||||
|
private Integer num;
|
||||||
|
private String content;
|
||||||
|
private Integer noticeType;
|
||||||
|
private Integer pushType;
|
||||||
|
private Integer status;
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
package doctor.domain.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class InquiryRecordVo {
|
||||||
|
private Integer recordId;
|
||||||
|
private Integer userId;
|
||||||
|
private String uerHeadPic;
|
||||||
|
private String doctorHeadPic;
|
||||||
|
private String listContent;
|
||||||
|
private String nickName;
|
||||||
|
private long inquiryTime;
|
||||||
|
private Integer status;
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
package doctor.domain.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class NoticeReadNumVo {
|
||||||
|
private int notReadNum;
|
||||||
|
private int noticeType;
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
package doctor.domain.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class SickCircleVo {
|
||||||
|
private Integer sickCircleId;
|
||||||
|
private String title;
|
||||||
|
private String detail;
|
||||||
|
private long releaseTime;
|
||||||
|
private Integer amount;
|
||||||
|
}
|
|
@ -3,6 +3,7 @@ package doctor.mapper;
|
||||||
import doctor.domain.entity.DoctorIncomeRecordEntity;
|
import doctor.domain.entity.DoctorIncomeRecordEntity;
|
||||||
import doctor.domain.entity.DoctorJobTitleEntity;
|
import doctor.domain.entity.DoctorJobTitleEntity;
|
||||||
import doctor.domain.entity.DoctorWalletEntity;
|
import doctor.domain.entity.DoctorWalletEntity;
|
||||||
|
import doctor.domain.entity.doctorSystemNoticeEntity;
|
||||||
import doctor.system.api.domain.Department;
|
import doctor.system.api.domain.Department;
|
||||||
import doctor.system.api.domain.Doctor;
|
import doctor.system.api.domain.Doctor;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
@ -29,4 +30,6 @@ public interface HealthJobTitleMapper {
|
||||||
DoctorWalletEntity findDoctorWalletById(Integer doctorId);
|
DoctorWalletEntity findDoctorWalletById(Integer doctorId);
|
||||||
|
|
||||||
List<DoctorIncomeRecordEntity> findDoctorIncomeRecordList(Integer doctorId);
|
List<DoctorIncomeRecordEntity> findDoctorIncomeRecordList(Integer doctorId);
|
||||||
|
|
||||||
|
List<doctorSystemNoticeEntity> findDoctorNoticeReadNum(Integer doctorId);
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
package doctor.mapper;
|
||||||
|
|
||||||
|
public interface InquiryVerifyServiceMapper {
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
package doctor.mapper;
|
||||||
|
|
||||||
|
import doctor.domain.entity.SickCircleEntity;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface SickCircleMapper {
|
||||||
|
List<SickCircleEntity> findSickCircleList(Integer departmentId);
|
||||||
|
|
||||||
|
}
|
|
@ -3,10 +3,7 @@ package doctor.service;
|
||||||
import doctor.common.core.domain.HealthR;
|
import doctor.common.core.domain.HealthR;
|
||||||
import doctor.domain.dto.ApplyJoinDto;
|
import doctor.domain.dto.ApplyJoinDto;
|
||||||
import doctor.domain.entity.DoctorJobTitleEntity;
|
import doctor.domain.entity.DoctorJobTitleEntity;
|
||||||
import doctor.domain.vo.DoctorVo;
|
import doctor.domain.vo.*;
|
||||||
import doctor.domain.vo.FindImagePicVo;
|
|
||||||
import doctor.domain.vo.WalletVo;
|
|
||||||
import doctor.domain.vo.DoctorIncomeRecordVo;
|
|
||||||
import org.springframework.web.multipart.MultipartFile;
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -31,4 +28,8 @@ public interface HealthJobTitleService {
|
||||||
List<DoctorIncomeRecordVo> findDoctorIncomeRecordList(Integer doctorId,Integer page, Integer count);
|
List<DoctorIncomeRecordVo> findDoctorIncomeRecordList(Integer doctorId,Integer page, Integer count);
|
||||||
|
|
||||||
HealthR drawCash(Integer doctorId, Integer money);
|
HealthR drawCash(Integer doctorId, Integer money);
|
||||||
|
|
||||||
|
HealthR<List<DoctorHistoryInquiryVo>> findHistoryInquiryRecord(Integer page, Integer size);
|
||||||
|
|
||||||
|
List<NoticeReadNumVo> findDoctorNoticeReadNum(Integer doctorId);
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
package doctor.service;
|
||||||
|
|
||||||
|
import doctor.common.core.domain.HealthR;
|
||||||
|
import doctor.domain.vo.InquiryRecordVo;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface InquiryVerifyService {
|
||||||
|
List<InquiryRecordVo> findInquiryRecordList();
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
package doctor.service;
|
||||||
|
|
||||||
|
import doctor.common.core.domain.HealthR;
|
||||||
|
import doctor.domain.vo.SickCircleVo;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface SickCircleService {
|
||||||
|
List<SickCircleVo> findSickCircleList(Integer page, Integer size, Integer departmentId);
|
||||||
|
|
||||||
|
}
|
|
@ -1,15 +1,14 @@
|
||||||
package doctor.service.impl;
|
package doctor.service.impl;
|
||||||
|
|
||||||
import doctor.common.core.domain.HealthR;
|
import doctor.common.core.domain.HealthR;
|
||||||
|
import doctor.common.core.web.controller.BaseController;
|
||||||
import doctor.common.security.service.TokenService;
|
import doctor.common.security.service.TokenService;
|
||||||
import doctor.domain.dto.ApplyJoinDto;
|
import doctor.domain.dto.ApplyJoinDto;
|
||||||
import doctor.domain.entity.DoctorIncomeRecordEntity;
|
import doctor.domain.entity.DoctorIncomeRecordEntity;
|
||||||
import doctor.domain.entity.DoctorJobTitleEntity;
|
import doctor.domain.entity.DoctorJobTitleEntity;
|
||||||
import doctor.domain.entity.DoctorWalletEntity;
|
import doctor.domain.entity.DoctorWalletEntity;
|
||||||
import doctor.domain.vo.DoctorVo;
|
import doctor.domain.entity.doctorSystemNoticeEntity;
|
||||||
import doctor.domain.vo.FindImagePicVo;
|
import doctor.domain.vo.*;
|
||||||
import doctor.domain.vo.WalletVo;
|
|
||||||
import doctor.domain.vo.DoctorIncomeRecordVo;
|
|
||||||
import doctor.mapper.HealthJobTitleMapper;
|
import doctor.mapper.HealthJobTitleMapper;
|
||||||
import doctor.service.HealthJobTitleService;
|
import doctor.service.HealthJobTitleService;
|
||||||
import doctor.system.api.domain.Department;
|
import doctor.system.api.domain.Department;
|
||||||
|
@ -34,7 +33,7 @@ import java.util.Random;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
public class HealthJobTitleServiceImpl implements HealthJobTitleService {
|
public class HealthJobTitleServiceImpl extends BaseController implements HealthJobTitleService {
|
||||||
@Autowired
|
@Autowired
|
||||||
private HealthJobTitleMapper healthJobTitleMapper;
|
private HealthJobTitleMapper healthJobTitleMapper;
|
||||||
@Autowired
|
@Autowired
|
||||||
|
@ -165,6 +164,7 @@ public class HealthJobTitleServiceImpl implements HealthJobTitleService {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<DoctorIncomeRecordVo> findDoctorIncomeRecordList(Integer doctorId, Integer page, Integer count) {
|
public List<DoctorIncomeRecordVo> findDoctorIncomeRecordList(Integer doctorId, Integer page, Integer count) {
|
||||||
|
startPage(page,count);
|
||||||
List<DoctorIncomeRecordEntity> doctorIncomeRecordList = healthJobTitleMapper.findDoctorIncomeRecordList(doctorId);
|
List<DoctorIncomeRecordEntity> doctorIncomeRecordList = healthJobTitleMapper.findDoctorIncomeRecordList(doctorId);
|
||||||
ArrayList<DoctorIncomeRecordVo> doctorIncomeRecordVos = new ArrayList<>();
|
ArrayList<DoctorIncomeRecordVo> doctorIncomeRecordVos = new ArrayList<>();
|
||||||
for (DoctorIncomeRecordEntity doctorIncomeRecordEntity : doctorIncomeRecordList) {
|
for (DoctorIncomeRecordEntity doctorIncomeRecordEntity : doctorIncomeRecordList) {
|
||||||
|
@ -180,4 +180,24 @@ public class HealthJobTitleServiceImpl implements HealthJobTitleService {
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public HealthR<List<DoctorHistoryInquiryVo>> findHistoryInquiryRecord(Integer page, Integer size) {
|
||||||
|
startPage(page,size);
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<NoticeReadNumVo> findDoctorNoticeReadNum(Integer doctorId) {
|
||||||
|
List<doctorSystemNoticeEntity> doctorSystemNoticeEntities = healthJobTitleMapper.findDoctorNoticeReadNum(doctorId);
|
||||||
|
ArrayList<NoticeReadNumVo> noticeReadNumVos = new ArrayList<>();
|
||||||
|
for (doctorSystemNoticeEntity doctorSystemNoticeEntity : doctorSystemNoticeEntities) {
|
||||||
|
NoticeReadNumVo noticeReadNumVo = new NoticeReadNumVo();
|
||||||
|
noticeReadNumVo.setNotReadNum(doctorSystemNoticeEntity.getNum());
|
||||||
|
noticeReadNumVo.setNoticeType(doctorSystemNoticeEntity.getNoticeType());
|
||||||
|
noticeReadNumVos.add(noticeReadNumVo);
|
||||||
|
}
|
||||||
|
return noticeReadNumVos;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
package doctor.service.impl;
|
||||||
|
|
||||||
|
import doctor.common.core.web.controller.BaseController;
|
||||||
|
import doctor.domain.vo.InquiryRecordVo;
|
||||||
|
import doctor.mapper.InquiryVerifyServiceMapper;
|
||||||
|
import doctor.service.InquiryVerifyService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
public class InquiryVerifyServiceImpl extends BaseController implements InquiryVerifyService {
|
||||||
|
@Autowired
|
||||||
|
private InquiryVerifyServiceMapper inquiryVerifyServiceMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<InquiryRecordVo> findInquiryRecordList() {
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,34 @@
|
||||||
|
package doctor.service.impl;
|
||||||
|
|
||||||
|
import doctor.common.core.domain.HealthR;
|
||||||
|
import doctor.common.core.web.controller.BaseController;
|
||||||
|
import doctor.domain.entity.SickCircleEntity;
|
||||||
|
import doctor.domain.vo.SickCircleVo;
|
||||||
|
import doctor.mapper.SickCircleMapper;
|
||||||
|
import doctor.service.SickCircleService;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
public class SickCircleServiceImpl extends BaseController implements SickCircleService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private SickCircleMapper sickCircleMapper;
|
||||||
|
@Override
|
||||||
|
public List<SickCircleVo> findSickCircleList(Integer page, Integer size, Integer departmentId) {
|
||||||
|
startPage(page,size);
|
||||||
|
List<SickCircleEntity> list = sickCircleMapper.findSickCircleList(departmentId);
|
||||||
|
ArrayList<SickCircleVo> sickCircleVos = new ArrayList<>();
|
||||||
|
for (SickCircleEntity sickCircleEntity : list) {
|
||||||
|
SickCircleVo sickCircleVo = new SickCircleVo();
|
||||||
|
sickCircleVo.setSickCircleId(sickCircleEntity.getId());
|
||||||
|
BeanUtils.copyProperties(sickCircleEntity,sickCircleVo);
|
||||||
|
sickCircleVos.add(sickCircleVo);
|
||||||
|
}
|
||||||
|
return sickCircleVos;
|
||||||
|
}
|
||||||
|
}
|
|
@ -34,4 +34,7 @@
|
||||||
<select id="findDoctorIncomeRecordList" resultType="doctor.domain.entity.DoctorIncomeRecordEntity">
|
<select id="findDoctorIncomeRecordList" resultType="doctor.domain.entity.DoctorIncomeRecordEntity">
|
||||||
select * from doctor_income_record where doctor_id=#{doctorId}
|
select * from doctor_income_record where doctor_id=#{doctorId}
|
||||||
</select>
|
</select>
|
||||||
|
<select id="findDoctorNoticeReadNum" resultType="doctor.domain.entity.doctorSystemNoticeEntity">
|
||||||
|
SELECT COUNT(id) num,notice_type FROM doctor_system_notice where receive_doctor_id=#{doctorId} and status=2 GROUP BY notice_type
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?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="doctor.mapper.InquiryVerifyServiceMapper">
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,11 @@
|
||||||
|
<?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="doctor.mapper.SickCircleMapper">
|
||||||
|
|
||||||
|
|
||||||
|
<select id="findSickCircleList" resultType="doctor.domain.entity.SickCircleEntity">
|
||||||
|
SELECT * FROM sick_circle WHERE department_id = #{departmentId}
|
||||||
|
</select>
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue