select id,
czrk_id,
id_card,
user_name,
sort,
dept_id,
province_id,
province,
city_id,
city,
region_id,
region,
town_id,
town,
village_id,
village,
villager_group_id,
villager_group,
grid_id,
grid_name,
now_in,
create_by,
create_time,
update_by,
update_time,
status
from czrk_jzdz
insert into czrk_jzdz
czrk_id,
id_card,
user_name,
sort,
dept_id,
province_id,
province,
city_id,
city,
region_id,
region,
villager_group_id,
villager_group,
grid_id,
grid_name,
town_id,
town,
village_id,
village,
now_in,
create_by,
update_by,
update_time,
status,
create_time
#{czrkId},
#{idCard},
#{userName},
#{sort},
#{deptId},
#{provinceId},
#{province},
#{cityId},
#{city},
#{regionId},
#{region},
#{villagerGroupId},
#{villagerGroup},
#{gridId},
#{gridName},
#{townId},
#{town},
#{villageId},
#{village},
#{nowIn},
#{createBy},
#{updateBy},
#{updateTime},
#{status},
sysdate()
update czrk_jzdz
czrk_id = #{czrkId},
id_card = #{idCard},
user_name = #{userName},
sort = #{sort},
dept_id = #{deptId},
province_id = #{provinceId},
province = #{province},
city_id = #{cityId},
city = #{city},
region_id = #{regionId},
region = #{region},
town_id = #{townId},
town = #{town},
village_id = #{villageId},
village = #{village},
now_in = #{nowIn},
villager_group_id = #{villagerGroupId},
villager_group = #{villagerGroup},
grid_id = #{gridId},
grid_name = #{gridName},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = sysdate(),
status = #{status},
where id = #{id}
update czrk_jzdz
czrk_id = #{czrkId},
id_card = #{idCard},
user_name = #{userName},
sort = #{sort},
dept_id = #{deptId},
province_id = #{provinceId},
province = #{province},
city_id = #{cityId},
city = #{city},
region_id = #{regionId},
region = #{region},
town_id = #{townId},
town = #{town},
village_id = #{villageId},
village = #{village},
now_in = #{nowIn},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = sysdate(),
status = #{status},
where id_card = #{idCard}
update czrk_jzdz
czrk_id = #{czrkId},
id_card = #{idCard},
user_name = #{userName},
sort = #{sort},
dept_id = #{deptId},
province_id = #{provinceId},
province = #{province},
city_id = #{cityId},
city = #{city},
region_id = #{regionId},
region = #{region},
town_id = #{townId},
town = #{town},
village_id = #{villageId},
village = #{village},
now_in = #{nowIn},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = sysdate(),
status = #{status},
where czrk_id = #{czrkId}
update czrk_jzdz
set province_id = #{hzCzrkJzdz.provinceId},
province = #{hzCzrkJzdz.province},
city_id = #{hzCzrkJzdz.cityId},
city = #{hzCzrkJzdz.city},
region_id = #{hzCzrkJzdz.regionId},
region = #{hzCzrkJzdz.region},
town_id = #{hzCzrkJzdz.townId},
town = #{hzCzrkJzdz.town},
village_id = #{hzCzrkJzdz.villageId},
village = #{hzCzrkJzdz.village},
now_in = #{hzCzrkJzdz.nowIn}
where id_card in
#{idCard}
delete
from czrk_jzdz
where id = #{id}
delete
from czrk_jzdz
where czrk_id = #{czrkId}
delete from czrk_jzdz where id in
#{id}