|
|
|
|
@ -196,7 +196,7 @@ public class CostCalculationEmployeeController extends BladeController { |
|
|
|
|
List<CostCalculationEmployeeEntity> list = new ArrayList<>(); |
|
|
|
|
for(CostCalculationEmployeeExcel employExcel : importList){ |
|
|
|
|
//根据员工编号查询,有则删除
|
|
|
|
|
CostCalculationEmployeeEntity old = costCalculationEmployeeService.getOne(Wrappers.<CostCalculationEmployeeEntity>lambdaQuery().eq(CostCalculationEmployeeEntity::getEmployeeCode,employExcel.getEmployeeCode())); |
|
|
|
|
CostCalculationEmployeeEntity old = costCalculationEmployeeService.getOne(Wrappers.<CostCalculationEmployeeEntity>lambdaQuery().eq(CostCalculationEmployeeEntity::getEmployeeCode,employExcel.getEmployeeCode()).eq(CostCalculationEmployeeEntity::getWorkCenterName,employExcel.getWorkCenterName())); |
|
|
|
|
if(old != null){ |
|
|
|
|
costCalculationEmployeeService.deleteLogic(Func.toLongList(old.getId().toString())); |
|
|
|
|
} |
|
|
|
|
|