@mldong/jeeflow 1.8.30 → 1.8.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/facade.js +8 -1
- package/package.json +1 -1
package/dist/facade.js
CHANGED
|
@@ -1425,9 +1425,16 @@ function formDataOf(vars, prefix) {
|
|
|
1425
1425
|
* 13 栈里就只有 nestjs 少这些列(issues/122 的机理)。规范 06 §2.4 的时间列是"必出键、空即空串",
|
|
1426
1426
|
* 所以归一放在这一层:所有行投影共用它,逐个补 `?? ''` 迟早漏一处。
|
|
1427
1427
|
*/
|
|
1428
|
+
// issues/133(拍板 B):可空时间列空值出 `null`,不出 ''。
|
|
1429
|
+
// · spec 06-facade.md:93 钉的是"空值返回 null";
|
|
1430
|
+
// · boot2 参考实现的 ProcessTaskVO 直接继承 entity 的 `Date finishTime` ⇒ Jackson 出 null;
|
|
1431
|
+
// · 历史上这里回 ''(commit 448f902)是为绕 issues/122 宿主侧全局剥-null,
|
|
1432
|
+
// 该根因已由 mldong-nestjs `@KeepNullResponse()`(WfController 类级)收口,
|
|
1433
|
+
// 引擎侧不该再替宿主兜底——那会把"键恒在、值 null"的形状换成"值空串",
|
|
1434
|
+
// 前端 `x ? 显示 : 隐藏` 这类判空在 '' 上恒假,等于把缺值伪装成有值。
|
|
1428
1435
|
function fmtTime(v) {
|
|
1429
1436
|
if (v == null)
|
|
1430
|
-
return
|
|
1437
|
+
return null;
|
|
1431
1438
|
const p = (n) => String(n).padStart(2, '0');
|
|
1432
1439
|
return `${v.getFullYear()}-${p(v.getMonth() + 1)}-${p(v.getDate())} ${p(v.getHours())}:${p(v.getMinutes())}:${p(v.getSeconds())}`;
|
|
1433
1440
|
}
|