zxl
18 小时以前 ceb5801b07f6ff21452a7a9bdc492f4567b0b8dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?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="com.ycl.mapper.ProjectInvestmentFundingMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.ycl.domain.vo.ProjectInvestmentFundingVO">
        <result column="project_id" property="projectId" />
        <result column="total_investment" property="totalInvestment" />
        <result column="principal" property="principal" />
        <result column="dept_bond" property="deptBond" />
        <result column="national_debt" property="nationalDebt" />
        <result column="additional_national_debt" property="additionalNationalDebt" />
        <result column="government_investment_total" property="governmentInvestmentTotal" />
        <result column="central_investment_total" property="centralInvestmentTotal" />
        <result column="central_budget_investment" property="centralBudgetInvestment" />
        <result column="central_fiscal_investment" property="centralFiscalInvestment" />
        <result column="central_special_bond_investment" property="centralSpecialBondInvestment" />
        <result column="central_special_fund_investment" property="centralSpecialFundInvestment" />
        <result column="provincial_investment_total" property="provincialInvestmentTotal" />
        <result column="provincial_budget_investment" property="provincialBudgetInvestment" />
        <result column="provincial_fiscal_investment" property="provincialFiscalInvestment" />
        <result column="provincial_special_fund_investment" property="provincialSpecialFundInvestment" />
        <result column="city_investment_total" property="cityInvestmentTotal" />
        <result column="city_budget_investment" property="cityBudgetInvestment" />
        <result column="city_fiscal_investment" property="cityFiscalInvestment" />
        <result column="city_special_fund_investment" property="citySpecialFundInvestment" />
        <result column="county_investment_total" property="countyInvestmentTotal" />
        <result column="county_budget_investment" property="countyBudgetInvestment" />
        <result column="county_fiscal_investment" property="countyFiscalInvestment" />
        <result column="county_special_fund_investment" property="countySpecialFundInvestment" />
        <result column="domestic_loan_total" property="domesticLoanTotal" />
        <result column="bank_loan" property="bankLoan" />
        <result column="foreign_investment_total" property="foreignInvestmentTotal" />
        <result column="enterprise_self_raised_total" property="enterpriseSelfRaisedTotal" />
        <result column="other_investment_total" property="otherInvestmentTotal" />
        <result column="gmt_create" property="gmtCreate" />
        <result column="create_by" property="createBy" />
        <result column="gmt_update" property="gmtUpdate" />
        <result column="update_by" property="updateBy" />
    </resultMap>
 
 
 
 
 
 
 
    <select id="getById" resultMap="BaseResultMap">
        SELECT
            TPIF.project_id,
            TPIF.dept_bond,
            TPIF.national_debt,
            TPIF.additional_national_debt,
            TPIF.total_investment,
            TPIF.principal,
            TPIF.government_investment_total,
            TPIF.central_investment_total,
            TPIF.central_budget_investment,
            TPIF.central_fiscal_investment,
            TPIF.central_special_bond_investment,
            TPIF.central_special_fund_investment,
            TPIF.provincial_investment_total,
            TPIF.provincial_budget_investment,
            TPIF.provincial_fiscal_investment,
            TPIF.provincial_special_fund_investment,
            TPIF.city_investment_total,
            TPIF.city_budget_investment,
            TPIF.city_fiscal_investment,
            TPIF.city_special_fund_investment,
            TPIF.county_investment_total,
            TPIF.county_budget_investment,
            TPIF.county_fiscal_investment,
            TPIF.county_special_fund_investment,
            TPIF.domestic_loan_total,
            TPIF.bank_loan,
            TPIF.foreign_investment_total,
            TPIF.enterprise_self_raised_total,
            TPIF.other_investment_total,
            TPIF.gmt_create,
            TPIF.create_by,
            TPIF.gmt_update,
            TPIF.update_by,
            TPIF.id
        FROM
            t_project_investment_funding TPIF
        WHERE
            TPIF.id = #{id} AND TPIF.deleted = 0
    </select>
 
 
    <select id="getPage" resultMap="BaseResultMap">
        SELECT
            TPIF.project_id,
            TPIF.dept_bond,
            TPIF.national_debt,
            TPIF.additional_national_debt,
            TPIF.total_investment,
            TPIF.principal,
            TPIF.government_investment_total,
            TPIF.central_investment_total,
            TPIF.central_budget_investment,
            TPIF.central_fiscal_investment,
            TPIF.central_special_bond_investment,
            TPIF.central_special_fund_investment,
            TPIF.provincial_investment_total,
            TPIF.provincial_budget_investment,
            TPIF.provincial_fiscal_investment,
            TPIF.provincial_special_fund_investment,
            TPIF.city_investment_total,
            TPIF.city_budget_investment,
            TPIF.city_fiscal_investment,
            TPIF.city_special_fund_investment,
            TPIF.county_investment_total,
            TPIF.county_budget_investment,
            TPIF.county_fiscal_investment,
            TPIF.county_special_fund_investment,
            TPIF.domestic_loan_total,
            TPIF.bank_loan,
            TPIF.foreign_investment_total,
            TPIF.enterprise_self_raised_total,
            TPIF.other_investment_total,
            TPIF.gmt_create,
            TPIF.create_by,
            TPIF.gmt_update,
            TPIF.update_by,
            TPIF.id
        FROM
            t_project_investment_funding TPIF
        WHERE
            TPIF.deleted = 0
    </select>
 
</mapper>