|  |  |  | 
|---|
|  |  |  | package com.matrix.system.hive.action; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import cn.hutool.core.collection.CollUtil; | 
|---|
|  |  |  | import com.matrix.core.anotations.RemoveRequestToken; | 
|---|
|  |  |  | import com.matrix.core.constance.MatrixConstance; | 
|---|
|  |  |  | import com.matrix.core.exception.GlobleException; | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //补充服务单扩展信息=============== | 
|---|
|  |  |  | List<SysBeauticianState> beauticianStateList = beauticianStateDao.selectBySerIds(id); | 
|---|
|  |  |  | if (CollUtil.isNotEmpty(beauticianStateList)) { | 
|---|
|  |  |  | for (SysBeauticianState sysBeauticianState : beauticianStateList) { | 
|---|
|  |  |  | if (sysBeauticianState.getProjUse().getTaocanId() != null) { | 
|---|
|  |  |  | SysProjUse sysProjUse = projUseService.findById(sysBeauticianState.getProjUse().getTaocanId()); | 
|---|
|  |  |  | sysBeauticianState.getProjInfo().setName(sysProjUse.getProjName()+"--"+sysBeauticianState.getProjInfo().getName()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | projServices.setServiceItems(beauticianStateList); | 
|---|
|  |  |  | SysBedState sysBedState = sysBedStateDao.selectBySerIdAndBedId(projServices.getId(), projServices.getBedId()); | 
|---|
|  |  |  | projServices.setBedState(sysBedState); | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //补充服务单扩展信息=============== | 
|---|
|  |  |  | List<SysBeauticianState> beauticianStateList = beauticianStateDao.selectBySerIds(projServices.getId()); | 
|---|
|  |  |  | if (CollUtil.isNotEmpty(beauticianStateList)) { | 
|---|
|  |  |  | for (SysBeauticianState sysBeauticianState : beauticianStateList) { | 
|---|
|  |  |  | if (sysBeauticianState.getProjUse().getTaocanId() != null) { | 
|---|
|  |  |  | SysProjUse sysProjUse = projUseService.findById(sysBeauticianState.getProjUse().getTaocanId()); | 
|---|
|  |  |  | sysBeauticianState.getProjInfo().setName(sysProjUse.getProjName()+"--"+sysBeauticianState.getProjInfo().getName()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | projServices.setServiceItems(beauticianStateList); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | SysBedState sysBedState = sysBedStateDao.selectBySerIdAndBedId(projServices.getId(), projServices.getBedId()); | 
|---|
|  |  |  | 
|---|
|  |  |  | public @ResponseBody | 
|---|
|  |  |  | AjaxResult updateOrderTime(SysProjServices serviceQuery) { | 
|---|
|  |  |  | SysProjServices services = sysProjServicesDao.selectById(serviceQuery.getId()); | 
|---|
|  |  |  | sysProjServicesDao.updateOrderTime(serviceQuery.getCreateTime(), serviceQuery.getId()); | 
|---|
|  |  |  | sysProjServicesDao.updateOrderTime(serviceQuery.getConsumeTime(), serviceQuery.getId()); | 
|---|
|  |  |  | // 更新业绩时间 | 
|---|
|  |  |  | AchieveNew achieveNew = new AchieveNew(); | 
|---|
|  |  |  | achieveNew.setServiceOrderId(serviceQuery.getId()); | 
|---|
|  |  |  | achieveNew.setDatatime(serviceQuery.getCreateTime()); | 
|---|
|  |  |  | achieveNew.setDatatime(serviceQuery.getConsumeTime()); | 
|---|
|  |  |  | achieveNewService.modifyAchieveTime(achieveNew); | 
|---|
|  |  |  | return new AjaxResult(AjaxResult.STATUS_SUCCESS, "修改成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | if (balanceverifyResult.isError()) { | 
|---|
|  |  |  | return new AjaxResult(AjaxResult.STATUS_FAIL, balanceverifyResult.getMsg()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | sysProjServices.setState(Dictionary.SERVICE_STATU_YYCG); | 
|---|
|  |  |  | sysProjServices.setState(Dictionary.SERVICE_STATU_DYY); | 
|---|
|  |  |  | SysProjServices newSysProjServices = sysProjServicesService.addSysProjServices(sysProjServices); | 
|---|
|  |  |  | if (newSysProjServices != null) { | 
|---|
|  |  |  | return AjaxResult.buildSuccessInstance(Arrays.asList(newSysProjServices)); | 
|---|