diff --git a/jianshui-admin/src/main/java/com/jianshui/web/controller/system/InvoiceAllYhdjController.java b/jianshui-admin/src/main/java/com/jianshui/web/controller/system/InvoiceAllYhdjController.java new file mode 100644 index 0000000..b0fa75c --- /dev/null +++ b/jianshui-admin/src/main/java/com/jianshui/web/controller/system/InvoiceAllYhdjController.java @@ -0,0 +1,105 @@ +package com.jianshui.web.controller.system; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; + +import com.jianshui.system.domain.InvoiceAllYhdj; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +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.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.jianshui.common.annotation.Log; +import com.jianshui.common.core.controller.BaseController; +import com.jianshui.common.core.domain.AjaxResult; +import com.jianshui.common.enums.BusinessType; +import com.jianshui.common.utils.poi.ExcelUtil; +import com.jianshui.common.core.page.TableDataInfo; +import com.jianshui.system.service.IInvoiceAllYhdjService; + +/** + * 金四-用户登记Controller + * + * @author jianshui + * @date 2024-02-28 + */ +@RestController +@RequestMapping("/invoiceall/invoiceallyhdj") +public class InvoiceAllYhdjController extends BaseController +{ + @Autowired + private IInvoiceAllYhdjService invoiceAllYhdjService; + + /** + * 查询金四-用户登记列表 + */ + @PreAuthorize("@ss.hasPermi('invoiceall:invoiceallyhdj:list')") + @GetMapping("/list") + public TableDataInfo list(InvoiceAllYhdj invoiceAllYhdj) + { + startPage(); + List list = invoiceAllYhdjService.selectInvoiceAllYhdjList(invoiceAllYhdj); + return getDataTable(list); + } + + /** + * 导出金四-用户登记列表 + */ + @PreAuthorize("@ss.hasPermi('invoiceall:invoiceallyhdj:export')") + @Log(title = "金四-用户登记", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, InvoiceAllYhdj invoiceAllYhdj) + { + List list = invoiceAllYhdjService.selectInvoiceAllYhdjList(invoiceAllYhdj); + ExcelUtil util = new ExcelUtil(InvoiceAllYhdj.class); + util.exportExcel(response, list, "金四-用户登记数据"); + } + + /** + * 获取金四-用户登记详细信息 + */ + @PreAuthorize("@ss.hasPermi('invoiceall:invoiceallyhdj:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return AjaxResult.success(invoiceAllYhdjService.selectInvoiceAllYhdjById(id)); + } + + /** + * 新增金四-用户登记 + */ + @PreAuthorize("@ss.hasPermi('invoiceall:invoiceallyhdj:add')") + @Log(title = "金四-用户登记", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody InvoiceAllYhdj invoiceAllYhdj) + { + return toAjax(invoiceAllYhdjService.insertInvoiceAllYhdj(invoiceAllYhdj)); + } + + /** + * 修改金四-用户登记 + */ + @PreAuthorize("@ss.hasPermi('invoiceall:invoiceallyhdj:edit')") + @Log(title = "金四-用户登记", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody InvoiceAllYhdj invoiceAllYhdj) + { + return toAjax(invoiceAllYhdjService.updateInvoiceAllYhdj(invoiceAllYhdj)); + } + + /** + * 删除金四-用户登记 + */ + @PreAuthorize("@ss.hasPermi('invoiceall:invoiceallyhdj:remove')") + @Log(title = "金四-用户登记", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(invoiceAllYhdjService.deleteInvoiceAllYhdjByIds(ids)); + } +} diff --git a/jianshui-invoice/src/main/java/com/jianshui/invoice/service/impl/BillInfoServiceImpl.java b/jianshui-invoice/src/main/java/com/jianshui/invoice/service/impl/BillInfoServiceImpl.java index 2f1da8e..592531e 100644 --- a/jianshui-invoice/src/main/java/com/jianshui/invoice/service/impl/BillInfoServiceImpl.java +++ b/jianshui-invoice/src/main/java/com/jianshui/invoice/service/impl/BillInfoServiceImpl.java @@ -87,7 +87,7 @@ public class BillInfoServiceImpl implements IBillInfoService { Map invocieStatusDictMap = new HashMap<>(); ; - List invocieStatusData = dictTypeService.selectDictDataByType("invoice_status"); + List invocieStatusData = dictTypeService.selectDictDataByType("bill_state"); if (CollectionUtil.isNotEmpty(invocieStatusData)){ invocieStatusData.forEach(e->invocieStatusDictMap.put(e.getDictValue(),e.getDictLabel())); diff --git a/jianshui-system/src/main/java/com/jianshui/system/domain/InvoiceAllYhdj.java b/jianshui-system/src/main/java/com/jianshui/system/domain/InvoiceAllYhdj.java index e6a7818..b28c112 100644 --- a/jianshui-system/src/main/java/com/jianshui/system/domain/InvoiceAllYhdj.java +++ b/jianshui-system/src/main/java/com/jianshui/system/domain/InvoiceAllYhdj.java @@ -25,11 +25,11 @@ public class InvoiceAllYhdj implements Serializable private Long id; /** 办税人员姓名(税局实名认证的人员) */ - @Excel(name = "办税人员姓名(税局实名认证的人员)") + @Excel(name = "办税人员姓名") private String bsryxm; /** 登录身份(1:财务负责人,2:法定代表人,3:办税人,4:购票员,5:普通管理员,99:其他) 备注:如果选择99|其他,则办税人员名称、手机号码、身份证件号码.可以不传 */ - @Excel(name = "登录身份(1:财务负责人,2:法定代表人,3:办税人,4:购票员,5:普通管理员,99:其他) 备注:如果选择99|其他,则办税人员名称、手机号码、身份证件号码.可以不传") + @Excel(name = "登录身份") private String dlsf; /** 办税人员登录密码 */ @@ -37,7 +37,7 @@ public class InvoiceAllYhdj implements Serializable private String dlsfmm; /** 登录方式(参考码表) */ - @Excel(name = "登录方式(参考码表)") + @Excel(name = "登录方式") private String dlfs; /** 登录密码 */ @@ -57,11 +57,11 @@ public class InvoiceAllYhdj implements Serializable private String nsrsbh; /** 办税人员身份证件号码(税局实名认证的人员) */ - @Excel(name = "办税人员身份证件号码(税局实名认证的人员)") + @Excel(name = "身份证件号") private String bsrysfzjhm; /** 办税人员手机号码(税局实名认证的人员) */ - @Excel(name = "办税人员手机号码(税局实名认证的人员)") + @Excel(name = "手机号码") private String bsrysjhm; /** 中间号码 */ @@ -83,6 +83,7 @@ public class InvoiceAllYhdj implements Serializable private Date updateTime; /** 备注 */ + @Excel(name = "备注") private String remark; diff --git a/jianshui-system/src/main/java/com/jianshui/system/domain/ServiceManage.java b/jianshui-system/src/main/java/com/jianshui/system/domain/ServiceManage.java index 38872c2..288f279 100644 --- a/jianshui-system/src/main/java/com/jianshui/system/domain/ServiceManage.java +++ b/jianshui-system/src/main/java/com/jianshui/system/domain/ServiceManage.java @@ -1,6 +1,8 @@ package com.jianshui.system.domain; import java.util.Date; + +import com.baomidou.mybatisplus.annotation.TableField; import com.fasterxml.jackson.annotation.JsonFormat; import com.jianshui.common.annotation.Excel; import com.jianshui.common.core.domain.BaseEntity; @@ -33,6 +35,7 @@ public class ServiceManage extends BaseEntity private Integer state; @Excel(name = "服务状态") + @TableField(exist = false) private String serviceState; /** 请求报文类型 */ diff --git a/jianshui-system/src/main/resources/mapper/system/InvoiceAllYhdjMapper.xml b/jianshui-system/src/main/resources/mapper/system/InvoiceAllYhdjMapper.xml index 62e4875..db4a50c 100644 --- a/jianshui-system/src/main/resources/mapper/system/InvoiceAllYhdjMapper.xml +++ b/jianshui-system/src/main/resources/mapper/system/InvoiceAllYhdjMapper.xml @@ -27,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select id, bsryxm, dlsf, dlsfmm, dlfs, dlmm, dlzh, nsrmc, nsrsbh, bsrysfzjhm, bsrysjhm, zjh, create_by, create_time, update_by, update_time, remark,identity,dqbm from invoice_all_yhdj + select id, bsryxm, dlsf, dlsfmm, dlfs, dlmm, dlzh, nsrmc, nsrsbh, bsrysfzjhm, bsrysjhm, zjh, create_by, create_time, update_by, update_time, remark,`identity`,dqbm from invoice_all_yhdj