|
|
|
@ -317,17 +317,44 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<update id="updateIdList">
|
|
|
|
|
<update id="updateIdList" parameterType="java.util.List">
|
|
|
|
|
UPDATE b_plan_enterprise
|
|
|
|
|
SET status = 1
|
|
|
|
|
WHERE id in
|
|
|
|
|
<foreach item="item" collection="idList" open="(" separator="," close=")">
|
|
|
|
|
<foreach item="item" collection="list" open="(" separator="," close=")">
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<update id="updatePlan" parameterType="BPlanEnterpriseRequest">
|
|
|
|
|
update b_plan_enterprise
|
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<if test="enterpriseId != null">enterprise_id=#{enterpriseId},</if>
|
|
|
|
|
<if test="district != null">district=#{district},</if>
|
|
|
|
|
<if test="plannedYear != null">planned_year={plannedYear},</if>
|
|
|
|
|
<if test="isPoint != null">is_point=#{isPoint},</if>
|
|
|
|
|
<if test="enterpriseName != null">enterprise_name=#{enterpriseName},</if>
|
|
|
|
|
<if test="lawSort != null">law_sort=#{law_sort},</if>
|
|
|
|
|
<if test="lawAreas != null">law_areas=#{lawAreas},</if>
|
|
|
|
|
<if test="lawLevel != null">law_level=#{lawLevel},</if>
|
|
|
|
|
<if test="lawHierarchy != null">law_hierarchy=#{lawHierarchy},</if>
|
|
|
|
|
<if test="plannedMonth != null">planned_month=#{plannedMonth},</if>
|
|
|
|
|
<if test="status != null">status=#{status},</if>
|
|
|
|
|
<if test="createId != null">create_id=#{createId},</if>
|
|
|
|
|
<if test="createBy != null">create_by=#{createBy},</if>
|
|
|
|
|
<if test="createTime != null">create_time=#{createTime},</if>
|
|
|
|
|
<if test="updateId != null">update_id=#{updateId},</if>
|
|
|
|
|
<if test="updateBy != null">update_by=#{updateBy},</if>
|
|
|
|
|
<if test="updateTime != null">update_time=#{updateTime},</if>
|
|
|
|
|
<if test="remark != null">remark=#{remark},</if>
|
|
|
|
|
<if test="userId != null">user_id=#{userId},</if>
|
|
|
|
|
<if test="deptId != null">dept_id=#{deptId},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertPlan" parameterType="BPlanEnterpriseRequest" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
|
insert into b_plan_enterprise
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|