|  |  |  | 
|---|
|  |  |  | import com.matrix.system.hive.bean.SysBeauticianState; | 
|---|
|  |  |  | import com.matrix.system.hive.bean.SysWorkBeatuistaff; | 
|---|
|  |  |  | import com.matrix.system.hive.bean.SysWorktime; | 
|---|
|  |  |  | import com.matrix.system.hive.plugin.util.DateUtils; | 
|---|
|  |  |  | import com.matrix.core.tools.DateUtil; | 
|---|
|  |  |  | import com.matrix.system.hive.pojo.BeautiWorkForm; | 
|---|
|  |  |  | import com.matrix.system.hive.service.SysWorkBeatuistaffService; | 
|---|
|  |  |  | import com.matrix.system.hive.service.SysWorktimeService; | 
|---|
|  |  |  | 
|---|
|  |  |  | if (strDate == null || strDate.equals("")) { | 
|---|
|  |  |  | date = new Date(); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | date = DateUtils.stringToDate(strDate.toString(), "yyyy-MM-dd"); | 
|---|
|  |  |  | date = DateUtil.stringToDate(strDate.toString(), "yyyy-MM-dd"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | result.putInMap("dateTime", date); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | if (strDate == null || strDate.equals("")) { | 
|---|
|  |  |  | date = new Date(); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | date = DateUtils.stringToDate(strDate, "yyyy-MM-dd"); | 
|---|
|  |  |  | date = DateUtil.stringToDate(strDate, "yyyy-MM-dd"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | WebUtil.getRequest().setAttribute("dateTime", date); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | int dateForm = Integer.parseInt(strDate); | 
|---|
|  |  |  | int curTime = Integer.parseInt(DateUtils.dateToString(new Date(), "yyyyMMdd")); | 
|---|
|  |  |  | int curTime = Integer.parseInt(DateUtil.dateToString(new Date(), "yyyyMMdd")); | 
|---|
|  |  |  | if (curTime > dateForm) { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return new AjaxResult(AjaxResult.STATUS_FAIL, "请选择大于当前时间下排班!"); | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | int dateForm = Integer.parseInt(strDate); | 
|---|
|  |  |  | int curTime = Integer.parseInt(DateUtils.dateToString(new Date(), "yyyyMMdd")); | 
|---|
|  |  |  | int curTime = Integer.parseInt(DateUtil.dateToString(new Date(), "yyyyMMdd")); | 
|---|
|  |  |  | if (curTime > dateForm) { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return new AjaxResult(AjaxResult.STATUS_FAIL, "请选择大于当前时间下排班!"); | 
|---|
|  |  |  | 
|---|
|  |  |  | AjaxResult getCurrentWorks() { | 
|---|
|  |  |  | return new AjaxResult(AjaxResult.STATUS_SUCCESS, | 
|---|
|  |  |  | sysWorkBeatuistaffService.findByDateStr( | 
|---|
|  |  |  | DateUtils.dateToString(new Date(), "yyyyMMdd"), getMe().getShopId()), 0); | 
|---|
|  |  |  | DateUtil.dateToString(new Date(), "yyyyMMdd"), getMe().getShopId()), 0); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | public @ResponseBody | 
|---|
|  |  |  | AjaxResult getPaiBanBeauticianList(@RequestBody SysBeauticianState sysBeauticianState) { | 
|---|
|  |  |  | // 根据时间获取一段排班码 | 
|---|
|  |  |  | String panBanCodes = DateUtils.dateToString(sysBeauticianState.getBeginTime(),DateUtils.DATE_FORMAT_NO_SPLITE_DD); | 
|---|
|  |  |  | String panBanCodes = DateUtil.dateToString(sysBeauticianState.getBeginTime(),DateUtil.DATE_FORMAT_NO_SPLITE_DD); | 
|---|
|  |  |  | // 获取登陆的用户 | 
|---|
|  |  |  | SysUsers user = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); | 
|---|
|  |  |  | List<SysUsers> staffs=new ArrayList<>(); | 
|---|