Browse Source

会议创建人姓名赋值

tags/24080901
WendyYang 1 year ago
parent
commit
7873e007d5
2 changed files with 6 additions and 9 deletions
  1. +5
    -8
      pmapi/src/main/java/com/ningdatech/pmapi/leave/entity/domain/ExpertLeave.java
  2. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/leave/manage/LeaveManage.java

+ 5
- 8
pmapi/src/main/java/com/ningdatech/pmapi/leave/entity/domain/ExpertLeave.java View File

@@ -1,8 +1,6 @@
package com.ningdatech.pmapi.leave.entity.domain; package com.ningdatech.pmapi.leave.entity.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
@@ -48,15 +46,19 @@ public class ExpertLeave implements Serializable {
private String creator; private String creator;


@ApiModelProperty("创建人") @ApiModelProperty("创建人")
@TableField(fill = FieldFill.INSERT_UPDATE)
private Long createBy; private Long createBy;


@ApiModelProperty("创建时间") @ApiModelProperty("创建时间")
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createOn; private LocalDateTime createOn;


@ApiModelProperty("修改人") @ApiModelProperty("修改人")
@TableField(fill = FieldFill.INSERT_UPDATE)
private Long updateBy; private Long updateBy;


@ApiModelProperty("修改时间") @ApiModelProperty("修改时间")
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateOn; private LocalDateTime updateOn;


@ApiModelProperty("请假开始时间") @ApiModelProperty("请假开始时间")
@@ -75,9 +77,4 @@ public class ExpertLeave implements Serializable {


private Integer status; private Integer status;


public void setUpdateAndCreate(Long createBy, LocalDateTime createOn) {
this.updateBy = this.createBy = createBy;
this.updateOn = this.createOn = createOn;
}

} }

+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/leave/manage/LeaveManage.java View File

@@ -150,7 +150,7 @@ public class LeaveManage {
leave.setType(po.getType()); leave.setType(po.getType());
leave.setRemark(po.getPostscript()); leave.setRemark(po.getPostscript());
leave.setLeaveUserId(leaveUserId); leave.setLeaveUserId(leaveUserId);
leave.setUpdateAndCreate(applyUserId, now);
leave.setCreator(LoginUserUtil.getUsername());
List<KeyValDTO<LocalDateTime, LocalDateTime>> leaveDetailTimes = new ArrayList<>(); List<KeyValDTO<LocalDateTime, LocalDateTime>> leaveDetailTimes = new ArrayList<>();
if (type.equals(LeaveTypeEnum.FIXED_TERM) || type.equals(LeaveTypeEnum.LONG_TERM)) { if (type.equals(LeaveTypeEnum.FIXED_TERM) || type.equals(LeaveTypeEnum.LONG_TERM)) {
boolean fixedTerm = CollUtil.isNotEmpty(po.getFixedType()); boolean fixedTerm = CollUtil.isNotEmpty(po.getFixedType());


Loading…
Cancel
Save