瀏覽代碼

修复旧数据和第一次新建期bug

laiguoran 4 年之前
父節點
當前提交
a55e610e72
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/controller/material_controller.js

+ 1 - 1
app/controller/material_controller.js

@@ -405,7 +405,7 @@ module.exports = app => {
                         }
                     }
                     // 并更新至调差表中
-                    await ctx.service.materialExponent.update({ ex_calc: renderData.ex_calc, ex_expr: ctx.material.ex_expr }, { id: ctx.material.id });
+                    await ctx.service.material.update({ ex_calc: JSON.stringify(renderData.ex_calc), ex_expr: ctx.material.ex_expr }, { id: ctx.material.id });
                 } else {
                     renderData.ex_calc = JSON.parse(ctx.material.ex_calc);
                 }