Commit 11fde605 by huluobin

update

parent 9d5bbad5
...@@ -816,22 +816,22 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper, ...@@ -816,22 +816,22 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper,
throw new RRException("预约时间不可用"); throw new RRException("预约时间不可用");
} }
/*3、如果是指定美甲师、判断美甲师是否仍然可用*/ // /*3、如果是指定美甲师、判断美甲师是否仍然可用*/
//构造路径 // //构造路径
List<TreeProgram> treeProgramList = new ArrayList<>(); // List<TreeProgram> treeProgramList = new ArrayList<>();
TreeProgram treeProgram = new TreeProgram(); // TreeProgram treeProgram = new TreeProgram();
List<ScheduleServe> scheduleServeList = scheduleManage.getListScheduleServer() // List<ScheduleServe> scheduleServeList = scheduleManage.getListScheduleServer()
.stream() // .stream()
.filter(scheduleServe -> scheduleServe.getServeId() == null) // .filter(scheduleServe -> scheduleServe.getServeId() == null)
.collect(Collectors.toList()); // .collect(Collectors.toList());
//
//方案树 // //方案树
TreeProgram targetTree = idleTimeDTO.getTreeProgram(); // TreeProgram targetTree = idleTimeDTO.getTreeProgram();
//
boolean isPath = treeProgram.isSubTree(targetTree); // boolean isPath = treeProgram.isSubTree(targetTree);
if (!isPath) { // if (!isPath) {
throw new RRException("请重新选择美甲师"); // throw new RRException("请重新选择美甲师");
} // }
} }
} }
...@@ -906,10 +906,10 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper, ...@@ -906,10 +906,10 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper,
scheduleServe.setCreateTime(new Date()); scheduleServe.setCreateTime(new Date());
scheduleServe.setSchId(scheduleManage.getId()); scheduleServe.setSchId(scheduleManage.getId());
}); });
/*2、保存预约详情*/ /*3、保存预约详情*/
scheduleManage.getScheduleServeList().forEach(scheduleServeMapper::insert); scheduleManage.getScheduleServeList().forEach(scheduleServeMapper::insert);
/*3、发送美甲师通知*/ /*4、发送美甲师通知*/
technicianPushService.scheduledMsg(scheduleManage.getId()); technicianPushService.scheduledMsg(scheduleManage.getId());
} }
......
...@@ -22,6 +22,7 @@ public class QRCodeServiceImpl implements QRCodeService { ...@@ -22,6 +22,7 @@ public class QRCodeServiceImpl implements QRCodeService {
@Resource @Resource
private GogirlProperties gogirlProperties; private GogirlProperties gogirlProperties;
@Resource @Resource
FileService fileService; FileService fileService;
......
...@@ -46,44 +46,56 @@ public class ScheduleManage implements Serializable { ...@@ -46,44 +46,56 @@ public class ScheduleManage implements Serializable {
public static final Integer TYPE_CUSTOMER = 1; public static final Integer TYPE_CUSTOMER = 1;
//店铺段预约 //店铺段预约
public static final Integer TYPE_STORE = 2; public static final Integer TYPE_STORE = 2;
@TableId(type = IdType.AUTO) @TableId(type = IdType.AUTO)
@ApiModelProperty("选时间的时候就新建的id(删除状态),在确定预约按钮改为已预约状态") @ApiModelProperty("选时间的时候就新建的id(删除状态),在确定预约按钮改为已预约状态")
private Integer id; private Integer id;
@ApiModelProperty("预约订单号") @ApiModelProperty("预约订单号")
private String scheduledNo; private String scheduledNo;
@ApiModelProperty("下单人id") @ApiModelProperty("下单人id")
private Integer scheduledUser; private Integer scheduledUser;
@ApiModelProperty("店铺端预约手机号码") @ApiModelProperty("店铺端预约手机号码")
private String telephone; private String telephone;
@ApiModelProperty("店铺端预约用户名") @ApiModelProperty("店铺端预约用户名")
private String storeScheduleUsername; private String storeScheduleUsername;
@ApiModelProperty("总价") @ApiModelProperty("总价")
private BigDecimal totalPrice; private BigDecimal totalPrice;
@ApiModelProperty("创建人") @ApiModelProperty("创建人")
private String createUser; private String createUser;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiModelProperty("预约时间") @ApiModelProperty("预约时间")
private Date scheduledTime; private Date scheduledTime;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiModelProperty("最近修改时间") @ApiModelProperty("最近修改时间")
private Date lastUpdateTime; private Date lastUpdateTime;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiModelProperty("预约到达时间") @ApiModelProperty("预约到达时间")
private Date arriveTime; private Date arriveTime;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiModelProperty("上次服务时间") @ApiModelProperty("上次服务时间")
private Date lastServiceTime; private Date lastServiceTime;
@ApiModelProperty("到店人") @ApiModelProperty("到店人")
private String arriveUser; private String arriveUser;
@ApiModelProperty("下单店铺id") @ApiModelProperty("下单店铺id")
private Integer departmentId; private Integer departmentId;
// //
@ApiModelProperty("下单店铺名称") @ApiModelProperty("下单店铺名称")
private String departmentName; private String departmentName;
@ApiModelProperty("备注")
@ApiModelProperty("备注")
private String remark; private String remark;
@ApiModelProperty("删除备注") @ApiModelProperty("删除备注")
...@@ -92,39 +104,55 @@ public class ScheduleManage implements Serializable { ...@@ -92,39 +104,55 @@ public class ScheduleManage implements Serializable {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiModelProperty("开单时间") @ApiModelProperty("开单时间")
private Date openbillTime; private Date openbillTime;
@ApiModelProperty("预约类型") @ApiModelProperty("预约类型")
private Integer scheduledType; private Integer scheduledType;
@ApiModelProperty("已预约#1 守约#2 失约#3 已取消#4 已删除#5 8服务中") @ApiModelProperty("已预约#1 守约#2 失约#3 已取消#4 已删除#5 8服务中")
private Integer status; private Integer status;
@ApiModelProperty("预约关联的的订单")
private Integer orderId; private Integer orderId;
@Deprecated
@TableField(exist = false) @TableField(exist = false)
@ApiModelProperty("删除备注") @ApiModelProperty("删除备注")
private String delRemaerk; private String delRemaerk;
@TableField(exist = false) @TableField(exist = false)
@ApiModelProperty("删除服务字段") @ApiModelProperty("删除服务字段")
private String deleteServe; private String deleteServe;
@TableField(exist = false) @TableField(exist = false)
@ApiModelProperty("提醒类型") @ApiModelProperty("提醒类型")
private Integer remindStatus; private Integer remindStatus;
@TableField(exist = false) @TableField(exist = false)
@ApiModelProperty("已读状态") @ApiModelProperty("已读状态")
private Integer isRead; private Integer isRead;
@TableField(exist = false) @TableField(exist = false)
@ApiModelProperty("统计开始时间") @ApiModelProperty("统计开始时间")
private String startTime; private String startTime;
@TableField(exist = false) @TableField(exist = false)
@ApiModelProperty("统计结束时间") @ApiModelProperty("统计结束时间")
private String endTime; private String endTime;
@TableField(exist = false) @TableField(exist = false)
@ApiModelProperty("分页查询当天预约") @ApiModelProperty("分页查询当天预约")
private String sameDayTime; private String sameDayTime;
@TableField(exist = false) @TableField(exist = false)
@ApiModelProperty("发送服务通知需要的formId") @ApiModelProperty("发送服务通知需要的formId")
private String formId; private String formId;
@ApiModelProperty("是否发送过预约提醒 1是 2否") @ApiModelProperty("是否发送过预约提醒 1是 2否")
private Integer isSend; private Integer isSend;
@ApiModelProperty("是否发送过预约提醒 1是 2否") @ApiModelProperty("是否发送过预约提醒 1是 2否")
private Integer isSendOverTime; private Integer isSendOverTime;
/** /**
* 非数据库字段 * 非数据库字段
*/ */
......
...@@ -85,7 +85,7 @@ gogirl: ...@@ -85,7 +85,7 @@ gogirl:
notify-balance-wx-pay: "http://t.begogirls.com/customer/pay/notifyBalanceWxPay" notify-balance-wx-pay: "http://t.begogirls.com/customer/pay/notifyBalanceWxPay"
#服务器图片临时地址 #服务器图片临时地址
picture-path: /upload/grouppic/ picture-path: /Users/huluobin/upload/grouppic/
#门店下班时间 #门店下班时间
end-time: "22:00:00" end-time: "22:00:00"
......
...@@ -84,7 +84,7 @@ gogirl: ...@@ -84,7 +84,7 @@ gogirl:
notify-balance-wx-pay: "http://t.begogirls.com/customer/pay/notifyBalanceWxPay" notify-balance-wx-pay: "http://t.begogirls.com/customer/pay/notifyBalanceWxPay"
#服务器图片临时地址 #服务器图片临时地址
picture-path: /upload/grouppic/ picture-path: /Users/huluobin/upload/grouppic/
#门店下班时间 #门店下班时间
end-time: "22:00:00" end-time: "22:00:00"
......
...@@ -84,7 +84,7 @@ gogirl: ...@@ -84,7 +84,7 @@ gogirl:
notify-balance-wx-pay: "http://t.begogirls.com/customer/pay/notifyBalanceWxPay" notify-balance-wx-pay: "http://t.begogirls.com/customer/pay/notifyBalanceWxPay"
#服务器图片临时地址 #服务器图片临时地址
picture-path: /upload/grouppic/ picture-path: /Users/huluobin/upload/grouppic/
#门店下班时间 #门店下班时间
end-time: "22:00:00" end-time: "22:00:00"
......
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