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, duty_day, day_num, duty_cycle, work_state, pl_no, pl_name, berth_range_no, berth_range_name, berth_num, group_id, group_name, group_start_time, group_end_time, charger_code_rep, charger_name_rep, data_status, create_time, create_op, modify_time, modify_op, sign_state, sign_in_time, sign_in_distance, sign_out_time, sign_out_distance delete from duty_roster where id = #{id,jdbcType=BIGINT} delete from duty_roster SELECT LAST_INSERT_ID() insert into duty_roster (org_id, plan_id, duty_type, charger_code, charger_name, duty_day, day_num, duty_cycle, work_state, pl_no, pl_name, berth_range_no, berth_range_name, berth_num, group_id, group_name, group_start_time, group_end_time, charger_code_rep, charger_name_rep, data_status, create_time, create_op, modify_time, modify_op, sign_state, sign_in_time, sign_in_distance, sign_out_time, sign_out_distance ) values (#{orgId,jdbcType=BIGINT}, #{planId,jdbcType=BIGINT}, #{dutyType,jdbcType=INTEGER}, #{chargerCode,jdbcType=VARCHAR}, #{chargerName,jdbcType=VARCHAR}, #{dutyDay,jdbcType=DATE}, #{dayNum,jdbcType=INTEGER}, #{dutyCycle,jdbcType=INTEGER}, #{workState,jdbcType=INTEGER}, #{plNo,jdbcType=VARCHAR}, #{plName,jdbcType=VARCHAR}, #{berthRangeNo,jdbcType=VARCHAR}, #{berthRangeName,jdbcType=VARCHAR}, #{berthNum,jdbcType=INTEGER}, #{groupId,jdbcType=BIGINT}, #{groupName,jdbcType=VARCHAR}, #{groupStartTime,jdbcType=TIMESTAMP}, #{groupEndTime,jdbcType=TIMESTAMP}, #{chargerCodeRep,jdbcType=VARCHAR}, #{chargerNameRep,jdbcType=VARCHAR}, #{dataStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{createOp,jdbcType=BIGINT}, #{modifyTime,jdbcType=TIMESTAMP}, #{modifyOp,jdbcType=BIGINT}, #{signState,jdbcType=INTEGER}, #{signInTime,jdbcType=TIMESTAMP}, #{signInDistance,jdbcType=INTEGER}, #{signOutTime,jdbcType=TIMESTAMP}, #{signOutDistance,jdbcType=INTEGER} ) SELECT LAST_INSERT_ID() insert into duty_roster org_id, plan_id, duty_type, charger_code, charger_name, duty_day, day_num, duty_cycle, work_state, pl_no, pl_name, berth_range_no, berth_range_name, berth_num, group_id, group_name, group_start_time, group_end_time, charger_code_rep, charger_name_rep, data_status, create_time, create_op, modify_time, modify_op, sign_state, sign_in_time, sign_in_distance, sign_out_time, sign_out_distance, #{orgId,jdbcType=BIGINT}, #{planId,jdbcType=BIGINT}, #{dutyType,jdbcType=INTEGER}, #{chargerCode,jdbcType=VARCHAR}, #{chargerName,jdbcType=VARCHAR}, #{dutyDay,jdbcType=DATE}, #{dayNum,jdbcType=INTEGER}, #{dutyCycle,jdbcType=INTEGER}, #{workState,jdbcType=INTEGER}, #{plNo,jdbcType=VARCHAR}, #{plName,jdbcType=VARCHAR}, #{berthRangeNo,jdbcType=VARCHAR}, #{berthRangeName,jdbcType=VARCHAR}, #{berthNum,jdbcType=INTEGER}, #{groupId,jdbcType=BIGINT}, #{groupName,jdbcType=VARCHAR}, #{groupStartTime,jdbcType=TIMESTAMP}, #{groupEndTime,jdbcType=TIMESTAMP}, #{chargerCodeRep,jdbcType=VARCHAR}, #{chargerNameRep,jdbcType=VARCHAR}, #{dataStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{createOp,jdbcType=BIGINT}, #{modifyTime,jdbcType=TIMESTAMP}, #{modifyOp,jdbcType=BIGINT}, #{signState,jdbcType=INTEGER}, #{signInTime,jdbcType=TIMESTAMP}, #{signInDistance,jdbcType=INTEGER}, #{signOutTime,jdbcType=TIMESTAMP}, #{signOutDistance,jdbcType=INTEGER}, update duty_roster id = #{record.id,jdbcType=BIGINT}, org_id = #{record.orgId,jdbcType=BIGINT}, plan_id = #{record.planId,jdbcType=BIGINT}, duty_type = #{record.dutyType,jdbcType=INTEGER}, charger_code = #{record.chargerCode,jdbcType=VARCHAR}, charger_name = #{record.chargerName,jdbcType=VARCHAR}, duty_day = #{record.dutyDay,jdbcType=DATE}, day_num = #{record.dayNum,jdbcType=INTEGER}, duty_cycle = #{record.dutyCycle,jdbcType=INTEGER}, work_state = #{record.workState,jdbcType=INTEGER}, pl_no = #{record.plNo,jdbcType=VARCHAR}, pl_name = #{record.plName,jdbcType=VARCHAR}, berth_range_no = #{record.berthRangeNo,jdbcType=VARCHAR}, berth_range_name = #{record.berthRangeName,jdbcType=VARCHAR}, berth_num = #{record.berthNum,jdbcType=INTEGER}, group_id = #{record.groupId,jdbcType=BIGINT}, group_name = #{record.groupName,jdbcType=VARCHAR}, group_start_time = #{record.groupStartTime,jdbcType=TIMESTAMP}, group_end_time = #{record.groupEndTime,jdbcType=TIMESTAMP}, charger_code_rep = #{record.chargerCodeRep,jdbcType=VARCHAR}, charger_name_rep = #{record.chargerNameRep,jdbcType=VARCHAR}, data_status = #{record.dataStatus,jdbcType=INTEGER}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, create_op = #{record.createOp,jdbcType=BIGINT}, modify_time = #{record.modifyTime,jdbcType=TIMESTAMP}, modify_op = #{record.modifyOp,jdbcType=BIGINT}, sign_state = #{record.signState,jdbcType=INTEGER}, sign_in_time = #{record.signInTime,jdbcType=TIMESTAMP}, sign_in_distance = #{record.signInDistance,jdbcType=INTEGER}, sign_out_time = #{record.signOutTime,jdbcType=TIMESTAMP}, sign_out_distance = #{record.signOutDistance,jdbcType=INTEGER}, update duty_roster set id = #{record.id,jdbcType=BIGINT}, org_id = #{record.orgId,jdbcType=BIGINT}, plan_id = #{record.planId,jdbcType=BIGINT}, duty_type = #{record.dutyType,jdbcType=INTEGER}, charger_code = #{record.chargerCode,jdbcType=VARCHAR}, charger_name = #{record.chargerName,jdbcType=VARCHAR}, duty_day = #{record.dutyDay,jdbcType=DATE}, day_num = #{record.dayNum,jdbcType=INTEGER}, duty_cycle = #{record.dutyCycle,jdbcType=INTEGER}, work_state = #{record.workState,jdbcType=INTEGER}, pl_no = #{record.plNo,jdbcType=VARCHAR}, pl_name = #{record.plName,jdbcType=VARCHAR}, berth_range_no = #{record.berthRangeNo,jdbcType=VARCHAR}, berth_range_name = #{record.berthRangeName,jdbcType=VARCHAR}, berth_num = #{record.berthNum,jdbcType=INTEGER}, group_id = #{record.groupId,jdbcType=BIGINT}, group_name = #{record.groupName,jdbcType=VARCHAR}, group_start_time = #{record.groupStartTime,jdbcType=TIMESTAMP}, group_end_time = #{record.groupEndTime,jdbcType=TIMESTAMP}, charger_code_rep = #{record.chargerCodeRep,jdbcType=VARCHAR}, charger_name_rep = #{record.chargerNameRep,jdbcType=VARCHAR}, data_status = #{record.dataStatus,jdbcType=INTEGER}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, create_op = #{record.createOp,jdbcType=BIGINT}, modify_time = #{record.modifyTime,jdbcType=TIMESTAMP}, modify_op = #{record.modifyOp,jdbcType=BIGINT}, sign_state = #{record.signState,jdbcType=INTEGER}, sign_in_time = #{record.signInTime,jdbcType=TIMESTAMP}, sign_in_distance = #{record.signInDistance,jdbcType=INTEGER}, sign_out_time = #{record.signOutTime,jdbcType=TIMESTAMP}, sign_out_distance = #{record.signOutDistance,jdbcType=INTEGER} update duty_roster org_id = #{orgId,jdbcType=BIGINT}, plan_id = #{planId,jdbcType=BIGINT}, duty_type = #{dutyType,jdbcType=INTEGER}, charger_code = #{chargerCode,jdbcType=VARCHAR}, charger_name = #{chargerName,jdbcType=VARCHAR}, duty_day = #{dutyDay,jdbcType=DATE}, day_num = #{dayNum,jdbcType=INTEGER}, duty_cycle = #{dutyCycle,jdbcType=INTEGER}, work_state = #{workState,jdbcType=INTEGER}, pl_no = #{plNo,jdbcType=VARCHAR}, pl_name = #{plName,jdbcType=VARCHAR}, berth_range_no = #{berthRangeNo,jdbcType=VARCHAR}, berth_range_name = #{berthRangeName,jdbcType=VARCHAR}, berth_num = #{berthNum,jdbcType=INTEGER}, group_id = #{groupId,jdbcType=BIGINT}, group_name = #{groupName,jdbcType=VARCHAR}, group_start_time = #{groupStartTime,jdbcType=TIMESTAMP}, group_end_time = #{groupEndTime,jdbcType=TIMESTAMP}, charger_code_rep = #{chargerCodeRep,jdbcType=VARCHAR}, charger_name_rep = #{chargerNameRep,jdbcType=VARCHAR}, data_status = #{dataStatus,jdbcType=INTEGER}, create_time = #{createTime,jdbcType=TIMESTAMP}, create_op = #{createOp,jdbcType=BIGINT}, modify_time = #{modifyTime,jdbcType=TIMESTAMP}, modify_op = #{modifyOp,jdbcType=BIGINT}, sign_state = #{signState,jdbcType=INTEGER}, sign_in_time = #{signInTime,jdbcType=TIMESTAMP}, sign_in_distance = #{signInDistance,jdbcType=INTEGER}, sign_out_time = #{signOutTime,jdbcType=TIMESTAMP}, sign_out_distance = #{signOutDistance,jdbcType=INTEGER}, where id = #{id,jdbcType=BIGINT} update duty_roster set org_id = #{orgId,jdbcType=BIGINT}, plan_id = #{planId,jdbcType=BIGINT}, duty_type = #{dutyType,jdbcType=INTEGER}, charger_code = #{chargerCode,jdbcType=VARCHAR}, charger_name = #{chargerName,jdbcType=VARCHAR}, duty_day = #{dutyDay,jdbcType=DATE}, day_num = #{dayNum,jdbcType=INTEGER}, duty_cycle = #{dutyCycle,jdbcType=INTEGER}, work_state = #{workState,jdbcType=INTEGER}, pl_no = #{plNo,jdbcType=VARCHAR}, pl_name = #{plName,jdbcType=VARCHAR}, berth_range_no = #{berthRangeNo,jdbcType=VARCHAR}, berth_range_name = #{berthRangeName,jdbcType=VARCHAR}, berth_num = #{berthNum,jdbcType=INTEGER}, group_id = #{groupId,jdbcType=BIGINT}, group_name = #{groupName,jdbcType=VARCHAR}, group_start_time = #{groupStartTime,jdbcType=TIMESTAMP}, group_end_time = #{groupEndTime,jdbcType=TIMESTAMP}, charger_code_rep = #{chargerCodeRep,jdbcType=VARCHAR}, charger_name_rep = #{chargerNameRep,jdbcType=VARCHAR}, data_status = #{dataStatus,jdbcType=INTEGER}, create_time = #{createTime,jdbcType=TIMESTAMP}, create_op = #{createOp,jdbcType=BIGINT}, modify_time = #{modifyTime,jdbcType=TIMESTAMP}, modify_op = #{modifyOp,jdbcType=BIGINT}, sign_state = #{signState,jdbcType=INTEGER}, sign_in_time = #{signInTime,jdbcType=TIMESTAMP}, sign_in_distance = #{signInDistance,jdbcType=INTEGER}, sign_out_time = #{signOutTime,jdbcType=TIMESTAMP}, sign_out_distance = #{signOutDistance,jdbcType=INTEGER} where id = #{id,jdbcType=BIGINT}