|
|
|
@ -466,11 +466,10 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
client.put("show_all_permission", checkBDPermission > 0);
|
|
|
|
|
if (checkBDPermission > 0) {
|
|
|
|
|
JSONObject org = orgMapper.findOne(manager.getIntValue("org_id"));
|
|
|
|
|
boolean bdRateEditable = client.getIntValue("approve_result") != 1 || org.getBooleanValue("rate_editable") ||
|
|
|
|
|
//开起信用卡支付申请,并且申请结果不是:null.新建 1.通过 4.BD已提交资料状态
|
|
|
|
|
( !clientConfig.getBoolean("enable_card_payment") && !client.containsKey("upay_approve_result") && client.getIntValue("upay_approve_result") !=1 && client.getIntValue("upay_approve_result") !=4);
|
|
|
|
|
boolean bdRateEditable = client.getIntValue("approve_result") != 1 || org.getBooleanValue("rate_editable");
|
|
|
|
|
client.put("rate_editable", bdRateEditable);
|
|
|
|
|
} else {
|
|
|
|
|
boolean bdCardRateEditable = (clientConfig.getBoolean("enable_card_payment") && !client.containsKey("upay_approve_result"));
|
|
|
|
|
client.put("card_rate_editable", bdCardRateEditable);
|
|
|
|
|
client.put("company_phone", "******");
|
|
|
|
|
client.put("contact_person", "******");
|
|
|
|
|
client.put("contact_phone", "******");
|
|
|
|
|