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, serial_number, create_time, update_time, creater, name, type, principal, uid,
sign_date, sign_comment, complete_date, complete_comment, deleted_sign, order_no,
status, contacts, contact_mobile, task_distribution
delete from contract
where id = #{id,jdbcType=VARCHAR}
delete from contract
insert into contract (id, serial_number, create_time,
update_time, creater, name,
type, principal, uid,
sign_date, sign_comment, complete_date,
complete_comment, deleted_sign, order_no,
status, contacts, contact_mobile,
task_distribution)
values (#{id,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{creater,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{type,jdbcType=VARCHAR}, #{principal,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR},
#{signDate,jdbcType=TIMESTAMP}, #{signComment,jdbcType=VARCHAR}, #{completeDate,jdbcType=TIMESTAMP},
#{completeComment,jdbcType=VARCHAR}, #{deletedSign,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR},
#{status,jdbcType=INTEGER}, #{contacts,jdbcType=VARCHAR}, #{contactMobile,jdbcType=VARCHAR},
#{taskDistribution,jdbcType=INTEGER})
insert into contract
id,
serial_number,
create_time,
update_time,
creater,
name,
type,
principal,
uid,
sign_date,
sign_comment,
complete_date,
complete_comment,
deleted_sign,
order_no,
status,
contacts,
contact_mobile,
task_distribution,
#{id,jdbcType=VARCHAR},
#{serialNumber,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
#{creater,jdbcType=VARCHAR},
#{name,jdbcType=VARCHAR},
#{type,jdbcType=VARCHAR},
#{principal,jdbcType=VARCHAR},
#{uid,jdbcType=VARCHAR},
#{signDate,jdbcType=TIMESTAMP},
#{signComment,jdbcType=VARCHAR},
#{completeDate,jdbcType=TIMESTAMP},
#{completeComment,jdbcType=VARCHAR},
#{deletedSign,jdbcType=INTEGER},
#{orderNo,jdbcType=VARCHAR},
#{status,jdbcType=INTEGER},
#{contacts,jdbcType=VARCHAR},
#{contactMobile,jdbcType=VARCHAR},
#{taskDistribution,jdbcType=INTEGER},
update contract
id = #{record.id,jdbcType=VARCHAR},
serial_number = #{record.serialNumber,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
creater = #{record.creater,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
type = #{record.type,jdbcType=VARCHAR},
principal = #{record.principal,jdbcType=VARCHAR},
uid = #{record.uid,jdbcType=VARCHAR},
sign_date = #{record.signDate,jdbcType=TIMESTAMP},
sign_comment = #{record.signComment,jdbcType=VARCHAR},
complete_date = #{record.completeDate,jdbcType=TIMESTAMP},
complete_comment = #{record.completeComment,jdbcType=VARCHAR},
deleted_sign = #{record.deletedSign,jdbcType=INTEGER},
order_no = #{record.orderNo,jdbcType=VARCHAR},
status = #{record.status,jdbcType=INTEGER},
contacts = #{record.contacts,jdbcType=VARCHAR},
contact_mobile = #{record.contactMobile,jdbcType=VARCHAR},
task_distribution = #{record.taskDistribution,jdbcType=INTEGER},
update contract
set id = #{record.id,jdbcType=VARCHAR},
serial_number = #{record.serialNumber,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
creater = #{record.creater,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
type = #{record.type,jdbcType=VARCHAR},
principal = #{record.principal,jdbcType=VARCHAR},
uid = #{record.uid,jdbcType=VARCHAR},
sign_date = #{record.signDate,jdbcType=TIMESTAMP},
sign_comment = #{record.signComment,jdbcType=VARCHAR},
complete_date = #{record.completeDate,jdbcType=TIMESTAMP},
complete_comment = #{record.completeComment,jdbcType=VARCHAR},
deleted_sign = #{record.deletedSign,jdbcType=INTEGER},
order_no = #{record.orderNo,jdbcType=VARCHAR},
status = #{record.status,jdbcType=INTEGER},
contacts = #{record.contacts,jdbcType=VARCHAR},
contact_mobile = #{record.contactMobile,jdbcType=VARCHAR},
task_distribution = #{record.taskDistribution,jdbcType=INTEGER}
update contract
serial_number = #{serialNumber,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
creater = #{creater,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
type = #{type,jdbcType=VARCHAR},
principal = #{principal,jdbcType=VARCHAR},
uid = #{uid,jdbcType=VARCHAR},
sign_date = #{signDate,jdbcType=TIMESTAMP},
sign_comment = #{signComment,jdbcType=VARCHAR},
complete_date = #{completeDate,jdbcType=TIMESTAMP},
complete_comment = #{completeComment,jdbcType=VARCHAR},
deleted_sign = #{deletedSign,jdbcType=INTEGER},
order_no = #{orderNo,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER},
contacts = #{contacts,jdbcType=VARCHAR},
contact_mobile = #{contactMobile,jdbcType=VARCHAR},
task_distribution = #{taskDistribution,jdbcType=INTEGER},
where id = #{id,jdbcType=VARCHAR}
update contract
set serial_number = #{serialNumber,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
creater = #{creater,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
type = #{type,jdbcType=VARCHAR},
principal = #{principal,jdbcType=VARCHAR},
uid = #{uid,jdbcType=VARCHAR},
sign_date = #{signDate,jdbcType=TIMESTAMP},
sign_comment = #{signComment,jdbcType=VARCHAR},
complete_date = #{completeDate,jdbcType=TIMESTAMP},
complete_comment = #{completeComment,jdbcType=VARCHAR},
deleted_sign = #{deletedSign,jdbcType=INTEGER},
order_no = #{orderNo,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER},
contacts = #{contacts,jdbcType=VARCHAR},
contact_mobile = #{contactMobile,jdbcType=VARCHAR},
task_distribution = #{taskDistribution,jdbcType=INTEGER}
where id = #{id,jdbcType=VARCHAR}
update contract set deleted_sign = 1
where id in
#{item}
insert into contract_task(
id,
contract_id,
commodity_id,
commodity_name,
commodity_mode,
commodity_type,
commodity_quantity,
task_status,
task_comment,
create_time,
publish_status
)
values
(
#{item.id,jdbcType=VARCHAR},
#{item.contractId,jdbcType=VARCHAR},
#{item.commodityId,jdbcType=VARCHAR},
#{item.commodityName,jdbcType=VARCHAR},
#{item.commodityMode,jdbcType=VARCHAR},
#{item.commodityType,jdbcType=INTEGER},
#{item.commodityQuantity,jdbcType=INTEGER},
#{item.taskStatus,jdbcType=INTEGER},
#{item.taskComment,jdbcType=VARCHAR},
#{item.createTime,jdbcType=TIMESTAMP},
#{item.publishStatus,jdbcType=INTEGER}
)
update contract set task_distribution = #{taskDistribution,jdbcType=VARCHAR} where id = #{contractId,jdbcType=VARCHAR}