运营商修改、门店修改推送
This commit is contained in:
@ -163,7 +163,12 @@ public class CompanyController extends BaseController
|
||||
return error("修改失败,手机号码已存在");
|
||||
}
|
||||
company.setUpdateBy(getLoginName());
|
||||
return toAjax(companyService.updateCompany(company));
|
||||
int flag = companyService.updateCompany(company);
|
||||
if(flag > 0){
|
||||
// 推送运营商ID
|
||||
dataPushApi.sendAddCompany(company.getId());
|
||||
}
|
||||
return toAjax(flag);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -159,7 +159,12 @@ public class CompanyStoreController extends BaseController
|
||||
return error("修改失败,门店编号'" + companyStore.getStoreNumber() + "'已存在");
|
||||
}
|
||||
companyStore.setUpdateBy(getLoginName());
|
||||
return toAjax(companyStoreService.updateCompanyStore(companyStore));
|
||||
int flag = companyStoreService.updateCompanyStore(companyStore);
|
||||
if(flag > 0){
|
||||
// 推送门店ID
|
||||
dataPushApi.sendAddStore(companyStore.getId());
|
||||
}
|
||||
return toAjax(flag);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user