| | |
| | | import com.alibaba.excel.exception.ExcelDataConvertException; |
| | | import org.dromara.common.core.constant.CacheConstants; |
| | | import org.dromara.common.core.constant.Constants; |
| | | import org.dromara.common.core.constant.DictConstants; |
| | | import org.dromara.common.core.exception.ServiceException; |
| | | import org.dromara.common.core.service.DictService; |
| | | import org.dromara.common.core.utils.DateUtils; |
| | |
| | | this.dictService = SpringUtils.getBean(DictService.class); |
| | | this.isUpdateSupport = isUpdateSupport; |
| | | this.operUserId = LoginHelper.getUserId(); |
| | | this.unitDictMap = dictService.getAllDictByDictType(CacheConstants.EIMS_EQU_UNIT); |
| | | this.unitDictMap = dictService.getAllDictByDictType(DictConstants.EIMS_EQU_UNIT); |
| | | } |
| | | |
| | | @Override |
| | |
| | | //ValidatorUtils.validate(equ); |
| | | |
| | | //添加字段默认属性 |
| | | equ.setImportStatus(dictService.getDictValue(CacheConstants.EIMS_IMPORT_STATUS,"新导入")); |
| | | equ.setImportStatus(dictService.getDictValue(DictConstants.EIMS_IMPORT_STATUS,"新导入")); |
| | | equ.setCreateBy(operUserId); |
| | | equService.insertByBo(equ); |
| | | successNum++; |