lxzn-boot-base-core/src/main/java/org/jeecg/common/util/ImportExcelUtil.java
@@ -39,6 +39,31 @@ } } public static Result<?> imporReturnOperationCertificate(int totalLines,int partSuccessLines,int errorLines,int successLines,List<String> errorMessage) throws IOException { if (errorLines == 0 && partSuccessLines == 0) { return Result.ok("å ±" + successLines + "è¡æ°æ®å ¨é¨å¯¼å ¥æåï¼"); } else { JSONObject result = new JSONObject(5); int totalCount = successLines + errorLines; int fullSuccessLines = successLines - partSuccessLines; result.put("totalCount", totalCount); result.put("errorCount", errorLines); result.put("fullSuccessLines", fullSuccessLines); result.put("totalLines",totalLines); result.put("partSuccessLines",partSuccessLines); result.put("msg", "æ»ä¸ä¼ è¡æ°ï¼" + totalLines + "ï¼å®å ¨å¯¼å ¥æåè¡æ°ï¼" + fullSuccessLines + "ï¼é¨åå¯¼å ¥æåè¡æ°ï¼"+partSuccessLines+"ï¼å¯¼å ¥å¤±è´¥è¡æ°ï¼" + errorLines); String fileUrl = PmsUtil.saveErrorTxtByList(errorMessage, "userImportExcelErrorLog"); int lastIndex = fileUrl.lastIndexOf(File.separator); String fileName = fileUrl.substring(lastIndex + 1); result.put("fileUrl", "/sys/common/static/" + fileUrl); result.put("fileName", fileName); Result res = Result.ok(result); res.setCode(201); res.setMessage("æä»¶å¯¼å ¥æåï¼ä½æé误ã"); return res; } } public static List<String> importDateSave(List<?> list, Class serviceClass, List<String> errorMessage, String errorFlag) { IService bean =(IService) SpringContextUtils.getBean(serviceClass); for (int i = 0; i < list.size(); i++) { lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/OperationCertificateController.java
@@ -3,6 +3,7 @@ import java.io.UnsupportedEncodingException; import java.io.IOException; import java.net.URLDecoder; import java.text.SimpleDateFormat; import java.time.LocalDate; import java.util.*; import java.util.stream.Collectors; @@ -10,9 +11,20 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; import org.apache.poi.hssf.usermodel.HSSFDateUtil; import org.jeecg.common.constant.CommonConstant; import org.jeecg.common.util.DateUtils; import org.jeecg.modules.eam.entity.OperationCertificateApplyDetail; import org.jeecg.modules.eam.service.IdentityService; import org.jeecg.common.util.ImportExcelUtil; import org.jeecg.modules.eam.entity.*; import org.jeecg.modules.eam.service.*; import org.jeecg.modules.eam.vo.OperationCertificateImportVo; import org.jeecg.modules.system.entity.SysDict; import org.jeecg.modules.system.entity.SysDictItem; import org.jeecg.modules.system.entity.SysUser; import org.jeecg.modules.system.service.ISysDictItemService; import org.jeecg.modules.system.service.ISysDictService; import org.jeecg.modules.system.service.ISysUserService; import org.jeecg.modules.system.service.SysIdentityService; import org.jeecgframework.poi.excel.ExcelImportUtil; import org.jeecgframework.poi.excel.def.NormalExcelConstants; @@ -24,11 +36,7 @@ import org.jeecg.common.api.vo.Result; import org.jeecg.common.system.query.QueryGenerator; import org.jeecg.common.util.oConvertUtils; import org.jeecg.modules.eam.entity.OperationCertificateDetail; import org.jeecg.modules.eam.entity.OperationCertificate; import org.jeecg.modules.eam.vo.OperationCertificatePage; import org.jeecg.modules.eam.service.IOperationCertificateService; import org.jeecg.modules.eam.service.IOperationCertificateDetailService; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -62,6 +70,16 @@ @Autowired private IdentityService identityService; @Autowired private ISysUserService userService; @Autowired private IEamEquipmentService equipmentService; @Autowired private IProfessionService professionService; @Autowired private ISysDictService sysDictService; @Autowired private ISysDictItemService sysDictItemService; /** * å页å表æ¥è¯¢ @@ -259,36 +277,120 @@ */ //@RequiresPermissions("org.jeecg.modules.mdc:mom_eam_operation_certificate:importExcel") @RequestMapping(value = "/importExcel", method = RequestMethod.POST) public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) throws IOException { MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; Map<String, MultipartFile> fileMap = multipartRequest.getFileMap(); // éè¯¯ä¿¡æ¯ List<String> errorMessage = new ArrayList<>(); int successLines = 0, errorLines = 0,totalLines = 0,partSuccessLines = 0; for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) { // è·åä¸ä¼ æä»¶å¯¹è±¡ MultipartFile file = entity.getValue(); ImportParams params = new ImportParams(); params.setTitleRows(2); params.setHeadRows(1); params.setNeedSave(true); try { List<OperationCertificatePage> list = ExcelImportUtil.importExcel(file.getInputStream(), OperationCertificatePage.class, params); for (OperationCertificatePage page : list) { OperationCertificate po = new OperationCertificate(); BeanUtils.copyProperties(page, po); operationCertificateService.saveMain(po, page.getOperationCertificateDetailList()); List<OperationCertificateImportVo> list = ExcelImportUtil.importExcel(file.getInputStream(), OperationCertificateImportVo.class, params); totalLines = list.size(); for (int i = 0; i < list.size(); i++) { OperationCertificateImportVo operationCertificateImportVo = list.get(i); OperationCertificate operationCertificate = new OperationCertificate(); operationCertificate.setNum(identityService.getNumByTypeAndLength("OperationCertificate",4)); //æ ¹æ®äººåå§åæ¥è¯¢äººåid List<SysUser> userList = userService.lambdaQuery().eq(SysUser::getRealname,operationCertificateImportVo.getName().trim()) .eq(SysUser::getWorkNo,operationCertificateImportVo.getWorkNo().trim()).eq(SysUser::getDelFlag, CommonConstant.DEL_FLAG_0).list(); if(CollectionUtils.isEmpty(userList)){ errorMessage.add("第" + (i + 1) + "è¡å¯¼å ¥å¤±è´¥,åå :人åä¸å卿工ä½è¯å·ä¸äººåå§åä¸å¹é ,请å ç»´æ¤äººåä¿¡æ¯;"); errorLines++; continue; }else{ operationCertificate.setUserId(userList.get(0).getUsername()); } return Result.OK("æä»¶å¯¼å ¥æåï¼æ°æ®è¡æ°:" + list.size()); //å·¥ç§æ¥è¯¢ Profession profession = professionService.lambdaQuery().eq(Profession::getName,operationCertificateImportVo.getProfession().trim()).eq(Profession::getDelFlag,CommonConstant.DEL_FLAG_0).one(); if(profession == null){ Profession profession1 = new Profession(); profession1.setNum(identityService.getNumByTypeAndLength("Profession",4)); profession1.setName(operationCertificateImportVo.getProfession().trim()); professionService.save(profession1); operationCertificate.setProfession(profession1.getId()); }else { operationCertificate.setProfession(profession.getId()); } //æè½ççº§å¤æ if(CollectionUtils.isEmpty(sysDictItemService.lambdaQuery().eq(SysDictItem::getDictId,sysDictService.lambdaQuery().eq(SysDict::getDictCode,"technical_level").one().getId()).eq(SysDictItem::getItemText,operationCertificateImportVo.getTechnicalLevel().trim()).list())){ errorMessage.add("第" + (i + 1) + "è¡å¯¼å ¥å¤±è´¥,åå :æè½ç级ä¸åå¨,请å ç»´æ¤æè½ç级;"); errorLines++; continue; }else{ operationCertificate.setTechnicalLevel(sysDictItemService.lambdaQuery().eq(SysDictItem::getDictId,sysDictService.lambdaQuery().eq(SysDict::getDictCode,"technical_level").one().getId()).eq(SysDictItem::getItemText,operationCertificateImportVo.getTechnicalLevel().trim()).one().getItemValue()); } SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); operationCertificate.setIssueDate(operationCertificateImportVo.getIssueDate()); operationCertificate.setStartTime(operationCertificateImportVo.getIssueDate()); Date currentDate = operationCertificateImportVo.getIssueDate(); Calendar c = Calendar.getInstance(); c.setTime(currentDate); c.add(Calendar.YEAR, 1); currentDate = c.getTime(); operationCertificate.setEndTime(currentDate); operationCertificate.setCurrentCycleScore(12); operationCertificate.setRemark(operationCertificateImportVo.getRemark()); List<String> equipments = Arrays.asList(operationCertificateImportVo.getEquipmentNum().split("/")); List<String> equipmentIds = new ArrayList<>(); int a = 0; for(int j = 0; j<equipments.size();j++){ List<Equipment> equipmentList = equipmentService.lambdaQuery().eq(Equipment::getNum,equipments.get(j)).eq(Equipment::getDelFlag,CommonConstant.DEL_FLAG_0).list(); if(CollectionUtils.isNotEmpty(equipmentList)){ equipmentIds.add(equipmentList.get(0).getId()); }else { errorMessage.add("第" + (i + 1) + "è¡ç»ä¸ç¼å·ä¸º"+equipments.get(j)+"ç设å¤å¯¼å ¥å¤±è´¥,åå :设å¤å°è´¦ä¸ä¸åå¨è¯¥è®¾å¤,请å ç»´æ¤è®¾å¤ä¿¡æ¯;"); a++; continue; } } if(a == equipments.size()){ errorLines++; a = 0; continue; }else if(a > 0 && a < equipments.size()){ partSuccessLines++; a = 0; } if(CollectionUtils.isEmpty(equipmentIds)){ errorMessage.add("第" + (i + 1) + "è¡å¯¼å ¥å¤±è´¥,åå :设å¤ä¸åå¨,请å ç»´æ¤è®¾å¤ä¿¡æ¯;"); errorLines++; continue; }else{ operationCertificate.setEquipmentIds(equipmentIds.stream().map(String::toString).collect(Collectors.joining(","))); } operationCertificate.setStatus("1"); //æ¥è¯¢å½åäººåæ¯å¦å·²ææä½è¯ List<OperationCertificate> operationCertificateList = operationCertificateService.lambdaQuery().eq(OperationCertificate::getUserId,userList.get(0).getUsername()).eq(OperationCertificate::getDelFlag,CommonConstant.DEL_FLAG_0).list(); if(CollectionUtils.isEmpty(operationCertificateList)){ operationCertificateService.save(operationCertificate); }else { //å°è®¾å¤å¢å å°æä½è¯ String newEquipmentIds = operationCertificateList.get(0).getEquipmentIds().concat(",").concat(operationCertificate.getEquipmentIds()); operationCertificate.setId(operationCertificateList.get(0).getId()); HashSet<String> set = new HashSet<String>(Arrays.asList(newEquipmentIds.split(","))); operationCertificate.setEquipmentIds(set.stream().collect(Collectors.joining(","))); operationCertificateService.updateById(operationCertificate); } successLines++; } } catch (Exception e) { errorMessage.add("åçå¼å¸¸ï¼" + e.getMessage()); log.error(e.getMessage(),e); return Result.error("æä»¶å¯¼å ¥å¤±è´¥:"+e.getMessage()); return (Result<?>) errorMessage; } finally { try { file.getInputStream().close(); } catch (IOException e) { e.printStackTrace(); log.error(e.getMessage(), e); } } } return Result.OK("æä»¶å¯¼å ¥å¤±è´¥ï¼"); return ImportExcelUtil.imporReturnOperationCertificate(totalLines,partSuccessLines,errorLines, successLines, errorMessage); } /** * éè¿ä¸»è¡¨IDæ¥è¯¢ lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/ProfessionController.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,177 @@ package org.jeecg.modules.eam.controller; import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.stream.Collectors; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.jeecg.common.api.vo.Result; import org.jeecg.common.system.query.QueryGenerator; import org.jeecg.common.util.oConvertUtils; import org.jeecg.modules.eam.entity.Profession; import org.jeecg.modules.eam.service.IProfessionService; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import lombok.extern.slf4j.Slf4j; import org.jeecgframework.poi.excel.ExcelImportUtil; import org.jeecgframework.poi.excel.def.NormalExcelConstants; import org.jeecgframework.poi.excel.entity.ExportParams; import org.jeecgframework.poi.excel.entity.ImportParams; import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; import org.jeecg.common.system.base.controller.JeecgController; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartHttpServletRequest; import org.springframework.web.servlet.ModelAndView; import com.alibaba.fastjson.JSON; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.jeecg.common.aspect.annotation.AutoLog; /** * @Description: mom_eam_profession * @Author: jeecg-boot * @Date: 2023-10-30 * @Version: V1.0 */ @Api(tags="mom_eam_profession") @RestController @RequestMapping("/eam/profession") @Slf4j public class ProfessionController extends JeecgController<Profession, IProfessionService> { @Autowired private IProfessionService professionService; /** * å页å表æ¥è¯¢ * * @param profession * @param pageNo * @param pageSize * @param req * @return */ //@AutoLog(value = "mom_eam_profession-å页å表æ¥è¯¢") @ApiOperation(value="mom_eam_profession-å页å表æ¥è¯¢", notes="mom_eam_profession-å页å表æ¥è¯¢") @GetMapping(value = "/list") public Result<IPage<Profession>> queryPageList(Profession profession, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, HttpServletRequest req) { QueryWrapper<Profession> queryWrapper = QueryGenerator.initQueryWrapper(profession, req.getParameterMap()); Page<Profession> page = new Page<Profession>(pageNo, pageSize); IPage<Profession> pageList = professionService.page(page, queryWrapper); return Result.OK(pageList); } /** * æ·»å * * @param profession * @return */ @AutoLog(value = "mom_eam_profession-æ·»å ") @ApiOperation(value="mom_eam_profession-æ·»å ", notes="mom_eam_profession-æ·»å ") //@RequiresPermissions("org.jeecg.modules.mdc:mom_eam_profession:add") @PostMapping(value = "/add") public Result<String> add(@RequestBody Profession profession) { professionService.save(profession); return Result.OK("æ·»å æåï¼"); } /** * ç¼è¾ * * @param profession * @return */ @AutoLog(value = "mom_eam_profession-ç¼è¾") @ApiOperation(value="mom_eam_profession-ç¼è¾", notes="mom_eam_profession-ç¼è¾") //@RequiresPermissions("org.jeecg.modules.mdc:mom_eam_profession:edit") @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) public Result<String> edit(@RequestBody Profession profession) { professionService.updateById(profession); return Result.OK("ç¼è¾æå!"); } /** * éè¿idå é¤ * * @param id * @return */ @AutoLog(value = "mom_eam_profession-éè¿idå é¤") @ApiOperation(value="mom_eam_profession-éè¿idå é¤", notes="mom_eam_profession-éè¿idå é¤") //@RequiresPermissions("org.jeecg.modules.mdc:mom_eam_profession:delete") @DeleteMapping(value = "/delete") public Result<String> delete(@RequestParam(name="id",required=true) String id) { professionService.removeById(id); return Result.OK("å 餿å!"); } /** * æ¹éå é¤ * * @param ids * @return */ @AutoLog(value = "mom_eam_profession-æ¹éå é¤") @ApiOperation(value="mom_eam_profession-æ¹éå é¤", notes="mom_eam_profession-æ¹éå é¤") //@RequiresPermissions("org.jeecg.modules.mdc:mom_eam_profession:deleteBatch") @DeleteMapping(value = "/deleteBatch") public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { this.professionService.removeByIds(Arrays.asList(ids.split(","))); return Result.OK("æ¹éå 餿å!"); } /** * éè¿idæ¥è¯¢ * * @param id * @return */ //@AutoLog(value = "mom_eam_profession-éè¿idæ¥è¯¢") @ApiOperation(value="mom_eam_profession-éè¿idæ¥è¯¢", notes="mom_eam_profession-éè¿idæ¥è¯¢") @GetMapping(value = "/queryById") public Result<Profession> queryById(@RequestParam(name="id",required=true) String id) { Profession profession = professionService.getById(id); if(profession==null) { return Result.error("æªæ¾å°å¯¹åºæ°æ®"); } return Result.OK(profession); } /** * 导åºexcel * * @param request * @param profession */ //@RequiresPermissions("org.jeecg.modules.mdc:mom_eam_profession:exportXls") @RequestMapping(value = "/exportXls") public ModelAndView exportXls(HttpServletRequest request, Profession profession) { return super.exportXls(request, profession, Profession.class, "mom_eam_profession"); } /** * éè¿excelå¯¼å ¥æ°æ® * * @param request * @param response * @return */ //@RequiresPermissions("mom_eam_profession:importExcel") @RequestMapping(value = "/importExcel", method = RequestMethod.POST) public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { return super.importExcel(request, response, Profession.class); } } lxzn-module-eam/src/main/java/org/jeecg/modules/eam/entity/OperationCertificate.java
@@ -109,4 +109,14 @@ @Excel(name = "屿§å段5", width = 15) @ApiModelProperty(value = "屿§å段5") private String uda5; /**å·¥ç§*/ @Excel(name = "å·¥ç§", width = 15) @ApiModelProperty(value = "å·¥ç§") private String profession; /**æè½ç级*/ @Excel(name = "æè½ç级", width = 15) @ApiModelProperty(value = "æè½ç级") private String technicalLevel; } lxzn-module-eam/src/main/java/org/jeecg/modules/eam/entity/Profession.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,101 @@ package org.jeecg.modules.eam.entity; import java.io.Serializable; import java.io.UnsupportedEncodingException; import java.util.Date; import java.math.BigDecimal; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableLogic; import lombok.Data; import com.fasterxml.jackson.annotation.JsonFormat; import org.jeecg.common.constant.CommonConstant; import org.springframework.format.annotation.DateTimeFormat; import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecg.common.aspect.annotation.Dict; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; /** * @Description: mom_eam_profession * @Author: jeecg-boot * @Date: 2023-10-30 * @Version: V1.0 */ @Data @TableName("mom_eam_profession") @Accessors(chain = true) @EqualsAndHashCode(callSuper = false) @ApiModel(value="mom_eam_profession对象", description="mom_eam_profession") public class Profession implements Serializable { private static final long serialVersionUID = 1L; /**id*/ @TableId(type = IdType.ASSIGN_ID) @ApiModelProperty(value = "id") private String id; /**num*/ @Excel(name = "num", width = 15) @ApiModelProperty(value = "num") private String num; /**name*/ @Excel(name = "name", width = 15) @ApiModelProperty(value = "name") private String name; /**remark*/ @Excel(name = "remark", width = 15) @ApiModelProperty(value = "remark") private String remark; /**createBy*/ @ApiModelProperty(value = "createBy") private String createBy; /**createTime*/ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd") @ApiModelProperty(value = "createTime") private Date createTime; /**updateBy*/ @ApiModelProperty(value = "updateBy") private String updateBy; /**updateTime*/ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd") @ApiModelProperty(value = "updateTime") private Date updateTime; /**tenantId*/ @Excel(name = "tenantId", width = 15) @ApiModelProperty(value = "tenantId") private String tenantId; /**delFlag*/ @Excel(name = "delFlag", width = 15) @ApiModelProperty(value = "delFlag") @TableLogic private Integer delFlag = CommonConstant.DEL_FLAG_0; /**status*/ @Excel(name = "status", width = 15) @ApiModelProperty(value = "status") private String status; /**uda1*/ @Excel(name = "uda1", width = 15) @ApiModelProperty(value = "uda1") private String uda1; /**uda2*/ @Excel(name = "uda2", width = 15) @ApiModelProperty(value = "uda2") private String uda2; /**uda3*/ @Excel(name = "uda3", width = 15) @ApiModelProperty(value = "uda3") private String uda3; /**uda4*/ @Excel(name = "uda4", width = 15) @ApiModelProperty(value = "uda4") private String uda4; /**uda5*/ @Excel(name = "uda5", width = 15) @ApiModelProperty(value = "uda5") private String uda5; } lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/ProfessionMapper.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,17 @@ package org.jeecg.modules.eam.mapper; import java.util.List; import org.apache.ibatis.annotations.Param; import org.jeecg.modules.eam.entity.Profession; import com.baomidou.mybatisplus.core.mapper.BaseMapper; /** * @Description: mom_eam_profession * @Author: jeecg-boot * @Date: 2023-10-30 * @Version: V1.0 */ public interface ProfessionMapper extends BaseMapper<Profession> { } lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/ProfessionMapper.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="org.jeecg.modules.eam.mapper.ProfessionMapper"> </mapper> lxzn-module-eam/src/main/java/org/jeecg/modules/eam/service/IProfessionService.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,14 @@ package org.jeecg.modules.eam.service; import org.jeecg.modules.eam.entity.Profession; import com.baomidou.mybatisplus.extension.service.IService; /** * @Description: mom_eam_profession * @Author: jeecg-boot * @Date: 2023-10-30 * @Version: V1.0 */ public interface IProfessionService extends IService<Profession> { } lxzn-module-eam/src/main/java/org/jeecg/modules/eam/service/impl/ProfessionServiceImpl.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,19 @@ package org.jeecg.modules.eam.service.impl; import org.jeecg.modules.eam.entity.Profession; import org.jeecg.modules.eam.mapper.ProfessionMapper; import org.jeecg.modules.eam.service.IProfessionService; import org.springframework.stereotype.Service; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; /** * @Description: mom_eam_profession * @Author: jeecg-boot * @Date: 2023-10-30 * @Version: V1.0 */ @Service public class ProfessionServiceImpl extends ServiceImpl<ProfessionMapper, Profession> implements IProfessionService { } lxzn-module-eam/src/main/java/org/jeecg/modules/eam/vo/OperationCertificateImportVo.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,48 @@ package org.jeecg.modules.eam.vo; import lombok.Data; import lombok.experimental.Accessors; import org.jeecgframework.poi.excel.annotation.Excel; import java.math.BigDecimal; import java.util.Date; @Data @Accessors(chain = true) public class OperationCertificateImportVo { @Excel(name= "å§å") private String name; @Excel(name="æ§å«") private String sex; @Excel(name = "å·¥ç§") private String profession; @Excel(name = "æè½ç级") private String technicalLevel; @Excel(name = "å·¥ä½è¯å·") private String workNo; @Excel(name = "ä¸å²è¯å·") private String appointmentCardNum; @Excel(name = "ç»ä¸ç¼å·") private String equipmentNum; @Excel(name = "设å¤åç§°") private String equipmentName; @Excel(name = "设å¤åå·") private String equipmentModel; @Excel(name = "åè¯æ¥æ") private Date issueDate; @Excel(name = "夿³¨") private String remark; } lxzn-module-system/lxzn-system-biz/src/main/java/org/jeecg/modules/system/entity/SysUser.java
@@ -197,4 +197,6 @@ private String homePath; @Dict(dicCode = "id",dictTable = "mom_base_team",dicText = "name") private String teamId; }