Commit 443f775b authored by mengmeng's avatar mengmeng

merge

parent e6b6e9da
package io.hmit.dto;
/**
* @author Eve
* @email mengmengeve@gmail.com
* @create 2021/1/27
*/
public class UserInfoDTO {
}
...@@ -186,17 +186,6 @@ public class PensionOrderController { ...@@ -186,17 +186,6 @@ public class PensionOrderController {
//校验数据 //校验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
dto.setId(null);
dto.setOrderNum(null);
dto.setStatus(0);
dto.setStatusName("未接单");
dto.setOrderRecipientTime(null);
dto.setOrderRecipientPhone(null);
dto.setOrderRecipientName(null);
dto.setOrderRecipientId(null);
//设置日期
dto.setCreateDate(new Date());
dto.setUpdateDate(new Date());
pensionOrderService.save(dto); pensionOrderService.save(dto);
return new Result(); return new Result();
...@@ -207,10 +196,8 @@ public class PensionOrderController { ...@@ -207,10 +196,8 @@ public class PensionOrderController {
public Result update(@RequestBody PensionOrderDTO dto){ public Result update(@RequestBody PensionOrderDTO dto){
//校验数据 //校验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
PensionOrderDTO pensionOrderDTO = pensionOrderService.get(dto.getId());
BeanUtils.copyProperties(dto, pensionOrderDTO); pensionOrderService.update(dto);
pensionOrderDTO.setUpdateDate(new Date());
pensionOrderService.update(pensionOrderDTO);
return new Result(); return new Result();
} }
......
package io.hmit.modules.serviceOrder.dto;
/**
* @author Eve
* @email mengmengeve@gmail.com
* @create 2021/1/28
*/
public class ReservationDTO {
}
...@@ -3,6 +3,7 @@ package io.hmit.modules.serviceOrder.service; ...@@ -3,6 +3,7 @@ package io.hmit.modules.serviceOrder.service;
import io.hmit.common.page.PageData; import io.hmit.common.page.PageData;
import io.hmit.common.service.CrudService; import io.hmit.common.service.CrudService;
import io.hmit.modules.serviceOrder.dto.PensionOrderDTO; import io.hmit.modules.serviceOrder.dto.PensionOrderDTO;
import io.hmit.modules.serviceOrder.dto.ReservationDTO;
import io.hmit.modules.serviceOrder.entity.PensionOrderEntity; import io.hmit.modules.serviceOrder.entity.PensionOrderEntity;
import java.util.Map; import java.util.Map;
...@@ -42,4 +43,5 @@ public interface PensionOrderService extends CrudService<PensionOrderEntity, Pen ...@@ -42,4 +43,5 @@ public interface PensionOrderService extends CrudService<PensionOrderEntity, Pen
//根据订单Id和订单状态查询 //根据订单Id和订单状态查询
PensionOrderDTO getOrderInfoByIdAndStatus(Long orderId, Integer status); PensionOrderDTO getOrderInfoByIdAndStatus(Long orderId, Integer status);
void reservation(ReservationDTO reservationDTO);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment