实体类新增is_unbooking字段
This commit is contained in:
parent
e3e4e38f91
commit
a8b1254b96
@ -110,6 +110,11 @@ public class CleanOrder extends TenantEntity {
|
|||||||
*/
|
*/
|
||||||
private Long createById;
|
private Long createById;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否退订(0:否,1:是)
|
||||||
|
*/
|
||||||
|
private int isUnbooking;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人id
|
* 更新人id
|
||||||
*/
|
*/
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否退订(0:否,1:是)
|
||||||
|
*/
|
||||||
|
private int isUnbooking;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
|
@ -113,6 +113,11 @@ public class CleanOrderVo implements Serializable {
|
|||||||
@ExcelProperty(value = "联系人")
|
@ExcelProperty(value = "联系人")
|
||||||
private String persion;
|
private String persion;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否退订(0:否,1:是)
|
||||||
|
*/
|
||||||
|
private int isUnbooking;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 联系电话
|
* 联系电话
|
||||||
*/
|
*/
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user