优化Trigger
This commit is contained in:
+4
-1
@@ -165,8 +165,11 @@ public class SellTriggerServiceImpl implements TriggerService {
|
|||||||
newObj.put("districtname_key", district.getName() + "_" + newObj.get("region") + "_" + object.get("city"));
|
newObj.put("districtname_key", district.getName() + "_" + newObj.get("region") + "_" + object.get("city"));
|
||||||
newObj.put("district_name", district.getName());
|
newObj.put("district_name", district.getName());
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
if(object.containsField("city") && object.containsField("district_name") && object.containsField("region")){
|
||||||
|
newObj.put("districtname_key", object.get("district_name") + "_" + object.get("region") + "_" + object.get("city"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// newObj.put("if_school", 0);
|
// newObj.put("if_school", 0);
|
||||||
// if (districtSchoolMap != null && districtSchoolMap.containsKey(districtKey)) {
|
// if (districtSchoolMap != null && districtSchoolMap.containsKey(districtKey)) {
|
||||||
// List<SchoolKey> skList = districtSchoolMap.get(districtKey);
|
// List<SchoolKey> skList = districtSchoolMap.get(districtKey);
|
||||||
|
|||||||
Reference in New Issue
Block a user