| | |
| | | import com.matrix.core.pojo.AjaxResult; |
| | | import com.matrix.core.tools.DateUtil; |
| | | import com.matrix.core.tools.WebUtil; |
| | | import com.matrix.system.app.dto.FreeBedDto; |
| | | import com.matrix.system.app.vo.StoreListVo; |
| | | import com.matrix.system.common.bean.SysUsers; |
| | | import com.matrix.system.common.service.SysUsersService; |
| | |
| | | import com.matrix.system.hive.action.BaseController; |
| | | import com.matrix.system.hive.action.OccupancyController; |
| | | import com.matrix.system.hive.bean.SysBeauticianState; |
| | | import com.matrix.system.hive.bean.SysBedInfo; |
| | | import com.matrix.system.hive.bean.SysProjServices; |
| | | import com.matrix.system.hive.bean.SysWorkBeatuistaff; |
| | | import com.matrix.system.hive.dao.SysBeauticianStateDao; |
| | | import com.matrix.system.hive.plugin.util.CollectionUtils; |
| | | import com.matrix.system.hive.service.SysBedInfoService; |
| | | import com.matrix.system.hive.service.SysWorkBeatuistaffService; |
| | | import com.matrix.system.hive.service.SysWorktimeService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | @Resource |
| | | private OccupancyController occupancyController; |
| | | |
| | | @Autowired |
| | | private SysBedInfoService bedInfoService; |
| | | |
| | | /** |
| | | * 获取员工预约情况 |
| | | */ |
| | |
| | | return occupancyController.getCwzyList(timeStr,sysUsers.getShopId()); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取床位信息", notes = "获取床位信息") |
| | | @PostMapping(value = "/showFreedBed") |
| | | public AjaxResult showFreedBed(@RequestBody FreeBedDto freeBedDto) { |
| | | SysProjServices sysProjServices = new SysProjServices(); |
| | | sysProjServices.setStartTime(freeBedDto.getStartTime()); |
| | | sysProjServices.setTotalTime(freeBedDto.getTotalTime()); |
| | | |
| | | SysUsers sysUsers = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | sysProjServices.setShopId(sysUsers.getShopId()); |
| | | List<SysBedInfo> beds = bedInfoService.findFreeBed(sysProjServices); |
| | | return new AjaxResult(AjaxResult.STATUS_SUCCESS, beds, 0); |
| | | } |
| | | |
| | | } |