1.修改业务二部路由

This commit is contained in:
zhangbb 2018-09-05 19:44:29 +08:00
parent 5bc706dd8c
commit 3d9ba4dc1b

View File

@ -8,6 +8,7 @@ import jbo.app.tenwa.calc.LC_CALC_CONDITION;
import jbo.app.tenwa.calc.LC_CALC_CONDITION_TEMP;
import jbo.com.tenwa.lease.comm.LB_EQUIPMENT_CAR;
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO_TEMP;
import jbo.sys.ORG_INFO;
import jbo.sys.USER_INFO;
import com.amarsoft.app.lc.workflow.action.GetFlowAction;
@ -28,13 +29,16 @@ public class CopyOfbusinessApplyForTwo extends BaseBussiness {
String userId = this.getAttribute("CurUserID").toString();
BizObjectManager userInfo = JBOFactory.getBizObjectManager(USER_INFO.CLASS_NAME, Sqlca);
BizObject condition = userInfo.createQuery("USERID=:userId").setParameter("userId",userId).getSingleResult(false);
BizObject user = userInfo.createQuery("USERID=:userId").setParameter("userId",userId).getSingleResult(false);
String orgid=user.getAttribute("BELONGORG").toString();
BizObjectManager orgInfo = JBOFactory.getBizObjectManager(ORG_INFO.CLASS_NAME, Sqlca);
BizObject org = orgInfo.createQuery("ORGID=:ORGID").setParameter("ORGID",orgid).getSingleResult(false);
String sMessage="";
String applytype = null;
if(null!=condition){
applytype=condition.getAttribute("BELONGORG").toString();
if(null!=org){
applytype=org.getAttribute("RELATIVEORGID").toString();
}
if("8009011"==applytype||applytype.equals("8009010")){//转给业务二部
if("8009011"==applytype||applytype.equals("8009011")){//ת¸øÒµÎñþ²¿
sMessage="true";
}else {
sMessage="false";