Commit fd059d16 by manxiaoqiang

2

parent 0d66e633
......@@ -42,6 +42,7 @@ public class Contract {
private Date modifyTime;
private Date createTime;
private String ds;
private Boolean virtual;
@Id
@GeneratedValue
......@@ -53,6 +54,14 @@ public class Contract {
this.id = id;
}
public Boolean getVirtual() {
return virtual;
}
public void setVirtual(Boolean virtual) {
this.virtual = virtual;
}
public String getProduct() {
return product;
}
......
......@@ -187,6 +187,7 @@ public class ContractServiceImpl implements ContractService{
if(null != user){
contract.setSale(user.getId());
}
contract.setVirtual(true);
Account account = accountRepository.findByEmail(contract.getEmail());
contract.setCustomerBody(account.getCompany());
contract.setType("increment");
......
......@@ -12,7 +12,7 @@
<bean id="tkioAccountTask" class="tkio.task.AccountTask"></bean>
<task:scheduled-tasks>
<!--//定时同步短链数据(每5分钟执行一次)-->
<task:scheduled ref="tkioAccountTask" method="task" cron="0 34 12 * * ?"/>
<task:scheduled ref="tkioAccountTask" method="task" cron="0 54 15 * * ?"/>
</task:scheduled-tasks>
<bean id="tkioNoticeTask" class="tkio.task.NoticeTask"></bean>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment