Commit 85f01152 authored by fangxinjiang's avatar fangxinjiang

MVP1.2:项目薪资导入报账 按导入行号升序

parent 97a278ba
...@@ -520,4 +520,7 @@ public class TSalaryAccount extends BaseEntity { ...@@ -520,4 +520,7 @@ public class TSalaryAccount extends BaseEntity {
*/ */
@TableField(exist = false) @TableField(exist = false)
private String salaryMonthEnd; private String salaryMonthEnd;
@ExcelProperty(value = "导入行号")
private int rowIndex;
} }
...@@ -886,11 +886,14 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper, ...@@ -886,11 +886,14 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
} }
} }
TPauseSalary ps; TPauseSalary ps;
int i =1;
for (TSalaryAccount account : aList) { for (TSalaryAccount account : aList) {
saiList = account.getSaiList(); saiList = account.getSaiList();
account.setSaiList(null); account.setSaiList(null);
account.setSalaryFormId(salary.getId()); account.setSalaryFormId(salary.getId());
account.setOrderId(salary.getOrderId()); account.setOrderId(salary.getOrderId());
account.setRowIndex(i);
i++;
tSalaryAccountService.save(account); tSalaryAccountService.save(account);
money = SalaryConstants.B_ZERO; money = SalaryConstants.B_ZERO;
for (TSalaryAccountItem item : saiList) { for (TSalaryAccountItem item : saiList) {
......
...@@ -658,7 +658,7 @@ ...@@ -658,7 +658,7 @@
t_salary_account_hro_2021 a t_salary_account_hro_2021 a
</if> </if>
where a.SALARY_FORM_ID = #{searchVo.salaryFormId} where a.SALARY_FORM_ID = #{searchVo.salaryFormId}
ORDER BY a.CREATE_TIME desc ORDER BY a.ROW_INDEX ASC
</select> </select>
<!-- 计算收入需要的报账明细 --> <!-- 计算收入需要的报账明细 -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment