| | |
| | | package com.ruoyi.web.controller.project; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | 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.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.RepeatSubmit; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.project.domain.BaseFinancesubject; |
| | | import com.ruoyi.project.service.IBaseFinancesubjectService; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 收入费用科目Controller |
| | |
| | | * 查询收入费用科目列表 |
| | | */ |
| | | @ApiOperation("查询收入费用科目列表") |
| | | //@PreAuthorize("@ss.hasPermi('project:financesubject:list')") |
| | | //@PreAuthorize("@ss.hasPermi('project::list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(BaseFinancesubject baseFinancesubject) |
| | | { |
| | |
| | | <result property="itemunit" column="ItemUnit" /> |
| | | <result property="usestate" column="UseState" /> |
| | | <result property="orderno" column="OrderNo" /> |
| | | <result property="expensetype" column="ExpenseType" /> |
| | | <result property="expensetypename" column="ExpenseTypeName" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectBaseFinancesubjectVo"> |
| | | select ID, del_flag, create_by, create_time, update_by, update_time, SubjectType, ItemType, ItemTypeName, Remark, ItemName, ItemDescribe, ItemUnit, UseState, SubjectTypeName, ItemPinYin, ItemCode, OrderNo from base_financesubject |
| | | select ID, del_flag, create_by, create_time, update_by, update_time, SubjectType, ItemType, ItemTypeName, Remark, ItemName, ItemDescribe, ItemUnit, UseState, SubjectTypeName, ItemPinYin, ItemCode, OrderNo,ExpenseType,ExpenseTypeName from base_financesubject |
| | | </sql> |
| | | |
| | | <select id="selectBaseFinancesubjectList" parameterType="com.ruoyi.project.domain.BaseFinancesubject" resultMap="BaseFinancesubjectResult"> |
| | |
| | | order by OrderNo |
| | | </select> |
| | | <select id="getItemName" resultType="com.ruoyi.project.domain.vo.FinanceSubjectVO"> |
| | | select ItemName as itemname, ID as id, ItemPinYin as itempinyin, ItemDescribe as itemdescribe, ItemCode as itemcode from base_financesubject |
| | | select ItemName as itemname, ID as id, ItemPinYin as itempinyin, ItemDescribe as itemdescribe, ItemCode as itemcode,ExpenseType as expensetype,ExpenseTypeName as expensetypename from base_financesubject |
| | | where ItemType = #{itemType} AND del_flag=0 |
| | | order by ID |
| | | </select> |