| | |
| | | <!--@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> |
| | |
| | | <!--@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> |