fourth deletion 数据库密码更换
This commit is contained in:
parent
9403588247
commit
b496b0317d
@ -1,11 +1,13 @@
|
||||
package com.codesdream.ase.exception.innerservererror;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
// 处理错误对应的异常类
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class HandlingErrorsException extends RuntimeException {
|
||||
public HandlingErrorsException(String msg){
|
||||
super(msg);
|
||||
|
@ -1,48 +0,0 @@
|
||||
package com.codesdream.ase.model.leaves;
|
||||
|
||||
import com.codesdream.ase.model.permission.User;
|
||||
import lombok.Data;
|
||||
import java.util.*;
|
||||
import javax.persistence.*;
|
||||
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name = "leaves")
|
||||
public class Leave {
|
||||
//请假的编号
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||
private int id;
|
||||
//发出人
|
||||
@Column
|
||||
private String userFrom;
|
||||
//审批人容器
|
||||
@ManyToMany(cascade = CascadeType.MERGE, fetch = FetchType.LAZY)
|
||||
private Set <User> userTo;
|
||||
//请假原因
|
||||
@Column
|
||||
private String reasonToLeave;
|
||||
|
||||
|
||||
//请假类型 病假,事假等
|
||||
@Column(nullable = false)
|
||||
private String type;
|
||||
//批准状态
|
||||
@Column(nullable = false)
|
||||
private String authentication="Pending";
|
||||
|
||||
//审核备注
|
||||
@Column
|
||||
private String comment;
|
||||
//开始时间
|
||||
@Column(nullable = false)
|
||||
private Date startTime;
|
||||
|
||||
@Column(nullable = false)
|
||||
private Date endTime;
|
||||
//申请时间
|
||||
private Date applyTime;
|
||||
//认证时间
|
||||
private Date authTime;
|
||||
|
||||
}
|
@ -1,10 +0,0 @@
|
||||
package com.codesdream.ase.repository.leaves;
|
||||
import com.codesdream.ase.model.leaves.Leave;
|
||||
import org.springframework.data.repository.CrudRepository;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
public interface LeaveRepository extends CrudRepository<Leave, Integer>{
|
||||
|
||||
|
||||
}
|
@ -14,7 +14,7 @@ spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true
|
||||
|
||||
spring.datasource.url=jdbc:mariadb://localhost:3306/ase?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
|
||||
spring.datasource.username=root
|
||||
spring.datasource.password=#a9b9fa6422
|
||||
spring.datasource.password=mariadbroot
|
||||
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
|
||||
|
||||
server.error.whitelabel.enabled=false
|
||||
|
Loading…
Reference in New Issue
Block a user