From 411a7af876f0f7304491a9f5568b2dc1c109afe1 Mon Sep 17 00:00:00 2001 From: Gitea Date: Tue, 19 Dec 2023 16:49:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E7=A5=A8=E5=92=8C=E7=BC=B4=E8=B4=B9?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../receipt/controller/ReceiptController.java | 178 +++++++++++++++++ .../modules/demo/receipt/entity/Receipt.java | 111 +++++++++++ .../demo/receipt/mapper/ReceiptMapper.java | 17 ++ .../demo/receipt/mapper/xml/ReceiptMapper.xml | 5 + .../demo/receipt/service/IReceiptService.java | 14 ++ .../service/impl/ReceiptServiceImpl.java | 19 ++ .../controller/ScPaymentController.java | 181 ++++++++++++++++++ .../demo/scpayment/entity/ScPayment.java | 118 ++++++++++++ .../scpayment/mapper/ScPaymentMapper.java | 17 ++ .../scpayment/mapper/xml/ScPaymentMapper.xml | 5 + .../scpayment/service/IScPaymentService.java | 14 ++ .../service/impl/ScPaymentServiceImpl.java | 19 ++ 12 files changed, 698 insertions(+) create mode 100644 jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/controller/ReceiptController.java create mode 100644 jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/entity/Receipt.java create mode 100644 jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/mapper/ReceiptMapper.java create mode 100644 jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/mapper/xml/ReceiptMapper.xml create mode 100644 jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/service/IReceiptService.java create mode 100644 jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/service/impl/ReceiptServiceImpl.java create mode 100644 jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/controller/ScPaymentController.java create mode 100644 jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/entity/ScPayment.java create mode 100644 jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/mapper/ScPaymentMapper.java create mode 100644 jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/mapper/xml/ScPaymentMapper.xml create mode 100644 jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/service/IScPaymentService.java create mode 100644 jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/service/impl/ScPaymentServiceImpl.java diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/controller/ReceiptController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/controller/ReceiptController.java new file mode 100644 index 00000000..76127c76 --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/controller/ReceiptController.java @@ -0,0 +1,178 @@ +package org.jeecg.modules.demo.receipt.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.demo.receipt.entity.Receipt; +import org.jeecg.modules.demo.receipt.service.IReceiptService; + +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; +import org.apache.shiro.authz.annotation.RequiresPermissions; + + /** + * @Description: 开票管理 + * @Author: jeecg-boot + * @Date: 2023-12-19 + * @Version: V1.0 + */ +@Api(tags="开票管理") +@RestController +@RequestMapping("/receipt/receipt") +@Slf4j +public class ReceiptController extends JeecgController { + @Autowired + private IReceiptService receiptService; + + /** + * 分页列表查询 + * + * @param receipt + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "开票管理-分页列表查询") + @ApiOperation(value="开票管理-分页列表查询", notes="开票管理-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(Receipt receipt, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(receipt, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = receiptService.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param receipt + * @return + */ + @AutoLog(value = "开票管理-添加") + @ApiOperation(value="开票管理-添加", notes="开票管理-添加") + //@RequiresPermissions("receipt:receipt:add") + @PostMapping(value = "/add") + public Result add(@RequestBody Receipt receipt) { + receiptService.save(receipt); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param receipt + * @return + */ + @AutoLog(value = "开票管理-编辑") + @ApiOperation(value="开票管理-编辑", notes="开票管理-编辑") + //@RequiresPermissions("receipt:receipt:edit") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody Receipt receipt) { + receiptService.updateById(receipt); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "开票管理-通过id删除") + @ApiOperation(value="开票管理-通过id删除", notes="开票管理-通过id删除") + //@RequiresPermissions("receipt:receipt:delete") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + receiptService.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "开票管理-批量删除") + @ApiOperation(value="开票管理-批量删除", notes="开票管理-批量删除") + //@RequiresPermissions("receipt:receipt:deleteBatch") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.receiptService.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 queryById(@RequestParam(name="id",required=true) String id) { + Receipt receipt = receiptService.getById(id); + if(receipt==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(receipt); + } + + /** + * 导出excel + * + * @param request + * @param receipt + */ + //@RequiresPermissions("receipt:receipt:exportXls") + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, Receipt receipt) { + return super.exportXls(request, receipt, Receipt.class, "开票管理"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + //@RequiresPermissions("receipt:receipt:importExcel") + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel(request, response, Receipt.class); + } + +} diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/entity/Receipt.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/entity/Receipt.java new file mode 100644 index 00000000..3fbca1c7 --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/entity/Receipt.java @@ -0,0 +1,111 @@ +package org.jeecg.modules.demo.receipt.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.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-12-19 + * @Version: V1.0 + */ +@Data +@TableName("receipt") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="receipt对象", description="开票管理") +public class Receipt implements Serializable { + private static final long serialVersionUID = 1L; + + /**主键*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "主键") + private java.lang.String id; + /**创建人*/ + @ApiModelProperty(value = "创建人") + private java.lang.String createBy; + /**创建日期*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "创建日期") + private java.util.Date createTime; + /**更新人*/ + @ApiModelProperty(value = "更新人") + private java.lang.String updateBy; + /**更新日期*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "更新日期") + private java.util.Date updateTime; + /**所属部门*/ + @ApiModelProperty(value = "所属部门") + private java.lang.String sysOrgCode; + /**学校*/ + @Excel(name = "学校", width = 15) + @ApiModelProperty(value = "学校") + private java.lang.String schoolid; + /**参赛队数*/ + @Excel(name = "参赛队数", width = 15) + @ApiModelProperty(value = "参赛队数") + private java.lang.String teamsnumber; + /**实缴金额*/ + @Excel(name = "实缴金额", width = 15) + @ApiModelProperty(value = "实缴金额") + private java.lang.String price; + /**开票金额*/ + @Excel(name = "开票金额", width = 15) + @ApiModelProperty(value = "开票金额") + private java.lang.String kpPrice; + /**联系人*/ + @Excel(name = "联系人", width = 15) + @ApiModelProperty(value = "联系人") + private java.lang.String contacts; + /**联系人电话*/ + @Excel(name = "联系人电话", width = 15) + @ApiModelProperty(value = "联系人电话") + private java.lang.String telephone; + /**邮箱*/ + @Excel(name = "邮箱", width = 15) + @ApiModelProperty(value = "邮箱") + private java.lang.String mailbox; + /**税号*/ + @Excel(name = "税号", width = 15) + @ApiModelProperty(value = "税号") + private java.lang.String duty; + /**地址*/ + @Excel(name = "地址", width = 15) + @ApiModelProperty(value = "地址") + private java.lang.String address; + /**电话*/ + @Excel(name = "电话", width = 15) + @ApiModelProperty(value = "电话") + private java.lang.String phone; + /**开户银行*/ + @Excel(name = "开户银行", width = 15) + @ApiModelProperty(value = "开户银行") + private java.lang.String bank; + /**银行账号*/ + @Excel(name = "银行账号", width = 15) + @ApiModelProperty(value = "银行账号") + private java.lang.String bankCode; + /**是否开票*/ + @Excel(name = "是否开票", width = 15, dicCode = "yn") + @Dict(dicCode = "yn") + @ApiModelProperty(value = "是否开票") + private java.lang.String iskp; +} diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/mapper/ReceiptMapper.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/mapper/ReceiptMapper.java new file mode 100644 index 00000000..228cd595 --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/mapper/ReceiptMapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.demo.receipt.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.demo.receipt.entity.Receipt; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: 开票管理 + * @Author: jeecg-boot + * @Date: 2023-12-19 + * @Version: V1.0 + */ +public interface ReceiptMapper extends BaseMapper { + +} diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/mapper/xml/ReceiptMapper.xml b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/mapper/xml/ReceiptMapper.xml new file mode 100644 index 00000000..e421b874 --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/mapper/xml/ReceiptMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/service/IReceiptService.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/service/IReceiptService.java new file mode 100644 index 00000000..8be4773f --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/service/IReceiptService.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.demo.receipt.service; + +import org.jeecg.modules.demo.receipt.entity.Receipt; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: 开票管理 + * @Author: jeecg-boot + * @Date: 2023-12-19 + * @Version: V1.0 + */ +public interface IReceiptService extends IService { + +} diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/service/impl/ReceiptServiceImpl.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/service/impl/ReceiptServiceImpl.java new file mode 100644 index 00000000..1f440abe --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/receipt/service/impl/ReceiptServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.demo.receipt.service.impl; + +import org.jeecg.modules.demo.receipt.entity.Receipt; +import org.jeecg.modules.demo.receipt.mapper.ReceiptMapper; +import org.jeecg.modules.demo.receipt.service.IReceiptService; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: 开票管理 + * @Author: jeecg-boot + * @Date: 2023-12-19 + * @Version: V1.0 + */ +@Service +public class ReceiptServiceImpl extends ServiceImpl implements IReceiptService { + +} diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/controller/ScPaymentController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/controller/ScPaymentController.java new file mode 100644 index 00000000..03997d68 --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/controller/ScPaymentController.java @@ -0,0 +1,181 @@ +package org.jeecg.modules.demo.scpayment.controller; + +import java.util.Arrays; +import java.util.Date; +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.demo.scpayment.entity.ScPayment; +import org.jeecg.modules.demo.scpayment.service.IScPaymentService; + +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; +import org.apache.shiro.authz.annotation.RequiresPermissions; + + /** + * @Description: 缴费证明表 + * @Author: jeecg-boot + * @Date: 2023-12-19 + * @Version: V1.0 + */ +@Api(tags="缴费证明表") +@RestController +@RequestMapping("/scpayment/scPayment") +@Slf4j +public class ScPaymentController extends JeecgController { + @Autowired + private IScPaymentService scPaymentService; + + /** + * 分页列表查询 + * + * @param scPayment + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "缴费证明表-分页列表查询") + @ApiOperation(value="缴费证明表-分页列表查询", notes="缴费证明表-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(ScPayment scPayment, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(scPayment, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = scPaymentService.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param scPayment + * @return + */ + @AutoLog(value = "缴费证明表-添加") + @ApiOperation(value="缴费证明表-添加", notes="缴费证明表-添加") + //@RequiresPermissions("scpayment:sc_payment:add") + @PostMapping(value = "/add") + public Result add(@RequestBody ScPayment scPayment) { + scPayment.setUploadtime(new Date()); + scPaymentService.save(scPayment); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param scPayment + * @return + */ + @AutoLog(value = "缴费证明表-编辑") + @ApiOperation(value="缴费证明表-编辑", notes="缴费证明表-编辑") + //@RequiresPermissions("scpayment:sc_payment:edit") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody ScPayment scPayment) { + scPayment.setUploadtime(new Date()); + scPaymentService.updateById(scPayment); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "缴费证明表-通过id删除") + @ApiOperation(value="缴费证明表-通过id删除", notes="缴费证明表-通过id删除") + //@RequiresPermissions("scpayment:sc_payment:delete") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + scPaymentService.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "缴费证明表-批量删除") + @ApiOperation(value="缴费证明表-批量删除", notes="缴费证明表-批量删除") + //@RequiresPermissions("scpayment:sc_payment:deleteBatch") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.scPaymentService.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 queryById(@RequestParam(name="id",required=true) String id) { + ScPayment scPayment = scPaymentService.getById(id); + if(scPayment==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(scPayment); + } + + /** + * 导出excel + * + * @param request + * @param scPayment + */ + //@RequiresPermissions("scpayment:sc_payment:exportXls") + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, ScPayment scPayment) { + return super.exportXls(request, scPayment, ScPayment.class, "缴费证明表"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + //@RequiresPermissions("scpayment:sc_payment:importExcel") + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel(request, response, ScPayment.class); + } + +} diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/entity/ScPayment.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/entity/ScPayment.java new file mode 100644 index 00000000..7f05ccda --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/entity/ScPayment.java @@ -0,0 +1,118 @@ +package org.jeecg.modules.demo.scpayment.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.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-12-19 + * @Version: V1.0 + */ +@Data +@TableName("sc_payment") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="sc_payment对象", description="缴费证明表") +public class ScPayment implements Serializable { + private static final long serialVersionUID = 1L; + + /**主键*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "主键") + private java.lang.String id; + /**创建人*/ + @ApiModelProperty(value = "创建人") + private java.lang.String createBy; + /**创建日期*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "创建日期") + private java.util.Date createTime; + /**更新人*/ + @ApiModelProperty(value = "更新人") + private java.lang.String updateBy; + /**更新日期*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "更新日期") + private java.util.Date updateTime; + /**所属部门*/ + @ApiModelProperty(value = "所属部门") + private java.lang.String sysOrgCode; + /**高校参加比赛*/ + @Excel(name = "高校参加比赛", width = 15) + @ApiModelProperty(value = "高校参加比赛") + private java.lang.String schanncompid; + /**高校*/ + @Excel(name = "高校", width = 15) + @ApiModelProperty(value = "高校") + private java.lang.String schoolid; + /**学院*/ + @Excel(name = "学院", width = 15) + @ApiModelProperty(value = "学院") + private java.lang.String college; + /**参赛队伍总数*/ + @Excel(name = "参赛队伍总数", width = 15) + @ApiModelProperty(value = "参赛队伍总数") + private java.lang.String teamsnumber; + /**缴费金额*/ + @Excel(name = "缴费金额", width = 15) + @ApiModelProperty(value = "缴费金额") + private java.lang.String price; + /**缴费方式*/ + @Excel(name = "缴费方式", width = 15, dicCode = "jffs") + @Dict(dicCode = "jffs") + @ApiModelProperty(value = "缴费方式") + private java.lang.String payWay; + /**开票状态*/ + @Excel(name = "开票状态", width = 15) + @Dict(dicCode = "kpzt") + @ApiModelProperty(value = "开票状态") + private java.lang.String invoicingstatus; + /**缴费证明*/ + @Excel(name = "缴费证明", width = 15) + @ApiModelProperty(value = "缴费证明") + private java.lang.String payment; + /**上传时间*/ + @Excel(name = "上传时间", width = 20, format = "yyyy-MM-dd HH:mm:ss") + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "上传时间") + private java.util.Date uploadtime; + /**说明*/ + @Excel(name = "说明", width = 15) + @ApiModelProperty(value = "说明") + private java.lang.String conto; + /**年度比赛*/ + @Excel(name = "年度比赛", width = 15) + @ApiModelProperty(value = "年度比赛") + private java.lang.String anncompid; + /**比赛*/ + @Excel(name = "比赛", width = 15) + @ApiModelProperty(value = "比赛") + private java.lang.String compid; + /**驳回原因*/ + @Excel(name = "驳回原因", width = 15) + @ApiModelProperty(value = "驳回原因") + private java.lang.String bhyy; + /**审核状态*/ + @Excel(name = "审核状态", width = 15) + @ApiModelProperty(value = "审核状态") + private java.lang.String shstatus; +} diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/mapper/ScPaymentMapper.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/mapper/ScPaymentMapper.java new file mode 100644 index 00000000..8b0e1f06 --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/mapper/ScPaymentMapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.demo.scpayment.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.demo.scpayment.entity.ScPayment; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: 缴费证明表 + * @Author: jeecg-boot + * @Date: 2023-12-19 + * @Version: V1.0 + */ +public interface ScPaymentMapper extends BaseMapper { + +} diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/mapper/xml/ScPaymentMapper.xml b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/mapper/xml/ScPaymentMapper.xml new file mode 100644 index 00000000..721779af --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/mapper/xml/ScPaymentMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/service/IScPaymentService.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/service/IScPaymentService.java new file mode 100644 index 00000000..201abd01 --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/service/IScPaymentService.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.demo.scpayment.service; + +import org.jeecg.modules.demo.scpayment.entity.ScPayment; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: 缴费证明表 + * @Author: jeecg-boot + * @Date: 2023-12-19 + * @Version: V1.0 + */ +public interface IScPaymentService extends IService { + +} diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/service/impl/ScPaymentServiceImpl.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/service/impl/ScPaymentServiceImpl.java new file mode 100644 index 00000000..68914694 --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/scpayment/service/impl/ScPaymentServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.demo.scpayment.service.impl; + +import org.jeecg.modules.demo.scpayment.entity.ScPayment; +import org.jeecg.modules.demo.scpayment.mapper.ScPaymentMapper; +import org.jeecg.modules.demo.scpayment.service.IScPaymentService; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: 缴费证明表 + * @Author: jeecg-boot + * @Date: 2023-12-19 + * @Version: V1.0 + */ +@Service +public class ScPaymentServiceImpl extends ServiceImpl implements IScPaymentService { + +}