dyh_ct_unit
id,
name,
unit_type,
court_status,
unit_code,
des,
duty_name,
duty_mobile,
duty_idcard,
join_way,
prov,
prov_name,
city,
city_name,
area,
area_name,
road,
road_name,
village,
village_name,
addr,
lng,
lat,
parent_id,
good_field,
good_field_name,
can_field,
can_field_name,
find_status,
disp_status,
count_case,
level,
delete_status,
cust_id,
cust_prov,
cust_city,
cust_area,
create_time,
update_time
name = #{entity.name},
unit_type = #{entity.unitType},
court_status = #{entity.courtStatus},
unit_code = #{entity.unitCode},
des = #{entity.des},
duty_name = #{entity.dutyName},
duty_mobile = #{entity.dutyMobile},
duty_idcard = #{entity.dutyIdcard},
join_way = #{entity.joinWay},
prov = #{entity.prov},
prov_name = #{entity.provName},
city = #{entity.city},
city_name = #{entity.cityName},
area = #{entity.area},
area_name = #{entity.areaName},
road = #{entity.road},
road_name = #{entity.roadName},
village = #{entity.village},
village_name = #{entity.villageName},
addr = #{entity.addr},
lng = #{entity.lng},
lat = #{entity.lat},
parent_id = #{entity.parentId},
good_field = #{entity.goodField},
good_field_name = #{entity.goodFieldName},
can_field = #{entity.canField},
can_field_name = #{entity.canFieldName},
find_status = #{entity.findStatus},
disp_status = #{entity.dispStatus},
count_case = #{entity.countCase},
level = #{entity.level},
delete_status = #{entity.deleteStatus},
cust_id = #{entity.custId},
cust_prov = #{entity.custProv},
cust_city = #{entity.custCity},
cust_area = #{entity.custArea},
create_time = #{entity.createTime},
update_time = #{entity.updateTime}
and id = #{terms.id}
and name = #{terms.name}
and unit_type = #{terms.unitType}
and court_status = #{terms.courtStatus}
and unit_code = #{terms.unitCode}
and des = #{terms.des}
and duty_name = #{terms.dutyName}
and duty_mobile = #{terms.dutyMobile}
and duty_idcard = #{terms.dutyIdcard}
and join_way = #{terms.joinWay}
and prov = #{terms.prov}
and prov_name = #{terms.provName}
and city = #{terms.city}
and city_name = #{terms.cityName}
and area = #{terms.area}
and area_name = #{terms.areaName}
and road = #{terms.road}
and road_name = #{terms.roadName}
and village = #{terms.village}
and village_name = #{terms.villageName}
and addr = #{terms.addr}
and lng = #{terms.lng}
and lat = #{terms.lat}
and parent_id = #{terms.parentId}
and good_field = #{terms.goodField}
and good_field_name = #{terms.goodFieldName}
and can_field = #{terms.canField}
and can_field_name = #{terms.canFieldName}
and find_status = #{terms.findStatus}
and disp_status = #{terms.dispStatus}
and count_case = #{terms.countCase}
and level = #{terms.level}
and delete_status = '1'
and delete_status = #{terms.deleteStatus}
and cust_id = #{terms.custId}
and cust_prov = #{terms.custProv}
and cust_city = #{terms.custCity}
and cust_area = #{terms.custArea}
and DATE_FORMAT(create_time,'%Y-%m-%d') = #{terms.createTime}
and (DATE_FORMAT(create_time,'%Y-%m-%d') = ]]> #{terms.createStart}
and DATE_FORMAT(create_time,'%Y-%m-%d') #{terms.createEnd})
and DATE_FORMAT(update_time,'%Y-%m-%d') = #{terms.updateTime}
and (DATE_FORMAT(update_time,'%Y-%m-%d') = ]]> #{terms.updateStart}
and DATE_FORMAT(update_time,'%Y-%m-%d') #{terms.updateEnd})
update
id = #{entity.id}
update
delete from
where id = #{id}