#1

Merged
p3si4elj6 merged 1 commits from 竺锦泓注释 into main 2 months ago

@ -0,0 +1,251 @@
package com.shanzhu.market.entity.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
/**
*
*
*
* 1. 使MyBatis-Plus
* 2.
* 3. Serializable
*
* 1.
* 2. ID
* 3. /
* 4. 使
*
* -
* -
* -
* -
*/
@TableName("department") // 指定映射的数据库表名
public class Dept implements Serializable {
/**
* -
* "0"
* 使
*
* -
* -
* -
*/
public static final String STATE_NORMAL="0";
/**
* -
* "-1"
* /
*
* -
* -
* -
* 使
*/
public static final String STATE_BAN="-1";
/**
* ID
* Long
* 使AUTO
*
*
* - @TableId(type = IdType.AUTO)使
* - AUTO_INCREMENT
*
*/
@TableId(type = IdType.AUTO) // 指定主键生成策略为自动递增
private Long id;
/**
*
* String
*
* "财务部""人力资源部"
*
* -
* -
* - 使便
*/
private String name;
/**
*
* String
*
*
* -
* -
* -
*
*/
private String info;
/**
*
* String
*
*
* - 使STATE_NORMAL("0")
* - 使STATE_BAN("-1")
*
* -
* -
* 使使
*/
private String state;
/**
*
*
* 1. JSONJSON
* 2. MyBatisORM
* 3. Spring
* 4. setter
*
* -
* -
* - setter
*/
public Dept() {
}
/**
*
*
*
* -
* -
* - 使
*
* @param id IDnull()
* @param name
* @param info
* @param state 使
* id
*/
public Dept(Long id, String name, String info, String state) {
this.id = id;
this.name = name;
this.info = info;
this.state = state;
}
/**
* ID
*
* ID(Long)
* 使
* -
* -
* -
* @return ID
*/
public Long getId() {
return id;
}
/**
* ID
*
*
* @param id ID
*
* - IDORM
* - 使
*/
public void setId(Long id) {
this.id = id;
}
/**
*
*
* (String)
* 使
* -
* -
* -
* @return
*/
public String getName() {
return name;
}
/**
*
*
*
* @param name
*
* -
* -
* -
*/
public void setName(String name) {
this.name = name;
}
/**
*
*
* (String)
* 使
* -
* -
* -
* @return
*/
public String getInfo() {
return info;
}
/**
*
*
*
* @param info
*
* -
* -
* -
*/
public void setInfo(String info) {
this.info = info;
}
/**
*
*
*
* - "0"
* - "-1"
* 使
* -
* -
* -
* @return ("0", "-1")
*/
public String getState() {
return state;
}
/**
*
*
*
* @param state 使STATE_NORMALSTATE_BAN
*
* - 使
* - 使
* 使dept.setState(Dept.STATE_NORMAL)
*/
public void setState(String state) {
this.state = state;
}
}
Loading…
Cancel
Save