docs
This commit is contained in:
@@ -20,6 +20,8 @@ public class CompanyCustomerViewModel extends IdentityViewModel<CompanyCustomerV
|
||||
* 关联的企业,Company
|
||||
*/
|
||||
private SimpleObjectProperty<Integer> company = new SimpleObjectProperty<>();
|
||||
|
||||
private SimpleObjectProperty<Integer> catalog = new SimpleObjectProperty<>();
|
||||
/**
|
||||
* 发展日期
|
||||
*/
|
||||
@@ -46,6 +48,7 @@ public class CompanyCustomerViewModel extends IdentityViewModel<CompanyCustomerV
|
||||
public void updateFrom(CompanyCustomerVo c) {
|
||||
super.updateFrom(c);
|
||||
getCompany().set(c.getCompanyId());
|
||||
getCatalog().set(c.getCatalogId());
|
||||
getDevelopDate().set(c.getDevelopDate());
|
||||
getContact().set(c.getContactId());
|
||||
getPath().set(c.getPath());
|
||||
@@ -60,6 +63,10 @@ public class CompanyCustomerViewModel extends IdentityViewModel<CompanyCustomerV
|
||||
v.setCompanyId(company.get());
|
||||
modified = true;
|
||||
}
|
||||
if (!Objects.equals(catalog.get(), v.getCatalogId())) {
|
||||
v.setCatalogId(catalog.get());
|
||||
modified = true;
|
||||
}
|
||||
if (!Objects.equals(contact.get(), v.getContactId())) {
|
||||
v.setContactId(contact.get());
|
||||
modified = true;
|
||||
|
||||
Reference in New Issue
Block a user