and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
id, org_id, plan_id, duty_type, charger_code, charger_name, day_num, duty_cycle,
is_rest, pl_no, pl_name, berth_range_no, berth_range_name, group_id, group_name,
group_start_time, group_end_time, data_status, create_time, create_op, modify_time,
modify_op
INSERT INTO duty_roster_base (org_id, plan_id,duty_type, charger_code, charger_name, day_num, duty_cycle, is_rest, pl_no,
pl_name, berth_range_no, berth_range_name, group_id, group_name, group_start_time,
group_end_time, data_status, create_time, create_op, modify_time, modify_op)
SELECT
org_id,
plan_id,
duty_type,
charger_code,
charger_name,
day_num,
duty_cycle,
is_rest,
pl_no,
pl_name,
berth_range_no,
berth_range_name,
group_id,
group_name,
group_start_time,
group_end_time,
data_status,
create_time,
create_op,
modify_time,
modify_op
FROM duty_roster_base_temp temp
WHERE data_status = 1 AND temp.org_id = #{orgId} AND temp.plan_id = #{planId}
AND temp.duty_type = #{dutyType}
UPDATE duty_roster_base a, duty_roster_base b
SET
a.charger_code = b.charger_code,
a.charger_name = b.charger_name,
b.charger_code = a.charger_code,
b.charger_name = a.charger_name
WHERE
a.charger_code = #{souceChargerCode}
AND b.charger_code = #{targetChargerCode}
and a.duty_type = #{dutyType}
and b.duty_type = #{dutyType}