From 5d155accb594089737a0b4edd753152a1ea66bc4 Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期二, 04 四月 2023 15:23:51 +0800
Subject: [PATCH] 处理review 4.4
---
force-app/main/default/classes/MonthlyReportController.cls | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/force-app/main/default/classes/MonthlyReportController.cls b/force-app/main/default/classes/MonthlyReportController.cls
index a68b5da..3822866 100644
--- a/force-app/main/default/classes/MonthlyReportController.cls
+++ b/force-app/main/default/classes/MonthlyReportController.cls
@@ -1,4 +1,5 @@
public with sharing class MonthlyReportController {
+ //涓哄彇娑堟彁浜ょ浉搴旂殑js鎻愪緵鍒濆鍖栨暟鎹�
@AuraEnabled
public static InitData initForCancelSubmitButton (String recordId){
InitData res = new initData();
@@ -14,7 +15,7 @@
return res;
}
-
+ //涓哄垱寤簄otes閭鎿嶄綔鎻愪緵鍒濆鍖栨暟鎹�
@AuraEnabled
public static InitData initForCreateNoteEmailButton (String recordId) {
InitData res = new initData();
@@ -48,13 +49,13 @@
}
return res;
}
-
+ //鍙栨秷鎻愪氦鎿嶄綔鏇存柊鐩稿簲鏁版嵁
@AuraEnabled
public static void cancel(String recordId) {
try {
Monthly_Report__c report = [SELECT Id,Status__c,Submit_check_flag__c,RecordTypeId,Submit_time__c FROM Monthly_Report__c WHERE Id = :recordId LIMIT 1];
- report.Status__c = '鑽夋涓�';
- report.RecordTypeId = '01210000000Qggf';
+ report.Status__c = LightingButtonConstant.STATUS_DRAFT;
+ report.RecordTypeId = Schema.SObjectType.Monthly_Report__c.getRecordTypeInfosByName().get(LightingButtonConstant.RECORD_TYPE_NAME_BY_MONTHLY_REPORT).getRecordTypeId();
report.Submit_check_flag__c = false;
report.Submit_time__c = null;
update report;
--
Gitblit v1.9.1