|
@@ -84,7 +84,7 @@
|
|
a.building_fee AS "buildingFee",
|
|
a.building_fee AS "buildingFee",
|
|
a.install_fee AS "installFee"
|
|
a.install_fee AS "installFee"
|
|
</sql>
|
|
</sql>
|
|
-
|
|
|
|
|
|
+
|
|
<sql id="projectRecordsJoins">
|
|
<sql id="projectRecordsJoins">
|
|
LEFT JOIN sys_area area ON area.id = a.area_id
|
|
LEFT JOIN sys_area area ON area.id = a.area_id
|
|
</sql>
|
|
</sql>
|
|
@@ -120,8 +120,8 @@
|
|
JOIN project_report_data d ON d.id = a.report_id
|
|
JOIN project_report_data d ON d.id = a.report_id
|
|
JOIN sys_user u ON u.id = a.create_by
|
|
JOIN sys_user u ON u.id = a.create_by
|
|
</sql>
|
|
</sql>
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
<select id="get" resultType="RuralProjectRecords" >
|
|
<select id="get" resultType="RuralProjectRecords" >
|
|
SELECT
|
|
SELECT
|
|
<include refid="projectRecordsColumns"/>
|
|
<include refid="projectRecordsColumns"/>
|
|
@@ -203,15 +203,87 @@
|
|
status = #{status},
|
|
status = #{status},
|
|
invalid_status = #{invalidStatus},
|
|
invalid_status = #{invalidStatus},
|
|
report_type = #{reportType},
|
|
report_type = #{reportType},
|
|
- number_path = #{numberPath},
|
|
|
|
- review_fee = #{reviewFee},
|
|
|
|
- approval_fee = #{approvalFee},
|
|
|
|
- contract_fee = #{contractFee},
|
|
|
|
- verify_fee = #{verifyFee},
|
|
|
|
- verify_rate = #{verifyRate},
|
|
|
|
- consult_fee = #{consultFee},
|
|
|
|
- building_fee = #{buildingFee},
|
|
|
|
- install_fee = #{installFee}
|
|
|
|
|
|
+ number_path = #{numberPath}
|
|
|
|
+ <choose>
|
|
|
|
+ <when test="reviewFee != null and reviewFee !=''">
|
|
|
|
+ ,review_fee = #{reviewFee}
|
|
|
|
+ </when>
|
|
|
|
+ <otherwise>
|
|
|
|
+ ,review_fee = 0
|
|
|
|
+ </otherwise>
|
|
|
|
+ </choose>
|
|
|
|
+ <choose>
|
|
|
|
+ <when test="approvalFee != null and approvalFee !=''">
|
|
|
|
+ ,approval_fee = #{approvalFee}
|
|
|
|
+ </when>
|
|
|
|
+ <otherwise>
|
|
|
|
+ ,approval_fee = 0
|
|
|
|
+ </otherwise>
|
|
|
|
+ </choose>
|
|
|
|
+ <choose>
|
|
|
|
+ <when test="contractFee != null and contractFee !=''">
|
|
|
|
+ ,contract_fee = #{contractFee}
|
|
|
|
+ </when>
|
|
|
|
+ <otherwise>
|
|
|
|
+ ,contract_fee = 0
|
|
|
|
+ </otherwise>
|
|
|
|
+ </choose>
|
|
|
|
+ <choose>
|
|
|
|
+ <when test="verifyFee != null and verifyFee !=''">
|
|
|
|
+ ,verify_fee = #{verifyFee}
|
|
|
|
+ </when>
|
|
|
|
+ <otherwise>
|
|
|
|
+ ,verify_fee = 0
|
|
|
|
+ </otherwise>
|
|
|
|
+ </choose>
|
|
|
|
+ <choose>
|
|
|
|
+ <when test="verifyRate != null and verifyRate !=''">
|
|
|
|
+ ,verify_rate = #{verifyRate}
|
|
|
|
+ </when>
|
|
|
|
+ <otherwise>
|
|
|
|
+ ,verify_rate = 0
|
|
|
|
+ </otherwise>
|
|
|
|
+ </choose>
|
|
|
|
+ <choose>
|
|
|
|
+ <when test="consultFee != null and consultFee !=''">
|
|
|
|
+ ,consult_fee = #{consultFee}
|
|
|
|
+ </when>
|
|
|
|
+ <otherwise>
|
|
|
|
+ ,consult_fee = 0
|
|
|
|
+ </otherwise>
|
|
|
|
+ </choose>
|
|
|
|
+ <choose>
|
|
|
|
+ <when test="buildingFee != null and buildingFee !=''">
|
|
|
|
+ ,building_fee = #{buildingFee}
|
|
|
|
+ </when>
|
|
|
|
+ <otherwise>
|
|
|
|
+ ,building_fee = 0
|
|
|
|
+ </otherwise>
|
|
|
|
+ </choose>
|
|
|
|
+ <choose>
|
|
|
|
+ <when test="installFee != null and installFee !=''">
|
|
|
|
+ ,install_fee = #{installFee}
|
|
|
|
+ </when>
|
|
|
|
+ <otherwise>
|
|
|
|
+ ,install_fee = 0
|
|
|
|
+ </otherwise>
|
|
|
|
+ </choose>
|
|
|
|
+ <choose>
|
|
|
|
+ <when test="buildingRate != null and buildingRate !=''">
|
|
|
|
+ ,building_rate = #{buildingRate}
|
|
|
|
+ </when>
|
|
|
|
+ <otherwise>
|
|
|
|
+ ,building_rate = 0
|
|
|
|
+ </otherwise>
|
|
|
|
+ </choose>
|
|
|
|
+ <choose>
|
|
|
|
+ <when test="installRate != null and installRate !=''">
|
|
|
|
+ ,install_rate = #{installRate}
|
|
|
|
+ </when>
|
|
|
|
+ <otherwise>
|
|
|
|
+ ,install_rate = 0
|
|
|
|
+ </otherwise>
|
|
|
|
+ </choose>
|
|
WHERE id = #{id}
|
|
WHERE id = #{id}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
@@ -221,7 +293,7 @@
|
|
WHERE id = #{id}
|
|
WHERE id = #{id}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
<select id="findList" resultType="RuralProjectRecords" >
|
|
<select id="findList" resultType="RuralProjectRecords" >
|
|
SELECT
|
|
SELECT
|
|
<include refid="projectRecordsColumns"/>
|
|
<include refid="projectRecordsColumns"/>
|
|
@@ -606,15 +678,15 @@
|
|
AND a.del_flag = #{DEL_FLAG_NORMAL}
|
|
AND a.del_flag = #{DEL_FLAG_NORMAL}
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+
|
|
<select id="findAllList" resultType="RuralProjectRecords" >
|
|
<select id="findAllList" resultType="RuralProjectRecords" >
|
|
- SELECT
|
|
|
|
|
|
+ SELECT
|
|
<include refid="projectRecordsColumns"/>
|
|
<include refid="projectRecordsColumns"/>
|
|
FROM rural_project_records a
|
|
FROM rural_project_records a
|
|
<include refid="projectRecordsJoins"/>
|
|
<include refid="projectRecordsJoins"/>
|
|
<where>
|
|
<where>
|
|
a.del_flag = #{DEL_FLAG_NORMAL}
|
|
a.del_flag = #{DEL_FLAG_NORMAL}
|
|
- </where>
|
|
|
|
|
|
+ </where>
|
|
<choose>
|
|
<choose>
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
ORDER BY ${page.orderBy}
|
|
ORDER BY ${page.orderBy}
|
|
@@ -624,7 +696,7 @@
|
|
</otherwise>
|
|
</otherwise>
|
|
</choose>
|
|
</choose>
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+
|
|
<insert id="insert">
|
|
<insert id="insert">
|
|
INSERT INTO rural_project_records(
|
|
INSERT INTO rural_project_records(
|
|
id,
|
|
id,
|
|
@@ -704,7 +776,7 @@
|
|
#{totalFees}
|
|
#{totalFees}
|
|
)
|
|
)
|
|
</insert>
|
|
</insert>
|
|
-
|
|
|
|
|
|
+
|
|
<update id="update">
|
|
<update id="update">
|
|
UPDATE rural_project_records SET
|
|
UPDATE rural_project_records SET
|
|
update_by = #{updateBy.id},
|
|
update_by = #{updateBy.id},
|
|
@@ -742,15 +814,15 @@
|
|
total_fees = #{totalFees}
|
|
total_fees = #{totalFees}
|
|
WHERE id = #{id}
|
|
WHERE id = #{id}
|
|
</update>
|
|
</update>
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
<!--物理删除-->
|
|
<!--物理删除-->
|
|
<update id="delete">
|
|
<update id="delete">
|
|
UPDATE rural_project_records SET
|
|
UPDATE rural_project_records SET
|
|
del_flag = #{DEL_FLAG_DELETE}
|
|
del_flag = #{DEL_FLAG_DELETE}
|
|
WHERE id = #{id}
|
|
WHERE id = #{id}
|
|
</update>
|
|
</update>
|
|
-
|
|
|
|
|
|
+
|
|
<!--逻辑删除-->
|
|
<!--逻辑删除-->
|
|
<update id="deleteByLogic">
|
|
<update id="deleteByLogic">
|
|
UPDATE rural_project_records SET
|
|
UPDATE rural_project_records SET
|
|
@@ -781,7 +853,7 @@
|
|
status = #{projectStatus}
|
|
status = #{projectStatus}
|
|
WHERE id = #{id}
|
|
WHERE id = #{id}
|
|
</update>
|
|
</update>
|
|
-
|
|
|
|
|
|
+
|
|
<update id="updateSelectiveById">
|
|
<update id="updateSelectiveById">
|
|
UPDATE rural_project_records
|
|
UPDATE rural_project_records
|
|
<set>
|
|
<set>
|
|
@@ -1100,4 +1172,4 @@
|
|
where
|
|
where
|
|
del_flag = 0 and parent_id = #{parentId}
|
|
del_flag = 0 and parent_id = #{parentId}
|
|
</select>
|
|
</select>
|
|
-</mapper>
|
|
|
|
|
|
+</mapper>
|