实体类新增is_unbooking字段

This commit is contained in:
dy 2025-07-09 13:07:59 +08:00
parent e3e4e38f91
commit a8b1254b96
4 changed files with 17 additions and 0 deletions

View File

@ -110,6 +110,11 @@ public class CleanOrder extends TenantEntity {
*/ */
private Long createById; private Long createById;
/**
* 是否退订01
*/
private int isUnbooking;
/** /**
* 更新人id * 更新人id
*/ */

View File

@ -111,6 +111,11 @@ public class CleanOrderBo extends BaseEntity {
@NotBlank(message = "联系电话不能为空", groups = {AddGroup.class, EditGroup.class}) @NotBlank(message = "联系电话不能为空", groups = {AddGroup.class, EditGroup.class})
private String phone; private String phone;
/**
* 是否退订01
*/
private int isUnbooking;
/** /**
* 状态 * 状态
*/ */

View File

@ -113,6 +113,11 @@ public class CleanOrderVo implements Serializable {
@ExcelProperty(value = "联系人") @ExcelProperty(value = "联系人")
private String persion; private String persion;
/**
* 是否退订01
*/
private int isUnbooking;
/** /**
* 联系电话 * 联系电话
*/ */

View File

@ -201,6 +201,8 @@ public class CleanOrderServiceImpl implements ICleanOrderService {
public Boolean updateByBo(CleanOrderBo bo) { public Boolean updateByBo(CleanOrderBo bo) {
CleanOrder update = MapstructUtils.convert(bo, CleanOrder.class); CleanOrder update = MapstructUtils.convert(bo, CleanOrder.class);
validEntityBeforeSave(update); validEntityBeforeSave(update);
update.setStarTime(String.valueOf(new DateTime(bo.getStarTime()).toLocalDateTime()));
update.setEndTime(String.valueOf(new DateTime(bo.getStarTime()).toLocalDateTime()));
return baseMapper.updateById(update) > 0; return baseMapper.updateById(update) > 0;
} }