From dfacfbc21144ae6e53a34a9b4ab55ccc51be8fa1 Mon Sep 17 00:00:00 2001
From: 涂煌豪 <tuhuanghao@prec-tech.com>
Date: 星期三, 06 四月 2022 17:59:10 +0800
Subject: [PATCH] SWAG-CBUB2W 【委托】【优先】询问单相关修改,首页产品咨询单数量修改
---
force-app/main/default/classes/LeadIntentionController.cls | 20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/force-app/main/default/classes/LeadIntentionController.cls b/force-app/main/default/classes/LeadIntentionController.cls
index 7b70d19..c50d0e9 100644
--- a/force-app/main/default/classes/LeadIntentionController.cls
+++ b/force-app/main/default/classes/LeadIntentionController.cls
@@ -143,7 +143,10 @@
public PageReference init() {
system.debug('test:12345');
onlyOpp = false;
- String uidParam = System.currentPageReference().getParameters().get('uid');
+ // String uidParam = System.currentPageReference().getParameters().get('uid');
+ //棣栭〉浜у搧鍜ㄨ鍗曟暟閲忎慨鏀� thh 20220406 start
+ String uidParam = UserInfo.getUserId();
+ //棣栭〉浜у搧鍜ㄨ鍗曟暟閲忎慨鏀� thh 20220406 end
if (uidParam != null){
User u = [select Id, FirstName, LastName from User where Id = :uidParam];
ownerSearch = u.LastName + ' ' + u.FirstName;
@@ -163,7 +166,7 @@
text, condition, value, text2, condition2, value2, text3, condition3, value3);
String soqlForMoney = soqlForMoneyWithoutSort + ' order by CreatedDate desc limit ' + Integer.valueOf(System.Label.TotalLimit);
System.debug('soqlWithoutSort:' + soqlWithoutSort);
- system.debug('aaaaaaaaaa'+soql);
+ system.debug('aaaaaaaaaa:'+soql);
system.debug('bbbbbbb:'+soqlForMoney);
List<Inquiry_form__c> queryList = Database.query(soql);
List<Inquiry_form__c> queryListForMoney = Database.query(soqlForMoney);
@@ -236,11 +239,9 @@
String soql = soqlWithoutSort
+ ' order by ' + this.columus[Integer.valueOf(this.sortKey)] + ' ' + (this.sortOrderAsc == true ? 'asc nulls first' : 'desc nulls last') + ' limit ' + Integer.valueOf(limits);
-system.debug('sort:::::'+ soql);
List<Inquiry_form__c> queryList = Database.query(soql);
String soqlForMoney = soqlForMoneyWithoutSort
+ ' order by ' + this.columus[Integer.valueOf(this.sortKey)] + ' ' + (this.sortOrderAsc == true ? 'asc nulls first' : 'desc nulls last')+ ' limit ' + Integer.valueOf(System.Label.TotalLimit) ;
-system.debug('sort:::::'+ soqlForMoney);
List<Inquiry_form__c> queryListForMoney = Database.query(soqlForMoney);
@@ -393,13 +394,14 @@
soql += ' and Hospital_Name__r.Name like \'%' + v + '%\'';
}
}
+ //棣栭〉浜у搧鍜ㄨ鍗曟暟閲忎慨鏀� thh 20220406 start
if (!String.isBlank(ownerStr)) {
- String[] vals = ownerStr.split(' ');
- for (String v : vals) {
- soql += ' and Name like \'%' + v + '%\'';
- }
+ // String[] vals = ownerStr.split(' ');
+ // for (String v : vals) {
+ soql += ' and owner.Name like \'%' + ownerStr + '%\'';
+ // }
}
-
+ //棣栭〉浜у搧鍜ㄨ鍗曟暟閲忎慨鏀� thh 20220406 end
soql += this.makeTextSql(txt, con, val);
soql += this.makeTextSql(txt2, con2, val2);
soql += this.makeTextSql(txt3, con3, val3);
--
Gitblit v1.9.1