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, work_no, work_name, big_type, big_type_name, small_type, small_type_name, work_state,
work_finish_time, org_id, remark, data_state, create_emp_id, create_emp_name, create_date,
modfiy_emp_id, modfiy_emp_name, modfiy_date
delete from tb_work_order
where id = #{id,jdbcType=BIGINT}
delete from tb_work_order
SELECT LAST_INSERT_ID()
insert into tb_work_order (work_no, work_name, big_type,
big_type_name, small_type, small_type_name,
work_state, work_finish_time, org_id,
remark, data_state, create_emp_id,
create_emp_name, create_date, modfiy_emp_id,
modfiy_emp_name, modfiy_date)
values (#{workNo,jdbcType=VARCHAR}, #{workName,jdbcType=VARCHAR}, #{bigType,jdbcType=INTEGER},
#{bigTypeName,jdbcType=VARCHAR}, #{smallType,jdbcType=INTEGER}, #{smallTypeName,jdbcType=VARCHAR},
#{workState,jdbcType=INTEGER}, #{workFinishTime,jdbcType=TIMESTAMP}, #{orgId,jdbcType=BIGINT},
#{remark,jdbcType=VARCHAR}, #{dataState,jdbcType=INTEGER}, #{createEmpId,jdbcType=VARCHAR},
#{createEmpName,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, #{modfiyEmpId,jdbcType=VARCHAR},
#{modfiyEmpName,jdbcType=VARCHAR}, #{modfiyDate,jdbcType=TIMESTAMP})
SELECT LAST_INSERT_ID()
insert into tb_work_order
work_no,
work_name,
big_type,
big_type_name,
small_type,
small_type_name,
work_state,
work_finish_time,
org_id,
remark,
data_state,
create_emp_id,
create_emp_name,
create_date,
modfiy_emp_id,
modfiy_emp_name,
modfiy_date,
#{workNo,jdbcType=VARCHAR},
#{workName,jdbcType=VARCHAR},
#{bigType,jdbcType=INTEGER},
#{bigTypeName,jdbcType=VARCHAR},
#{smallType,jdbcType=INTEGER},
#{smallTypeName,jdbcType=VARCHAR},
#{workState,jdbcType=INTEGER},
#{workFinishTime,jdbcType=TIMESTAMP},
#{orgId,jdbcType=BIGINT},
#{remark,jdbcType=VARCHAR},
#{dataState,jdbcType=INTEGER},
#{createEmpId,jdbcType=VARCHAR},
#{createEmpName,jdbcType=VARCHAR},
#{createDate,jdbcType=TIMESTAMP},
#{modfiyEmpId,jdbcType=VARCHAR},
#{modfiyEmpName,jdbcType=VARCHAR},
#{modfiyDate,jdbcType=TIMESTAMP},
update tb_work_order
id = #{record.id,jdbcType=BIGINT},
work_no = #{record.workNo,jdbcType=VARCHAR},
work_name = #{record.workName,jdbcType=VARCHAR},
big_type = #{record.bigType,jdbcType=INTEGER},
big_type_name = #{record.bigTypeName,jdbcType=VARCHAR},
small_type = #{record.smallType,jdbcType=INTEGER},
small_type_name = #{record.smallTypeName,jdbcType=VARCHAR},
work_state = #{record.workState,jdbcType=INTEGER},
work_finish_time = #{record.workFinishTime,jdbcType=TIMESTAMP},
org_id = #{record.orgId,jdbcType=BIGINT},
remark = #{record.remark,jdbcType=VARCHAR},
data_state = #{record.dataState,jdbcType=INTEGER},
create_emp_id = #{record.createEmpId,jdbcType=VARCHAR},
create_emp_name = #{record.createEmpName,jdbcType=VARCHAR},
create_date = #{record.createDate,jdbcType=TIMESTAMP},
modfiy_emp_id = #{record.modfiyEmpId,jdbcType=VARCHAR},
modfiy_emp_name = #{record.modfiyEmpName,jdbcType=VARCHAR},
modfiy_date = #{record.modfiyDate,jdbcType=TIMESTAMP},
update tb_work_order
set id = #{record.id,jdbcType=BIGINT},
work_no = #{record.workNo,jdbcType=VARCHAR},
work_name = #{record.workName,jdbcType=VARCHAR},
big_type = #{record.bigType,jdbcType=INTEGER},
big_type_name = #{record.bigTypeName,jdbcType=VARCHAR},
small_type = #{record.smallType,jdbcType=INTEGER},
small_type_name = #{record.smallTypeName,jdbcType=VARCHAR},
work_state = #{record.workState,jdbcType=INTEGER},
work_finish_time = #{record.workFinishTime,jdbcType=TIMESTAMP},
org_id = #{record.orgId,jdbcType=BIGINT},
remark = #{record.remark,jdbcType=VARCHAR},
data_state = #{record.dataState,jdbcType=INTEGER},
create_emp_id = #{record.createEmpId,jdbcType=VARCHAR},
create_emp_name = #{record.createEmpName,jdbcType=VARCHAR},
create_date = #{record.createDate,jdbcType=TIMESTAMP},
modfiy_emp_id = #{record.modfiyEmpId,jdbcType=VARCHAR},
modfiy_emp_name = #{record.modfiyEmpName,jdbcType=VARCHAR},
modfiy_date = #{record.modfiyDate,jdbcType=TIMESTAMP}
update tb_work_order
work_no = #{workNo,jdbcType=VARCHAR},
work_name = #{workName,jdbcType=VARCHAR},
big_type = #{bigType,jdbcType=INTEGER},
big_type_name = #{bigTypeName,jdbcType=VARCHAR},
small_type = #{smallType,jdbcType=INTEGER},
small_type_name = #{smallTypeName,jdbcType=VARCHAR},
work_state = #{workState,jdbcType=INTEGER},
work_finish_time = #{workFinishTime,jdbcType=TIMESTAMP},
org_id = #{orgId,jdbcType=BIGINT},
remark = #{remark,jdbcType=VARCHAR},
data_state = #{dataState,jdbcType=INTEGER},
create_emp_id = #{createEmpId,jdbcType=VARCHAR},
create_emp_name = #{createEmpName,jdbcType=VARCHAR},
create_date = #{createDate,jdbcType=TIMESTAMP},
modfiy_emp_id = #{modfiyEmpId,jdbcType=VARCHAR},
modfiy_emp_name = #{modfiyEmpName,jdbcType=VARCHAR},
modfiy_date = #{modfiyDate,jdbcType=TIMESTAMP},
where id = #{id,jdbcType=BIGINT}
update tb_work_order
set work_no = #{workNo,jdbcType=VARCHAR},
work_name = #{workName,jdbcType=VARCHAR},
big_type = #{bigType,jdbcType=INTEGER},
big_type_name = #{bigTypeName,jdbcType=VARCHAR},
small_type = #{smallType,jdbcType=INTEGER},
small_type_name = #{smallTypeName,jdbcType=VARCHAR},
work_state = #{workState,jdbcType=INTEGER},
work_finish_time = #{workFinishTime,jdbcType=TIMESTAMP},
org_id = #{orgId,jdbcType=BIGINT},
remark = #{remark,jdbcType=VARCHAR},
data_state = #{dataState,jdbcType=INTEGER},
create_emp_id = #{createEmpId,jdbcType=VARCHAR},
create_emp_name = #{createEmpName,jdbcType=VARCHAR},
create_date = #{createDate,jdbcType=TIMESTAMP},
modfiy_emp_id = #{modfiyEmpId,jdbcType=VARCHAR},
modfiy_emp_name = #{modfiyEmpName,jdbcType=VARCHAR},
modfiy_date = #{modfiyDate,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}