|
@@ -3,7 +3,6 @@
|
|
<mapper namespace="com.jeeplus.modules.sg.financial.settlement.mapper.DataMaintenanceMapper">
|
|
<mapper namespace="com.jeeplus.modules.sg.financial.settlement.mapper.DataMaintenanceMapper">
|
|
|
|
|
|
<sql id="infoColumns">
|
|
<sql id="infoColumns">
|
|
- a.id AS "id",
|
|
|
|
a.create_by AS "createBy.id",
|
|
a.create_by AS "createBy.id",
|
|
a.create_date AS "createDate",
|
|
a.create_date AS "createDate",
|
|
a.update_by AS "updateBy.id",
|
|
a.update_by AS "updateBy.id",
|
|
@@ -31,7 +30,7 @@
|
|
SELECT
|
|
SELECT
|
|
<include refid="infoColumns"/>
|
|
<include refid="infoColumns"/>
|
|
FROM js_maintain_data a
|
|
FROM js_maintain_data a
|
|
- WHERE a.id = #{id}
|
|
|
|
|
|
+ WHERE a.project_id = #{id}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="findList" resultType="MaintainData" >
|
|
<select id="findList" resultType="MaintainData" >
|
|
@@ -78,7 +77,7 @@
|
|
|
|
|
|
<insert id="insert">
|
|
<insert id="insert">
|
|
INSERT INTO js_maintain_data(
|
|
INSERT INTO js_maintain_data(
|
|
- id,
|
|
|
|
|
|
+
|
|
create_by,
|
|
create_by,
|
|
create_date,
|
|
create_date,
|
|
update_by,
|
|
update_by,
|
|
@@ -100,7 +99,7 @@
|
|
management_fee,
|
|
management_fee,
|
|
total_fee
|
|
total_fee
|
|
) VALUES (
|
|
) VALUES (
|
|
- #{id},
|
|
|
|
|
|
+
|
|
#{createBy.id},
|
|
#{createBy.id},
|
|
#{createDate},
|
|
#{createDate},
|
|
#{updateBy.id},
|
|
#{updateBy.id},
|
|
@@ -126,7 +125,7 @@
|
|
|
|
|
|
<insert id="insertList">
|
|
<insert id="insertList">
|
|
replace INTO js_maintain_data(
|
|
replace INTO js_maintain_data(
|
|
- id,
|
|
|
|
|
|
+
|
|
create_by,
|
|
create_by,
|
|
create_date,
|
|
create_date,
|
|
update_by,
|
|
update_by,
|
|
@@ -150,7 +149,7 @@
|
|
) VALUES
|
|
) VALUES
|
|
<foreach collection="list" item="item" index="index" separator="," >
|
|
<foreach collection="list" item="item" index="index" separator="," >
|
|
(
|
|
(
|
|
- #{item.id},
|
|
|
|
|
|
+
|
|
#{item.createBy.id},
|
|
#{item.createBy.id},
|
|
#{item.createDate},
|
|
#{item.createDate},
|
|
#{item.updateBy.id},
|
|
#{item.updateBy.id},
|
|
@@ -181,7 +180,7 @@
|
|
update_date = #{updateDate},
|
|
update_date = #{updateDate},
|
|
remarks = #{remarks},
|
|
remarks = #{remarks},
|
|
start_date = #{startDate},
|
|
start_date = #{startDate},
|
|
- project_id = #{projectId},
|
|
|
|
|
|
+
|
|
end_date = #{endDate},
|
|
end_date = #{endDate},
|
|
approval_number = #{approvalNumber},
|
|
approval_number = #{approvalNumber},
|
|
building_fee = #{buildingFee},
|
|
building_fee = #{buildingFee},
|
|
@@ -194,21 +193,26 @@
|
|
damages = #{damages},
|
|
damages = #{damages},
|
|
management_fee = #{managementFee},
|
|
management_fee = #{managementFee},
|
|
total_fee = #{totalFee}
|
|
total_fee = #{totalFee}
|
|
- WHERE id = #{id}
|
|
|
|
|
|
+ WHERE project_id = #{id}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<!--物理删除-->
|
|
<!--物理删除-->
|
|
<update id="delete">
|
|
<update id="delete">
|
|
DELETE FROM js_maintain_data
|
|
DELETE FROM js_maintain_data
|
|
- WHERE id = #{id}
|
|
|
|
|
|
+ WHERE project_id = #{id}
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
+ <update id="deleteData">
|
|
|
|
+ DELETE FROM js_maintain_data
|
|
|
|
+ WHERE project_id = #{projectId}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
<!--逻辑删除-->
|
|
<!--逻辑删除-->
|
|
<update id="deleteByLogic">
|
|
<update id="deleteByLogic">
|
|
UPDATE js_maintain_data SET
|
|
UPDATE js_maintain_data SET
|
|
del_flag = #{DEL_FLAG_DELETE}
|
|
del_flag = #{DEL_FLAG_DELETE}
|
|
- WHERE id = #{id}
|
|
|
|
|
|
+ WHERE project_id = #{id}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
|