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, plan_name, effect_time, expire_time, employee_num,
pl_num, duty_cycle, berth_range_num, rest_type, area_manage_type, data_status, create_time,
create_op, modify_time, modify_op
delete from duty_roster_plan
where id = #{id,jdbcType=BIGINT}
delete from duty_roster_plan
SELECT LAST_INSERT_ID()
insert into duty_roster_plan (org_id, plan_id, duty_type,
plan_name, effect_time, expire_time,
employee_num, pl_num, duty_cycle,
berth_range_num, rest_type, area_manage_type,
data_status, create_time, create_op,
modify_time, modify_op)
values (#{orgId,jdbcType=BIGINT}, #{planId,jdbcType=BIGINT}, #{dutyType,jdbcType=INTEGER},
#{planName,jdbcType=VARCHAR}, #{effectTime,jdbcType=TIMESTAMP}, #{expireTime,jdbcType=TIMESTAMP},
#{employeeNum,jdbcType=INTEGER}, #{plNum,jdbcType=INTEGER}, #{dutyCycle,jdbcType=INTEGER},
#{berthRangeNum,jdbcType=INTEGER}, #{restType,jdbcType=VARCHAR}, #{areaManageType,jdbcType=INTEGER},
#{dataStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{createOp,jdbcType=BIGINT},
#{modifyTime,jdbcType=TIMESTAMP}, #{modifyOp,jdbcType=BIGINT})
SELECT LAST_INSERT_ID()
insert into duty_roster_plan
org_id,
plan_id,
duty_type,
plan_name,
effect_time,
expire_time,
employee_num,
pl_num,
duty_cycle,
berth_range_num,
rest_type,
area_manage_type,
data_status,
create_time,
create_op,
modify_time,
modify_op,
#{orgId,jdbcType=BIGINT},
#{planId,jdbcType=BIGINT},
#{dutyType,jdbcType=INTEGER},
#{planName,jdbcType=VARCHAR},
#{effectTime,jdbcType=TIMESTAMP},
#{expireTime,jdbcType=TIMESTAMP},
#{employeeNum,jdbcType=INTEGER},
#{plNum,jdbcType=INTEGER},
#{dutyCycle,jdbcType=INTEGER},
#{berthRangeNum,jdbcType=INTEGER},
#{restType,jdbcType=VARCHAR},
#{areaManageType,jdbcType=INTEGER},
#{dataStatus,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP},
#{createOp,jdbcType=BIGINT},
#{modifyTime,jdbcType=TIMESTAMP},
#{modifyOp,jdbcType=BIGINT},
update duty_roster_plan
id = #{record.id,jdbcType=BIGINT},
org_id = #{record.orgId,jdbcType=BIGINT},
plan_id = #{record.planId,jdbcType=BIGINT},
duty_type = #{record.dutyType,jdbcType=INTEGER},
plan_name = #{record.planName,jdbcType=VARCHAR},
effect_time = #{record.effectTime,jdbcType=TIMESTAMP},
expire_time = #{record.expireTime,jdbcType=TIMESTAMP},
employee_num = #{record.employeeNum,jdbcType=INTEGER},
pl_num = #{record.plNum,jdbcType=INTEGER},
duty_cycle = #{record.dutyCycle,jdbcType=INTEGER},
berth_range_num = #{record.berthRangeNum,jdbcType=INTEGER},
rest_type = #{record.restType,jdbcType=VARCHAR},
area_manage_type = #{record.areaManageType,jdbcType=INTEGER},
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},
update duty_roster_plan
set id = #{record.id,jdbcType=BIGINT},
org_id = #{record.orgId,jdbcType=BIGINT},
plan_id = #{record.planId,jdbcType=BIGINT},
duty_type = #{record.dutyType,jdbcType=INTEGER},
plan_name = #{record.planName,jdbcType=VARCHAR},
effect_time = #{record.effectTime,jdbcType=TIMESTAMP},
expire_time = #{record.expireTime,jdbcType=TIMESTAMP},
employee_num = #{record.employeeNum,jdbcType=INTEGER},
pl_num = #{record.plNum,jdbcType=INTEGER},
duty_cycle = #{record.dutyCycle,jdbcType=INTEGER},
berth_range_num = #{record.berthRangeNum,jdbcType=INTEGER},
rest_type = #{record.restType,jdbcType=VARCHAR},
area_manage_type = #{record.areaManageType,jdbcType=INTEGER},
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}
update duty_roster_plan
org_id = #{orgId,jdbcType=BIGINT},
plan_id = #{planId,jdbcType=BIGINT},
duty_type = #{dutyType,jdbcType=INTEGER},
plan_name = #{planName,jdbcType=VARCHAR},
effect_time = #{effectTime,jdbcType=TIMESTAMP},
expire_time = #{expireTime,jdbcType=TIMESTAMP},
employee_num = #{employeeNum,jdbcType=INTEGER},
pl_num = #{plNum,jdbcType=INTEGER},
duty_cycle = #{dutyCycle,jdbcType=INTEGER},
berth_range_num = #{berthRangeNum,jdbcType=INTEGER},
rest_type = #{restType,jdbcType=VARCHAR},
area_manage_type = #{areaManageType,jdbcType=INTEGER},
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},
where id = #{id,jdbcType=BIGINT}
update duty_roster_plan
set org_id = #{orgId,jdbcType=BIGINT},
plan_id = #{planId,jdbcType=BIGINT},
duty_type = #{dutyType,jdbcType=INTEGER},
plan_name = #{planName,jdbcType=VARCHAR},
effect_time = #{effectTime,jdbcType=TIMESTAMP},
expire_time = #{expireTime,jdbcType=TIMESTAMP},
employee_num = #{employeeNum,jdbcType=INTEGER},
pl_num = #{plNum,jdbcType=INTEGER},
duty_cycle = #{dutyCycle,jdbcType=INTEGER},
berth_range_num = #{berthRangeNum,jdbcType=INTEGER},
rest_type = #{restType,jdbcType=VARCHAR},
area_manage_type = #{areaManageType,jdbcType=INTEGER},
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}
where id = #{id,jdbcType=BIGINT}