|
@@ -6,6 +6,7 @@ import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
|
|
|
import kd.bos.entity.plugin.AddValidatorsEventArgs;
|
|
import kd.bos.entity.plugin.AddValidatorsEventArgs;
|
|
|
import kd.bos.entity.plugin.PreparePropertysEventArgs;
|
|
import kd.bos.entity.plugin.PreparePropertysEventArgs;
|
|
|
import kd.bos.entity.plugin.args.BeginOperationTransactionArgs;
|
|
import kd.bos.entity.plugin.args.BeginOperationTransactionArgs;
|
|
|
|
|
+import kd.bos.ext.fi.bei.util.EmptyUtil;
|
|
|
import kd.bos.logging.Log;
|
|
import kd.bos.logging.Log;
|
|
|
import kd.bos.logging.LogFactory;
|
|
import kd.bos.logging.LogFactory;
|
|
|
import kd.bos.orm.query.QCP;
|
|
import kd.bos.orm.query.QCP;
|
|
@@ -159,8 +160,10 @@ public class BuildApplyBillOpPlugin extends AbstractOperationServicePlugIn imple
|
|
|
applyBill.put("billtype", setSalaryBillEntryTypeId);
|
|
applyBill.put("billtype", setSalaryBillEntryTypeId);
|
|
|
applyBill.put("salaryadjrsn", salaryTypeDyns.get(0).getLong("id"));
|
|
applyBill.put("salaryadjrsn", salaryTypeDyns.get(0).getLong("id"));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
Long positionId = data.getLong("nckd_newposition.id");
|
|
Long positionId = data.getLong("nckd_newposition.id");
|
|
|
- DynamicObject salaryfile = getSalaryFileInfo(employeeId,positionId);
|
|
|
|
|
|
|
+ DynamicObject salaryfile = SWCHelper.getSalaryFileInfo(employeeId,positionId);
|
|
|
|
|
+
|
|
|
applyBillEntry.put("adjfile", salaryfile.getLong("id"));
|
|
applyBillEntry.put("adjfile", salaryfile.getLong("id"));
|
|
|
applyBillEntry.put("employee", employeeId);
|
|
applyBillEntry.put("employee", employeeId);
|
|
|
applyBillEntry.put("standarditem", salaryStdItemId); //定调薪项目 岗位工资标准
|
|
applyBillEntry.put("standarditem", salaryStdItemId); //定调薪项目 岗位工资标准
|
|
@@ -288,28 +291,6 @@ public class BuildApplyBillOpPlugin extends AbstractOperationServicePlugIn imple
|
|
|
return 0L;
|
|
return 0L;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 获取员工定调薪档案 hcdm_adjfileinfo
|
|
|
|
|
- * 员工定调薪档案 会有多条,需要按岗位获取
|
|
|
|
|
- * stdscm.entryentity.salarystandard.id 标准表 ID
|
|
|
|
|
- * @param employeeID 员工ID
|
|
|
|
|
- * @param positionID 岗位ID
|
|
|
|
|
- */
|
|
|
|
|
- public DynamicObject getSalaryFileInfo(Long employeeID, Long positionID){
|
|
|
|
|
-
|
|
|
|
|
- QFilter qFilter = new QFilter("employee.id", QCP.equals, employeeID);
|
|
|
|
|
- QFilter qFilter1 = new QFilter("iscurrentversion", QCP.equals, "1"); // 启用
|
|
|
|
|
- QFilter qFilter2 = new QFilter("datastatus", QCP.equals, "1"); // 启用
|
|
|
|
|
- QFilter qFilter3 = new QFilter("position.id", QCP.equals, positionID);
|
|
|
|
|
- String selectField = "id,boid,number,employee.id,org.id,country.id,salarystructure.id,stdscm.id,empgroup.id,position.nckd_postgrade.id";
|
|
|
|
|
- DynamicObject employeesFiles = QueryServiceHelper.queryOne(FormConstant.HCDM_ADJFILEINFO, selectField, new QFilter[]{qFilter,qFilter1,qFilter2,qFilter3});
|
|
|
|
|
-
|
|
|
|
|
- return employeesFiles;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 获取员工最新的定调薪记录,如果没有,为了拿到标准表数据
|
|
* 获取员工最新的定调薪记录,如果没有,为了拿到标准表数据
|
|
|
* @param adjFileId
|
|
* @param adjFileId
|