parent
555f50a17f
commit
411a7af876
12 changed files with 698 additions and 0 deletions
@ -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<Receipt, IReceiptService> { |
||||
@Autowired |
||||
private IReceiptService receiptService; |
||||
|
||||
/** |
||||
* 分页列表查询 |
||||
* |
||||
* @param receipt |
||||
* @param pageNo |
||||
* @param pageSize |
||||
* @param req |
||||
* @return |
||||
*/ |
||||
//@AutoLog(value = "开票管理-分页列表查询")
|
||||
@ApiOperation(value="开票管理-分页列表查询", notes="开票管理-分页列表查询") |
||||
@GetMapping(value = "/list") |
||||
public Result<IPage<Receipt>> queryPageList(Receipt receipt, |
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
||||
HttpServletRequest req) { |
||||
QueryWrapper<Receipt> queryWrapper = QueryGenerator.initQueryWrapper(receipt, req.getParameterMap()); |
||||
Page<Receipt> page = new Page<Receipt>(pageNo, pageSize); |
||||
IPage<Receipt> 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<String> 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<String> 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<String> 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<String> 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<Receipt> 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); |
||||
} |
||||
|
||||
} |
@ -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; |
||||
} |
@ -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<Receipt> { |
||||
|
||||
} |
@ -0,0 +1,5 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="org.jeecg.modules.demo.receipt.mapper.ReceiptMapper"> |
||||
|
||||
</mapper> |
@ -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<Receipt> { |
||||
|
||||
} |
@ -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<ReceiptMapper, Receipt> implements IReceiptService { |
||||
|
||||
} |
@ -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<ScPayment, IScPaymentService> { |
||||
@Autowired |
||||
private IScPaymentService scPaymentService; |
||||
|
||||
/** |
||||
* 分页列表查询 |
||||
* |
||||
* @param scPayment |
||||
* @param pageNo |
||||
* @param pageSize |
||||
* @param req |
||||
* @return |
||||
*/ |
||||
//@AutoLog(value = "缴费证明表-分页列表查询")
|
||||
@ApiOperation(value="缴费证明表-分页列表查询", notes="缴费证明表-分页列表查询") |
||||
@GetMapping(value = "/list") |
||||
public Result<IPage<ScPayment>> queryPageList(ScPayment scPayment, |
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
||||
HttpServletRequest req) { |
||||
QueryWrapper<ScPayment> queryWrapper = QueryGenerator.initQueryWrapper(scPayment, req.getParameterMap()); |
||||
Page<ScPayment> page = new Page<ScPayment>(pageNo, pageSize); |
||||
IPage<ScPayment> 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<String> 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<String> 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<String> 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<String> 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<ScPayment> 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); |
||||
} |
||||
|
||||
} |
@ -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; |
||||
} |
@ -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<ScPayment> { |
||||
|
||||
} |
@ -0,0 +1,5 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="org.jeecg.modules.demo.scpayment.mapper.ScPaymentMapper"> |
||||
|
||||
</mapper> |
@ -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<ScPayment> { |
||||
|
||||
} |
@ -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<ScPaymentMapper, ScPayment> implements IScPaymentService { |
||||
|
||||
} |
Loading…
Reference in new issue