Compare commits
No commits in common. "8fc219ad38557ae4abe611205b1c83924e555b45" and "ad20ae2c4b434467927ff2344dbbac95eb8edb92" have entirely different histories.
8fc219ad38
...
ad20ae2c4b
@ -31,7 +31,7 @@ public class LitemallReservationSaveReqVO {
|
||||
|
||||
@Schema(description = "预约时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "预约时间不能为空")
|
||||
private String reAddTime;
|
||||
private LocalDateTime reAddTime;
|
||||
|
||||
@Schema(description = "预约时间段", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
// @NotNull(message = "预约时间段不能为空")
|
||||
|
@ -7,7 +7,6 @@ import cn.iocoder.yudao.module.srbscribe.controller.admin.reservation.vo.Litemal
|
||||
import cn.iocoder.yudao.module.srbscribe.controller.admin.reservation.vo.LitemallReservationRespVO;
|
||||
import cn.iocoder.yudao.module.srbscribe.controller.admin.reservation.vo.LitemallReservationSaveReqVO;
|
||||
import cn.iocoder.yudao.module.srbscribe.dal.dataobject.reservation.LitemallReservationDO;
|
||||
import cn.iocoder.yudao.module.srbscribe.dal.dataobject.technician.LitemallTechnicianDO;
|
||||
import cn.iocoder.yudao.module.srbscribe.service.reservation.LitemallReservationService;
|
||||
import cn.iocoder.yudao.module.srbscribe.util.AjaxResult;
|
||||
import cn.iocoder.yudao.module.srbscribe.util.StringUtils;
|
||||
@ -79,40 +78,14 @@ public class AppReservationController {
|
||||
// }
|
||||
//
|
||||
|
||||
// /**
|
||||
// * 新增预约管理
|
||||
// */
|
||||
// @PostMapping
|
||||
// public CommonResult<Long> createLitemallReservation(@RequestBody LitemallReservationSaveReqVO createReqVO) {
|
||||
// return success(litemallReservationService.createLitemallReservation(createReqVO));
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 新增预约管理
|
||||
// */
|
||||
// @PostMapping("/add")
|
||||
// public CommonResult<Long> createLitemallReservation(@RequestBody LitemallReservationSaveReqVO litemallReservationDO) {
|
||||
// return success(litemallReservationService.createReservation(litemallReservationDO));
|
||||
// }
|
||||
|
||||
/**
|
||||
* 新增预约管理
|
||||
*/
|
||||
@PostMapping("/add")
|
||||
public CommonResult<Long> createLitemallReservation(Integer type,String brandId,String technicianId,String reAddTime,String hsstr,Long userId) {
|
||||
|
||||
LitemallReservationSaveReqVO litemallReservationSaveReqVO = new LitemallReservationSaveReqVO();
|
||||
litemallReservationSaveReqVO.setType(type);
|
||||
litemallReservationSaveReqVO.setBrandId(brandId);
|
||||
litemallReservationSaveReqVO.setTechnicianId(technicianId);
|
||||
litemallReservationSaveReqVO.setReAddTime(reAddTime);
|
||||
litemallReservationSaveReqVO.setHsstr(hsstr);
|
||||
litemallReservationSaveReqVO.setUserId(userId);
|
||||
|
||||
return success(litemallReservationService.createReservation(litemallReservationSaveReqVO));
|
||||
@PostMapping
|
||||
public CommonResult<Long> createLitemallReservation(@RequestBody LitemallReservationSaveReqVO createReqVO) {
|
||||
return success(litemallReservationService.createLitemallReservation(createReqVO));
|
||||
}
|
||||
|
||||
|
||||
// /**
|
||||
// * 修改预约管理
|
||||
// */
|
||||
|
@ -33,8 +33,6 @@ public interface LitemallReservationService {
|
||||
*/
|
||||
Long createLitemallReservation(@Valid LitemallReservationSaveReqVO createReqVO);
|
||||
|
||||
Long createReservation(LitemallReservationSaveReqVO litemallReservationDO);
|
||||
|
||||
/**
|
||||
* 更新预约订单
|
||||
*
|
||||
|
@ -68,13 +68,6 @@ public class LitemallReservationServiceImpl implements LitemallReservationServic
|
||||
return litemallReservation.getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long createReservation(LitemallReservationSaveReqVO litemallReservationDO) {
|
||||
LitemallReservationDO litemallReservation = BeanUtils.toBean(litemallReservationDO, LitemallReservationDO.class);
|
||||
litemallReservationMapper.insert(litemallReservation);
|
||||
return litemallReservation.getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateLitemallReservation(LitemallReservationSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
@ -112,7 +105,7 @@ public class LitemallReservationServiceImpl implements LitemallReservationServic
|
||||
LitemallBrandDO litemallBrandDO = litemallBrandMapper.selectOne("id", litemallReservationDO.getBrandId());
|
||||
litemallReservationDO.setBrandName(litemallBrandDO.getName());
|
||||
|
||||
LitemallTechnicianDO litemallTechnicianDO = litemallTechnicianMapper.selectOne("id", litemallReservationDO.getTechnicianId());
|
||||
LitemallTechnicianDO litemallTechnicianDO = litemallTechnicianMapper.selectOne("id", litemallReservationDO.getId());
|
||||
litemallReservationDO.setTechnicianName(litemallTechnicianDO.getTechnicianName());
|
||||
|
||||
MemberUserDO memberUserDO = memberUserMapper.selectOne("id", litemallReservationDO.getUserId());
|
||||
|
Loading…
Reference in New Issue
Block a user