Explorar o código

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

laiguoran %!s(int64=4) %!d(string=hai) anos
pai
achega
a55e610e72
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
                 }