Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
7efb9a2926
@ -18,6 +18,6 @@ fi
|
|||||||
|
|
||||||
ssh $USERSERVER "cd /tmp && rm -rf $ARTIFACT_NAME*.jar && echo `date` 'killed' >> log_$ARTIFACT_NAME"
|
ssh $USERSERVER "cd /tmp && rm -rf $ARTIFACT_NAME*.jar && echo `date` 'killed' >> log_$ARTIFACT_NAME"
|
||||||
scp build/libs/$ARTIFACT_NAME-0.1.0-SNAPSHOT.jar $USERSERVER:/tmp/$ARTIFACT_NAME-0.1.0-SNAPSHOT.jar
|
scp build/libs/$ARTIFACT_NAME-0.1.0-SNAPSHOT.jar $USERSERVER:/tmp/$ARTIFACT_NAME-0.1.0-SNAPSHOT.jar
|
||||||
ssh $USERSERVER -f "cd /tmp/ && /opt/jdk1.8.0_192/bin/java -jar $ARTIFACT_NAME-0.1.0-SNAPSHOT.jar -Xms 512m -Xmx 1024m --server.port=8443 --server.http.port=8080 >> /home/user/logfile_$ARTIFACT_NAME" &
|
ssh $USERSERVER -f "cd /tmp/ && /opt/jdk1.8.0_192/bin/java -jar $ARTIFACT_NAME-0.1.0-SNAPSHOT.jar -Xms 512m -Xmx 1024m --server.port=8443 --server.http.port=8080 --ng-tracker.base-url=http://193.110.3.124:8080 >> /home/user/logfile_$ARTIFACT_NAME" &
|
||||||
sleep 10
|
sleep 10
|
||||||
echo "is deployed"
|
echo "is deployed"
|
@ -6,6 +6,8 @@ import ru.ulstu.user.model.User;
|
|||||||
|
|
||||||
import javax.persistence.Column;
|
import javax.persistence.Column;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.EnumType;
|
||||||
|
import javax.persistence.Enumerated;
|
||||||
import javax.persistence.FetchType;
|
import javax.persistence.FetchType;
|
||||||
import javax.persistence.ManyToMany;
|
import javax.persistence.ManyToMany;
|
||||||
import javax.persistence.Temporal;
|
import javax.persistence.Temporal;
|
||||||
@ -15,9 +17,26 @@ import java.util.List;
|
|||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
public class Event extends BaseEntity {
|
public class Event extends BaseEntity {
|
||||||
|
public enum EventStatus {
|
||||||
|
POSSIBLE("Возможное"), NEW("Новое"), IN_PROGRESS("В процессе"), COMPLETED("Завершено");
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
EventStatus(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@NotBlank
|
@NotBlank
|
||||||
private String title;
|
private String title;
|
||||||
|
|
||||||
|
@Enumerated(value = EnumType.STRING)
|
||||||
|
private EventStatus status;
|
||||||
|
|
||||||
@Column(name = "execute_date")
|
@Column(name = "execute_date")
|
||||||
@Temporal(TemporalType.TIMESTAMP)
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
private Date executeDate;
|
private Date executeDate;
|
||||||
@ -43,6 +62,14 @@ public class Event extends BaseEntity {
|
|||||||
this.title = title;
|
this.title = title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public EventStatus getStatus() {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatus(EventStatus status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
public Date getCreateDate() {
|
public Date getCreateDate() {
|
||||||
return createDate;
|
return createDate;
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,7 @@ import static ru.ulstu.core.util.StreamApiUtils.convert;
|
|||||||
public class EventDto {
|
public class EventDto {
|
||||||
private final Integer id;
|
private final Integer id;
|
||||||
private final String title;
|
private final String title;
|
||||||
|
private final Event.EventStatus status;
|
||||||
private final Date executeDate;
|
private final Date executeDate;
|
||||||
private final Date createDate;
|
private final Date createDate;
|
||||||
private final Date updateDate;
|
private final Date updateDate;
|
||||||
@ -21,6 +22,7 @@ public class EventDto {
|
|||||||
@JsonCreator
|
@JsonCreator
|
||||||
public EventDto(@JsonProperty("id") Integer id,
|
public EventDto(@JsonProperty("id") Integer id,
|
||||||
@JsonProperty("title") String title,
|
@JsonProperty("title") String title,
|
||||||
|
@JsonProperty("status") Event.EventStatus status,
|
||||||
@JsonProperty("executeDate") Date executeDate,
|
@JsonProperty("executeDate") Date executeDate,
|
||||||
@JsonProperty("createDate") Date createDate,
|
@JsonProperty("createDate") Date createDate,
|
||||||
@JsonProperty("updateDate") Date updateDate,
|
@JsonProperty("updateDate") Date updateDate,
|
||||||
@ -28,6 +30,7 @@ public class EventDto {
|
|||||||
@JsonProperty("recipients") List<UserDto> recipients) {
|
@JsonProperty("recipients") List<UserDto> recipients) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.title = title;
|
this.title = title;
|
||||||
|
this.status = status;
|
||||||
this.executeDate = executeDate;
|
this.executeDate = executeDate;
|
||||||
this.createDate = createDate;
|
this.createDate = createDate;
|
||||||
this.updateDate = updateDate;
|
this.updateDate = updateDate;
|
||||||
@ -38,6 +41,7 @@ public class EventDto {
|
|||||||
public EventDto(Event event) {
|
public EventDto(Event event) {
|
||||||
this.id = event.getId();
|
this.id = event.getId();
|
||||||
this.title = event.getTitle();
|
this.title = event.getTitle();
|
||||||
|
this.status = event.getStatus();
|
||||||
this.executeDate = event.getExecuteDate();
|
this.executeDate = event.getExecuteDate();
|
||||||
this.createDate = event.getCreateDate();
|
this.createDate = event.getCreateDate();
|
||||||
this.updateDate = event.getUpdateDate();
|
this.updateDate = event.getUpdateDate();
|
||||||
@ -53,6 +57,8 @@ public class EventDto {
|
|||||||
return title;
|
return title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Event.EventStatus getStatus() { return status; }
|
||||||
|
|
||||||
public Date getCreateDate() {
|
public Date getCreateDate() {
|
||||||
return createDate;
|
return createDate;
|
||||||
}
|
}
|
||||||
|
@ -46,6 +46,7 @@ public class EventService {
|
|||||||
event.setDescription(eventDto.getDescription());
|
event.setDescription(eventDto.getDescription());
|
||||||
event.setRecipients(userService.findByIds(convert(eventDto.getRecipients(), UserDto::getId)));
|
event.setRecipients(userService.findByIds(convert(eventDto.getRecipients(), UserDto::getId)));
|
||||||
event.setTitle(eventDto.getTitle());
|
event.setTitle(eventDto.getTitle());
|
||||||
|
event.setStatus(eventDto.getStatus());
|
||||||
event.setUpdateDate(eventDto.getUpdateDate());
|
event.setUpdateDate(eventDto.getUpdateDate());
|
||||||
return event;
|
return event;
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ liquibase.drop-first=false
|
|||||||
liquibase.enabled=true
|
liquibase.enabled=true
|
||||||
liquibase.change-log=classpath:db/changelog-master.xml
|
liquibase.change-log=classpath:db/changelog-master.xml
|
||||||
# Application Settings
|
# Application Settings
|
||||||
ng-tracker.base-url=https://127.0.0.1:8443
|
ng-tracker.base-url=http://127.0.0.1:8080
|
||||||
ng-tracker.undead-user-login=admin
|
ng-tracker.undead-user-login=admin
|
||||||
ng-tracker.dev-mode=true
|
ng-tracker.dev-mode=true
|
||||||
ng-tracker.use-https=false
|
ng-tracker.use-https=false
|
13
src/main/resources/db/changelog-20181031_000000-schema.xml
Normal file
13
src/main/resources/db/changelog-20181031_000000-schema.xml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
|
||||||
|
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd">
|
||||||
|
<changeSet author="alyona" id="20181031_000000-1">
|
||||||
|
<preConditions onFail="MARK_RAN">
|
||||||
|
<not><columnExists columnName="status" tableName="event"/></not>
|
||||||
|
</preConditions>
|
||||||
|
<addColumn tableName="event">
|
||||||
|
<column name="status" type="varchar(255)"/>
|
||||||
|
</addColumn>
|
||||||
|
</changeSet>
|
||||||
|
</databaseChangeLog>
|
@ -13,5 +13,6 @@
|
|||||||
<include file="db/changelog-20180505_000000-schema.xml"/>
|
<include file="db/changelog-20180505_000000-schema.xml"/>
|
||||||
<include file="db/changelog-20181027_000000-schema.xml"/>
|
<include file="db/changelog-20181027_000000-schema.xml"/>
|
||||||
<include file="db/changelog-20181030_000000-schema.xml"/>
|
<include file="db/changelog-20181030_000000-schema.xml"/>
|
||||||
|
<include file="db/changelog-20181031_000000-schema.xml"/>
|
||||||
<include file="db/changelog-20181108_000000-data.xml"/>
|
<include file="db/changelog-20181108_000000-data.xml"/>
|
||||||
</databaseChangeLog>
|
</databaseChangeLog>
|
@ -6,6 +6,29 @@
|
|||||||
<link rel="shortcut icon" th:href="@{|${baseUrl}/favicon.ico|}"/>
|
<link rel="shortcut icon" th:href="@{|${baseUrl}/favicon.ico|}"/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<!-- Bootstrap core CSS -->
|
||||||
|
<link rel="stylesheet" th:href="@{|${baseUrl}/webjars/bootstrap/4.1.0/css/bootstrap.min.css|}"/>
|
||||||
|
<link rel="stylesheet" th:href="@{|${baseUrl}/webjars/font-awesome/4.7.0/css/font-awesome.min.css|}"/>
|
||||||
|
|
||||||
|
<!-- Custom fonts for this template -->
|
||||||
|
<link rel="stylesheet" type="text/css" th:href="@{|${baseUrl}/css/google/montserrat.css|}"/>
|
||||||
|
<link rel="stylesheet" type="text/css" th:href="@{|${baseUrl}/css/google/kaushan.css|}"/>
|
||||||
|
<link rel="stylesheet" type="text/css" th:href="@{|${baseUrl}/css/google/droid.css|}"/>
|
||||||
|
<link rel="stylesheet" type="text/css" th:href="@{|${baseUrl}/css/google/roboto.css|}"/>
|
||||||
|
|
||||||
|
<!-- Custom styles for this template -->
|
||||||
|
<link rel="stylesheet" th:href="@{|${baseUrl}/css/agency.css|}"/>
|
||||||
|
<nav class="navbar navbar-expand-lg navbar-dark fixed-top navbar-shrink" id="mainNav">
|
||||||
|
<div class="container">
|
||||||
|
<a class="navbar-brand js-scroll-trigger" th:href="|${baseUrl}|">NG-Tracker</a>
|
||||||
|
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse"
|
||||||
|
data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false"
|
||||||
|
aria-label="Toggle navigation">
|
||||||
|
Menu
|
||||||
|
<i class="fa fa-bars"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
<p>
|
<p>
|
||||||
Уважаемый(ая) <span th:text="${user.firstName + ' ' + user.lastName}">Ivan Ivanov</span>
|
Уважаемый(ая) <span th:text="${user.firstName + ' ' + user.lastName}">Ivan Ivanov</span>
|
||||||
</p>
|
</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user