diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/meituan/AddField.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/meituan/AddField.groovy new file mode 100644 index 000000000..1b9af5b23 --- /dev/null +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/meituan/AddField.groovy @@ -0,0 +1,46 @@ +package com.fangjia.script.gj.meituan + +import com.fangjia.script.commData.CommonDatautils +import com.fangjia.script.util.ExcelUtils + +class AddField { + + static main(args) { + def task = new AddField() + task.run() + } + + def run(){ + ExcelUtils.multiThreadingModify("D:\\数据\\美团\\小区测试需求测试-结果0828.xlsx",{d-> + def obj = CommonDatautils.findDistrictById(d['F']) + if(obj){ + d['G'] = obj.city + d['H'] = obj.region + d['I'] = obj.name + d['J'] = obj.address + d['K'] = obj.estate_type2 + d['L'] = obj.build_type + d['M'] = obj.township + d['N'] = obj.business_quarter + d['O'] = obj.household_count + d['P'] = obj.car_site_count + d['Q'] = obj.estate_charge + if(obj.create_year){ + d['R'] = obj.create_year + }else if(obj.build_date){ + d['R'] = obj.build_date + }else if(obj.finish_building_date) { + d['R'] = obj.finish_building_date + } +// d['S'] = obj.live_date + d['T'] = obj.all_area + d['U'] = obj.build_area + d['V'] = obj.cubage_percent + d['W'] = obj.virescence_percent + d['X'] = obj.developer + d['Y'] = obj.estate_company + } + }) + } + +}