|
@@ -30,14 +30,14 @@
|
|
|
<select id="get" resultType="MaterialPlan" >
|
|
|
SELECT
|
|
|
<include refid="planColumns"/>
|
|
|
- FROM sm_material_plan a
|
|
|
+ FROM xm_material_plan a
|
|
|
WHERE a.unique_code = #{id}
|
|
|
</select>
|
|
|
|
|
|
<select id="findList" resultType="MaterialPlan" >
|
|
|
SELECT
|
|
|
<include refid="planColumns"/>
|
|
|
- FROM sm_material_plan a
|
|
|
+ FROM xm_material_plan a
|
|
|
<where>
|
|
|
a.del_flag = #{DEL_FLAG_NORMAL}
|
|
|
${dataScope}
|
|
@@ -58,7 +58,7 @@
|
|
|
<select id="findAllList" resultType="MaterialPlan" >
|
|
|
SELECT
|
|
|
<include refid="planColumns"/>
|
|
|
- FROM sm_material_plan a
|
|
|
+ FROM xm_material_plan a
|
|
|
<where>
|
|
|
a.del_flag = #{DEL_FLAG_NORMAL}
|
|
|
${dataScope}
|
|
@@ -74,7 +74,7 @@
|
|
|
</select>
|
|
|
|
|
|
<insert id="insert">
|
|
|
- INSERT INTO sm_material_plan(
|
|
|
+ INSERT INTO xm_material_plan(
|
|
|
create_by,
|
|
|
create_date,
|
|
|
update_by,
|
|
@@ -125,7 +125,7 @@
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertList">
|
|
|
- replace INTO sm_material_plan(
|
|
|
+ replace INTO xm_material_plan(
|
|
|
create_by,
|
|
|
create_date,
|
|
|
update_by,
|
|
@@ -178,7 +178,7 @@
|
|
|
</insert>
|
|
|
|
|
|
<update id="update">
|
|
|
- UPDATE sm_material_plan SET
|
|
|
+ UPDATE xm_material_plan SET
|
|
|
update_by = #{updateBy.id},
|
|
|
update_date = #{updateDate},
|
|
|
require_coding = #{requireCoding},
|
|
@@ -199,7 +199,7 @@
|
|
|
WHERE unique_code = #{uniqueCode}
|
|
|
</update>
|
|
|
<update id="updateTime">
|
|
|
- UPDATE sm_material_plan SET
|
|
|
+ UPDATE xm_material_plan SET
|
|
|
update_by = #{updateBy.id},
|
|
|
update_date = #{updateDate},
|
|
|
delivery_schedule =#{deliverySchedule}
|
|
@@ -208,18 +208,18 @@
|
|
|
|
|
|
<!--物理删除-->
|
|
|
<update id="delete">
|
|
|
- DELETE FROM sm_material_plan
|
|
|
+ DELETE FROM xm_material_plan
|
|
|
WHERE unique_code = #{id}
|
|
|
</update>
|
|
|
|
|
|
<update id="deleteData">
|
|
|
- DELETE FROM sm_material_plan
|
|
|
+ DELETE FROM xm_material_plan
|
|
|
WHERE unique_code= #{unique_code}
|
|
|
</update>
|
|
|
|
|
|
<!--逻辑删除-->
|
|
|
<update id="deleteByLogic">
|
|
|
- UPDATE sm_material_plan SET
|
|
|
+ UPDATE xm_material_plan SET
|
|
|
del_flag = #{DEL_FLAG_DELETE}
|
|
|
WHERE unique_code = #{id}
|
|
|
</update>
|
|
@@ -227,7 +227,7 @@
|
|
|
|
|
|
<!-- 根据实体名称和字段名称和字段值获取唯一记录 -->
|
|
|
<select id="findUniqueByProperty" resultType="Project" statementType="STATEMENT">
|
|
|
- select * FROM sm_material_plan where ${unique_code} = '${value}'
|
|
|
+ select * FROM xm_material_plan where ${unique_code} = '${value}'
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|