From 8a6ce370f1aa1c061b76fa3e9d2d4d1df53ca4c5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 21 五月 2024 16:38:09 +0800 Subject: [PATCH] Merge branch 'master' into positec --- src/templates/sharecomponent/actioncomponent/verifyprint/index.jsx | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/templates/sharecomponent/actioncomponent/verifyprint/index.jsx b/src/templates/sharecomponent/actioncomponent/verifyprint/index.jsx index bbad3ad..5e80f9d 100644 --- a/src/templates/sharecomponent/actioncomponent/verifyprint/index.jsx +++ b/src/templates/sharecomponent/actioncomponent/verifyprint/index.jsx @@ -217,10 +217,10 @@ _select.push(`@${_f.field}='1949-10-01'`) } else if (_f.type === 'number') { _type = `decimal(18,${_fieldlen})` - _select.push(`@${_f.field}=0`) + _select.push(`@${_f.field}=1`) } else if (_f.type === 'rate') { _type = `decimal(18,2)` - _select.push(`@${_f.field}=0`) + _select.push(`@${_f.field}=1`) } else { _select.push(`@${_f.field}=''`) } @@ -245,8 +245,8 @@ fieldArr.push(_f.field.toLowerCase()) _usefulfields.push(_f.field) - if (/decimal/ig.test(_f.datatype)) { - _select.push(`@${_f.field}=0`) + if (/decimal|int/ig.test(_f.datatype)) { + _select.push(`@${_f.field}=1`) } else { _select.push(`@${_f.field}=''`) } -- Gitblit v1.8.0