|
|
@ -32,6 +32,7 @@ public class IcTripReportExcelImportListener implements ReadListener<IcTripRepor |
|
|
|
* 当前操作用户 |
|
|
|
*/ |
|
|
|
private CustomerStaffInfoCacheResult staffInfo; |
|
|
|
private String customerId; |
|
|
|
|
|
|
|
/** |
|
|
|
* 数据 |
|
|
@ -45,7 +46,8 @@ public class IcTripReportExcelImportListener implements ReadListener<IcTripRepor |
|
|
|
|
|
|
|
private IcTripReportRecordServiceImpl tripReportRecordService; |
|
|
|
|
|
|
|
public IcTripReportExcelImportListener(CustomerStaffInfoCacheResult staffInfo, IcTripReportRecordServiceImpl tripReportRecordService) { |
|
|
|
public IcTripReportExcelImportListener(String customerId,CustomerStaffInfoCacheResult staffInfo, IcTripReportRecordServiceImpl tripReportRecordService) { |
|
|
|
this.customerId=customerId; |
|
|
|
this.staffInfo = staffInfo; |
|
|
|
this.tripReportRecordService = tripReportRecordService; |
|
|
|
} |
|
|
@ -58,6 +60,7 @@ public class IcTripReportExcelImportListener implements ReadListener<IcTripRepor |
|
|
|
ValidatorUtils.validateEntity(data); |
|
|
|
|
|
|
|
IcTripReportRecordEntity tripReportRecordEntity = ConvertUtils.sourceToTarget(data, IcTripReportRecordEntity.class); |
|
|
|
tripReportRecordEntity.setCustomerId(customerId); |
|
|
|
tripReportRecordEntity.setAgencyId(staffInfo.getAgencyId()); |
|
|
|
tripReportRecordEntity.setPids(staffInfo.getAgencyPIds()); |
|
|
|
tripReportRecordEntity.setUserType(IcResiUserConstant.USER_TYPE_IMPORT); |
|
|
|