dyh_ct_unit id, level, parent_id, unit_grade, unit_name, unit_type, unit_code, unit_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, good_field, good_field_name, can_field, can_field_name, find_status, disp_status, delete_status, cust_id, create_time, update_time, postal_code, telephone, work_time_week, work_time_am, work_time_pm, unit_fun, court_status level = #{entity.level}, parent_id = #{entity.parentId}, unit_grade = #{entity.unitGrade}, unit_name = #{entity.unitName}, unit_type = #{entity.unitType}, unit_code = #{entity.unitCode}, unit_des = #{entity.unitDes}, 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}, 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}, delete_status = #{entity.deleteStatus}, cust_id = #{entity.custId}, create_time = #{entity.createTime}, update_time = #{entity.updateTime}, postal_code = #{entity.postalCode}, telephone = #{entity.telephone}, work_time_week = #{entity.workTimeWeek}, work_time_am = #{entity.workTimeAm}, work_time_pm = #{entity.workTimePm}, unit_fun = #{entity.unitFun}, court_status = #{entity.courtStatus} and id = #{terms.id} and level = #{terms.level} and parent_id = #{terms.parentId} and unit_grade = #{terms.unitGrade} and unit_name = #{terms.unitName} and unit_type = #{terms.unitType} and unit_code = #{terms.unitCode} and unit_des = #{terms.unitDes} 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 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 delete_status = 0 and delete_status = #{terms.deleteStatus} and cust_id = #{terms.custId} 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}) and postal_code = #{terms.postalCode} and telephone = #{terms.telephone} and work_time_week = #{terms.workTimeWeek} and work_time_am = #{terms.workTimeAm} and work_time_pm = #{terms.workTimePm} and unit_fun = #{terms.unitFun} and court_status = #{terms.courtStatus} update id = #{entity.id} update delete from where id = #{id} update WHERE id = #{entity.id} update dyh_disp_norm_cause set target_unit_name = #{unitName} where target_unit_id = #{unitId}