This commit is contained in:
parent
edbe6b928b
commit
64d889566d
7 changed files with 52 additions and 1 deletions
|
|
@ -46,6 +46,10 @@ public class PlannerNewAction implements IAction<PlannerNewRequest> {
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
public String taskStatus;
|
public String taskStatus;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "Компания", example = "1000")
|
||||||
|
@JsonProperty
|
||||||
|
public Long companyId;
|
||||||
|
|
||||||
@ApiModelProperty(value = "Инструмент", example = "1000")
|
@ApiModelProperty(value = "Инструмент", example = "1000")
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
public Long securityId;
|
public Long securityId;
|
||||||
|
|
@ -58,6 +62,7 @@ public class PlannerNewAction implements IAction<PlannerNewRequest> {
|
||||||
plannerNewRequest.setClearingDate(clearingDate);
|
plannerNewRequest.setClearingDate(clearingDate);
|
||||||
plannerNewRequest.setMarket(market);
|
plannerNewRequest.setMarket(market);
|
||||||
plannerNewRequest.setTaskStatus(taskStatus);
|
plannerNewRequest.setTaskStatus(taskStatus);
|
||||||
|
plannerNewRequest.setCompanyId(companyId);
|
||||||
plannerNewRequest.setSecurityId(securityId);
|
plannerNewRequest.setSecurityId(securityId);
|
||||||
return plannerNewRequest;
|
return plannerNewRequest;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,10 @@ public class PlannerUpdateAction implements IAction<PlannerUpdateRequest>, WithI
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
public String taskStatus;
|
public String taskStatus;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "Компания", example = "1000")
|
||||||
|
@JsonProperty
|
||||||
|
public Long companyId;
|
||||||
|
|
||||||
@ApiModelProperty(value = "Инструмент", example = "1000")
|
@ApiModelProperty(value = "Инструмент", example = "1000")
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
public Long securityId;
|
public Long securityId;
|
||||||
|
|
@ -64,6 +68,7 @@ public class PlannerUpdateAction implements IAction<PlannerUpdateRequest>, WithI
|
||||||
plannerUpdateRequest.setClearingDate(clearingDate);
|
plannerUpdateRequest.setClearingDate(clearingDate);
|
||||||
plannerUpdateRequest.setMarket(market);
|
plannerUpdateRequest.setMarket(market);
|
||||||
plannerUpdateRequest.setTaskStatus(taskStatus);
|
plannerUpdateRequest.setTaskStatus(taskStatus);
|
||||||
|
plannerUpdateRequest.setCompanyId(companyId);
|
||||||
plannerUpdateRequest.setSecurityId(securityId);
|
plannerUpdateRequest.setSecurityId(securityId);
|
||||||
return plannerUpdateRequest;
|
return plannerUpdateRequest;
|
||||||
}
|
}
|
||||||
|
|
@ -151,4 +156,12 @@ public class PlannerUpdateAction implements IAction<PlannerUpdateRequest>, WithI
|
||||||
public void setSecurityId(Long securityId) {
|
public void setSecurityId(Long securityId) {
|
||||||
this.securityId = securityId;
|
this.securityId = securityId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Long getCompanyId() {
|
||||||
|
return companyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCompanyId(Long companyId) {
|
||||||
|
this.companyId = companyId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ public class Planner extends BusinessObject {
|
||||||
private LocalDate clearingDate;
|
private LocalDate clearingDate;
|
||||||
private String market;
|
private String market;
|
||||||
private String taskStatus;
|
private String taskStatus;
|
||||||
|
private Long companyId;
|
||||||
private Long securityId;
|
private Long securityId;
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -70,4 +71,11 @@ public class Planner extends BusinessObject {
|
||||||
this.securityId = value;
|
this.securityId = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Long getCompanyId() {
|
||||||
|
return companyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCompanyId(Long companyId) {
|
||||||
|
this.companyId = companyId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ public class PlannerMapStore extends TemplateMapStore<Planner> {
|
||||||
@Override
|
@Override
|
||||||
public String[] getFields() {
|
public String[] getFields() {
|
||||||
return new String[]{
|
return new String[]{
|
||||||
"ID", "CREATED_AT", "UPDATED_AT", "TASK", "TASK_TIME", "CLEARING_DATE", "MARKET", "TASK_STATUS", "SECURITY_ID"
|
"ID", "CREATED_AT", "UPDATED_AT", "TASK", "TASK_TIME", "CLEARING_DATE", "MARKET", "TASK_STATUS", "COMPANY_ID", "SECURITY_ID"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -45,6 +45,7 @@ public class PlannerMapStore extends TemplateMapStore<Planner> {
|
||||||
object.setClearingDate(getLocalDateFromSqlDate(resultSet, "CLEARING_DATE"));
|
object.setClearingDate(getLocalDateFromSqlDate(resultSet, "CLEARING_DATE"));
|
||||||
object.setMarket(resultSet.getObject("MARKET", String.class));
|
object.setMarket(resultSet.getObject("MARKET", String.class));
|
||||||
object.setTaskStatus(resultSet.getObject("TASK_STATUS", String.class));
|
object.setTaskStatus(resultSet.getObject("TASK_STATUS", String.class));
|
||||||
|
object.setCompanyId(resultSet.getObject("COMPANY_ID", Long.class));
|
||||||
object.setSecurityId(resultSet.getObject("SECURITY_ID", Long.class));
|
object.setSecurityId(resultSet.getObject("SECURITY_ID", Long.class));
|
||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
|
@ -60,6 +61,7 @@ public class PlannerMapStore extends TemplateMapStore<Planner> {
|
||||||
TimeUtil.toDateFromLocalDate(object.getClearingDate()),
|
TimeUtil.toDateFromLocalDate(object.getClearingDate()),
|
||||||
object.getMarket(),
|
object.getMarket(),
|
||||||
object.getTaskStatus(),
|
object.getTaskStatus(),
|
||||||
|
object.getCompanyId(),
|
||||||
object.getSecurityId()
|
object.getSecurityId()
|
||||||
};
|
};
|
||||||
return args;
|
return args;
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@ public class PlannerService extends QueueConsumer implements InitializingBean {
|
||||||
planner.setClearingDate(req.getClearingDate());
|
planner.setClearingDate(req.getClearingDate());
|
||||||
planner.setMarket(req.getMarket());
|
planner.setMarket(req.getMarket());
|
||||||
planner.setTaskStatus(req.getTaskStatus());
|
planner.setTaskStatus(req.getTaskStatus());
|
||||||
|
planner.setCompanyId(req.getCompanyId());
|
||||||
planner.setSecurityId(req.getSecurityId());
|
planner.setSecurityId(req.getSecurityId());
|
||||||
plannerMap.insert(planner);
|
plannerMap.insert(planner);
|
||||||
log.debug("successfully processed, new id {}", planner.getId());
|
log.debug("successfully processed, new id {}", planner.getId());
|
||||||
|
|
@ -67,6 +68,7 @@ public class PlannerService extends QueueConsumer implements InitializingBean {
|
||||||
planner.setClearingDate(req.getClearingDate());
|
planner.setClearingDate(req.getClearingDate());
|
||||||
planner.setMarket(req.getMarket());
|
planner.setMarket(req.getMarket());
|
||||||
planner.setTaskStatus(req.getTaskStatus());
|
planner.setTaskStatus(req.getTaskStatus());
|
||||||
|
planner.setCompanyId(req.getCompanyId());
|
||||||
planner.setSecurityId(req.getSecurityId());
|
planner.setSecurityId(req.getSecurityId());
|
||||||
plannerMap.update(planner);
|
plannerMap.update(planner);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,9 @@ public class PlannerNewRequest {
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
public String taskStatus;
|
public String taskStatus;
|
||||||
|
|
||||||
|
@JsonProperty
|
||||||
|
public Long companyId;
|
||||||
|
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
public Long securityId;
|
public Long securityId;
|
||||||
|
|
||||||
|
|
@ -82,4 +85,12 @@ public class PlannerNewRequest {
|
||||||
public void setSecurityId(Long securityId) {
|
public void setSecurityId(Long securityId) {
|
||||||
this.securityId = securityId;
|
this.securityId = securityId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Long getCompanyId() {
|
||||||
|
return companyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCompanyId(Long companyId) {
|
||||||
|
this.companyId = companyId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,8 @@ public class PlannerUpdateRequest {
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
public String taskStatus;
|
public String taskStatus;
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
|
public Long companyId;
|
||||||
|
@JsonProperty
|
||||||
public Long securityId;
|
public Long securityId;
|
||||||
|
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
|
|
@ -87,4 +89,12 @@ public class PlannerUpdateRequest {
|
||||||
public void setSecurityId(Long securityId) {
|
public void setSecurityId(Long securityId) {
|
||||||
this.securityId = securityId;
|
this.securityId = securityId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Long getCompanyId() {
|
||||||
|
return companyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCompanyId(Long companyId) {
|
||||||
|
this.companyId = companyId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue