Jelajahi Sumber

财务报销表

zhaoxian 2 tahun lalu
induk
melakukan
302d2a8387
24 mengubah file dengan 1568 tambahan dan 0 penghapusan
  1. 246 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/controller/ReimburseApplyController.java
  2. 246 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/controller/ReimburseDictController.java
  3. 249 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/controller/ReimburseExpressController.java
  4. 246 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/controller/ReimburseProjectController.java
  5. 123 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/entity/ReimburseApply.java
  6. 64 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/entity/ReimburseDict.java
  7. 79 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/entity/ReimburseExpress.java
  8. 97 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/entity/ReimburseProject.java
  9. 17 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/mapper/ReimburseApplyMapper.java
  10. 15 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/mapper/ReimburseDictMapper.java
  11. 15 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/mapper/ReimburseExpressMapper.java
  12. 15 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/mapper/ReimburseProjectMapper.java
  13. 5 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/mapper/xml/ReimburseApplyMapper.xml
  14. 5 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/mapper/xml/ReimburseDictMapper.xml
  15. 5 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/mapper/xml/ReimburseExpressMapper.xml
  16. 5 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/mapper/xml/ReimburseProjectMapper.xml
  17. 15 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/service/IReimburseApplyService.java
  18. 15 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/service/IReimburseDictService.java
  19. 15 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/service/IReimburseExpressService.java
  20. 15 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/service/IReimburseProjectService.java
  21. 19 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/service/impl/ReimburseApplyServiceImpl.java
  22. 19 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/service/impl/ReimburseDictServiceImpl.java
  23. 19 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/service/impl/ReimburseExpressServiceImpl.java
  24. 19 0
      jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/service/impl/ReimburseProjectServiceImpl.java

+ 246 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/controller/ReimburseApplyController.java

@@ -0,0 +1,246 @@
+package cn.com.ctop.reimburse.mondule.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import cn.com.ctop.reimburse.mondule.entity.ReimburseApply;
+import cn.com.ctop.reimburse.mondule.service.IReimburseApplyService;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+
+import java.util.Date;
+
+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.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;
+
+/**
+ * 报销申请提交表
+ *
+ * @author jeecg-boot
+ * @version V1.0
+ * @date 2022-11-21
+ */
+@Slf4j
+@Api(tags = "报销申请提交表")
+@RestController
+@RequestMapping("/ctop_reimburse_apply/reimburseApply")
+public class ReimburseApplyController {
+    @Autowired
+    private IReimburseApplyService reimburseApplyService;
+
+    /**
+     * 分页列表查询
+     *
+     * @param reimburseApply
+     * @param pageNo
+     * @param pageSize
+     * @param req
+     * @return
+     */
+    @ApiOperation(value = "报销申请提交表-分页列表查询", notes = "报销申请提交表-分页列表查询")
+    @GetMapping(value = "/list")
+    public Result<IPage<ReimburseApply>> queryPageList(ReimburseApply reimburseApply,
+                                                       @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
+                                                       @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
+                                                       HttpServletRequest req) {
+        Result<IPage<ReimburseApply>> result = new Result<>();
+        QueryWrapper<ReimburseApply> queryWrapper = QueryGenerator.initQueryWrapper(reimburseApply, req.getParameterMap());
+        Page<ReimburseApply> page = new Page<ReimburseApply>(pageNo, pageSize);
+        IPage<ReimburseApply> pageList = reimburseApplyService.page(page, queryWrapper);
+        result.setSuccess(true);
+        result.setResult(pageList);
+        return result;
+    }
+
+    /**
+     * 添加
+     *
+     * @param reimburseApply
+     * @return
+     */
+    @ApiOperation(value = "报销申请提交表-添加", notes = "报销申请提交表-添加")
+    @PostMapping(value = "/add")
+    public Result<ReimburseApply> add(@RequestBody ReimburseApply reimburseApply) {
+        Result<ReimburseApply> result = new Result<>();
+        try {
+            reimburseApplyService.save(reimburseApply);
+            result.success("添加成功!");
+        } catch (Exception e) {
+            log.error(e.getMessage(), e);
+            result.error500("操作失败");
+        }
+        return result;
+    }
+
+    /**
+     * 编辑
+     *
+     * @param reimburseApply
+     * @return
+     */
+    @ApiOperation(value = "报销申请提交表-编辑", notes = "报销申请提交表-编辑")
+    @PutMapping(value = "/edit")
+    public Result<ReimburseApply> edit(@RequestBody ReimburseApply reimburseApply) {
+        Result<ReimburseApply> result = new Result<ReimburseApply>();
+        ReimburseApply reimburseApplyEntity = reimburseApplyService.getById(reimburseApply.getId());
+        if (reimburseApplyEntity == null) {
+            result.error500("未找到对应实体");
+        } else {
+            boolean ok = reimburseApplyService.updateById(reimburseApply);
+            if (ok) {
+                result.success("修改成功!");
+            }
+        }
+
+        return result;
+    }
+
+    /**
+     * 通过id删除
+     *
+     * @param id
+     * @return
+     */
+    @ApiOperation(value = "报销申请提交表-通过id删除", notes = "报销申请提交表-通过id删除")
+    @DeleteMapping(value = "/delete")
+    public Result<?> delete(@RequestParam(name = "id") String id) {
+        try {
+            reimburseApplyService.removeById(id);
+        } catch (Exception e) {
+            log.error("删除失败", e.getMessage());
+            return Result.error("删除失败!");
+        }
+        return Result.ok("删除成功!");
+    }
+
+    /**
+     * 批量删除
+     *
+     * @param ids
+     * @return
+     */
+    @ApiOperation(value = "报销申请提交表-批量删除", notes = "报销申请提交表-批量删除")
+    @DeleteMapping(value = "/deleteBatch")
+    public Result<ReimburseApply> deleteBatch(@RequestParam(name = "ids") String ids) {
+        Result<ReimburseApply> result = new Result<>();
+        if (ids == null || "".equals(ids.trim())) {
+            result.error500("参数不识别!");
+        } else {
+            this.reimburseApplyService.removeByIds(Arrays.asList(ids.split(",")));
+            result.success("删除成功!");
+        }
+        return result;
+    }
+
+    /**
+     * 通过id查询
+     *
+     * @param id
+     * @return
+     */
+    @ApiOperation(value = "报销申请提交表-通过id查询", notes = "报销申请提交表-通过id查询")
+    @GetMapping(value = "/queryById")
+    public Result<ReimburseApply> queryById(@RequestParam(name = "id", required = true) String id) {
+        Result<ReimburseApply> result = new Result<>();
+        ReimburseApply reimburseApply = reimburseApplyService.getById(id);
+        if (reimburseApply == null) {
+            result.error500("未找到对应实体");
+        } else {
+            result.setResult(reimburseApply);
+            result.setSuccess(true);
+        }
+        return result;
+    }
+
+    /**
+     * 导出excel
+     *
+     * @param request
+     * @param response
+     */
+    @RequestMapping(value = "/exportXls")
+    public ModelAndView exportXls(HttpServletRequest request, HttpServletResponse response) {
+        // Step.1 组装查询条件
+        QueryWrapper<ReimburseApply> queryWrapper = null;
+        try {
+            String paramsStr = request.getParameter("paramsStr");
+            if (oConvertUtils.isNotEmpty(paramsStr)) {
+                String deString = URLDecoder.decode(paramsStr, "UTF-8");
+                ReimburseApply reimburseApply = JSON.parseObject(deString, ReimburseApply.class);
+                queryWrapper = QueryGenerator.initQueryWrapper(reimburseApply, request.getParameterMap());
+            }
+        } catch (UnsupportedEncodingException e) {
+            e.printStackTrace();
+        }
+
+        //Step.2 AutoPoi 导出Excel
+        ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
+        List<ReimburseApply> pageList = reimburseApplyService.list(queryWrapper);
+        //导出文件名称
+        mv.addObject(NormalExcelConstants.FILE_NAME, "报销申请提交表列表");
+        mv.addObject(NormalExcelConstants.CLASS, ReimburseApply.class);
+        mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("报销申请提交表列表数据", "导出人:Jeecg", "导出信息"));
+        mv.addObject(NormalExcelConstants.DATA_LIST, pageList);
+        return mv;
+    }
+
+    /**
+     * 通过excel导入数据
+     *
+     * @param request
+     * @param response
+     * @return
+     */
+    @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<ReimburseApply> listReimburseApplys = ExcelImportUtil.importExcel(file.getInputStream(), ReimburseApply.class, params);
+                reimburseApplyService.saveBatch(listReimburseApplys);
+                return Result.ok("文件导入成功!数据行数:" + listReimburseApplys.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("文件导入失败!");
+    }
+
+}

+ 246 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/controller/ReimburseDictController.java

@@ -0,0 +1,246 @@
+package cn.com.ctop.reimburse.mondule.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import cn.com.ctop.reimburse.mondule.entity.ReimburseDict;
+import cn.com.ctop.reimburse.mondule.service.IReimburseDictService;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+
+import java.util.Date;
+
+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.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;
+
+/**
+ * 报销申请字典表
+ *
+ * @author jeecg-boot
+ * @version V1.0
+ * @date 2022-11-21
+ */
+@Slf4j
+@Api(tags = "报销申请字典表")
+@RestController
+@RequestMapping("/ctop_reimburse_apply/reimburseDict")
+public class ReimburseDictController {
+    @Autowired
+    private IReimburseDictService reimburseDictService;
+
+    /**
+     * 分页列表查询
+     *
+     * @param reimburseDict
+     * @param pageNo
+     * @param pageSize
+     * @param req
+     * @return
+     */
+    @ApiOperation(value = "报销申请字典表-分页列表查询", notes = "报销申请字典表-分页列表查询")
+    @GetMapping(value = "/list")
+    public Result<IPage<ReimburseDict>> queryPageList(ReimburseDict reimburseDict,
+                                                      @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
+                                                      @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
+                                                      HttpServletRequest req) {
+        Result<IPage<ReimburseDict>> result = new Result<>();
+        QueryWrapper<ReimburseDict> queryWrapper = QueryGenerator.initQueryWrapper(reimburseDict, req.getParameterMap());
+        Page<ReimburseDict> page = new Page<ReimburseDict>(pageNo, pageSize);
+        IPage<ReimburseDict> pageList = reimburseDictService.page(page, queryWrapper);
+        result.setSuccess(true);
+        result.setResult(pageList);
+        return result;
+    }
+
+    /**
+     * 添加
+     *
+     * @param reimburseDict
+     * @return
+     */
+    @ApiOperation(value = "报销申请字典表-添加", notes = "报销申请字典表-添加")
+    @PostMapping(value = "/add")
+    public Result<ReimburseDict> add(@RequestBody ReimburseDict reimburseDict) {
+        Result<ReimburseDict> result = new Result<>();
+        try {
+            reimburseDictService.save(reimburseDict);
+            result.success("添加成功!");
+        } catch (Exception e) {
+            log.error(e.getMessage(), e);
+            result.error500("操作失败");
+        }
+        return result;
+    }
+
+    /**
+     * 编辑
+     *
+     * @param reimburseDict
+     * @return
+     */
+    @ApiOperation(value = "报销申请字典表-编辑", notes = "报销申请字典表-编辑")
+    @PutMapping(value = "/edit")
+    public Result<ReimburseDict> edit(@RequestBody ReimburseDict reimburseDict) {
+        Result<ReimburseDict> result = new Result<ReimburseDict>();
+        ReimburseDict reimburseDictEntity = reimburseDictService.getById(reimburseDict.getId());
+        if (reimburseDictEntity == null) {
+            result.error500("未找到对应实体");
+        } else {
+            boolean ok = reimburseDictService.updateById(reimburseDict);
+            if (ok) {
+                result.success("修改成功!");
+            }
+        }
+
+        return result;
+    }
+
+    /**
+     * 通过id删除
+     *
+     * @param id
+     * @return
+     */
+    @ApiOperation(value = "报销申请字典表-通过id删除", notes = "报销申请字典表-通过id删除")
+    @DeleteMapping(value = "/delete")
+    public Result<?> delete(@RequestParam(name = "id") String id) {
+        try {
+            reimburseDictService.removeById(id);
+        } catch (Exception e) {
+            log.error("删除失败", e.getMessage());
+            return Result.error("删除失败!");
+        }
+        return Result.ok("删除成功!");
+    }
+
+    /**
+     * 批量删除
+     *
+     * @param ids
+     * @return
+     */
+    @ApiOperation(value = "报销申请字典表-批量删除", notes = "报销申请字典表-批量删除")
+    @DeleteMapping(value = "/deleteBatch")
+    public Result<ReimburseDict> deleteBatch(@RequestParam(name = "ids") String ids) {
+        Result<ReimburseDict> result = new Result<>();
+        if (ids == null || "".equals(ids.trim())) {
+            result.error500("参数不识别!");
+        } else {
+            this.reimburseDictService.removeByIds(Arrays.asList(ids.split(",")));
+            result.success("删除成功!");
+        }
+        return result;
+    }
+
+    /**
+     * 通过id查询
+     *
+     * @param id
+     * @return
+     */
+    @ApiOperation(value = "报销申请字典表-通过id查询", notes = "报销申请字典表-通过id查询")
+    @GetMapping(value = "/queryById")
+    public Result<ReimburseDict> queryById(@RequestParam(name = "id", required = true) String id) {
+        Result<ReimburseDict> result = new Result<>();
+        ReimburseDict reimburseDict = reimburseDictService.getById(id);
+        if (reimburseDict == null) {
+            result.error500("未找到对应实体");
+        } else {
+            result.setResult(reimburseDict);
+            result.setSuccess(true);
+        }
+        return result;
+    }
+
+    /**
+     * 导出excel
+     *
+     * @param request
+     * @param response
+     */
+    @RequestMapping(value = "/exportXls")
+    public ModelAndView exportXls(HttpServletRequest request, HttpServletResponse response) {
+        // Step.1 组装查询条件
+        QueryWrapper<ReimburseDict> queryWrapper = null;
+        try {
+            String paramsStr = request.getParameter("paramsStr");
+            if (oConvertUtils.isNotEmpty(paramsStr)) {
+                String deString = URLDecoder.decode(paramsStr, "UTF-8");
+                ReimburseDict reimburseDict = JSON.parseObject(deString, ReimburseDict.class);
+                queryWrapper = QueryGenerator.initQueryWrapper(reimburseDict, request.getParameterMap());
+            }
+        } catch (UnsupportedEncodingException e) {
+            e.printStackTrace();
+        }
+
+        //Step.2 AutoPoi 导出Excel
+        ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
+        List<ReimburseDict> pageList = reimburseDictService.list(queryWrapper);
+        //导出文件名称
+        mv.addObject(NormalExcelConstants.FILE_NAME, "报销申请字典表列表");
+        mv.addObject(NormalExcelConstants.CLASS, ReimburseDict.class);
+        mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("报销申请字典表列表数据", "导出人:Jeecg", "导出信息"));
+        mv.addObject(NormalExcelConstants.DATA_LIST, pageList);
+        return mv;
+    }
+
+    /**
+     * 通过excel导入数据
+     *
+     * @param request
+     * @param response
+     * @return
+     */
+    @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<ReimburseDict> listReimburseDicts = ExcelImportUtil.importExcel(file.getInputStream(), ReimburseDict.class, params);
+                reimburseDictService.saveBatch(listReimburseDicts);
+                return Result.ok("文件导入成功!数据行数:" + listReimburseDicts.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("文件导入失败!");
+    }
+
+}

+ 249 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/controller/ReimburseExpressController.java

@@ -0,0 +1,249 @@
+package cn.com.ctop.reimburse.mondule.controller;
+
+import cn.com.ctop.reimburse.mondule.entity.ReimburseExpress;
+import cn.com.ctop.reimburse.mondule.service.IReimburseExpressService;
+import com.alibaba.fastjson.JSON;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+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.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 报销申请——快递记录表
+ *
+ * @author jeecg-boot
+ * @version V1.0
+ * @date 2022-11-21
+ */
+@Slf4j
+@Api(tags = "报销申请——快递记录表")
+@RestController
+@RequestMapping("/reimburse.mondule/reimburseExpress")
+public class ReimburseExpressController {
+    @Autowired
+    private IReimburseExpressService reimburseExpressService;
+
+    /**
+     * 分页列表查询
+     *
+     * @param reimburseExpress
+     * @param pageNo
+     * @param pageSize
+     * @param req
+     * @return
+     */
+    @ApiOperation(value = "报销申请——快递记录表-分页列表查询", notes = "报销申请——快递记录表-分页列表查询")
+    @GetMapping(value = "/list")
+    public Result<IPage<ReimburseExpress>> queryPageList(ReimburseExpress reimburseExpress,
+                                                         @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
+                                                         @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
+                                                         HttpServletRequest req) {
+        Result<IPage<ReimburseExpress>> result = new Result<>();
+        QueryWrapper<ReimburseExpress> queryWrapper = QueryGenerator.initQueryWrapper(reimburseExpress, req.getParameterMap());
+        Page<ReimburseExpress> page = new Page<ReimburseExpress>(pageNo, pageSize);
+        IPage<ReimburseExpress> pageList = reimburseExpressService.page(page, queryWrapper);
+        result.setSuccess(true);
+        result.setResult(pageList);
+        return result;
+    }
+
+    /**
+     * 添加
+     *
+     * @param reimburseExpress
+     * @return
+     */
+    @ApiOperation(value = "报销申请——快递记录表-添加", notes = "报销申请——快递记录表-添加")
+    @PostMapping(value = "/add")
+    public Result<ReimburseExpress> add(@RequestBody ReimburseExpress reimburseExpress) {
+        Result<ReimburseExpress> result = new Result<>();
+        try {
+            reimburseExpressService.save(reimburseExpress);
+            result.success("添加成功!");
+        } catch (Exception e) {
+            log.error(e.getMessage(), e);
+            result.error500("操作失败");
+        }
+        return result;
+    }
+
+    /**
+     * 编辑
+     *
+     * @param reimburseExpress
+     * @return
+     */
+    @ApiOperation(value = "报销申请——快递记录表-编辑", notes = "报销申请——快递记录表-编辑")
+    @PutMapping(value = "/edit")
+    public Result<ReimburseExpress> edit(@RequestBody ReimburseExpress reimburseExpress) {
+        Result<ReimburseExpress> result = new Result<ReimburseExpress>();
+        ReimburseExpress reimburseExpressEntity = reimburseExpressService.getById(reimburseExpress.getId());
+        if (reimburseExpressEntity == null) {
+            result.error500("未找到对应实体");
+        } else {
+            boolean ok = reimburseExpressService.updateById(reimburseExpress);
+            if (ok) {
+                result.success("修改成功!");
+            }
+        }
+
+        return result;
+    }
+
+    /**
+     * 通过id删除
+     *
+     * @param id
+     * @return
+     */
+    @ApiOperation(value = "报销申请——快递记录表-通过id删除", notes = "报销申请——快递记录表-通过id删除")
+    @DeleteMapping(value = "/delete")
+    public Result<?> delete(@RequestParam(name = "id") String id) {
+        try {
+            reimburseExpressService.removeById(id);
+        } catch (Exception e) {
+            log.error("删除失败", e.getMessage());
+            return Result.error("删除失败!");
+        }
+        return Result.ok("删除成功!");
+    }
+
+    /**
+     * 批量删除
+     *
+     * @param ids
+     * @return
+     */
+    @ApiOperation(value = "报销申请——快递记录表-批量删除", notes = "报销申请——快递记录表-批量删除")
+    @DeleteMapping(value = "/deleteBatch")
+    public Result<ReimburseExpress> deleteBatch(@RequestParam(name = "ids") String ids) {
+        Result<ReimburseExpress> result = new Result<>();
+        if (ids == null || "".equals(ids.trim())) {
+            result.error500("参数不识别!");
+        } else {
+            this.reimburseExpressService.removeByIds(Arrays.asList(ids.split(",")));
+            result.success("删除成功!");
+        }
+        return result;
+    }
+
+    /**
+     * 通过id查询
+     *
+     * @param id
+     * @return
+     */
+    @ApiOperation(value = "报销申请——快递记录表-通过id查询", notes = "报销申请——快递记录表-通过id查询")
+    @GetMapping(value = "/queryById")
+    public Result<ReimburseExpress> queryById(@RequestParam(name = "id", required = true) String id) {
+        Result<ReimburseExpress> result = new Result<>();
+        ReimburseExpress reimburseExpress = reimburseExpressService.getById(id);
+        if (reimburseExpress == null) {
+            result.error500("未找到对应实体");
+        } else {
+            result.setResult(reimburseExpress);
+            result.setSuccess(true);
+        }
+        return result;
+    }
+
+    /**
+     * 导出excel
+     *
+     * @param request
+     * @param response
+     */
+    @RequestMapping(value = "/exportXls")
+    public ModelAndView exportXls(HttpServletRequest request, HttpServletResponse response) {
+        // Step.1 组装查询条件
+        QueryWrapper<ReimburseExpress> queryWrapper = null;
+        try {
+            String paramsStr = request.getParameter("paramsStr");
+            if (oConvertUtils.isNotEmpty(paramsStr)) {
+                String deString = URLDecoder.decode(paramsStr, "UTF-8");
+                ReimburseExpress reimburseExpress = JSON.parseObject(deString, ReimburseExpress.class);
+                queryWrapper = QueryGenerator.initQueryWrapper(reimburseExpress, request.getParameterMap());
+            }
+        } catch (UnsupportedEncodingException e) {
+            e.printStackTrace();
+        }
+
+        //Step.2 AutoPoi 导出Excel
+        ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
+        List<ReimburseExpress> pageList = reimburseExpressService.list(queryWrapper);
+        //导出文件名称
+        mv.addObject(NormalExcelConstants.FILE_NAME, "报销申请——快递记录表列表");
+        mv.addObject(NormalExcelConstants.CLASS, ReimburseExpress.class);
+        mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("报销申请——快递记录表列表数据", "导出人:Jeecg", "导出信息"));
+        mv.addObject(NormalExcelConstants.DATA_LIST, pageList);
+        return mv;
+    }
+
+    /**
+     * 通过excel导入数据
+     *
+     * @param request
+     * @param response
+     * @return
+     */
+    @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<ReimburseExpress> listReimburseExpresss = ExcelImportUtil.importExcel(file.getInputStream(), ReimburseExpress.class, params);
+                reimburseExpressService.saveBatch(listReimburseExpresss);
+                return Result.ok("文件导入成功!数据行数:" + listReimburseExpresss.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("文件导入失败!");
+    }
+
+}

+ 246 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/controller/ReimburseProjectController.java

@@ -0,0 +1,246 @@
+package cn.com.ctop.reimburse.mondule.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+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 cn.com.ctop.reimburse.mondule.entity.ReimburseProject;
+import cn.com.ctop.reimburse.mondule.service.IReimburseProjectService;
+
+import java.util.Date;
+
+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.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;
+
+/**
+ * 报销申请项目表
+ *
+ * @author jeecg-boot
+ * @version V1.0
+ * @date 2022-11-21
+ */
+@Slf4j
+@Api(tags = "报销申请项目表")
+@RestController
+@RequestMapping("/reimburse.mondule/reimburseProject")
+public class ReimburseProjectController {
+    @Autowired
+    private IReimburseProjectService reimburseProjectService;
+
+    /**
+     * 分页列表查询
+     *
+     * @param reimburseProject
+     * @param pageNo
+     * @param pageSize
+     * @param req
+     * @return
+     */
+    @ApiOperation(value = "报销申请项目表-分页列表查询", notes = "报销申请项目表-分页列表查询")
+    @GetMapping(value = "/list")
+    public Result<IPage<ReimburseProject>> queryPageList(ReimburseProject reimburseProject,
+                                                         @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
+                                                         @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
+                                                         HttpServletRequest req) {
+        Result<IPage<ReimburseProject>> result = new Result<>();
+        QueryWrapper<ReimburseProject> queryWrapper = QueryGenerator.initQueryWrapper(reimburseProject, req.getParameterMap());
+        Page<ReimburseProject> page = new Page<ReimburseProject>(pageNo, pageSize);
+        IPage<ReimburseProject> pageList = reimburseProjectService.page(page, queryWrapper);
+        result.setSuccess(true);
+        result.setResult(pageList);
+        return result;
+    }
+
+    /**
+     * 添加
+     *
+     * @param reimburseProject
+     * @return
+     */
+    @ApiOperation(value = "报销申请项目表-添加", notes = "报销申请项目表-添加")
+    @PostMapping(value = "/add")
+    public Result<ReimburseProject> add(@RequestBody ReimburseProject reimburseProject) {
+        Result<ReimburseProject> result = new Result<>();
+        try {
+            reimburseProjectService.save(reimburseProject);
+            result.success("添加成功!");
+        } catch (Exception e) {
+            log.error(e.getMessage(), e);
+            result.error500("操作失败");
+        }
+        return result;
+    }
+
+    /**
+     * 编辑
+     *
+     * @param reimburseProject
+     * @return
+     */
+    @ApiOperation(value = "报销申请项目表-编辑", notes = "报销申请项目表-编辑")
+    @PutMapping(value = "/edit")
+    public Result<ReimburseProject> edit(@RequestBody ReimburseProject reimburseProject) {
+        Result<ReimburseProject> result = new Result<ReimburseProject>();
+        ReimburseProject reimburseProjectEntity = reimburseProjectService.getById(reimburseProject.getId());
+        if (reimburseProjectEntity == null) {
+            result.error500("未找到对应实体");
+        } else {
+            boolean ok = reimburseProjectService.updateById(reimburseProject);
+            if (ok) {
+                result.success("修改成功!");
+            }
+        }
+
+        return result;
+    }
+
+    /**
+     * 通过id删除
+     *
+     * @param id
+     * @return
+     */
+    @ApiOperation(value = "报销申请项目表-通过id删除", notes = "报销申请项目表-通过id删除")
+    @DeleteMapping(value = "/delete")
+    public Result<?> delete(@RequestParam(name = "id") String id) {
+        try {
+            reimburseProjectService.removeById(id);
+        } catch (Exception e) {
+            log.error("删除失败", e.getMessage());
+            return Result.error("删除失败!");
+        }
+        return Result.ok("删除成功!");
+    }
+
+    /**
+     * 批量删除
+     *
+     * @param ids
+     * @return
+     */
+    @ApiOperation(value = "报销申请项目表-批量删除", notes = "报销申请项目表-批量删除")
+    @DeleteMapping(value = "/deleteBatch")
+    public Result<ReimburseProject> deleteBatch(@RequestParam(name = "ids") String ids) {
+        Result<ReimburseProject> result = new Result<>();
+        if (ids == null || "".equals(ids.trim())) {
+            result.error500("参数不识别!");
+        } else {
+            this.reimburseProjectService.removeByIds(Arrays.asList(ids.split(",")));
+            result.success("删除成功!");
+        }
+        return result;
+    }
+
+    /**
+     * 通过id查询
+     *
+     * @param id
+     * @return
+     */
+    @ApiOperation(value = "报销申请项目表-通过id查询", notes = "报销申请项目表-通过id查询")
+    @GetMapping(value = "/queryById")
+    public Result<ReimburseProject> queryById(@RequestParam(name = "id", required = true) String id) {
+        Result<ReimburseProject> result = new Result<>();
+        ReimburseProject reimburseProject = reimburseProjectService.getById(id);
+        if (reimburseProject == null) {
+            result.error500("未找到对应实体");
+        } else {
+            result.setResult(reimburseProject);
+            result.setSuccess(true);
+        }
+        return result;
+    }
+
+    /**
+     * 导出excel
+     *
+     * @param request
+     * @param response
+     */
+    @RequestMapping(value = "/exportXls")
+    public ModelAndView exportXls(HttpServletRequest request, HttpServletResponse response) {
+        // Step.1 组装查询条件
+        QueryWrapper<ReimburseProject> queryWrapper = null;
+        try {
+            String paramsStr = request.getParameter("paramsStr");
+            if (oConvertUtils.isNotEmpty(paramsStr)) {
+                String deString = URLDecoder.decode(paramsStr, "UTF-8");
+                ReimburseProject reimburseProject = JSON.parseObject(deString, ReimburseProject.class);
+                queryWrapper = QueryGenerator.initQueryWrapper(reimburseProject, request.getParameterMap());
+            }
+        } catch (UnsupportedEncodingException e) {
+            e.printStackTrace();
+        }
+
+        //Step.2 AutoPoi 导出Excel
+        ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
+        List<ReimburseProject> pageList = reimburseProjectService.list(queryWrapper);
+        //导出文件名称
+        mv.addObject(NormalExcelConstants.FILE_NAME, "报销申请项目表列表");
+        mv.addObject(NormalExcelConstants.CLASS, ReimburseProject.class);
+        mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("报销申请项目表列表数据", "导出人:Jeecg", "导出信息"));
+        mv.addObject(NormalExcelConstants.DATA_LIST, pageList);
+        return mv;
+    }
+
+    /**
+     * 通过excel导入数据
+     *
+     * @param request
+     * @param response
+     * @return
+     */
+    @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<ReimburseProject> listReimburseProjects = ExcelImportUtil.importExcel(file.getInputStream(), ReimburseProject.class, params);
+                reimburseProjectService.saveBatch(listReimburseProjects);
+                return Result.ok("文件导入成功!数据行数:" + listReimburseProjects.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("文件导入失败!");
+    }
+
+}

+ 123 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/entity/ReimburseApply.java

@@ -0,0 +1,123 @@
+package cn.com.ctop.reimburse.mondule.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import org.jeecgframework.poi.excel.annotation.Excel;
+
+import java.util.Date;
+
+/**
+ * 报销申请提交表
+ *
+ * @author jeecg-boot
+ * @version V1.0
+ * @date 2022-11-21
+ */
+@Data
+@TableName("ctop_reimburse_apply")
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@ApiModel(value = "ctop_reimburse_apply对象", description = "报销申请提交表")
+public class ReimburseApply {
+
+    /**
+     * id
+     */
+    @TableId(type = IdType.AUTO)
+    @ApiModelProperty(value = "id")
+    private Long id;
+    /**
+     * 申请人ID
+     */
+    @Excel(name = "申请人ID", width = 15)
+    @ApiModelProperty(value = "申请人ID")
+    private String userId;
+    /**
+     * 申请人
+     */
+    @Excel(name = "申请人", width = 15)
+    @ApiModelProperty(value = "申请人")
+    private String userName;
+    /**
+     * 审核人ID
+     */
+    @Excel(name = "审核人ID", width = 15)
+    @ApiModelProperty(value = "审核人ID")
+    private String leaderId;
+    /**
+     * 申请日期
+     */
+    @Excel(name = "申请日期", width = 15)
+    @ApiModelProperty(value = "申请日期")
+    private String statDate;
+    /**
+     * 发票数
+     */
+    @Excel(name = "发票数", width = 15)
+    @ApiModelProperty(value = "发票数")
+    private Integer invoices;
+    /**
+     * 所属部门ID
+     */
+    @Excel(name = "所属部门ID", width = 15)
+    @ApiModelProperty(value = "所属部门ID")
+    private String departId;
+    /**
+     * 机构/部门名称
+     */
+    @Excel(name = "机构/部门名称", width = 15)
+    @ApiModelProperty(value = "机构/部门名称")
+    private String departName;
+    /**
+     * 公司主体ID
+     */
+    @Excel(name = "公司主体ID", width = 15)
+    @ApiModelProperty(value = "公司主体ID")
+    private String companyId;
+    /**
+     * 公司主体名称
+     */
+    @Excel(name = "公司主体名称", width = 15)
+    @ApiModelProperty(value = "公司主体名称")
+    private String companyName;
+    /**
+     * 媒体
+     */
+    @Excel(name = "媒体", width = 15)
+    @ApiModelProperty(value = "媒体")
+    private String media;
+    /**
+     * 报销类型
+     */
+    @Excel(name = "报销类型", width = 15)
+    @ApiModelProperty(value = "报销类型")
+    private String type;
+    /**
+     * 报销金额
+     */
+    @Excel(name = "报销金额", width = 15)
+    @ApiModelProperty(value = "报销金额")
+    private String amount;
+    /**
+     * 状态 1-使用 0-停用
+     */
+    @Excel(name = "状态 1-使用 0-停用", width = 15)
+    @ApiModelProperty(value = "状态 1-使用 0-停用")
+    private String status;
+    /**
+     * 创建时间
+     */
+    @ApiModelProperty(value = "创建时间")
+    private Date createTime;
+    /**
+     * 修改时间
+     */
+    @ApiModelProperty(value = "修改时间")
+    private Date updateTime;
+}

+ 64 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/entity/ReimburseDict.java

@@ -0,0 +1,64 @@
+package cn.com.ctop.reimburse.mondule.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import org.jeecgframework.poi.excel.annotation.Excel;
+
+import java.util.Date;
+
+/**
+ * 报销申请字典表
+ *
+ * @author jeecg-boot
+ * @version V1.0
+ * @date 2022-11-21
+ */
+@Data
+@TableName("ctop_reimburse_dict")
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@ApiModel(value = "ctop_reimburse_dict对象", description = "报销申请字典表")
+public class ReimburseDict {
+
+    /**
+     * id
+     */
+    @TableId(type = IdType.AUTO)
+    @ApiModelProperty(value = "id")
+    private Long id;
+    /**
+     * 报销类型
+     */
+    @Excel(name = "报销类型", width = 15)
+    @ApiModelProperty(value = "报销类型")
+    private String dtype;
+    /**
+     * 报销申请ID
+     */
+    @Excel(name = "报销申请ID", width = 15)
+    @ApiModelProperty(value = "报销申请ID")
+    private String dcode;
+    /**
+     * 报销项目
+     */
+    @Excel(name = "报销项目", width = 15)
+    @ApiModelProperty(value = "报销项目")
+    private String dname;
+    /**
+     * 备注
+     */
+    @Excel(name = "备注", width = 15)
+    @ApiModelProperty(value = "备注")
+    private String remarks;
+    /**
+     * 创建时间
+     */
+    @ApiModelProperty(value = "创建时间")
+    private Date createTime;
+}

+ 79 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/entity/ReimburseExpress.java

@@ -0,0 +1,79 @@
+package cn.com.ctop.reimburse.mondule.entity;
+
+import java.io.Serializable;
+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.TableField;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+
+/**
+ * 报销申请——快递记录表
+ *
+ * @author jeecg-boot
+ * @version V1.0
+ * @date 2022-11-21
+ */
+@Data
+@TableName("ctop_reimburse_express")
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@ApiModel(value = "ctop_reimburse_express对象", description = "报销申请——快递记录表")
+public class ReimburseExpress {
+
+    /**
+     * id
+     */
+    @TableId(type = IdType.AUTO)
+    @ApiModelProperty(value = "id")
+    private Long id;
+    /**
+     * 日期
+     */
+    @Excel(name = "日期", width = 15)
+    @ApiModelProperty(value = "日期")
+    private String statDate;
+    /**
+     * 快递单号
+     */
+    @Excel(name = "快递单号", width = 15)
+    @ApiModelProperty(value = "快递单号")
+    private String expressNumber;
+    /**
+     * 收件人ID
+     */
+    @Excel(name = "收件人ID", width = 15)
+    @ApiModelProperty(value = "收件人ID")
+    private String userId;
+    /**
+     * 收件人
+     */
+    @Excel(name = "收件人", width = 15)
+    @ApiModelProperty(value = "收件人")
+    private String userName;
+    /**
+     * 备注
+     */
+    @Excel(name = "备注", width = 15)
+    @ApiModelProperty(value = "备注")
+    private String remarks;
+    /**
+     * 创建时间
+     */
+    @ApiModelProperty(value = "创建时间")
+    private Date createTime;
+    /**
+     * 修改时间
+     */
+    @ApiModelProperty(value = "修改时间")
+    private Date updateTime;
+}

+ 97 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/entity/ReimburseProject.java

@@ -0,0 +1,97 @@
+package cn.com.ctop.reimburse.mondule.entity;
+
+import java.io.Serializable;
+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.TableField;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+
+/**
+ * 报销申请项目表
+ *
+ * @author jeecg-boot
+ * @version V1.0
+ * @date 2022-11-21
+ */
+@Data
+@TableName("ctop_reimburse_project")
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@ApiModel(value = "ctop_reimburse_project对象", description = "报销申请项目表")
+public class ReimburseProject {
+
+    /**
+     * id
+     */
+    @TableId(type = IdType.AUTO)
+    @ApiModelProperty(value = "id")
+    private Long id;
+    /**
+     * 报销申请ID
+     */
+    @Excel(name = "报销申请ID", width = 15)
+    @ApiModelProperty(value = "报销申请ID")
+    private Long applyId;
+    /**
+     * 报销项目
+     */
+    @Excel(name = "报销项目", width = 15)
+    @ApiModelProperty(value = "报销项目")
+    private String project;
+    /**
+     * 报销类型
+     */
+    @Excel(name = "报销类型", width = 15)
+    @ApiModelProperty(value = "报销类型")
+    private String type;
+    /**
+     * 发票数
+     */
+    @Excel(name = "发票数", width = 15)
+    @ApiModelProperty(value = "发票数")
+    private Integer invoices;
+    /**
+     * 产生费用日期
+     */
+    @Excel(name = "产生费用日期", width = 15)
+    @ApiModelProperty(value = "产生费用日期")
+    private String statDate;
+    /**
+     * 报销金额
+     */
+    @Excel(name = "报销金额", width = 15)
+    @ApiModelProperty(value = "报销金额")
+    private String amount;
+    /**
+     * 文件链接集合
+     */
+    @Excel(name = "文件链接集合", width = 15)
+    @ApiModelProperty(value = "文件链接集合")
+    private Object fileUrls;
+    /**
+     * 备注
+     */
+    @Excel(name = "备注", width = 15)
+    @ApiModelProperty(value = "备注")
+    private String remarks;
+    /**
+     * 创建时间
+     */
+    @ApiModelProperty(value = "创建时间")
+    private Date createTime;
+    /**
+     * 修改时间
+     */
+    @ApiModelProperty(value = "修改时间")
+    private Date updateTime;
+}

+ 17 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/mapper/ReimburseApplyMapper.java

@@ -0,0 +1,17 @@
+package cn.com.ctop.reimburse.mondule.mapper;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+import cn.com.ctop.reimburse.mondule.entity.ReimburseApply;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * 报销申请提交表
+ * @author jeecg-boot
+ * 2022-11-21
+ * @version V1.0
+ */
+public interface ReimburseApplyMapper extends BaseMapper<ReimburseApply> {
+
+}

+ 15 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/mapper/ReimburseDictMapper.java

@@ -0,0 +1,15 @@
+package cn.com.ctop.reimburse.mondule.mapper;
+
+import cn.com.ctop.reimburse.mondule.entity.ReimburseDict;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * 报销申请字典表
+ *
+ * @author jeecg-boot
+ * 2022-11-21
+ * @version V1.0
+ */
+public interface ReimburseDictMapper extends BaseMapper<ReimburseDict> {
+
+}

+ 15 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/mapper/ReimburseExpressMapper.java

@@ -0,0 +1,15 @@
+package cn.com.ctop.reimburse.mondule.mapper;
+
+import cn.com.ctop.reimburse.mondule.entity.ReimburseExpress;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * 报销申请——快递记录表
+ *
+ * @author jeecg-boot
+ * 2022-11-21
+ * @version V1.0
+ */
+public interface ReimburseExpressMapper extends BaseMapper<ReimburseExpress> {
+
+}

+ 15 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/mapper/ReimburseProjectMapper.java

@@ -0,0 +1,15 @@
+package cn.com.ctop.reimburse.mondule.mapper;
+
+import cn.com.ctop.reimburse.mondule.entity.ReimburseProject;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * 报销申请项目表
+ *
+ * @author jeecg-boot
+ * 2022-11-21
+ * @version V1.0
+ */
+public interface ReimburseProjectMapper extends BaseMapper<ReimburseProject> {
+
+}

+ 5 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/mapper/xml/ReimburseApplyMapper.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="cn.com.ctop.reimburse.mondule.mapper.ReimburseApplyMapper">
+
+</mapper>

+ 5 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/mapper/xml/ReimburseDictMapper.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="cn.com.ctop.reimburse.mondule.mapper.ReimburseDictMapper">
+
+</mapper>

+ 5 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/mapper/xml/ReimburseExpressMapper.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="cn.com.ctop.reimburse.mondule.mapper.ReimburseExpressMapper">
+
+</mapper>

+ 5 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/mapper/xml/ReimburseProjectMapper.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="cn.com.ctop.reimburse.mondule.mapper.ReimburseProjectMapper">
+
+</mapper>

+ 15 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/service/IReimburseApplyService.java

@@ -0,0 +1,15 @@
+package cn.com.ctop.reimburse.mondule.service;
+
+import cn.com.ctop.reimburse.mondule.entity.ReimburseApply;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * 报销申请提交表
+ *
+ * @author jeecg-boot
+ * 2022-11-21
+ * @version V1.0
+ */
+public interface IReimburseApplyService extends IService<ReimburseApply> {
+
+}

+ 15 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/service/IReimburseDictService.java

@@ -0,0 +1,15 @@
+package cn.com.ctop.reimburse.mondule.service;
+
+import cn.com.ctop.reimburse.mondule.entity.ReimburseDict;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * 报销申请字典表
+ *
+ * @author jeecg-boot
+ * 2022-11-21
+ * @version V1.0
+ */
+public interface IReimburseDictService extends IService<ReimburseDict> {
+
+}

+ 15 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/service/IReimburseExpressService.java

@@ -0,0 +1,15 @@
+package cn.com.ctop.reimburse.mondule.service;
+
+import cn.com.ctop.reimburse.mondule.entity.ReimburseExpress;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * 报销申请——快递记录表
+ *
+ * @author jeecg-boot
+ * 2022-11-21
+ * @version V1.0
+ */
+public interface IReimburseExpressService extends IService<ReimburseExpress> {
+
+}

+ 15 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/service/IReimburseProjectService.java

@@ -0,0 +1,15 @@
+package cn.com.ctop.reimburse.mondule.service;
+
+import cn.com.ctop.reimburse.mondule.entity.ReimburseProject;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * 报销申请项目表
+ *
+ * @author jeecg-boot
+ * 2022-11-21
+ * @version V1.0
+ */
+public interface IReimburseProjectService extends IService<ReimburseProject> {
+
+}

+ 19 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/service/impl/ReimburseApplyServiceImpl.java

@@ -0,0 +1,19 @@
+package cn.com.ctop.reimburse.mondule.service.impl;
+
+import cn.com.ctop.reimburse.mondule.entity.ReimburseApply;
+import cn.com.ctop.reimburse.mondule.mapper.ReimburseApplyMapper;
+import cn.com.ctop.reimburse.mondule.service.IReimburseApplyService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * 报销申请提交表
+ *
+ * @author jeecg-boot
+ * 2022-11-21
+ * @version V1.0
+ */
+@Service
+public class ReimburseApplyServiceImpl extends ServiceImpl<ReimburseApplyMapper, ReimburseApply> implements IReimburseApplyService {
+
+}

+ 19 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/service/impl/ReimburseDictServiceImpl.java

@@ -0,0 +1,19 @@
+package cn.com.ctop.reimburse.mondule.service.impl;
+
+import cn.com.ctop.reimburse.mondule.entity.ReimburseDict;
+import cn.com.ctop.reimburse.mondule.mapper.ReimburseDictMapper;
+import cn.com.ctop.reimburse.mondule.service.IReimburseDictService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * 报销申请字典表
+ *
+ * @author jeecg-boot
+ * 2022-11-21
+ * @version V1.0
+ */
+@Service
+public class ReimburseDictServiceImpl extends ServiceImpl<ReimburseDictMapper, ReimburseDict> implements IReimburseDictService {
+
+}

+ 19 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/service/impl/ReimburseExpressServiceImpl.java

@@ -0,0 +1,19 @@
+package cn.com.ctop.reimburse.mondule.service.impl;
+
+import cn.com.ctop.reimburse.mondule.entity.ReimburseExpress;
+import cn.com.ctop.reimburse.mondule.mapper.ReimburseExpressMapper;
+import cn.com.ctop.reimburse.mondule.service.IReimburseExpressService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * 报销申请——快递记录表
+ *
+ * @author jeecg-boot
+ * 2022-11-21
+ * @version V1.0
+ */
+@Service
+public class ReimburseExpressServiceImpl extends ServiceImpl<ReimburseExpressMapper, ReimburseExpress> implements IReimburseExpressService {
+
+}

+ 19 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/reimburse/mondule/service/impl/ReimburseProjectServiceImpl.java

@@ -0,0 +1,19 @@
+package cn.com.ctop.reimburse.mondule.service.impl;
+
+import cn.com.ctop.reimburse.mondule.entity.ReimburseProject;
+import cn.com.ctop.reimburse.mondule.mapper.ReimburseProjectMapper;
+import cn.com.ctop.reimburse.mondule.service.IReimburseProjectService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * 报销申请项目表
+ *
+ * @author jeecg-boot
+ * 2022-11-21
+ * @version V1.0
+ */
+@Service
+public class ReimburseProjectServiceImpl extends ServiceImpl<ReimburseProjectMapper, ReimburseProject> implements IReimburseProjectService {
+
+}