进单方向
This commit is contained in:
parent
88553e405d
commit
12832bc22e
@ -17,6 +17,8 @@ import jbo.app.tenwa.customer.DISTRIBUTOR_ACCOUNT;
|
||||
import jbo.app.tenwa.customer.DISTRIBUTOR_INFO;
|
||||
import jbo.com.tenwa.entity.comm.own.DISTRICT_DISTRIBUTOR_RELATION;
|
||||
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
|
||||
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO;
|
||||
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO_TEMP;
|
||||
import jbo.com.tenwa.lease.comm.LB_UNION_LESSEE;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
@ -28,6 +30,22 @@ import com.amarsoft.awe.util.Transaction;
|
||||
|
||||
public class ColRelativeInfo {
|
||||
|
||||
//根据项目编号判断进单方向
|
||||
public static String getOrderDirection(String projectNo) throws JBOException{
|
||||
String orderDirection = "核心系统";
|
||||
BizObject lpiBo = JBOFactory.createBizObjectQuery(LB_PROJECT_INFO.CLASS_NAME,"PROJECT_NO=:PROJECT_NO and APPLICATION_NO is not null")
|
||||
.setParameter("PROJECT_NO", projectNo).getSingleResult(false);
|
||||
if(lpiBo==null){
|
||||
BizObject lpitBo = JBOFactory.createBizObjectQuery(LB_PROJECT_INFO_TEMP.CLASS_NAME,"PROJECT_NO=:PROJECT_NO and APPLICATION_NO is not null")
|
||||
.setParameter("PROJECT_NO", projectNo).getSingleResult(false);
|
||||
if(lpitBo!=null)
|
||||
orderDirection="接口平台";
|
||||
}else{
|
||||
orderDirection="接口平台";
|
||||
}
|
||||
return orderDirection;
|
||||
}
|
||||
|
||||
//根据合同ID获取经销商账号
|
||||
public static String getAccNumberByContractID(String contractID) throws JBOException{
|
||||
BizObject bo = JBOFactory.createBizObjectQuery(LB_CONTRACT_INFO.CLASS_NAME,"id=:contractID")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user