Jelajahi Sumber

feat(swc): 构建申请单时设置默认审核状态

- 在构建申请单逻辑中添加默认审核状态字段(auditstatus)赋值
- 移除未使用的导入类以优化代码结构
- 删除PendingSalaryAdjListPlugin中冗余的beforeBindData方法重写
- 清理无用的资源管理器导入语句
turborao 1 Minggu lalu
induk
melakukan
abf9711223

+ 0 - 5
code/swc/nckd-jxccl-swc/src/main/java/nckd/jxccl/swc/init/plugin/form/PendingSalaryAdjListPlugin.java

@@ -4,7 +4,6 @@ import kd.bos.base.BaseShowParameter;
 import kd.bos.bill.OperationStatus;
 import kd.bos.dataentity.entity.DynamicObject;
 
-import kd.bos.dataentity.resource.ResManager;
 import kd.bos.entity.EntityMetadataCache;
 import kd.bos.entity.MainEntityType;
 import kd.bos.entity.datamodel.ListSelectedRow;
@@ -74,10 +73,6 @@ public class PendingSalaryAdjListPlugin extends AbstractListPlugin implements Pl
         getAdjustBillData();
     }
 
-    @Override
-    public void beforeBindData(EventObject e) {
-        super.beforeBindData(e);
-    }
 
     @Override
     public void beforeDoOperation(BeforeDoOperationEventArgs args) {

+ 2 - 5
code/swc/nckd-jxccl-swc/src/main/java/nckd/jxccl/swc/init/plugin/operate/BuildApplyBillOpPlugin.java

@@ -10,17 +10,13 @@ import kd.bos.entity.operate.result.OperationResult;
 import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
 import kd.bos.entity.plugin.AddValidatorsEventArgs;
 import kd.bos.entity.plugin.PreparePropertysEventArgs;
-import kd.bos.entity.plugin.args.AfterOperationArgs;
 import kd.bos.entity.plugin.args.BeginOperationTransactionArgs;
 import kd.bos.orm.query.QCP;
 import kd.bos.orm.query.QFilter;
-import kd.bos.servicehelper.BusinessDataServiceHelper;
 import kd.bos.servicehelper.QueryServiceHelper;
-import kd.bos.servicehelper.operation.OperationServiceHelper;
-import kd.scm.common.util.DynamicObjectUtil;
 import kd.sdk.plugin.Plugin;
 import kd.sdk.swc.hcdm.business.helper.HCDMApplyBillServiceHelper;
-import nckd.jxccl.base.entity.helper.EntityHelper;
+
 
 import java.math.BigDecimal;
 import java.util.*;
@@ -89,6 +85,7 @@ public class BuildApplyBillOpPlugin extends AbstractOperationServicePlugIn imple
         applyBill.put("exctable", 2321965096026258432L);  //汇率表
         applyBill.put("effectivedate", new Date());   //默认生效日期
         applyBill.put("isdraft", "1"); //草稿状态
+        applyBill.put("auditstatus", "A"); //审核状态
         applyBill.put("datasource", "2");  //申请单数据来源   //1:手工新增  2:接口写入
 
         List<Map<String,Object>> applyBillEntryData = new ArrayList<>();