|
|
@@ -120,13 +120,14 @@ public class PrescribeController extends AppBaseController {
|
|
|
param.setDoctorId(Long.parseLong(getDoctorId()));
|
|
|
}
|
|
|
// 问诊列表
|
|
|
- IPage<Hospital580PrescriptionScrmEntity> page = orderScrmService.page(
|
|
|
- new Page<Hospital580PrescriptionScrmEntity>(param.getPageNum(), param.getPageSize())
|
|
|
- , new LambdaQueryWrapper<Hospital580PrescriptionScrmEntity>()
|
|
|
- .eq(Hospital580PrescriptionScrmEntity::getAuditApothecaryId,param.getDoctorId())
|
|
|
- .eq(ObjectUtil.isNotEmpty(param.getStatus()) && param.getStatus()==1,Hospital580PrescriptionScrmEntity::getAuditStatus,1)
|
|
|
- .orderByDesc(Hospital580PrescriptionScrmEntity::getCreateTime)
|
|
|
- );
|
|
|
+// IPage<Hospital580PrescriptionScrmEntity> page = orderScrmService.page(
|
|
|
+// new Page<Hospital580PrescriptionScrmEntity>(param.getPageNum(), param.getPageSize())
|
|
|
+// , new LambdaQueryWrapper<Hospital580PrescriptionScrmEntity>()
|
|
|
+// .eq(Hospital580PrescriptionScrmEntity::getAuditApothecaryId,param.getDoctorId())
|
|
|
+// .eq(ObjectUtil.isNotEmpty(param.getStatus()) && param.getStatus()==1,Hospital580PrescriptionScrmEntity::getAuditStatus,1)
|
|
|
+// .orderByDesc(Hospital580PrescriptionScrmEntity::getCreateTime)
|
|
|
+// );
|
|
|
+ IPage<Hospital580PrescriptionScrmEntity> page = orderScrmService.getPrescription(param);
|
|
|
List<FsPrescribeListDVO> list = page.getRecords().stream()
|
|
|
.map(order -> {
|
|
|
FsPrescribeListDVO vo = new FsPrescribeListDVO();
|
|
|
@@ -139,6 +140,7 @@ public class PrescribeController extends AppBaseController {
|
|
|
vo.setPrescribeImgUrl(order.getDstFilePath());
|
|
|
vo.setAuditReason(order.getReason());
|
|
|
vo.setDiagnose(order.getTags());
|
|
|
+ vo.setOrderCode(order.getOrderCode());
|
|
|
vo.setAuditStatus(order.getAuditStatus());
|
|
|
if (order.getAuditTime() != null){
|
|
|
vo.setAuditTime(Date.from(order.getAuditTime().atZone(ZoneId.of("Asia/Shanghai")).toInstant()));
|