|
@@ -140,11 +140,16 @@ public class AuthorityController extends SimpleController{
|
|
|
//如果创建的是广告主端的账号,此处应插入相应的agentId,并且在关联广告主的时候插入advertiserId
|
|
|
//如果没有关联广告主,插入的就是代理商的小账号,但是代理商可以事后为这个编辑账号时分配广告主
|
|
|
t.setAgentId(account.getAgentId());
|
|
|
+ if (account.getOperatorId()!=0) {
|
|
|
+ //创建小账号的时候operatorId标签要嵌入
|
|
|
+ t.setOperatorId(account.getOperatorId());
|
|
|
+ }
|
|
|
t.setSysType(account.getSysType());
|
|
|
t.setPassword(Md5Tool.getMd5(password));
|
|
|
t.setDescription(account.getDescription()+"(小)");
|
|
|
if(t.getAdvertiserId()==null){
|
|
|
t.setAdvertiserId(new Long(0));
|
|
|
+ accountService.addAccountAdvertiser(t);
|
|
|
}else {
|
|
|
accountService.addAccountAdvertiser(t);
|
|
|
Advertiser advertiser = advertiserService.findById(t.getAdvertiserId());
|