|
@@ -168,10 +168,13 @@ public class Guiji_Housingconstruction_ServiceImpl extends BaseService implement
|
|
|
String time = obj.getString("time");
|
|
|
JSONArray params = obj.getJSONArray("params");
|
|
|
Guiji_housingconstruction_hqrlsj_Bean bean = new Guiji_housingconstruction_hqrlsj_Bean();
|
|
|
+ //2021-10-21 添加
|
|
|
+ initBaseGuijiBean(str, bean);
|
|
|
bean.setId(id);
|
|
|
bean.setName(name);
|
|
|
bean.setType(type);
|
|
|
guiji_housingconstruction_mapper.add_guiji_housingconstruction_hqrlsj(bean);
|
|
|
+ guiji_housingconstruction_mapper2.add_guiji_housingconstruction_hqrlsj(bean);
|
|
|
for (int j = 0; j < params.size(); j++) {
|
|
|
String param_id = UUID.randomUUID().toString();
|
|
|
JSONObject p = params.getJSONObject(j);
|
|
@@ -179,18 +182,17 @@ public class Guiji_Housingconstruction_ServiceImpl extends BaseService implement
|
|
|
String p_value = p.getString("value");
|
|
|
String hqrlsj_id = id;
|
|
|
Guiji_housingconstruction_hqrlsj_Bean bean_detail = new Guiji_housingconstruction_hqrlsj_Bean();
|
|
|
+ //2021-10-21 添加
|
|
|
+ initBaseGuijiBean(str, bean_detail);
|
|
|
bean_detail.setId(param_id);
|
|
|
bean_detail.setName(p_name);
|
|
|
bean_detail.setValue(p_value);
|
|
|
bean_detail.setHqrlsj_id(id);
|
|
|
guiji_housingconstruction_mapper.add_guiji_housingconstruction_hqrlsj_detail(bean_detail);
|
|
|
+ guiji_housingconstruction_mapper2.add_guiji_housingconstruction_hqrlsj_detail(bean_detail);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
r.setCode(0);
|
|
|
r.setMessage("成功");
|
|
|
} catch (Exception e) {
|
|
@@ -198,8 +200,6 @@ public class Guiji_Housingconstruction_ServiceImpl extends BaseService implement
|
|
|
r.setMessage("失败");
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
return r;
|
|
|
}
|
|
|
}
|