|
@@ -172,15 +172,15 @@ public class KdYdOrderServiceImpl extends ServiceImpl<KdYdOrderMapper, KdYdOrder
|
|
|
|
|
|
|
|
// ====== 2. 遍历传入的 tableField,逐条处理 ======
|
|
// ====== 2. 遍历传入的 tableField,逐条处理 ======
|
|
|
if (tableField != null) {
|
|
if (tableField != null) {
|
|
|
- for (Map item : tableField) {
|
|
|
|
|
- int detailId = parseInt(safeGetString(item, "indexField"), 0); // 建议前端传一个明确的 index 或 detailId 字段
|
|
|
|
|
- // 如果前端没有显式传 detailId,可以用循环计数(但需注意顺序稳定性)
|
|
|
|
|
- // 这里假设你用 count 作为 detailId(与前端一致)
|
|
|
|
|
- // 若前端表格支持拖拽/乱序,建议传唯一行ID,但你当前用的是序号,我们继续用 count
|
|
|
|
|
-
|
|
|
|
|
- // 注意:你原代码用 count++,这里我们改用从数据中获取或维持顺序
|
|
|
|
|
- // 为兼容你原有逻辑,我们仍用递增序号,但更推荐前端传 detailId
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// for (Map item : tableField) {
|
|
|
|
|
+// int detailId = parseInt(safeGetString(item, "indexField"), 0); // 建议前端传一个明确的 index 或 detailId 字段
|
|
|
|
|
+// // 如果前端没有显式传 detailId,可以用循环计数(但需注意顺序稳定性)
|
|
|
|
|
+// // 这里假设你用 count 作为 detailId(与前端一致)
|
|
|
|
|
+// // 若前端表格支持拖拽/乱序,建议传唯一行ID,但你当前用的是序号,我们继续用 count
|
|
|
|
|
+//
|
|
|
|
|
+// // 注意:你原代码用 count++,这里我们改用从数据中获取或维持顺序
|
|
|
|
|
+// // 为兼容你原有逻辑,我们仍用递增序号,但更推荐前端传 detailId
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
// 重新遍历,使用 index 作为 detailId
|
|
// 重新遍历,使用 index 作为 detailId
|
|
|
for (int i = 0; i < tableField.size(); i++) {
|
|
for (int i = 0; i < tableField.size(); i++) {
|
|
@@ -195,6 +195,7 @@ public class KdYdOrderServiceImpl extends ServiceImpl<KdYdOrderMapper, KdYdOrder
|
|
|
int xssl = parseInt(safeGetString(item, "numberField_mfbx1pr4"), 0);
|
|
int xssl = parseInt(safeGetString(item, "numberField_mfbx1pr4"), 0);
|
|
|
String ssxl = safeGetString(item, "selectField_mfbx1pr1");
|
|
String ssxl = safeGetString(item, "selectField_mfbx1pr1");
|
|
|
BigDecimal dj = toBigDecimal(safeGetString(item, "numberField_mfbx1prf"));
|
|
BigDecimal dj = toBigDecimal(safeGetString(item, "numberField_mfbx1prf"));
|
|
|
|
|
+ BigDecimal cxzkje = toBigDecimal(safeGetString(item, "numberField_mk56soin"));
|
|
|
BigDecimal hsdj = toBigDecimal(safeGetString(item, "numberField_mfbx1prg"));
|
|
BigDecimal hsdj = toBigDecimal(safeGetString(item, "numberField_mfbx1prg"));
|
|
|
String sfzp = safeGetString(item, "radioField_mfbx1prc");
|
|
String sfzp = safeGetString(item, "radioField_mfbx1prc");
|
|
|
String bz1 = safeGetString(item, "textareaField_mjryuaok");
|
|
String bz1 = safeGetString(item, "textareaField_mjryuaok");
|
|
@@ -223,6 +224,7 @@ public class KdYdOrderServiceImpl extends ServiceImpl<KdYdOrderMapper, KdYdOrder
|
|
|
existing.setXsdw(xsdw);
|
|
existing.setXsdw(xsdw);
|
|
|
existing.setXssl(xssl);
|
|
existing.setXssl(xssl);
|
|
|
existing.setSsxl(ssxl);
|
|
existing.setSsxl(ssxl);
|
|
|
|
|
+ existing.setCxzkje(cxzkje);
|
|
|
existing.setDj(dj);
|
|
existing.setDj(dj);
|
|
|
existing.setHsdj(hsdj);
|
|
existing.setHsdj(hsdj);
|
|
|
existing.setSfzp(sfzp);
|
|
existing.setSfzp(sfzp);
|
|
@@ -247,6 +249,7 @@ public class KdYdOrderServiceImpl extends ServiceImpl<KdYdOrderMapper, KdYdOrder
|
|
|
kdYdOrderDetail.setOrderId(id);
|
|
kdYdOrderDetail.setOrderId(id);
|
|
|
kdYdOrderDetail.setDetailId(detailId);
|
|
kdYdOrderDetail.setDetailId(detailId);
|
|
|
kdYdOrderDetail.setWlbm(wlbm);
|
|
kdYdOrderDetail.setWlbm(wlbm);
|
|
|
|
|
+ kdYdOrderDetail.setCxzkje(cxzkje);
|
|
|
kdYdOrderDetail.setWlmc(wlmc);
|
|
kdYdOrderDetail.setWlmc(wlmc);
|
|
|
kdYdOrderDetail.setGgxh(ggxh);
|
|
kdYdOrderDetail.setGgxh(ggxh);
|
|
|
kdYdOrderDetail.setXsdw(xsdw);
|
|
kdYdOrderDetail.setXsdw(xsdw);
|