增加genIdAndValid注释提示
This commit is contained in:
@@ -66,6 +66,7 @@ public class CompanyServiceSupport extends TreeService<CompanyDao, Company>
|
|||||||
@Transactional(readOnly=false)
|
@Transactional(readOnly=false)
|
||||||
public void save(Company company) {
|
public void save(Company company) {
|
||||||
if (company.getIsNewRecord()){
|
if (company.getIsNewRecord()){
|
||||||
|
// 生成主键,并验证改主键是否存在,如存在则抛出验证信息
|
||||||
genIdAndValid(company, company.getViewCode());
|
genIdAndValid(company, company.getViewCode());
|
||||||
// 当前新数据授权,如果用户有上级数据权限,则当前数据也有相应的数据权限
|
// 当前新数据授权,如果用户有上级数据权限,则当前数据也有相应的数据权限
|
||||||
dataScopeService.insertIfParentExists(company, "Company");
|
dataScopeService.insertIfParentExists(company, "Company");
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ public class OfficeServiceSupport extends TreeService<OfficeDao, Office>
|
|||||||
@Transactional(readOnly=false)
|
@Transactional(readOnly=false)
|
||||||
public void save(Office office) {
|
public void save(Office office) {
|
||||||
if (office.getIsNewRecord()){
|
if (office.getIsNewRecord()){
|
||||||
|
// 生成主键,并验证改主键是否存在,如存在则抛出验证信息
|
||||||
genIdAndValid(office, office.getViewCode());
|
genIdAndValid(office, office.getViewCode());
|
||||||
// 当前新数据授权,如果用户有上级数据权限,则当前数据也有相应的数据权限
|
// 当前新数据授权,如果用户有上级数据权限,则当前数据也有相应的数据权限
|
||||||
dataScopeService.insertIfParentExists(office, "Office");
|
dataScopeService.insertIfParentExists(office, "Office");
|
||||||
|
|||||||
Reference in New Issue
Block a user