Commit ae2594b7 by sdif

新增科室名称字段

parent c2148f25
...@@ -47,6 +47,10 @@ public class DbghOrder extends BaseEntity { ...@@ -47,6 +47,10 @@ public class DbghOrder extends BaseEntity {
*/ */
private Integer did; private Integer did;
/** /**
* 科室名称
*/
private String didName;
/**
* 当前状态 * 当前状态
*/ */
private Integer status; private Integer status;
......
...@@ -43,6 +43,10 @@ public class DbwzOrder extends BaseEntity { ...@@ -43,6 +43,10 @@ public class DbwzOrder extends BaseEntity {
*/ */
private Integer did; private Integer did;
/** /**
* 科室名称
*/
private String didName;
/**
* 主诉 * 主诉
*/ */
private String chiefComplaint; private String chiefComplaint;
......
...@@ -43,6 +43,10 @@ public class YypzOrder extends BaseEntity { ...@@ -43,6 +43,10 @@ public class YypzOrder extends BaseEntity {
*/ */
private Integer did; private Integer did;
/** /**
* 科室名称
*/
private String didName;
/**
* 就诊时间 * 就诊时间
*/ */
private Date visitTime; private Date visitTime;
......
...@@ -39,6 +39,10 @@ public class ZqghOrder extends BaseEntity { ...@@ -39,6 +39,10 @@ public class ZqghOrder extends BaseEntity {
*/ */
private Integer did; private Integer did;
/** /**
* 科室名称
*/
private String didName;
/**
* 医生 * 医生
*/ */
private Integer doctorId; private Integer doctorId;
......
...@@ -39,6 +39,10 @@ public class ZyphOrder extends BaseEntity { ...@@ -39,6 +39,10 @@ public class ZyphOrder extends BaseEntity {
*/ */
private Integer did; private Integer did;
/** /**
* 科室名称
*/
private String didName;
/**
* 就诊人员 * 就诊人员
*/ */
private Integer visitor; private Integer visitor;
......
...@@ -206,4 +206,9 @@ public class CreateOrderBo extends BaseEntity { ...@@ -206,4 +206,9 @@ public class CreateOrderBo extends BaseEntity {
* 城市id * 城市id
*/ */
private Integer cityId; private Integer cityId;
/**
* 科室名称
*/
private String didName;
} }
...@@ -176,9 +176,9 @@ public class TotalOrderServiceImpl implements ITotalOrderService { ...@@ -176,9 +176,9 @@ public class TotalOrderServiceImpl implements ITotalOrderService {
Optional.ofNullable(userVsitorMapper.selectById(yypzOrder.getVisitor())) Optional.ofNullable(userVsitorMapper.selectById(yypzOrder.getVisitor()))
.map(UserVsitor::getName) .map(UserVsitor::getName)
.ifPresent(totalOrderVo::setVisitor); .ifPresent(totalOrderVo::setVisitor);
Optional.ofNullable(departmentMapper.selectById(yypzOrder.getDid())) /*Optional.ofNullable(departmentMapper.selectById(yypzOrder.getDid()))
.map(Department::getTitle) .map(Department::getTitle)
.ifPresent(totalOrderVo::setDepartment); .ifPresent(totalOrderVo::setDepartment);*/
// totalOrderVo.setHospital(hospitalMapper.selectById(yypzOrder.getHid()).getName()); // totalOrderVo.setHospital(hospitalMapper.selectById(yypzOrder.getHid()).getName());
// totalOrderVo.setVisitor(userVsitorMapper.selectById(yypzOrder.getVisitor()).getName()); // totalOrderVo.setVisitor(userVsitorMapper.selectById(yypzOrder.getVisitor()).getName());
// totalOrderVo.setDepartment(departmentMapper.selectById(yypzOrder.getDid()).getTitle()); // totalOrderVo.setDepartment(departmentMapper.selectById(yypzOrder.getDid()).getTitle());
...@@ -187,6 +187,7 @@ public class TotalOrderServiceImpl implements ITotalOrderService { ...@@ -187,6 +187,7 @@ public class TotalOrderServiceImpl implements ITotalOrderService {
totalOrderVo.setOverTime(yypzOrder.getOverTime()); totalOrderVo.setOverTime(yypzOrder.getOverTime());
totalOrderVo.setVoucher(yypzOrder.getVoucher()); totalOrderVo.setVoucher(yypzOrder.getVoucher());
totalOrderVo.setPzRemark(yypzOrder.getRemark()); totalOrderVo.setPzRemark(yypzOrder.getRemark());
totalOrderVo.setDepartment(yypzOrder.getDidName());
} else if (totalOrderVo.getBusinessId() == 2) {// 代办挂号 } else if (totalOrderVo.getBusinessId() == 2) {// 代办挂号
...@@ -202,9 +203,9 @@ public class TotalOrderServiceImpl implements ITotalOrderService { ...@@ -202,9 +203,9 @@ public class TotalOrderServiceImpl implements ITotalOrderService {
Optional.ofNullable(userVsitorMapper.selectById(dbghOrder.getVisitor())) Optional.ofNullable(userVsitorMapper.selectById(dbghOrder.getVisitor()))
.map(UserVsitor::getName) .map(UserVsitor::getName)
.ifPresent(totalOrderVo::setVisitor); .ifPresent(totalOrderVo::setVisitor);
Optional.ofNullable(departmentMapper.selectById(dbghOrder.getDid())) /*Optional.ofNullable(departmentMapper.selectById(dbghOrder.getDid()))
.map(Department::getTitle) .map(Department::getTitle)
.ifPresent(totalOrderVo::setDepartment); .ifPresent(totalOrderVo::setDepartment);*/
/*totalOrderVo.setHospital(hospitalMapper.selectById(dbghOrder.getHid()).getName()); /*totalOrderVo.setHospital(hospitalMapper.selectById(dbghOrder.getHid()).getName());
totalOrderVo.setDepartment(departmentMapper.selectById(dbghOrder.getDid()).getTitle()); totalOrderVo.setDepartment(departmentMapper.selectById(dbghOrder.getDid()).getTitle());
totalOrderVo.setVisitor(userVsitorMapper.selectById(dbghOrder.getVisitor()).getName());*/ totalOrderVo.setVisitor(userVsitorMapper.selectById(dbghOrder.getVisitor()).getName());*/
...@@ -212,6 +213,7 @@ public class TotalOrderServiceImpl implements ITotalOrderService { ...@@ -212,6 +213,7 @@ public class TotalOrderServiceImpl implements ITotalOrderService {
totalOrderVo.setOverTime(dbghOrder.getOverTime()); totalOrderVo.setOverTime(dbghOrder.getOverTime());
totalOrderVo.setVoucher(dbghOrder.getVoucher()); totalOrderVo.setVoucher(dbghOrder.getVoucher());
totalOrderVo.setPzRemark(dbghOrder.getRemark()); totalOrderVo.setPzRemark(dbghOrder.getRemark());
totalOrderVo.setDepartment(dbghOrder.getDidName());
} else if (totalOrderVo.getBusinessId() == 3) {// 代办问诊 } else if (totalOrderVo.getBusinessId() == 3) {// 代办问诊
...@@ -227,9 +229,9 @@ public class TotalOrderServiceImpl implements ITotalOrderService { ...@@ -227,9 +229,9 @@ public class TotalOrderServiceImpl implements ITotalOrderService {
Optional.ofNullable(userVsitorMapper.selectById(dbwzOrder.getVisitor())) Optional.ofNullable(userVsitorMapper.selectById(dbwzOrder.getVisitor()))
.map(UserVsitor::getName) .map(UserVsitor::getName)
.ifPresent(totalOrderVo::setVisitor); .ifPresent(totalOrderVo::setVisitor);
Optional.ofNullable(departmentMapper.selectById(dbwzOrder.getDid())) /*Optional.ofNullable(departmentMapper.selectById(dbwzOrder.getDid()))
.map(Department::getTitle) .map(Department::getTitle)
.ifPresent(totalOrderVo::setDepartment); .ifPresent(totalOrderVo::setDepartment);*/
/* totalOrderVo.setProject(servicesMapper.selectVoById(totalOrderVo.getServiceId()).getName()); /* totalOrderVo.setProject(servicesMapper.selectVoById(totalOrderVo.getServiceId()).getName());
totalOrderVo.setDepartment(departmentMapper.selectById(dbwzOrder.getDid()).getTitle()); totalOrderVo.setDepartment(departmentMapper.selectById(dbwzOrder.getDid()).getTitle());
totalOrderVo.setVisitor(userVsitorMapper.selectById(dbwzOrder.getVisitor()).getName());*/ totalOrderVo.setVisitor(userVsitorMapper.selectById(dbwzOrder.getVisitor()).getName());*/
...@@ -245,6 +247,7 @@ public class TotalOrderServiceImpl implements ITotalOrderService { ...@@ -245,6 +247,7 @@ public class TotalOrderServiceImpl implements ITotalOrderService {
totalOrderVo.setVoucher(dbwzOrder.getVoucher()); totalOrderVo.setVoucher(dbwzOrder.getVoucher());
totalOrderVo.setPzRemark(dbwzOrder.getRemark()); totalOrderVo.setPzRemark(dbwzOrder.getRemark());
totalOrderVo.setIndications(dbwzOrder.getIndications()); totalOrderVo.setIndications(dbwzOrder.getIndications());
totalOrderVo.setDepartment(dbwzOrder.getDidName());
} else if (totalOrderVo.getBusinessId() == 4) {// 住院陪护 } else if (totalOrderVo.getBusinessId() == 4) {// 住院陪护
...@@ -259,9 +262,9 @@ public class TotalOrderServiceImpl implements ITotalOrderService { ...@@ -259,9 +262,9 @@ public class TotalOrderServiceImpl implements ITotalOrderService {
Optional.ofNullable(userVsitorMapper.selectById(zyphOrder.getVisitor())) Optional.ofNullable(userVsitorMapper.selectById(zyphOrder.getVisitor()))
.map(UserVsitor::getName) .map(UserVsitor::getName)
.ifPresent(totalOrderVo::setVisitor); .ifPresent(totalOrderVo::setVisitor);
Optional.ofNullable(departmentMapper.selectById(zyphOrder.getDid())) /*Optional.ofNullable(departmentMapper.selectById(zyphOrder.getDid()))
.map(Department::getTitle) .map(Department::getTitle)
.ifPresent(totalOrderVo::setDepartment); .ifPresent(totalOrderVo::setDepartment);*/
/*totalOrderVo.setHospital(hospitalMapper.selectById(zyphOrder.getHid()).getName()); /*totalOrderVo.setHospital(hospitalMapper.selectById(zyphOrder.getHid()).getName());
totalOrderVo.setVisitor(userVsitorMapper.selectById(zyphOrder.getVisitor()).getName()); totalOrderVo.setVisitor(userVsitorMapper.selectById(zyphOrder.getVisitor()).getName());
totalOrderVo.setDepartment(departmentMapper.selectById(zyphOrder.getDid()).getTitle());*/ totalOrderVo.setDepartment(departmentMapper.selectById(zyphOrder.getDid()).getTitle());*/
...@@ -270,6 +273,7 @@ public class TotalOrderServiceImpl implements ITotalOrderService { ...@@ -270,6 +273,7 @@ public class TotalOrderServiceImpl implements ITotalOrderService {
totalOrderVo.setOverTime(zyphOrder.getOverTime()); totalOrderVo.setOverTime(zyphOrder.getOverTime());
totalOrderVo.setVoucher(zyphOrder.getVoucher()); totalOrderVo.setVoucher(zyphOrder.getVoucher());
totalOrderVo.setPzRemark(zyphOrder.getRemark()); totalOrderVo.setPzRemark(zyphOrder.getRemark());
totalOrderVo.setDepartment(zyphOrder.getDidName());
} else if (totalOrderVo.getBusinessId() == 5) {// 代办买药 } else if (totalOrderVo.getBusinessId() == 5) {// 代办买药
...@@ -304,9 +308,9 @@ public class TotalOrderServiceImpl implements ITotalOrderService { ...@@ -304,9 +308,9 @@ public class TotalOrderServiceImpl implements ITotalOrderService {
/*Optional.ofNullable(userVsitorMapper.selectById(zqghOrder.getVisitor())) /*Optional.ofNullable(userVsitorMapper.selectById(zqghOrder.getVisitor()))
.map(UserVsitor::getName) .map(UserVsitor::getName)
.ifPresent(totalOrderVo::setVisitor);*/ .ifPresent(totalOrderVo::setVisitor);*/
Optional.ofNullable(departmentMapper.selectById(zqghOrder.getDid())) /*Optional.ofNullable(departmentMapper.selectById(zqghOrder.getDid()))
.map(Department::getTitle) .map(Department::getTitle)
.ifPresent(totalOrderVo::setDepartment); .ifPresent(totalOrderVo::setDepartment);*/
Optional.ofNullable(doctorMapper.selectById(zqghOrder.getDoctorId())) Optional.ofNullable(doctorMapper.selectById(zqghOrder.getDoctorId()))
.map(Doctor::getName) .map(Doctor::getName)
.ifPresent(totalOrderVo::setDoctor); .ifPresent(totalOrderVo::setDoctor);
...@@ -318,6 +322,7 @@ public class TotalOrderServiceImpl implements ITotalOrderService { ...@@ -318,6 +322,7 @@ public class TotalOrderServiceImpl implements ITotalOrderService {
totalOrderVo.setOverTime(zqghOrder.getOverTime()); totalOrderVo.setOverTime(zqghOrder.getOverTime());
totalOrderVo.setVoucher(zqghOrder.getVoucher()); totalOrderVo.setVoucher(zqghOrder.getVoucher());
totalOrderVo.setPzRemark(zqghOrder.getRemark()); totalOrderVo.setPzRemark(zqghOrder.getRemark());
totalOrderVo.setDepartment(zqghOrder.getDidName());
} else if (totalOrderVo.getBusinessId() == 0) {// 商城订单 } else if (totalOrderVo.getBusinessId() == 0) {// 商城订单
...@@ -508,6 +513,10 @@ public class TotalOrderServiceImpl implements ITotalOrderService { ...@@ -508,6 +513,10 @@ public class TotalOrderServiceImpl implements ITotalOrderService {
totalOrderVo.setOrderSn(totalOrder.getId() + ""); totalOrderVo.setOrderSn(totalOrder.getId() + "");
totalOrderVo.setPayMoney(bo.getPayMoney()); totalOrderVo.setPayMoney(bo.getPayMoney());
if(null != bo.getDepartmentId() && bo.getDepartmentId() != 0){
bo.setDidName(departmentMapper.selectById(bo.getDepartmentId()).getTitle());
}
// 计算订单过期时间(当前时间加上30分钟) // 计算订单过期时间(当前时间加上30分钟)
long expirationTime = System.currentTimeMillis() + TimeUnit.MINUTES.toMillis(30); long expirationTime = System.currentTimeMillis() + TimeUnit.MINUTES.toMillis(30);
// 未付款的订单延迟24小时自动取消 // 未付款的订单延迟24小时自动取消
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
CONVERT(services.price, decimal(10, 2)) as commission, CONVERT(services.price, decimal(10, 2)) as commission,
user_vsitor.name as userName, user_vsitor.name as userName,
hospital.name as hospital, hospital.name as hospital,
department.title as department, dbgh_order.did_name as department,
dbgh_order.visit_time, dbgh_order.visit_time,
total_order.remark as description, total_order.remark as description,
dbgh_order.remark, dbgh_order.remark,
......
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
CONVERT(services.price, decimal (10, 2)) as commission, CONVERT(services.price, decimal (10, 2)) as commission,
user_vsitor.name as userName, user_vsitor.name as userName,
dbwz_order.visit_time, dbwz_order.visit_time,
department.title as department, dbwz_order.did_name as department,
dbwz_order.chief_complaint, dbwz_order.chief_complaint,
dbwz_order.history_of_present_illness, dbwz_order.history_of_present_illness,
dbwz_order.past_history, dbwz_order.past_history,
......
...@@ -92,7 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -92,7 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
CONVERT(services.price, decimal(10, 2)) as commission, CONVERT(services.price, decimal(10, 2)) as commission,
user_vsitor.name as userName, user_vsitor.name as userName,
hospital.name as hospital, hospital.name as hospital,
department.title as department, yypz_order.did_name as department,
yypz_order.remark, yypz_order.remark,
total_order.uid as userId, total_order.uid as userId,
employees.uid as euserId employees.uid as euserId
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
total_order.status as orderStatus, total_order.status as orderStatus,
zqgh_order.status as serviceStatus, zqgh_order.status as serviceStatus,
hospital.name as hospital, hospital.name as hospital,
department.title as department, zqgh_order.did_name as department,
zqgh_order.time_of_appointment as visitTime, zqgh_order.time_of_appointment as visitTime,
total_order.uid as userId, total_order.uid as userId,
doctor.name as doctor doctor.name as doctor
......
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
CONVERT(services.price, decimal(10, 2)) as commission, CONVERT(services.price, decimal(10, 2)) as commission,
user_vsitor.name as userName, user_vsitor.name as userName,
hospital.name as hospital, hospital.name as hospital,
department.title as department, zyph_order.did_name as department,
total_order.remark as description, total_order.remark as description,
zyph_order.remark, zyph_order.remark,
concat(zyph_order.start_day, ' ~ ', zyph_order.end_day) as visitDate, concat(zyph_order.start_day, ' ~ ', zyph_order.end_day) as visitDate,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment