刘小明
2024-08-26 591e3b8a10ed15023f3ad9e5a72a887ef89b0bb2
pms-parent/pms-global/src/main/resources/mapper/PrScheduleRelMapper.xml
@@ -46,42 +46,42 @@
    <!--@mbg.generated-->
    insert into pr_schedule_rel
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
      <if test="id != null and id !=''">
        id,
      </if>
      <if test="scheduleId != null">
      <if test="scheduleId!= null and scheduleId !=''">
        schedule_id,
      </if>
      <if test="planId != null">
      <if test="planId != null and planId !=''">
        plan_id,
      </if>
      <if test="nodeId != null">
      <if test="nodeId!= null and nodeId !=''">
        node_id,
      </if>
      <if test="stationId != null">
      <if test="stationId != null and stationId !=''">
        station_id,
      </if>
      <if test="workDetails != null">
      <if test="workDetails!= null and workDetails !=''">
        work_details,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
      <if test="id != null and id !=''">
        #{id,jdbcType=BIGINT},
      </if>
      <if test="scheduleId != null">
      <if test="scheduleId!= null and scheduleId !=''">
        #{scheduleId,jdbcType=BIGINT},
      </if>
      <if test="planId != null">
      <if test="planId != null and planId !=''">
        #{planId,jdbcType=BIGINT},
      </if>
      <if test="nodeId != null">
      <if test="nodeId!= null and nodeId !=''">
        #{nodeId,jdbcType=BIGINT},
      </if>
      <if test="stationId != null">
      <if test="stationId != null and stationId !=''">
        #{stationId,jdbcType=BIGINT},
      </if>
      <if test="workDetails != null">
      <if test="workDetails!= null and workDetails !=''">
        #{workDetails,jdbcType=VARCHAR},
      </if>
    </trim>
@@ -90,19 +90,19 @@
    <!--@mbg.generated-->
    update pr_schedule_rel
    <set>
      <if test="scheduleId != null">
      <if test="scheduleId!= null and scheduleId !=''">
        schedule_id = #{scheduleId,jdbcType=BIGINT},
      </if>
      <if test="planId != null">
      <if test="planId != null and planId !=''">
        plan_id = #{planId,jdbcType=BIGINT},
      </if>
      <if test="nodeId != null">
      <if test="nodeId!= null and nodeId !=''">
        node_id = #{nodeId,jdbcType=BIGINT},
      </if>
      <if test="stationId != null">
      <if test="stationId != null and stationId !=''">
        station_id = #{stationId,jdbcType=BIGINT},
      </if>
      <if test="workDetails != null">
      <if test="workDetails!= null and workDetails !=''">
        work_details = #{workDetails,jdbcType=VARCHAR},
      </if>
    </set>