¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.DeductionItem; |
| | | import org.jeecg.modules.eam.service.IDeductionItemService; |
| | | |
| | | 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: æä½è®¡åè§å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="æä½è®¡åè§å") |
| | | @RestController |
| | | @RequestMapping("/eam/deductionItem") |
| | | @Slf4j |
| | | public class DeductionItemController extends JeecgController<DeductionItem, IDeductionItemService> { |
| | | @Autowired |
| | | private IDeductionItemService deductionItemService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param deductionItem |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "æä½è®¡åè§å-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="æä½è®¡åè§å-å页å表æ¥è¯¢", notes="æä½è®¡åè§å-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<DeductionItem>> queryPageList(DeductionItem deductionItem, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<DeductionItem> queryWrapper = QueryGenerator.initQueryWrapper(deductionItem, req.getParameterMap()); |
| | | Page<DeductionItem> page = new Page<DeductionItem>(pageNo, pageSize); |
| | | IPage<DeductionItem> pageList = deductionItemService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param deductionItem |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "æä½è®¡åè§å-æ·»å ") |
| | | @ApiOperation(value="æä½è®¡åè§å-æ·»å ", notes="æä½è®¡åè§å-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules.mdc:mom_eam_base_deduction_item:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody DeductionItem deductionItem) { |
| | | deductionItemService.save(deductionItem); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param deductionItem |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "æä½è®¡åè§å-ç¼è¾") |
| | | @ApiOperation(value="æä½è®¡åè§å-ç¼è¾", notes="æä½è®¡åè§å-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules.mdc:mom_eam_base_deduction_item:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody DeductionItem deductionItem) { |
| | | deductionItemService.updateById(deductionItem); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "æä½è®¡åè§å-éè¿idå é¤") |
| | | @ApiOperation(value="æä½è®¡åè§å-éè¿idå é¤", notes="æä½è®¡åè§å-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules.mdc:mom_eam_base_deduction_item:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | deductionItemService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "æä½è®¡åè§å-æ¹éå é¤") |
| | | @ApiOperation(value="æä½è®¡åè§å-æ¹éå é¤", notes="æä½è®¡åè§å-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules.mdc:mom_eam_base_deduction_item:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.deductionItemService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "æä½è®¡åè§å-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="æä½è®¡åè§å-éè¿idæ¥è¯¢", notes="æä½è®¡åè§å-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<DeductionItem> queryById(@RequestParam(name="id",required=true) String id) { |
| | | DeductionItem deductionItem = deductionItemService.getById(id); |
| | | if(deductionItem==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(deductionItem); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param deductionItem |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules.mdc:mom_eam_base_deduction_item:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, DeductionItem deductionItem) { |
| | | return super.exportXls(request, deductionItem, DeductionItem.class, "æä½è®¡åè§å"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("mom_eam_base_deduction_item:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, DeductionItem.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.controller; |
| | | |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.io.IOException; |
| | | import java.net.URLDecoder; |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | 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.vo.LoginUser; |
| | | import org.apache.shiro.SecurityUtils; |
| | | 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.OperationCertificateApplyDetail; |
| | | import org.jeecg.modules.eam.entity.OperationCertificateApply; |
| | | import org.jeecg.modules.eam.vo.OperationCertificateApplyPage; |
| | | import org.jeecg.modules.eam.service.IOperationCertificateApplyService; |
| | | import org.jeecg.modules.eam.service.IOperationCertificateApplyDetailService; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import org.springframework.web.multipart.MultipartHttpServletRequest; |
| | | 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 com.alibaba.fastjson.JSON; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | |
| | | /** |
| | | * @Description: æä½è¯ç³è¯·è¡¨ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="æä½è¯ç³è¯·è¡¨") |
| | | @RestController |
| | | @RequestMapping("/eam/operationCertificateApply") |
| | | @Slf4j |
| | | public class OperationCertificateApplyController { |
| | | @Autowired |
| | | private IOperationCertificateApplyService operationCertificateApplyService; |
| | | @Autowired |
| | | private IOperationCertificateApplyDetailService operationCertificateApplyDetailService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param operationCertificateApply |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "æä½è¯ç³è¯·è¡¨-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="æä½è¯ç³è¯·è¡¨-å页å表æ¥è¯¢", notes="æä½è¯ç³è¯·è¡¨-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<OperationCertificateApply>> queryPageList(OperationCertificateApply operationCertificateApply, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<OperationCertificateApply> queryWrapper = QueryGenerator.initQueryWrapper(operationCertificateApply, req.getParameterMap()); |
| | | Page<OperationCertificateApply> page = new Page<OperationCertificateApply>(pageNo, pageSize); |
| | | IPage<OperationCertificateApply> pageList = operationCertificateApplyService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param operationCertificateApplyPage |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "æä½è¯ç³è¯·è¡¨-æ·»å ") |
| | | @ApiOperation(value="æä½è¯ç³è¯·è¡¨-æ·»å ", notes="æä½è¯ç³è¯·è¡¨-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules.mdc:mom_eam_operation_certificate_apply:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody OperationCertificateApplyPage operationCertificateApplyPage) { |
| | | OperationCertificateApply operationCertificateApply = new OperationCertificateApply(); |
| | | BeanUtils.copyProperties(operationCertificateApplyPage, operationCertificateApply); |
| | | operationCertificateApplyService.saveMain(operationCertificateApply, operationCertificateApplyPage.getOperationCertificateApplyDetailList()); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param operationCertificateApplyPage |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "æä½è¯ç³è¯·è¡¨-ç¼è¾") |
| | | @ApiOperation(value="æä½è¯ç³è¯·è¡¨-ç¼è¾", notes="æä½è¯ç³è¯·è¡¨-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules.mdc:mom_eam_operation_certificate_apply:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody OperationCertificateApplyPage operationCertificateApplyPage) { |
| | | OperationCertificateApply operationCertificateApply = new OperationCertificateApply(); |
| | | BeanUtils.copyProperties(operationCertificateApplyPage, operationCertificateApply); |
| | | OperationCertificateApply operationCertificateApplyEntity = operationCertificateApplyService.getById(operationCertificateApply.getId()); |
| | | if(operationCertificateApplyEntity==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | operationCertificateApplyService.updateMain(operationCertificateApply, operationCertificateApplyPage.getOperationCertificateApplyDetailList()); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "æä½è¯ç³è¯·è¡¨-éè¿idå é¤") |
| | | @ApiOperation(value="æä½è¯ç³è¯·è¡¨-éè¿idå é¤", notes="æä½è¯ç³è¯·è¡¨-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules.mdc:mom_eam_operation_certificate_apply:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | operationCertificateApplyService.delMain(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "æä½è¯ç³è¯·è¡¨-æ¹éå é¤") |
| | | @ApiOperation(value="æä½è¯ç³è¯·è¡¨-æ¹éå é¤", notes="æä½è¯ç³è¯·è¡¨-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules.mdc:mom_eam_operation_certificate_apply:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.operationCertificateApplyService.delBatchMain(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿åï¼"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "æä½è¯ç³è¯·è¡¨-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="æä½è¯ç³è¯·è¡¨-éè¿idæ¥è¯¢", notes="æä½è¯ç³è¯·è¡¨-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<OperationCertificateApply> queryById(@RequestParam(name="id",required=true) String id) { |
| | | OperationCertificateApply operationCertificateApply = operationCertificateApplyService.getById(id); |
| | | if(operationCertificateApply==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(operationCertificateApply); |
| | | |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "æä½è¯ç³è¯·æç»è¡¨éè¿ä¸»è¡¨IDæ¥è¯¢") |
| | | @ApiOperation(value="æä½è¯ç³è¯·æç»è¡¨ä¸»è¡¨IDæ¥è¯¢", notes="æä½è¯ç³è¯·æç»è¡¨-é主表IDæ¥è¯¢") |
| | | @GetMapping(value = "/queryOperationCertificateApplyDetailByMainId") |
| | | public Result<List<OperationCertificateApplyDetail>> queryOperationCertificateApplyDetailListByMainId(@RequestParam(name="id",required=true) String id) { |
| | | List<OperationCertificateApplyDetail> operationCertificateApplyDetailList = operationCertificateApplyDetailService.selectByMainId(id); |
| | | return Result.OK(operationCertificateApplyDetailList); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param operationCertificateApply |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules.mdc:mom_eam_operation_certificate_apply:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, OperationCertificateApply operationCertificateApply) { |
| | | // Step.1 ç»è£
æ¥è¯¢æ¡ä»¶æ¥è¯¢æ°æ® |
| | | QueryWrapper<OperationCertificateApply> queryWrapper = QueryGenerator.initQueryWrapper(operationCertificateApply, request.getParameterMap()); |
| | | LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | |
| | | //é
ç½®é䏿°æ®æ¥è¯¢æ¡ä»¶ |
| | | String selections = request.getParameter("selections"); |
| | | if(oConvertUtils.isNotEmpty(selections)) { |
| | | List<String> selectionList = Arrays.asList(selections.split(",")); |
| | | queryWrapper.in("id",selectionList); |
| | | } |
| | | //Step.2 è·åå¯¼åºæ°æ® |
| | | List<OperationCertificateApply> operationCertificateApplyList = operationCertificateApplyService.list(queryWrapper); |
| | | |
| | | // Step.3 ç»è£
pageList |
| | | List<OperationCertificateApplyPage> pageList = new ArrayList<OperationCertificateApplyPage>(); |
| | | for (OperationCertificateApply main : operationCertificateApplyList) { |
| | | OperationCertificateApplyPage vo = new OperationCertificateApplyPage(); |
| | | BeanUtils.copyProperties(main, vo); |
| | | List<OperationCertificateApplyDetail> operationCertificateApplyDetailList = operationCertificateApplyDetailService.selectByMainId(main.getId()); |
| | | vo.setOperationCertificateApplyDetailList(operationCertificateApplyDetailList); |
| | | pageList.add(vo); |
| | | } |
| | | |
| | | // Step.4 AutoPoi 导åºExcel |
| | | ModelAndView mv = new ModelAndView(new JeecgEntityExcelView()); |
| | | mv.addObject(NormalExcelConstants.FILE_NAME, "æä½è¯ç³è¯·è¡¨å表"); |
| | | mv.addObject(NormalExcelConstants.CLASS, OperationCertificateApplyPage.class); |
| | | mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("æä½è¯ç³è¯·è¡¨æ°æ®", "导åºäºº:"+sysUser.getRealname(), "æä½è¯ç³è¯·è¡¨")); |
| | | mv.addObject(NormalExcelConstants.DATA_LIST, pageList); |
| | | return mv; |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules.mdc:mom_eam_operation_certificate_apply:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; |
| | | Map<String, MultipartFile> fileMap = multipartRequest.getFileMap(); |
| | | 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<OperationCertificateApplyPage> list = ExcelImportUtil.importExcel(file.getInputStream(), OperationCertificateApplyPage.class, params); |
| | | for (OperationCertificateApplyPage page : list) { |
| | | OperationCertificateApply po = new OperationCertificateApply(); |
| | | BeanUtils.copyProperties(page, po); |
| | | operationCertificateApplyService.saveMain(po, page.getOperationCertificateApplyDetailList()); |
| | | } |
| | | return Result.OK("æä»¶å¯¼å
¥æåï¼æ°æ®è¡æ°:" + list.size()); |
| | | } catch (Exception e) { |
| | | log.error(e.getMessage(),e); |
| | | return Result.error("æä»¶å¯¼å
¥å¤±è´¥:"+e.getMessage()); |
| | | } finally { |
| | | try { |
| | | file.getInputStream().close(); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | } |
| | | return Result.OK("æä»¶å¯¼å
¥å¤±è´¥ï¼"); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.controller; |
| | | |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.io.IOException; |
| | | import java.net.URLDecoder; |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | 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.vo.LoginUser; |
| | | import org.apache.shiro.SecurityUtils; |
| | | 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.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import org.springframework.web.multipart.MultipartHttpServletRequest; |
| | | 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 com.alibaba.fastjson.JSON; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | |
| | | /** |
| | | * @Description: æä½è¯ä¹¦ç®¡ç |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="æä½è¯ä¹¦ç®¡ç") |
| | | @RestController |
| | | @RequestMapping("/eam/operationCertificate") |
| | | @Slf4j |
| | | public class OperationCertificateController { |
| | | @Autowired |
| | | private IOperationCertificateService operationCertificateService; |
| | | @Autowired |
| | | private IOperationCertificateDetailService operationCertificateDetailService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param operationCertificate |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "æä½è¯ä¹¦ç®¡ç-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="æä½è¯ä¹¦ç®¡ç-å页å表æ¥è¯¢", notes="æä½è¯ä¹¦ç®¡ç-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<OperationCertificate>> queryPageList(OperationCertificate operationCertificate, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<OperationCertificate> queryWrapper = QueryGenerator.initQueryWrapper(operationCertificate, req.getParameterMap()); |
| | | Page<OperationCertificate> page = new Page<OperationCertificate>(pageNo, pageSize); |
| | | IPage<OperationCertificate> pageList = operationCertificateService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param operationCertificatePage |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "æä½è¯ä¹¦ç®¡ç-æ·»å ") |
| | | @ApiOperation(value="æä½è¯ä¹¦ç®¡ç-æ·»å ", notes="æä½è¯ä¹¦ç®¡ç-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules.mdc:mom_eam_operation_certificate:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody OperationCertificatePage operationCertificatePage) { |
| | | OperationCertificate operationCertificate = new OperationCertificate(); |
| | | BeanUtils.copyProperties(operationCertificatePage, operationCertificate); |
| | | operationCertificateService.saveMain(operationCertificate, operationCertificatePage.getOperationCertificateDetailList()); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param operationCertificatePage |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "æä½è¯ä¹¦ç®¡ç-ç¼è¾") |
| | | @ApiOperation(value="æä½è¯ä¹¦ç®¡ç-ç¼è¾", notes="æä½è¯ä¹¦ç®¡ç-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules.mdc:mom_eam_operation_certificate:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody OperationCertificatePage operationCertificatePage) { |
| | | OperationCertificate operationCertificate = new OperationCertificate(); |
| | | BeanUtils.copyProperties(operationCertificatePage, operationCertificate); |
| | | OperationCertificate operationCertificateEntity = operationCertificateService.getById(operationCertificate.getId()); |
| | | if(operationCertificateEntity==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | operationCertificateService.updateMain(operationCertificate, operationCertificatePage.getOperationCertificateDetailList()); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "æä½è¯ä¹¦ç®¡ç-éè¿idå é¤") |
| | | @ApiOperation(value="æä½è¯ä¹¦ç®¡ç-éè¿idå é¤", notes="æä½è¯ä¹¦ç®¡ç-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules.mdc:mom_eam_operation_certificate:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | operationCertificateService.delMain(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "æä½è¯ä¹¦ç®¡ç-æ¹éå é¤") |
| | | @ApiOperation(value="æä½è¯ä¹¦ç®¡ç-æ¹éå é¤", notes="æä½è¯ä¹¦ç®¡ç-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules.mdc:mom_eam_operation_certificate:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.operationCertificateService.delBatchMain(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿åï¼"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "æä½è¯ä¹¦ç®¡ç-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="æä½è¯ä¹¦ç®¡ç-éè¿idæ¥è¯¢", notes="æä½è¯ä¹¦ç®¡ç-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<OperationCertificate> queryById(@RequestParam(name="id",required=true) String id) { |
| | | OperationCertificate operationCertificate = operationCertificateService.getById(id); |
| | | if(operationCertificate==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(operationCertificate); |
| | | |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "æä½è¯ç®¡çæç»éè¿ä¸»è¡¨IDæ¥è¯¢") |
| | | @ApiOperation(value="æä½è¯ç®¡çæç»ä¸»è¡¨IDæ¥è¯¢", notes="æä½è¯ç®¡çæç»-é主表IDæ¥è¯¢") |
| | | @GetMapping(value = "/queryOperationCertificateDetailByMainId") |
| | | public Result<List<OperationCertificateDetail>> queryOperationCertificateDetailListByMainId(@RequestParam(name="id",required=true) String id) { |
| | | List<OperationCertificateDetail> operationCertificateDetailList = operationCertificateDetailService.selectByMainId(id); |
| | | return Result.OK(operationCertificateDetailList); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param operationCertificate |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules.mdc:mom_eam_operation_certificate:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, OperationCertificate operationCertificate) { |
| | | // Step.1 ç»è£
æ¥è¯¢æ¡ä»¶æ¥è¯¢æ°æ® |
| | | QueryWrapper<OperationCertificate> queryWrapper = QueryGenerator.initQueryWrapper(operationCertificate, request.getParameterMap()); |
| | | LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | |
| | | //é
ç½®é䏿°æ®æ¥è¯¢æ¡ä»¶ |
| | | String selections = request.getParameter("selections"); |
| | | if(oConvertUtils.isNotEmpty(selections)) { |
| | | List<String> selectionList = Arrays.asList(selections.split(",")); |
| | | queryWrapper.in("id",selectionList); |
| | | } |
| | | //Step.2 è·åå¯¼åºæ°æ® |
| | | List<OperationCertificate> operationCertificateList = operationCertificateService.list(queryWrapper); |
| | | |
| | | // Step.3 ç»è£
pageList |
| | | List<OperationCertificatePage> pageList = new ArrayList<OperationCertificatePage>(); |
| | | for (OperationCertificate main : operationCertificateList) { |
| | | OperationCertificatePage vo = new OperationCertificatePage(); |
| | | BeanUtils.copyProperties(main, vo); |
| | | List<OperationCertificateDetail> operationCertificateDetailList = operationCertificateDetailService.selectByMainId(main.getId()); |
| | | vo.setOperationCertificateDetailList(operationCertificateDetailList); |
| | | pageList.add(vo); |
| | | } |
| | | |
| | | // Step.4 AutoPoi 导åºExcel |
| | | ModelAndView mv = new ModelAndView(new JeecgEntityExcelView()); |
| | | mv.addObject(NormalExcelConstants.FILE_NAME, "æä½è¯ä¹¦ç®¡çå表"); |
| | | mv.addObject(NormalExcelConstants.CLASS, OperationCertificatePage.class); |
| | | mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("æä½è¯ä¹¦ç®¡çæ°æ®", "导åºäºº:"+sysUser.getRealname(), "æä½è¯ä¹¦ç®¡ç")); |
| | | mv.addObject(NormalExcelConstants.DATA_LIST, pageList); |
| | | return mv; |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules.mdc:mom_eam_operation_certificate:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; |
| | | Map<String, MultipartFile> fileMap = multipartRequest.getFileMap(); |
| | | 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()); |
| | | } |
| | | return Result.OK("æä»¶å¯¼å
¥æåï¼æ°æ®è¡æ°:" + list.size()); |
| | | } catch (Exception e) { |
| | | log.error(e.getMessage(),e); |
| | | return Result.error("æä»¶å¯¼å
¥å¤±è´¥:"+e.getMessage()); |
| | | } finally { |
| | | try { |
| | | file.getInputStream().close(); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | } |
| | | return Result.OK("æä»¶å¯¼å
¥å¤±è´¥ï¼"); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.system.base.entity.JeecgEntity; |
| | | 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: æä½è®¡åè§å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("mom_eam_base_deduction_item") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="mom_eam_base_deduction_item对象", description="æä½è®¡åè§å") |
| | | public class DeductionItem extends JeecgEntity implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | |
| | | /**ç¼å·*/ |
| | | @Excel(name = "ç¼å·", width = 15) |
| | | @ApiModelProperty(value = "ç¼å·") |
| | | private String num; |
| | | /**å
容*/ |
| | | @Excel(name = "å
容", width = 15) |
| | | @ApiModelProperty(value = "å
容") |
| | | private String content; |
| | | /**åæ°*/ |
| | | @Excel(name = "åæ°", width = 15) |
| | | @ApiModelProperty(value = "åæ°") |
| | | private Integer deductionScore; |
| | | /**å建人*/ |
| | | |
| | | /**æå±é¨é¨*/ |
| | | @ApiModelProperty(value = "æå±é¨é¨") |
| | | private String sysOrgCode; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.Date; |
| | | 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.jeecg.common.system.base.entity.JeecgEntity; |
| | | 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; |
| | | |
| | | /** |
| | | * @Description: æä½è¯ä¹¦ç®¡ç |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | @ApiModel(value="mom_eam_operation_certificate对象", description="æä½è¯ä¹¦ç®¡ç") |
| | | @Data |
| | | @TableName("mom_eam_operation_certificate") |
| | | public class OperationCertificate extends JeecgEntity implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | |
| | | /**æä½è¯ç¼å·*/ |
| | | @Excel(name = "æä½è¯ç¼å·", width = 15) |
| | | @ApiModelProperty(value = "æä½è¯ç¼å·") |
| | | private String num; |
| | | /**ç¨æ·ID*/ |
| | | @Excel(name = "ç¨æ·ID", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username") |
| | | @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") |
| | | @ApiModelProperty(value = "ç¨æ·ID") |
| | | private String userId; |
| | | /**åè¯æ¥æ*/ |
| | | @Excel(name = "åè¯æ¥æ", width = 15, format = "yyyy-MM-dd") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "åè¯æ¥æ") |
| | | private Date issueDate; |
| | | /**å¼å§æ¶é´*/ |
| | | @Excel(name = "å¼å§æ¶é´", width = 15, format = "yyyy-MM-dd") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å¼å§æ¶é´") |
| | | private Date startTime; |
| | | /**ç»ææ¶é´*/ |
| | | @Excel(name = "ç»ææ¶é´", width = 15, format = "yyyy-MM-dd") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ç»ææ¶é´") |
| | | private Date endTime; |
| | | /**å½å卿忰*/ |
| | | @Excel(name = "å½å卿忰", width = 15) |
| | | @ApiModelProperty(value = "å½å卿忰") |
| | | private Integer currentCycleScore; |
| | | /**设å¤ids*/ |
| | | @Excel(name = "设å¤ids", width = 15, dictTable = "mom_eam_equipment", dicText = "num", dicCode = "id") |
| | | @Dict(dictTable = "mom_eam_equipment", dicText = "num", dicCode = "id") |
| | | @ApiModelProperty(value = "设å¤ids") |
| | | private String equipmentIds; |
| | | /**夿³¨*/ |
| | | @Excel(name = "夿³¨", width = 15) |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String remark; |
| | | |
| | | /**ç§æ·ID*/ |
| | | @Excel(name = "ç§æ·ID", width = 15) |
| | | @ApiModelProperty(value = "ç§æ·ID") |
| | | private String tenantId; |
| | | /**å 餿 å¿*/ |
| | | @Excel(name = "å 餿 å¿", width = 15) |
| | | @ApiModelProperty(value = "å 餿 å¿") |
| | | @TableLogic |
| | | private Integer delFlag = CommonConstant.DEL_FLAG_0; |
| | | /**ç¶æ*/ |
| | | @Excel(name = "ç¶æ", width = 15, dicCode = "certificate_status") |
| | | @Dict(dicCode = "certificate_status") |
| | | @ApiModelProperty(value = "ç¶æ") |
| | | private String status ; |
| | | /**enterpriseId*/ |
| | | @Excel(name = "enterpriseId", width = 15) |
| | | @ApiModelProperty(value = "enterpriseId") |
| | | private String enterpriseId; |
| | | /**屿§å段1*/ |
| | | @Excel(name = "屿§å段1", width = 15) |
| | | @ApiModelProperty(value = "屿§å段1") |
| | | private String uda1; |
| | | /**屿§å段2*/ |
| | | @Excel(name = "屿§å段2", width = 15) |
| | | @ApiModelProperty(value = "屿§å段2") |
| | | private String uda2; |
| | | /**屿§å段3*/ |
| | | @Excel(name = "屿§å段3", width = 15) |
| | | @ApiModelProperty(value = "屿§å段3") |
| | | private String uda3; |
| | | /**屿§å段4*/ |
| | | @Excel(name = "屿§å段4", width = 15) |
| | | @ApiModelProperty(value = "屿§å段4") |
| | | private String uda4; |
| | | /**屿§å段5*/ |
| | | @Excel(name = "屿§å段5", width = 15) |
| | | @ApiModelProperty(value = "屿§å段5") |
| | | private String uda5; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.Date; |
| | | 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.jeecg.common.system.base.entity.JeecgEntity; |
| | | 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; |
| | | |
| | | /** |
| | | * @Description: æä½è¯ç³è¯·è¡¨ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | @ApiModel(value="mom_eam_operation_certificate_apply对象", description="æä½è¯ç³è¯·è¡¨") |
| | | @Data |
| | | @TableName("mom_eam_operation_certificate_apply") |
| | | public class OperationCertificateApply extends JeecgEntity implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | |
| | | /**ç³è¯·åç¼å·*/ |
| | | @Excel(name = "ç³è¯·åç¼å·", width = 15) |
| | | @ApiModelProperty(value = "ç³è¯·åç¼å·") |
| | | private String num; |
| | | /**ç±»å*/ |
| | | @Excel(name = "ç±»å", width = 15, dicCode = "apply_type") |
| | | @Dict(dicCode = "apply_type") |
| | | @ApiModelProperty(value = "ç±»å") |
| | | private String type; |
| | | /**æå¨åä½*/ |
| | | @Excel(name = "æå¨åä½", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id") |
| | | @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id") |
| | | @ApiModelProperty(value = "æå¨åä½") |
| | | private String departId; |
| | | /**ç³è¯·åä½èç³»çµè¯*/ |
| | | @Excel(name = "ç³è¯·åä½èç³»çµè¯", width = 15) |
| | | @ApiModelProperty(value = "ç³è¯·åä½èç³»çµè¯") |
| | | private String contactNumber; |
| | | /**ç³è¯·äºº*/ |
| | | @Excel(name = "ç³è¯·äºº", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "id") |
| | | @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "id") |
| | | @ApiModelProperty(value = "ç³è¯·äºº") |
| | | private String applicant; |
| | | /**å®¡æ ¸ç¶æ*/ |
| | | @Excel(name = "å®¡æ ¸ç¶æ", width = 15, dicCode = "certificate_apply_status") |
| | | @Dict(dicCode = "certificate_apply_status") |
| | | @ApiModelProperty(value = "å®¡æ ¸ç¶æ") |
| | | private String auditStatus; |
| | | /**夿³¨*/ |
| | | @Excel(name = "夿³¨", width = 15) |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String remark; |
| | | |
| | | /**ç§æ·ID*/ |
| | | @Excel(name = "ç§æ·ID", width = 15) |
| | | @ApiModelProperty(value = "ç§æ·ID") |
| | | private String tenantId; |
| | | /**å 餿 å¿*/ |
| | | @Excel(name = "å 餿 å¿", width = 15) |
| | | @ApiModelProperty(value = "å 餿 å¿") |
| | | @TableLogic |
| | | private Integer delFlag = CommonConstant.DEL_FLAG_0; |
| | | /**ç¶æ*/ |
| | | @Excel(name = "ç¶æ", width = 15, dicCode = "certificate_status") |
| | | @Dict(dicCode = "certificate_status") |
| | | @ApiModelProperty(value = "ç¶æ") |
| | | private String status ; |
| | | /**屿§å段1*/ |
| | | @Excel(name = "屿§å段1", width = 15) |
| | | @ApiModelProperty(value = "屿§å段1") |
| | | private String uda1; |
| | | /**屿§å段2*/ |
| | | @Excel(name = "屿§å段2", width = 15) |
| | | @ApiModelProperty(value = "屿§å段2") |
| | | private String uda2; |
| | | /**屿§å段3*/ |
| | | @Excel(name = "屿§å段3", width = 15) |
| | | @ApiModelProperty(value = "屿§å段3") |
| | | private String uda3; |
| | | /**屿§å段4*/ |
| | | @Excel(name = "屿§å段4", width = 15) |
| | | @ApiModelProperty(value = "屿§å段4") |
| | | private String uda4; |
| | | /**屿§å段5*/ |
| | | @Excel(name = "屿§å段5", width = 15) |
| | | @ApiModelProperty(value = "屿§å段5") |
| | | private String uda5; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.entity; |
| | | |
| | | import java.io.Serializable; |
| | | 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.aspect.annotation.Dict; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.common.system.base.entity.JeecgEntity; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import java.util.Date; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.io.UnsupportedEncodingException; |
| | | |
| | | /** |
| | | * @Description: æä½è¯ç³è¯·æç»è¡¨ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | @ApiModel(value="mom_eam_operation_certificate_apply_detail对象", description="æä½è¯ç³è¯·æç»è¡¨") |
| | | @Data |
| | | @TableName("mom_eam_operation_certificate_apply_detail") |
| | | public class OperationCertificateApplyDetail extends JeecgEntity implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | |
| | | /**æä½è¯ç³è¯·è¡¨ID*/ |
| | | @ApiModelProperty(value = "æä½è¯ç³è¯·è¡¨ID") |
| | | private String operationCertificateApplyId; |
| | | /**ç¨æ·ID*/ |
| | | @Excel(name = "ç¨æ·ID", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username") |
| | | @ApiModelProperty(value = "ç¨æ·ID") |
| | | private String userId; |
| | | /**设å¤ID*/ |
| | | @Excel(name = "设å¤ID", width = 15, dictTable = "mom_eam_equipment", dicText = "num", dicCode = "id ") |
| | | @ApiModelProperty(value = "设å¤ID") |
| | | private String equipmentIds; |
| | | /**ä¸å²è¯å·*/ |
| | | @Excel(name = "ä¸å²è¯å·", width = 15) |
| | | @ApiModelProperty(value = "ä¸å²è¯å·") |
| | | private String appointmentCardNum; |
| | | /**è¡¥ååå */ |
| | | @Excel(name = "è¡¥ååå ", width = 15) |
| | | @ApiModelProperty(value = "è¡¥ååå ") |
| | | private String replaceReason; |
| | | /**夿³¨*/ |
| | | @Excel(name = "夿³¨", width = 15) |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String remark; |
| | | /**ç论æç»©*/ |
| | | @Excel(name = "ç论æç»©", width = 15) |
| | | @ApiModelProperty(value = "ç论æç»©") |
| | | private Integer theoreticalResults; |
| | | /**宿æç»©*/ |
| | | @Excel(name = "宿æç»©", width = 15) |
| | | @ApiModelProperty(value = "宿æç»©") |
| | | private Integer actualPerformance; |
| | | /**èè¯ç»è®º*/ |
| | | @Excel(name = "èè¯ç»è®º", width = 15) |
| | | @ApiModelProperty(value = "èè¯ç»è®º") |
| | | @Dict(dicCode="examinationConclusion") |
| | | private String examinationConclusion; |
| | | |
| | | /**ç§æ·ID*/ |
| | | @Excel(name = "ç§æ·ID", width = 15) |
| | | @ApiModelProperty(value = "ç§æ·ID") |
| | | private String tenantId; |
| | | /**å 餿 å¿*/ |
| | | @Excel(name = "å 餿 å¿", width = 15) |
| | | @ApiModelProperty(value = "å 餿 å¿") |
| | | @TableLogic |
| | | private Integer delFlag = CommonConstant.DEL_FLAG_0; |
| | | /**ç¶æ*/ |
| | | @Excel(name = "ç¶æ", width = 15) |
| | | @ApiModelProperty(value = "ç¶æ") |
| | | private String status = CommonConstant.STATUS_1; |
| | | /**屿§å段1*/ |
| | | @Excel(name = "屿§å段1", width = 15) |
| | | @ApiModelProperty(value = "屿§å段1") |
| | | private String uda1; |
| | | /**屿§å段2*/ |
| | | @Excel(name = "屿§å段2", width = 15) |
| | | @ApiModelProperty(value = "屿§å段2") |
| | | private String uda2; |
| | | /**屿§å段3*/ |
| | | @Excel(name = "屿§å段3", width = 15) |
| | | @ApiModelProperty(value = "屿§å段3") |
| | | private String uda3; |
| | | /**屿§å段4*/ |
| | | @Excel(name = "屿§å段4", width = 15) |
| | | @ApiModelProperty(value = "屿§å段4") |
| | | private String uda4; |
| | | /**屿§å段5*/ |
| | | @Excel(name = "屿§å段5", width = 15) |
| | | @ApiModelProperty(value = "屿§å段5") |
| | | private String uda5; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.entity; |
| | | |
| | | import java.io.Serializable; |
| | | 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.system.base.entity.JeecgEntity; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import java.util.Date; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.io.UnsupportedEncodingException; |
| | | |
| | | /** |
| | | * @Description: æä½è¯ç®¡çæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | @ApiModel(value="mom_eam_operation_certificate_detail对象", description="æä½è¯ç®¡çæç»") |
| | | @Data |
| | | @TableName("mom_eam_operation_certificate_detail") |
| | | public class OperationCertificateDetail extends JeecgEntity implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | |
| | | /**è¯ä¹¦ID*/ |
| | | @ApiModelProperty(value = "è¯ä¹¦ID") |
| | | private String operationCertificateId; |
| | | /**ç±»å*/ |
| | | @Excel(name = "ç±»å", width = 15) |
| | | @ApiModelProperty(value = "ç±»å") |
| | | private String type; |
| | | /**设å¤id*/ |
| | | @Excel(name = "设å¤id", width = 15) |
| | | @ApiModelProperty(value = "设å¤id") |
| | | private String equipmentId; |
| | | /**æ£å项*/ |
| | | @Excel(name = "æ£å项", width = 15) |
| | | @ApiModelProperty(value = "æ£å项") |
| | | private String deductionItem; |
| | | /**æ£å卿*/ |
| | | @Excel(name = "æ£å卿", width = 15) |
| | | @ApiModelProperty(value = "æ£å卿") |
| | | private String period; |
| | | |
| | | /**屿§å段1*/ |
| | | @Excel(name = "屿§å段1", width = 15) |
| | | @ApiModelProperty(value = "屿§å段1") |
| | | private String uda1; |
| | | /**屿§å段2*/ |
| | | @Excel(name = "屿§å段2", width = 15) |
| | | @ApiModelProperty(value = "屿§å段2") |
| | | private String uda2; |
| | | /**屿§å段3*/ |
| | | @Excel(name = "屿§å段3", width = 15) |
| | | @ApiModelProperty(value = "屿§å段3") |
| | | private String uda3; |
| | | /**屿§å段4*/ |
| | | @Excel(name = "屿§å段4", width = 15) |
| | | @ApiModelProperty(value = "屿§å段4") |
| | | private String uda4; |
| | | /**屿§å段5*/ |
| | | @Excel(name = "屿§å段5", width = 15) |
| | | @ApiModelProperty(value = "屿§å段5") |
| | | private String uda5; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.eam.entity.DeductionItem; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: æä½è®¡åè§å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface DeductionItemMapper extends BaseMapper<DeductionItem> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.mapper; |
| | | |
| | | import java.util.List; |
| | | import org.jeecg.modules.eam.entity.OperationCertificateApplyDetail; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * @Description: æä½è¯ç³è¯·æç»è¡¨ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface OperationCertificateApplyDetailMapper extends BaseMapper<OperationCertificateApplyDetail> { |
| | | |
| | | /** |
| | | * éè¿ä¸»è¡¨idå é¤åè¡¨æ°æ® |
| | | * |
| | | * @param mainId 主表id |
| | | * @return boolean |
| | | */ |
| | | public boolean deleteByMainId(@Param("mainId") String mainId); |
| | | |
| | | /** |
| | | * éè¿ä¸»è¡¨idæ¥è¯¢åè¡¨æ°æ® |
| | | * |
| | | * @param mainId 主表id |
| | | * @return List<OperationCertificateApplyDetail> |
| | | */ |
| | | public List<OperationCertificateApplyDetail> selectByMainId(@Param("mainId") String mainId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.eam.entity.OperationCertificateApply; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: æä½è¯ç³è¯·è¡¨ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface OperationCertificateApplyMapper extends BaseMapper<OperationCertificateApply> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.mapper; |
| | | |
| | | import java.util.List; |
| | | import org.jeecg.modules.eam.entity.OperationCertificateDetail; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * @Description: æä½è¯ç®¡çæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface OperationCertificateDetailMapper extends BaseMapper<OperationCertificateDetail> { |
| | | |
| | | /** |
| | | * éè¿ä¸»è¡¨idå é¤åè¡¨æ°æ® |
| | | * |
| | | * @param mainId 主表id |
| | | * @return boolean |
| | | */ |
| | | public boolean deleteByMainId(@Param("mainId") String mainId); |
| | | |
| | | /** |
| | | * éè¿ä¸»è¡¨idæ¥è¯¢åè¡¨æ°æ® |
| | | * |
| | | * @param mainId 主表id |
| | | * @return List<OperationCertificateDetail> |
| | | */ |
| | | public List<OperationCertificateDetail> selectByMainId(@Param("mainId") String mainId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.eam.entity.OperationCertificate; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: æä½è¯ä¹¦ç®¡ç |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface OperationCertificateMapper extends BaseMapper<OperationCertificate> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.DeductionItemMapper"> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.OperationCertificateApplyDetailMapper"> |
| | | |
| | | <delete id="deleteByMainId" parameterType="java.lang.String"> |
| | | DELETE |
| | | FROM mom_eam_operation_certificate_apply_detail |
| | | WHERE |
| | | operation_certificate_apply_id = #{mainId} </delete> |
| | | |
| | | <select id="selectByMainId" parameterType="java.lang.String" resultType="org.jeecg.modules.eam.entity.OperationCertificateApplyDetail"> |
| | | SELECT * |
| | | FROM mom_eam_operation_certificate_apply_detail |
| | | WHERE |
| | | operation_certificate_apply_id = #{mainId} </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.OperationCertificateApplyMapper"> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.OperationCertificateDetailMapper"> |
| | | |
| | | <delete id="deleteByMainId" parameterType="java.lang.String"> |
| | | DELETE |
| | | FROM mom_eam_operation_certificate_detail |
| | | WHERE |
| | | operation_certificate_id = #{mainId} </delete> |
| | | |
| | | <select id="selectByMainId" parameterType="java.lang.String" resultType="org.jeecg.modules.eam.entity.OperationCertificateDetail"> |
| | | SELECT * |
| | | FROM mom_eam_operation_certificate_detail |
| | | WHERE |
| | | operation_certificate_id = #{mainId} </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.OperationCertificateMapper"> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service; |
| | | |
| | | import org.jeecg.modules.eam.entity.DeductionItem; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * @Description: æä½è®¡åè§å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IDeductionItemService extends IService<DeductionItem> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service; |
| | | |
| | | import org.jeecg.modules.eam.entity.OperationCertificateApplyDetail; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description: æä½è¯ç³è¯·æç»è¡¨ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IOperationCertificateApplyDetailService extends IService<OperationCertificateApplyDetail> { |
| | | |
| | | /** |
| | | * éè¿ä¸»è¡¨idæ¥è¯¢åè¡¨æ°æ® |
| | | * |
| | | * @param mainId 主表id |
| | | * @return List<OperationCertificateApplyDetail> |
| | | */ |
| | | public List<OperationCertificateApplyDetail> selectByMainId(String mainId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service; |
| | | |
| | | import org.jeecg.modules.eam.entity.OperationCertificateApplyDetail; |
| | | import org.jeecg.modules.eam.entity.OperationCertificateApply; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import java.io.Serializable; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description: æä½è¯ç³è¯·è¡¨ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IOperationCertificateApplyService extends IService<OperationCertificateApply> { |
| | | |
| | | /** |
| | | * æ·»å ä¸å¯¹å¤ |
| | | * |
| | | * @param operationCertificateApply |
| | | * @param operationCertificateApplyDetailList |
| | | */ |
| | | public void saveMain(OperationCertificateApply operationCertificateApply,List<OperationCertificateApplyDetail> operationCertificateApplyDetailList) ; |
| | | |
| | | /** |
| | | * ä¿®æ¹ä¸å¯¹å¤ |
| | | * |
| | | * @param operationCertificateApply |
| | | * @param operationCertificateApplyDetailList |
| | | */ |
| | | public void updateMain(OperationCertificateApply operationCertificateApply,List<OperationCertificateApplyDetail> operationCertificateApplyDetailList); |
| | | |
| | | /** |
| | | * å é¤ä¸å¯¹å¤ |
| | | * |
| | | * @param id |
| | | */ |
| | | public void delMain (String id); |
| | | |
| | | /** |
| | | * æ¹éå é¤ä¸å¯¹å¤ |
| | | * |
| | | * @param idList |
| | | */ |
| | | public void delBatchMain (Collection<? extends Serializable> idList); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service; |
| | | |
| | | import org.jeecg.modules.eam.entity.OperationCertificateDetail; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description: æä½è¯ç®¡çæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IOperationCertificateDetailService extends IService<OperationCertificateDetail> { |
| | | |
| | | /** |
| | | * éè¿ä¸»è¡¨idæ¥è¯¢åè¡¨æ°æ® |
| | | * |
| | | * @param mainId 主表id |
| | | * @return List<OperationCertificateDetail> |
| | | */ |
| | | public List<OperationCertificateDetail> selectByMainId(String mainId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service; |
| | | |
| | | import org.jeecg.modules.eam.entity.OperationCertificateDetail; |
| | | import org.jeecg.modules.eam.entity.OperationCertificate; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import java.io.Serializable; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description: æä½è¯ä¹¦ç®¡ç |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IOperationCertificateService extends IService<OperationCertificate> { |
| | | |
| | | /** |
| | | * æ·»å ä¸å¯¹å¤ |
| | | * |
| | | * @param operationCertificate |
| | | * @param operationCertificateDetailList |
| | | */ |
| | | public void saveMain(OperationCertificate operationCertificate,List<OperationCertificateDetail> operationCertificateDetailList) ; |
| | | |
| | | /** |
| | | * ä¿®æ¹ä¸å¯¹å¤ |
| | | * |
| | | * @param operationCertificate |
| | | * @param operationCertificateDetailList |
| | | */ |
| | | public void updateMain(OperationCertificate operationCertificate,List<OperationCertificateDetail> operationCertificateDetailList); |
| | | |
| | | /** |
| | | * å é¤ä¸å¯¹å¤ |
| | | * |
| | | * @param id |
| | | */ |
| | | public void delMain (String id); |
| | | |
| | | /** |
| | | * æ¹éå é¤ä¸å¯¹å¤ |
| | | * |
| | | * @param idList |
| | | */ |
| | | public void delBatchMain (Collection<? extends Serializable> idList); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service.impl; |
| | | |
| | | import org.jeecg.modules.eam.entity.DeductionItem; |
| | | import org.jeecg.modules.eam.mapper.DeductionItemMapper; |
| | | import org.jeecg.modules.eam.service.IDeductionItemService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | /** |
| | | * @Description: æä½è®¡åè§å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class DeductionItemServiceImpl extends ServiceImpl<DeductionItemMapper, DeductionItem> implements IDeductionItemService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service.impl; |
| | | |
| | | import org.jeecg.modules.eam.entity.OperationCertificateApplyDetail; |
| | | import org.jeecg.modules.eam.mapper.OperationCertificateApplyDetailMapper; |
| | | import org.jeecg.modules.eam.service.IOperationCertificateApplyDetailService; |
| | | import org.springframework.stereotype.Service; |
| | | import java.util.List; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | |
| | | /** |
| | | * @Description: æä½è¯ç³è¯·æç»è¡¨ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class OperationCertificateApplyDetailServiceImpl extends ServiceImpl<OperationCertificateApplyDetailMapper, OperationCertificateApplyDetail> implements IOperationCertificateApplyDetailService { |
| | | |
| | | @Autowired |
| | | private OperationCertificateApplyDetailMapper operationCertificateApplyDetailMapper; |
| | | |
| | | @Override |
| | | public List<OperationCertificateApplyDetail> selectByMainId(String mainId) { |
| | | return operationCertificateApplyDetailMapper.selectByMainId(mainId); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service.impl; |
| | | |
| | | import org.jeecg.modules.eam.entity.OperationCertificateApply; |
| | | import org.jeecg.modules.eam.entity.OperationCertificateApplyDetail; |
| | | import org.jeecg.modules.eam.mapper.OperationCertificateApplyDetailMapper; |
| | | import org.jeecg.modules.eam.mapper.OperationCertificateApplyMapper; |
| | | import org.jeecg.modules.eam.service.IOperationCertificateApplyService; |
| | | import org.springframework.stereotype.Service; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | import java.util.Collection; |
| | | |
| | | /** |
| | | * @Description: æä½è¯ç³è¯·è¡¨ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class OperationCertificateApplyServiceImpl extends ServiceImpl<OperationCertificateApplyMapper, OperationCertificateApply> implements IOperationCertificateApplyService { |
| | | |
| | | @Autowired |
| | | private OperationCertificateApplyMapper operationCertificateApplyMapper; |
| | | @Autowired |
| | | private OperationCertificateApplyDetailMapper operationCertificateApplyDetailMapper; |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void saveMain(OperationCertificateApply operationCertificateApply, List<OperationCertificateApplyDetail> operationCertificateApplyDetailList) { |
| | | operationCertificateApplyMapper.insert(operationCertificateApply); |
| | | if(operationCertificateApplyDetailList!=null && operationCertificateApplyDetailList.size()>0) { |
| | | for(OperationCertificateApplyDetail entity:operationCertificateApplyDetailList) { |
| | | //å¤é®è®¾ç½® |
| | | entity.setOperationCertificateApplyId(operationCertificateApply.getId()); |
| | | operationCertificateApplyDetailMapper.insert(entity); |
| | | } |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void updateMain(OperationCertificateApply operationCertificateApply,List<OperationCertificateApplyDetail> operationCertificateApplyDetailList) { |
| | | operationCertificateApplyMapper.updateById(operationCertificateApply); |
| | | |
| | | //1.å
å é¤åè¡¨æ°æ® |
| | | operationCertificateApplyDetailMapper.deleteByMainId(operationCertificateApply.getId()); |
| | | |
| | | //2.åè¡¨æ°æ®éæ°æå
¥ |
| | | if(operationCertificateApplyDetailList!=null && operationCertificateApplyDetailList.size()>0) { |
| | | for(OperationCertificateApplyDetail entity:operationCertificateApplyDetailList) { |
| | | //å¤é®è®¾ç½® |
| | | entity.setOperationCertificateApplyId(operationCertificateApply.getId()); |
| | | operationCertificateApplyDetailMapper.insert(entity); |
| | | } |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void delMain(String id) { |
| | | operationCertificateApplyDetailMapper.deleteByMainId(id); |
| | | operationCertificateApplyMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void delBatchMain(Collection<? extends Serializable> idList) { |
| | | for(Serializable id:idList) { |
| | | operationCertificateApplyDetailMapper.deleteByMainId(id.toString()); |
| | | operationCertificateApplyMapper.deleteById(id); |
| | | } |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service.impl; |
| | | |
| | | import org.jeecg.modules.eam.entity.OperationCertificateDetail; |
| | | import org.jeecg.modules.eam.mapper.OperationCertificateDetailMapper; |
| | | import org.jeecg.modules.eam.service.IOperationCertificateDetailService; |
| | | import org.springframework.stereotype.Service; |
| | | import java.util.List; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | |
| | | /** |
| | | * @Description: æä½è¯ç®¡çæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class OperationCertificateDetailServiceImpl extends ServiceImpl<OperationCertificateDetailMapper, OperationCertificateDetail> implements IOperationCertificateDetailService { |
| | | |
| | | @Autowired |
| | | private OperationCertificateDetailMapper operationCertificateDetailMapper; |
| | | |
| | | @Override |
| | | public List<OperationCertificateDetail> selectByMainId(String mainId) { |
| | | return operationCertificateDetailMapper.selectByMainId(mainId); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service.impl; |
| | | |
| | | import org.jeecg.modules.eam.entity.OperationCertificate; |
| | | import org.jeecg.modules.eam.entity.OperationCertificateDetail; |
| | | import org.jeecg.modules.eam.mapper.OperationCertificateDetailMapper; |
| | | import org.jeecg.modules.eam.mapper.OperationCertificateMapper; |
| | | import org.jeecg.modules.eam.service.IOperationCertificateService; |
| | | import org.springframework.stereotype.Service; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | import java.util.Collection; |
| | | |
| | | /** |
| | | * @Description: æä½è¯ä¹¦ç®¡ç |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class OperationCertificateServiceImpl extends ServiceImpl<OperationCertificateMapper, OperationCertificate> implements IOperationCertificateService { |
| | | |
| | | @Autowired |
| | | private OperationCertificateMapper operationCertificateMapper; |
| | | @Autowired |
| | | private OperationCertificateDetailMapper operationCertificateDetailMapper; |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void saveMain(OperationCertificate operationCertificate, List<OperationCertificateDetail> operationCertificateDetailList) { |
| | | operationCertificateMapper.insert(operationCertificate); |
| | | if(operationCertificateDetailList!=null && operationCertificateDetailList.size()>0) { |
| | | for(OperationCertificateDetail entity:operationCertificateDetailList) { |
| | | //å¤é®è®¾ç½® |
| | | entity.setOperationCertificateId(operationCertificate.getId()); |
| | | operationCertificateDetailMapper.insert(entity); |
| | | } |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void updateMain(OperationCertificate operationCertificate,List<OperationCertificateDetail> operationCertificateDetailList) { |
| | | operationCertificateMapper.updateById(operationCertificate); |
| | | |
| | | //1.å
å é¤åè¡¨æ°æ® |
| | | operationCertificateDetailMapper.deleteByMainId(operationCertificate.getId()); |
| | | |
| | | //2.åè¡¨æ°æ®éæ°æå
¥ |
| | | if(operationCertificateDetailList!=null && operationCertificateDetailList.size()>0) { |
| | | for(OperationCertificateDetail entity:operationCertificateDetailList) { |
| | | //å¤é®è®¾ç½® |
| | | entity.setOperationCertificateId(operationCertificate.getId()); |
| | | operationCertificateDetailMapper.insert(entity); |
| | | } |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void delMain(String id) { |
| | | operationCertificateDetailMapper.deleteByMainId(id); |
| | | operationCertificateMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void delBatchMain(Collection<? extends Serializable> idList) { |
| | | for(Serializable id:idList) { |
| | | operationCertificateDetailMapper.deleteByMainId(id.toString()); |
| | | operationCertificateMapper.deleteById(id); |
| | | } |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.vo; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.modules.eam.entity.OperationCertificateApply; |
| | | import org.jeecg.modules.eam.entity.OperationCertificateApplyDetail; |
| | | import lombok.Data; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.jeecgframework.poi.excel.annotation.ExcelEntity; |
| | | import org.jeecgframework.poi.excel.annotation.ExcelCollection; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import java.util.Date; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | /** |
| | | * @Description: æä½è¯ç³è¯·è¡¨ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @ApiModel(value="mom_eam_operation_certificate_applyPage对象", description="æä½è¯ç³è¯·è¡¨") |
| | | public class OperationCertificateApplyPage { |
| | | |
| | | /**主é®ID*/ |
| | | @ApiModelProperty(value = "主é®ID") |
| | | private String id; |
| | | /**ç³è¯·åç¼å·*/ |
| | | @Excel(name = "ç³è¯·åç¼å·", width = 15) |
| | | @ApiModelProperty(value = "ç³è¯·åç¼å·") |
| | | private String num; |
| | | /**ç±»å*/ |
| | | @Excel(name = "ç±»å", width = 15, dicCode = "apply_type") |
| | | @Dict(dicCode = "apply_type") |
| | | @ApiModelProperty(value = "ç±»å") |
| | | private String type; |
| | | /**æå¨åä½*/ |
| | | @Excel(name = "æå¨åä½", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id") |
| | | @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id") |
| | | @ApiModelProperty(value = "æå¨åä½") |
| | | private String departId; |
| | | /**ç³è¯·åä½èç³»çµè¯*/ |
| | | @Excel(name = "ç³è¯·åä½èç³»çµè¯", width = 15) |
| | | @ApiModelProperty(value = "ç³è¯·åä½èç³»çµè¯") |
| | | private String contactNumber; |
| | | /**ç³è¯·äºº*/ |
| | | @Excel(name = "ç³è¯·äºº", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "id") |
| | | @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "id") |
| | | @ApiModelProperty(value = "ç³è¯·äºº") |
| | | private String applicant; |
| | | /**å®¡æ ¸ç¶æ*/ |
| | | @Excel(name = "å®¡æ ¸ç¶æ", width = 15, dicCode = "certificate_apply_status") |
| | | @Dict(dicCode = "certificate_apply_status") |
| | | @ApiModelProperty(value = "å®¡æ ¸ç¶æ") |
| | | private String auditStatus; |
| | | /**夿³¨*/ |
| | | @Excel(name = "夿³¨", width = 15) |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String remark; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**ç§æ·ID*/ |
| | | @Excel(name = "ç§æ·ID", width = 15) |
| | | @ApiModelProperty(value = "ç§æ·ID") |
| | | private String tenantId; |
| | | /**å 餿 è¯*/ |
| | | @Excel(name = "å 餿 è¯", width = 15) |
| | | @ApiModelProperty(value = "å 餿 è¯") |
| | | private Integer delFlag = CommonConstant.DEL_FLAG_0; |
| | | /**ç¶æ*/ |
| | | @Excel(name = "ç¶æ", width = 15) |
| | | @ApiModelProperty(value = "ç¶æ") |
| | | private String status ; |
| | | /**屿§å段1*/ |
| | | @Excel(name = "屿§å段1", width = 15) |
| | | @ApiModelProperty(value = "屿§å段1") |
| | | private String uda1; |
| | | /**屿§å段2*/ |
| | | @Excel(name = "屿§å段2", width = 15) |
| | | @ApiModelProperty(value = "屿§å段2") |
| | | private String uda2; |
| | | /**屿§å段3*/ |
| | | @Excel(name = "屿§å段3", width = 15) |
| | | @ApiModelProperty(value = "屿§å段3") |
| | | private String uda3; |
| | | /**屿§å段4*/ |
| | | @Excel(name = "屿§å段4", width = 15) |
| | | @ApiModelProperty(value = "屿§å段4") |
| | | private String uda4; |
| | | /**屿§å段5*/ |
| | | @Excel(name = "屿§å段5", width = 15) |
| | | @ApiModelProperty(value = "屿§å段5") |
| | | private String uda5; |
| | | |
| | | @ExcelCollection(name="æä½è¯ç³è¯·æç»è¡¨") |
| | | @ApiModelProperty(value = "æä½è¯ç³è¯·æç»è¡¨") |
| | | private List<OperationCertificateApplyDetail> operationCertificateApplyDetailList; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.vo; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.modules.eam.entity.OperationCertificate; |
| | | import org.jeecg.modules.eam.entity.OperationCertificateDetail; |
| | | import lombok.Data; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.jeecgframework.poi.excel.annotation.ExcelEntity; |
| | | import org.jeecgframework.poi.excel.annotation.ExcelCollection; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import java.util.Date; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | /** |
| | | * @Description: æä½è¯ä¹¦ç®¡ç |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-10-17 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @ApiModel(value="mom_eam_operation_certificatePage对象", description="æä½è¯ä¹¦ç®¡ç") |
| | | public class OperationCertificatePage { |
| | | |
| | | /**id*/ |
| | | @ApiModelProperty(value = "id") |
| | | private String id; |
| | | /**æä½è¯ç¼å·*/ |
| | | @Excel(name = "æä½è¯ç¼å·", width = 15) |
| | | @ApiModelProperty(value = "æä½è¯ç¼å·") |
| | | private String num; |
| | | /**ç¨æ·ID*/ |
| | | @Excel(name = "ç¨æ·ID", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username") |
| | | @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") |
| | | @ApiModelProperty(value = "ç¨æ·ID") |
| | | private String userId; |
| | | /**åè¯æ¥æ*/ |
| | | @Excel(name = "åè¯æ¥æ", width = 15, format = "yyyy-MM-dd") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "åè¯æ¥æ") |
| | | private Date issueDate; |
| | | /**å¼å§æ¶é´*/ |
| | | @Excel(name = "å¼å§æ¶é´", width = 15, format = "yyyy-MM-dd") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å¼å§æ¶é´") |
| | | private Date startTime; |
| | | /**ç»ææ¶é´*/ |
| | | @Excel(name = "ç»ææ¶é´", width = 15, format = "yyyy-MM-dd") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ç»ææ¶é´") |
| | | private Date endTime; |
| | | /**å½å卿忰*/ |
| | | @Excel(name = "å½å卿忰", width = 15) |
| | | @ApiModelProperty(value = "å½å卿忰") |
| | | private Integer currentCycleScore; |
| | | /**设å¤ids*/ |
| | | @Excel(name = "设å¤ids", width = 15, dictTable = "mom_eam_equipment", dicText = "num", dicCode = "id") |
| | | @Dict(dictTable = "mom_eam_equipment", dicText = "num", dicCode = "id") |
| | | @ApiModelProperty(value = "设å¤ids") |
| | | private String equipmentIds; |
| | | /**夿³¨*/ |
| | | @Excel(name = "夿³¨", width = 15) |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String remark; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**ç§æ·ID*/ |
| | | @Excel(name = "ç§æ·ID", width = 15) |
| | | @ApiModelProperty(value = "ç§æ·ID") |
| | | private String tenantId; |
| | | /**å 餿 å¿*/ |
| | | @Excel(name = "å 餿 å¿", width = 15) |
| | | @ApiModelProperty(value = "å 餿 å¿") |
| | | private Integer delFlag = CommonConstant.DEL_FLAG_0; |
| | | /**ç¶æ*/ |
| | | @Excel(name = "ç¶æ", width = 15, dicCode = "certificate_status") |
| | | @Dict(dicCode = "certificate_status") |
| | | @ApiModelProperty(value = "ç¶æ") |
| | | private String status ; |
| | | /**enterpriseId*/ |
| | | @Excel(name = "enterpriseId", width = 15) |
| | | @ApiModelProperty(value = "enterpriseId") |
| | | private String enterpriseId; |
| | | /**屿§å段1*/ |
| | | @Excel(name = "屿§å段1", width = 15) |
| | | @ApiModelProperty(value = "屿§å段1") |
| | | private String uda1; |
| | | /**屿§å段2*/ |
| | | @Excel(name = "屿§å段2", width = 15) |
| | | @ApiModelProperty(value = "屿§å段2") |
| | | private String uda2; |
| | | /**屿§å段3*/ |
| | | @Excel(name = "屿§å段3", width = 15) |
| | | @ApiModelProperty(value = "屿§å段3") |
| | | private String uda3; |
| | | /**屿§å段4*/ |
| | | @Excel(name = "屿§å段4", width = 15) |
| | | @ApiModelProperty(value = "屿§å段4") |
| | | private String uda4; |
| | | /**屿§å段5*/ |
| | | @Excel(name = "屿§å段5", width = 15) |
| | | @ApiModelProperty(value = "屿§å段5") |
| | | private String uda5; |
| | | |
| | | @ExcelCollection(name="æä½è¯ç®¡çæç»") |
| | | @ApiModelProperty(value = "æä½è¯ç®¡çæç»") |
| | | private List<OperationCertificateDetail> operationCertificateDetailList; |
| | | |
| | | } |
| | |
| | | datasource: |
| | | master: |
| | | # url: jdbc:sqlserver://192.168.0.29:1433;databasename=LXZN_TEST_430 |
| | | url: jdbc:sqlserver://30036q420j.yicp.fun:11047;databasename=LXZN_TEST_430 |
| | | # url: jdbc:sqlserver://30036q420j.yicp.fun:11047;databasename=LXZN_TEST_430 |
| | | # url: jdbc:sqlserver://localhost:1433;databasename=LXZN_TEST_430 |
| | | # url: jdbc:sqlserver://192.168.0.118:1433;databasename=LXZN_TEST_430 |
| | | url: jdbc:sqlserver://192.168.0.118:1433;databasename=EAM_430_TEST |
| | | # url: jdbc:sqlserver://30036q420j.yicp.fun:11047;databasename=EAM_430_TEST |
| | | username: sa |
| | | # password: LXZN@1688 |
| | | password: 123 |
| | | # password: 123456 |
| | | driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver |
| | | #url: jdbc:mysql://127.0.0.1:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai |
| | | #username: root |
| | |
| | | # ç¾åå¯é¥ä¸²(åå端è¦ä¸è´ï¼æ£å¼åå¸è¯·èªè¡ä¿®æ¹) |
| | | signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a |
| | | # ç¾åæ¦æªæ¥å£ |
| | | signUrls: /sys/dict/getDictItems/*,/sys/dict/loadDict/*,/sys/dict/loadDictOrderByValue/*,/sys/dict/loadDictItem/*,/sys/dict/loadTreeData,/sys/api/queryTableDictItemsByCode,/sys/api/queryFilterTableDictInfo,/sys/api/queryTableDictByKeys,/sys/api/translateDictFromTable,/sys/api/translateDictFromTableByKeys |
| | | # signUrls: /sys/dict/getDictItems/*,/sys/dict/loadDict/*,/sys/dict/loadDictOrderByValue/*,/sys/dict/loadDictItem/*,/sys/dict/loadTreeData,/sys/api/queryTableDictItemsByCode,/sys/api/queryFilterTableDictInfo,/sys/api/queryTableDictByKeys,/sys/api/translateDictFromTable,/sys/api/translateDictFromTableByKeys |
| | | signUrls: /sys/dict/loadDict/*,/sys/dict/loadDictOrderByValue/*,/sys/dict/loadDictItem/*,/sys/dict/loadTreeData,/sys/api/queryTableDictItemsByCode,/sys/api/queryFilterTableDictInfo,/sys/api/queryTableDictByKeys,/sys/api/translateDictFromTable,/sys/api/translateDictFromTableByKeys |
| | | #localãminioãalioss |
| | | uploadType: local |
| | | # å端访é®å°å |