|
@@ -0,0 +1,103 @@
|
|
|
+<?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.ozs.plan.mapper.ProvisionalPlanMapper">
|
|
|
+ <resultMap type="com.ozs.plan.doman.ProvisionalPlan" id="ProvisionalPlanResult">
|
|
|
+ <id property="plan_year_id" column="planYearId"/>
|
|
|
+ <result property="plan_year_id" column="planYearId"/>
|
|
|
+ <result property="purchase_dept_id" column="purchaseDeptId"/>
|
|
|
+ <result property="project_name" column="projectName"/>
|
|
|
+ <result property="project_type" column="projectType"/>
|
|
|
+ <result property="demand_overview" column="demandOverview"/>
|
|
|
+ <result property="evaluation" column="evaluation"/>
|
|
|
+ <result property="is_excess" column="isExcess"/>
|
|
|
+ <result property="purchase_services" column="purchaseServices"/>
|
|
|
+ <result property="purchase_mode" column="purchaseMode"/>
|
|
|
+ <result property="plan_demand_sub_time" column="planDemandSubTime"/>
|
|
|
+ <result property="plan_purchase_finish_time" column="planPurchaseFinishTime"/>
|
|
|
+ <result property="plan_deliver_time" column="planDeliverTime"/>
|
|
|
+ <result property="project_attr" column="projectAttr"/>
|
|
|
+ <result property="adjust_reason" column="adjustReason"/>
|
|
|
+ <result property="remarks" column="remarks"/>
|
|
|
+ <result property="project_status" column="projectStatus"/>
|
|
|
+ <result property="refuse_reason" column="refuseReason"/>
|
|
|
+ <result property="del_flay" column="delFlay"/>
|
|
|
+ <result property="plan_type" column="planType"/>
|
|
|
+ <result property="created" column="created"/>
|
|
|
+ <result property="create_time" column="createTime"/>
|
|
|
+ <result property="updated" column="updated"/>
|
|
|
+ <result property="update_time" column="updateTime"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <delete id="deleteProvisionalPlanById" parameterType="java.lang.Integer">
|
|
|
+ delete from plan_practical where plan_year_id = #{planYearId}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <update id="updateProvisionalPlanById" parameterType="com.ozs.plan.doman.ProvisionalPlan">
|
|
|
+ update plan_practical
|
|
|
+ <set>
|
|
|
+ <if test="purchaseDeptId != null and purchaseDeptId != ''">
|
|
|
+ purchase_dept_id = #{purchaseDeptId},
|
|
|
+ </if>
|
|
|
+ <if test="projectName != null and projectName != ''">
|
|
|
+ project_name = #{projectName},
|
|
|
+ </if>
|
|
|
+ <if test="projectType != null and projectType != ''">
|
|
|
+ project_type = #{projectType},
|
|
|
+ </if>
|
|
|
+ <if test="demandOverview != null and demandOverview != ''">
|
|
|
+ demand_overview = #{demandOverview},
|
|
|
+ </if>
|
|
|
+ <if test="evaluation != null and evaluation != ''">
|
|
|
+ evaluation = #{evaluation},
|
|
|
+ </if>
|
|
|
+ <if test="isExcess != null and isExcess != '' ">
|
|
|
+ is_excess = #{isExcess},
|
|
|
+ </if>
|
|
|
+ <if test="purchaseServices != null and purchaseServices != '' ">
|
|
|
+ purchase_services = #{purchaseServices},
|
|
|
+ </if>
|
|
|
+ <if test="purchaseMode != null and purchaseMode != '' ">
|
|
|
+ purchase_mode = #{purchaseMode},
|
|
|
+ </if>
|
|
|
+ <if test="planDemandSubTime != null and planDemandSubTime != '' ">
|
|
|
+ plan_demand_sub_time = #{planDemandSubTime},
|
|
|
+ </if>
|
|
|
+ <if test="planPurchaseFinishTime != null and planPurchaseFinishTime != '' ">
|
|
|
+ plan_purchase_finish_time = #{planPurchaseFinishTime},
|
|
|
+ </if>
|
|
|
+ <if test="planDeliverTime != null and planDeliverTime != '' ">
|
|
|
+ plan_deliver_time = #{planDeliverTime},
|
|
|
+ </if>
|
|
|
+ <if test="projectAttr != null and projectAttr != '' ">
|
|
|
+ project_attr = #{projectAttr},
|
|
|
+ </if>
|
|
|
+ <if test="adjustReason != null and adjustReason != '' ">
|
|
|
+ adjust_reason = #{adjustReason},
|
|
|
+ </if>
|
|
|
+ <if test="remarks != null and remarks != '' ">
|
|
|
+ remarks = #{remarks},
|
|
|
+ </if>
|
|
|
+ <if test="projectStatus != null and projectStatus != '' ">
|
|
|
+ project_status = #{projectStatus},
|
|
|
+ </if>
|
|
|
+ <if test="refuseReason != null and refuseReason != '' ">
|
|
|
+ refuse_reason = #{refuseReason},
|
|
|
+ </if>
|
|
|
+ <if test="delFlay != null and delFlay != '' ">
|
|
|
+ del_flay = #{delFlay},
|
|
|
+ </if>
|
|
|
+ <if test="planType != null and planType != '' ">
|
|
|
+ plan_type = #{planType},
|
|
|
+ </if>
|
|
|
+ <if test="updated != null and updated != '' ">
|
|
|
+ updated = #{updated},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null and updateTime != '' ">
|
|
|
+ update_time = #{updateTime},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where plan_year_id = #{planYearId}
|
|
|
+ </update>
|
|
|
+</mapper>
|