| | |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.system.service.UserService; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.text.SimpleDateFormat; |
| | |
| | | public class OperateLog implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | private static final Long SUPER_USER_ID = 9527L; |
| | | |
| | | /** |
| | | * 编号 |
| | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | |
| | |
| | | } |
| | | |
| | | public String getUserId$(){ |
| | | if (SUPER_USER_ID.equals(this.userId)) { |
| | | return "super"; |
| | | } |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.getById(this.userId); |
| | | if (!Cools.isEmpty(user)){ |