@Service public class CompanyImportServiceImpl extends java.lang.Object implements ExcelReaderService
Title: CompanyImportServiceImpl
Description: CompanyImportService实现类
Copyright: 2015~2020
Company/Department: xforceplus
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
ACTION_ADD
新增
|
static java.util.List<java.lang.String> |
ACTION_LIST
操作列表
|
static java.lang.String |
ACTION_UPDATE
修改
|
| 构造器和说明 |
|---|
CompanyImportServiceImpl(com.xforceplus.dao.TenantDao tenantDao,
OrgService orgService,
CompanyService companyService)
默认构建函数
|
| 限定符和类型 | 方法和说明 |
|---|---|
BusinessType |
getBusinessType()
获取导入类型,用于Event事件调整导入方法
|
Context |
importExcel(Context context)
导入定义
|
protected java.lang.Boolean |
isExistedCompanyByTaxNum(CompanyExcelImportDTO dto)
新增情况校验是否已经存在,如果存在则回写错误信息 (只判断公司税号)
|
protected java.lang.Boolean |
isExistedTenantByTenantCode(CompanyExcelImportDTO dto)
检查租户code是否存在,找到对应tenantCode
|
void |
saveImport(MessageRow messageRow,
Context context,
java.util.List<CompanyExcelImportDTO> list)
写入数据
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSheetHeaderNumberpublic static final java.lang.String ACTION_ADD
public static final java.lang.String ACTION_UPDATE
public static final java.util.List<java.lang.String> ACTION_LIST
public CompanyImportServiceImpl(com.xforceplus.dao.TenantDao tenantDao,
OrgService orgService,
CompanyService companyService)
tenantDao - tenantDaoorgService - orgServicecompanyService - companyServicepublic BusinessType getBusinessType()
getBusinessType 在接口中 ExcelReaderServicepublic Context importExcel(Context context)
importExcel 在接口中 ExcelReaderServicecontext - 上下文public void saveImport(MessageRow messageRow, Context context, java.util.List<CompanyExcelImportDTO> list)
messageRow - MessageRowcontext - 上下文list - 数据列表protected java.lang.Boolean isExistedTenantByTenantCode(CompanyExcelImportDTO dto)
dto - CompanyExcelImportDTOprotected java.lang.Boolean isExistedCompanyByTaxNum(CompanyExcelImportDTO dto)
dto - 新增对象