gqx 2 år sedan
förälder
incheckning
6e76fa6d5d

+ 8 - 0
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/fw/controller/FwRoomExamineController.java

@@ -16,9 +16,11 @@ import org.jeecg.common.util.oConvertUtils;
 import org.jeecg.modules.business.entity.BusCustomer;
 import org.jeecg.modules.business.entity.BusLivingCustomer;
 import org.jeecg.modules.business.entity.BusRoomsLivingOrder;
+import org.jeecg.modules.business.entity.BusWaiter;
 import org.jeecg.modules.business.service.IBusCustomerService;
 import org.jeecg.modules.business.service.IBusLivingCustomerService;
 import org.jeecg.modules.business.service.IBusRoomsLivingOrderService;
+import org.jeecg.modules.business.service.IBusWaiterService;
 import org.jeecg.modules.fw.entity.FwRoomExamine;
 import org.jeecg.modules.fw.service.IFwRoomExamineService;
 
@@ -68,6 +70,8 @@ public class FwRoomExamineController extends JeecgController<FwRoomExamine, IFwR
 	private IBusLivingCustomerService busLivingCustomerService;
 	@Resource
 	private IBusCustomerService busCustomerService;
+	@Resource
+	private IBusWaiterService busWaiterService;
 
 	/**
 	 * 分页列表查询
@@ -103,6 +107,10 @@ public class FwRoomExamineController extends JeecgController<FwRoomExamine, IFwR
 						t.setContactName(busCustomer.getName());
 					}
 				}
+				BusWaiter busWaiter=busWaiterService.getById(t.getWaiterId());
+				if (busWaiter != null) {
+					t.setCfWaiterName(busWaiter.getName());
+				}
 			}
 		});
 		return Result.OK(pageList);

+ 10 - 0
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/fw/entity/FwRoomExamine.java

@@ -83,6 +83,12 @@ public class FwRoomExamine implements Serializable {
     @DateTimeFormat(pattern="yyyy-MM-dd")
     @ApiModelProperty(value = "查房完成时间")
     private Date completedTime;
+    /**查房时间*/
+    @Excel(name = "查房时间", width = 15, format = "yyyy-MM-dd")
+    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
+    @DateTimeFormat(pattern="yyyy-MM-dd")
+    @ApiModelProperty(value = "查房时间")
+    private Date cfTime;
 	/**查房完成人*/
 	@Excel(name = "查房完成人", width = 15)
     @ApiModelProperty(value = "查房完成人")
@@ -103,4 +109,8 @@ public class FwRoomExamine implements Serializable {
     @ApiModelProperty(value = "房间状态")
     @TableField(exist = false)
     private String roomStatus;
+
+    @ApiModelProperty(value = "查房人")
+    @TableField(exist = false)
+    private String cfWaiterName;
 }