租金催收,租金催收函加权限,对应模板更新

This commit is contained in:
zhangjun 2019-06-20 20:25:43 +08:00 committed by zhangjun
parent 18148808f2
commit 9ae82bec90
6 changed files with 55 additions and 9 deletions

View File

@ -42,7 +42,7 @@
}else if(roleList.contains("800R00000048")){
String userid_kj="";
BizObjectManager userInfoBOM = JBOFactory.getBizObjectManager("jbo.awe.USER_INFO");
List<BizObject> userListObject = userInfoBOM.createQuery("belongorg=:belongorg").setParameter("belongorg", "8006014").getResultList(false);
List<BizObject> userListObject = userInfoBOM.createQuery("belongorg=:belongorg").setParameter("belongorg", "8006002").getResultList(false);
List<String> useridList_kj = new ArrayList<String>();
for(BizObject bo : userListObject){
userid_kj = bo.getAttribute("userid").toString();
@ -52,10 +52,15 @@
doTemp.appendJboWhere(" and O.project_manage in (" + useridStr + ")");
}
//登录人属于经销商角色 401经销商roleid
if(roleList.contains("401")){
if(roleList.contains("401") && !roleList.contains("800R00000051")){
doTemp.appendJboWhere(" and O.project_manage='"+userid+"'");
}
String belongorg = Sqlca.getString("select belongorg from user_info where userid='"+userid+"'");
String distributor_no = Sqlca.getString("select distributor_no from distributor_info where orgid='"+belongorg+"'");
if(roleList.contains("800R00000051")){
doTemp.appendJboWhere(" and O.distributor_id='"+distributor_no+"'");
}
/* String sCondtion=DataRightManager.getRightCondition(CurUser,"O", "contract");

View File

@ -36,7 +36,7 @@
}
String useridStr = StringUtils.join(useridList.toArray(), ",");
doTemp.appendJboWhere(" and O.project_manage in (" + useridStr + ")");
}else if(roleList.contains("800R00000045")){
}/* else if(roleList.contains("800R00000045")){
String userid_kj="";
BizObjectManager userInfoBOM = JBOFactory.getBizObjectManager("jbo.awe.USER_INFO");
List<BizObject> userListObject = userInfoBOM.createQuery("belongorg=:belongorg").setParameter("belongorg", "8006014").getResultList(false);
@ -47,11 +47,17 @@
}
String useridStr = StringUtils.join(useridList_kj.toArray(), ",");
doTemp.appendJboWhere(" and O.project_manage in (" + useridStr + ")");
}
} */
//登录人属于经销商角色 401经销商roleid
if(roleList.contains("401")){
if(roleList.contains("401") && !roleList.contains("800R00000051")){
doTemp.appendJboWhere(" and O.project_manage='"+userid+"'");
}
String belongorg = Sqlca.getString("select belongorg from user_info where userid='"+userid+"'");
String distributor_no = Sqlca.getString("select distributor_no from distributor_info where orgid='"+belongorg+"'");
if(roleList.contains("800R00000051")){
doTemp.appendJboWhere(" and O.distributor_id='"+distributor_no+"'");
}

View File

@ -3180,7 +3180,7 @@
</manager>
</class>
<class name="vi_the_rent_plan" label="公共租金计划报表" keyAttributes="">
<class name="vi_the_rent_plan" label="经销商租金计划报表" keyAttributes="">
<attributes>
<attribute name="contract_number" label="业务合同号" type="STRING"/>
<attribute name="payment_number" label="投入编号" type="STRING"/>
@ -3210,6 +3210,7 @@
<attribute name="fact_penalty" label="实收罚息" type="STRING"/>
<attribute name="penalty_adjust" label="调整罚息" type="STRING"/>
<attribute name="penalty" label="应收罚息" type="STRING"/>
<attribute name="distributor_no" label="经销商sp编码" type="STRING"/>
<attribute name="distributor_name" label="经销商sp" type="STRING"/>
<attribute name="over_days" label="逾期天数" type="STRING"/>
<attribute name="own_bank" label="收款银行" type="STRING"/>
@ -3225,7 +3226,7 @@
</manager>
</class>
<class name="VI_SETTLEMENT_OF_DATA" label="" keyAttributes="">
<class name="VI_SETTLEMENT_OF_DATA" label="经销商结清数据报表" keyAttributes="">
<attributes>
<attribute name="hire_date" label="合同到期日" type="STRING"/>
<attribute name="contract_no" label="合同号码" type="STRING"/>
@ -3234,6 +3235,7 @@
<attribute name="FRAME_NUMBER" label="车架号码" type="STRING"/>
<attribute name="ENGINE_NUMBER" label="发动机号码" type="STRING"/>
<attribute name="LICENSE_PLATE_NUMBER" label="车牌号码" type="STRING"/>
<attribute name="distributor_no" label="经销商编码" type="STRING"/>
<attribute name="distributor_name" label="经销商名称" type="STRING"/>
<attribute name="CITY" label="城市" type="STRING"/>
<attribute name="LOCATION" label="地址" type="STRING"/>
@ -3247,5 +3249,38 @@
</manager>
</class>
</package>
<class name="VI_DEALER_COLLECTION" label="经销商催收报表" keyAttributes="">
<attributes>
<attribute name="project_no" label="申请号码" type="STRING"/>
<attribute name="CONTRACT_NO" label="合同号" type="STRING"/>
<attribute name="FULLNAME" label="主借人姓名" type="STRING"/>
<attribute name="mobile" label="主借人手机号" type="STRING"/>
<attribute name="NAME" label="共借人姓名" type="STRING"/>
<attribute name="tel" label="共借人手机号" type="STRING"/>
<attribute name="over_Principal" label="逾期本金" type="STRING"/>
<attribute name="over_interest" label="逾期利息" type="STRING"/>
<attribute name="over_penalty" label="逾期罚息" type="STRING"/>
<attribute name="over_money" label="逾期金额合计" type="STRING"/>
<attribute name="corpus_overs" label="未还本金" type="STRING"/>
<attribute name="interest_overs" label="未还所有利息" type="STRING"/>
<attribute name="rent_overs" label="总应收" type="STRING"/>
<attribute name="distributor_name" label="经销商名称" type="STRING"/>
<attribute name="distributor_no" label="经销商编码" type="STRING"/>
<attribute name="LICENSE_PLATE_NUMBER" label="车牌号" type="STRING"/>
<attribute name="over_days" label="逾期天数" type="STRING"/>
<attribute name="return_period" label="已还期数" type="STRING"/>
<attribute name="over_list" label="未还期数" type="STRING"/>
<attribute name="over_num" label="历史逾期情况" type="STRING"/>
<attribute name="CERTID" label="主借款人身份证号" type="STRING"/>
<attribute name="certid1" label="主借人身份证号" type="STRING"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="vi_dealer_collection" />
</managerProperties>
</manager>
</class>
</package>
</jbo>

Binary file not shown.