经销商
This commit is contained in:
parent
90d4129a50
commit
44ecf4514c
@ -8,6 +8,7 @@ import java.util.Set;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_FAMILY_TEMP;
|
||||
import jbo.app.tenwa.customer.DISTRIBUTOR_ACCOUNT_TEMP;
|
||||
import jbo.app.tenwa.customer.DISTRIBUTOR_INFO_TEMP;
|
||||
import jbo.app.tenwa.customer.DISTRIBUTOR_SUBSIDIARY_TEMP;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
@ -20,7 +21,17 @@ public class AccountInfoManage {
|
||||
private String flowunid;
|
||||
private String id;
|
||||
private String DISTRIBUTOR_NO;
|
||||
private String distributorId;
|
||||
|
||||
|
||||
public String getDistributorId() {
|
||||
return distributorId;
|
||||
}
|
||||
|
||||
public void setDistributorId(String distributorId) {
|
||||
this.distributorId = distributorId;
|
||||
}
|
||||
|
||||
public String getDISTRIBUTOR_NO() {
|
||||
return DISTRIBUTOR_NO;
|
||||
}
|
||||
@ -86,5 +97,16 @@ public class AccountInfoManage {
|
||||
return distributorName;
|
||||
|
||||
}
|
||||
public String CheckZhuzhangHu(JBOTransaction tx)throws JBOException{
|
||||
|
||||
BizObjectManager bm=JBOFactory.getBizObjectManager(DISTRIBUTOR_SUBSIDIARY_TEMP.CLASS_NAME);
|
||||
tx.join(bm);
|
||||
List<Object> obj=bm.createQuery("is_mian='01' and distributor_id=:distributor_id").setParameter("distributor_id",this.getDistributorId()).getResultList(false);
|
||||
if (obj.size()>0) {
|
||||
return "false";
|
||||
} else {
|
||||
return "true";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user