From 61d43492bd055f354b586a15f97ea094fe9bf220 Mon Sep 17 00:00:00 2001
From: luodangjia <luodangjia>
Date: 星期一, 19 八月 2024 17:45:54 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TInvoiceTypeController.java |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TInvoiceTypeController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TInvoiceTypeController.java
index 9eacc23..3d7c91f 100644
--- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TInvoiceTypeController.java
+++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TInvoiceTypeController.java
@@ -1,6 +1,8 @@
 package com.ruoyi.other.controller;
 
 
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.ruoyi.common.core.domain.R;
 import com.ruoyi.common.core.web.domain.AjaxResult;
 import com.ruoyi.common.core.web.page.PageInfo;
 import com.ruoyi.other.api.domain.TInvoiceType;
@@ -74,5 +76,29 @@
 		}
 		return AjaxResult.success();
 	}
+	
+	
+	
+	@ResponseBody
+	@DeleteMapping("/getInvoiceTypeList")
+	@ApiOperation(value = "获取开票类型", tags = {"小程序-充电发票"})
+	public AjaxResult<List<TInvoiceType>> getInvoiceTypeList(){
+		List<TInvoiceType> list = invoiceTypeService.list(new LambdaQueryWrapper<TInvoiceType>()
+				.eq(TInvoiceType::getDelFlag, 0).orderByAsc(TInvoiceType::getCreateTime));
+		return AjaxResult.success(list);
+	}
+	
+	
+	/**
+	 * 根据id获取发票类型
+	 * @param id
+	 * @return
+	 */
+	@ResponseBody
+	@PostMapping("/getInvoiceType/{id}")
+	public R<TInvoiceType> getInvoiceType(@PathVariable Integer id){
+		TInvoiceType invoiceType = invoiceTypeService.getById(id);
+		return R.ok(invoiceType);
+	}
 }
 

--
Gitblit v1.7.1