From 3962c2bb0435484b60a3e408e4738d792e249a53 Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期一, 05 六月 2023 11:09:55 +0800
Subject: [PATCH] LEX CommunityNewCmp
---
force-app/main/default/classes/LexProductLimitEditController.cls | 61 ++++++++++++++++++++++++++++++
1 files changed, 61 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/classes/LexProductLimitEditController.cls b/force-app/main/default/classes/LexProductLimitEditController.cls
new file mode 100644
index 0000000..3a8ca5b
--- /dev/null
+++ b/force-app/main/default/classes/LexProductLimitEditController.cls
@@ -0,0 +1,61 @@
+public without sharing class LexProductLimitEditController {
+ public static String accountid { get; set; }
+ public static String product_Limit { get; set; }
+ //--------AddStart-----XHL--------------20180929-------------
+ public static String userPro_Type { get; set; }
+ public static Boolean EngFlag = false;
+ public static Boolean ETFlag = false;
+ //--------AddEnd-----XHL--------------20180929-------------
+ // 鐢婚潰鍒濆鍖�
+ public LexProductLimitEditController (){
+ accountid= ApexPages.currentPage().getParameters().get('accountid');
+ //--------AddStart-----XHL--------------20181008-------------
+ userPro_Type= ApexPages.currentPage().getParameters().get('userPro_Type');
+ if(String.isBlank(userPro_Type)){
+ userPro_Type = 'ET';
+ }
+ if(userPro_Type == 'ENG'){
+ EngFlag = true;
+ }else{
+ ETFlag = true;
+ }
+ //--------AddEnd-----XHL--------------20181008-------------
+ }
+ @AuraEnabled
+ public static ResponseBodyLWC init(String accountid,string userPro_Type) {
+ System.debug('userPro_Type==>'+userPro_Type);
+ System.debug('accountid==>'+accountid);
+ ResponseBodyLWC res = new ResponseBodyLWC();
+ Map<String,object> data = new Map<String,object>();
+ res.entity = data;
+ if(String.isBlank(userPro_Type)){
+ userPro_Type = 'ET';
+ }
+ if(userPro_Type == 'ENG'){
+ EngFlag = true;
+ }else{
+ ETFlag = true;
+ }
+
+ List<Account> accinfo = New List<Account>();
+ //--------UpdateStart-----XHL--------------20181008-------------
+ accinfo = [SELECT Product_Limit_Date__c,Product_Limit_DateENG__c
+ FROM Account
+ WHERE id =:accountid];
+ if(accinfo.size() > 0){
+ if(EngFlag){
+ product_Limit = accinfo [0].Product_Limit_DateENG__c;
+ }else if(ETFlag){
+ product_Limit = accinfo [0].Product_Limit_Date__c;
+ }
+
+ }
+ System.debug('product_Limit==>'+product_Limit);
+ data.put('product_Limit',product_Limit);
+ res.status = 'Success';
+ res.code = 200;
+ System.debug('res = ' + res);
+ return res;
+ //--------UpdateEnd-----XHL--------------20181008-------------
+ }
+}
\ No newline at end of file
--
Gitblit v1.9.1