‘linchangsheng’ hai 6 meses
pai
achega
8e8a179c23

+ 1 - 0
mall-miniapp-service/src/main/java/com/gree/mall/miniapp/enums/workorder/OrderOperatorLogTypeEnum.java

@@ -18,6 +18,7 @@ public enum OrderOperatorLogTypeEnum implements BaseEnum {
     WORKER("指派师傅","指派师傅"),
     GP("派工","派工"),
     YUYUE("用户预约","用户预约"),
+    YUYUEB("预约","预约"),
     GAIYUE("改约","改约"),
     YCFK("异常反馈","异常反馈"),
     WGFK("完工反馈","完工反馈"),

+ 1 - 1
mall-miniapp-service/src/main/java/com/gree/mall/miniapp/logic/workorder/ChangeOrderLogic.java

@@ -127,7 +127,7 @@ public class ChangeOrderLogic {
 
     @Transactional(rollbackFor = Exception.class)
     public void changeAppointmentTime(String id, String appointmentTime, String appointmentEndTime,String remark,String type) {
-        if (type.equals(OrderOperatorLogTypeEnum.YUYUE.getRemark())){
+        if (type.equals(OrderOperatorLogTypeEnum.YUYUEB.getRemark())){
             PgOrderBase pgOrderBase = pgOrderBaseService.getById(id);
             if (pgOrderBase.getAppointmentTime() != null)
                 throw new RemoteServiceException("已操作预约无需操作");