diff --git a/src/main/java/com/bonus/boot/manager/ca/bm/entity/PayAccountInfoBean.java b/src/main/java/com/bonus/boot/manager/ca/bm/entity/PayAccountInfoBean.java index d072c5d..85f7fb2 100644 --- a/src/main/java/com/bonus/boot/manager/ca/bm/entity/PayAccountInfoBean.java +++ b/src/main/java/com/bonus/boot/manager/ca/bm/entity/PayAccountInfoBean.java @@ -11,4 +11,9 @@ public class PayAccountInfoBean { String czyName;//操作人名称 String czsj;//操作时间 + /** + * 账号 + */ + String accountNumber; + } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 8ecf73d..0a4cc19 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -2,12 +2,12 @@ server.port=2002 #????·?? server.servlet.context-path=/yncw #mysql????????? -#spring.datasource.url=jdbc:mysql://192.168.0.14:1103/yncw1?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true -#spring.datasource.username=root -#spring.datasource.password=dszadmin@ynreal14! -spring.datasource.url=jdbc:mysql://127.0.0.1:3306/yncw_real?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true -spring.datasource.username=mroot -spring.datasource.password=bonus@admin123 +spring.datasource.url=jdbc:mysql://192.168.0.14:1103/yncw1?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true +spring.datasource.username=root +spring.datasource.password=dszadmin@ynreal14! +#spring.datasource.url=jdbc:mysql://127.0.0.1:3306/yncw_real?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true +#spring.datasource.username=mroot +#spring.datasource.password=bonus@admin123 spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.max-idle=10 spring.datasource.max-wait=60000 @@ -21,9 +21,13 @@ mybatis.type-aliases-package=com.bonus.boot.manager.*.entity # ????????????????????? mybatis.configuration.map-underscore-to-camel-case=true #redis config -spring.redis.host=127.0.0.1 -spring.redis.port=6379 -spring.redis.password= +#spring.redis.host=127.0.0.1 +#spring.redis.port=6379 +#spring.redis.password= + +spring.redis.host=192.168.0.14 +spring.redis.port=2001 +spring.redis.password=Dszbns@Redis123! # ??? logging.config=classpath:logback-boot.xml log.level.root=info diff --git a/src/main/resources/mappers/ca/PayAccountInfoMapper.xml b/src/main/resources/mappers/ca/PayAccountInfoMapper.xml index 5eb79fa..b06c3ad 100644 --- a/src/main/resources/mappers/ca/PayAccountInfoMapper.xml +++ b/src/main/resources/mappers/ca/PayAccountInfoMapper.xml @@ -10,13 +10,13 @@ update ca_bm_pay_account_info - set name = #{name},remark = #{remarks},oper_user = #{czy},oper_time = now() + set name = #{name},remark = #{remarks},oper_user = #{czy},oper_time = now(), account_number = #{accountNumber} where id = #{id} update ca_bm_pay_account_info - set is_active = '0',oper_user = #{czy},oper_time = now() + set is_active = '0',oper_user = #{czy},oper_time = now(), account_number = #{accountNumber} where id = #{id} @@ -33,6 +33,7 @@ select cbpai.id, cbpai.name, + cbpai.account_number as accountNumber, cbpai.remark as remarks, su.username as czyName, cbpai.oper_time as czsj @@ -45,7 +46,7 @@ order by cbpai.oper_time desc diff --git a/src/main/resources/static/js/publicJs.js b/src/main/resources/static/js/publicJs.js index 74ba29c..21d4a2f 100644 --- a/src/main/resources/static/js/publicJs.js +++ b/src/main/resources/static/js/publicJs.js @@ -64,3 +64,18 @@ function saveAs(blob, filename) { window.URL.revokeObjectURL(link.href) } } + +/** + * 数据格式化 + * @param accountNumber 账号 + * @returns {*|string} 格式化后的账号 + */ +function maskAccountNumber(accountNumber) { + if (!accountNumber) return ''; + const startLength = 3; // 显示前几位 + const endLength = 3; // 显示后几位 + const maskLength = accountNumber.length - startLength - endLength; + if (maskLength <= 0) return accountNumber; // 如果需要隐藏的部分小于等于0,则直接返回原账号 + const maskedPart = '*'.repeat(maskLength); + return accountNumber.substring(0, startLength) + maskedPart + accountNumber.substring(accountNumber.length - endLength); +} diff --git a/src/main/resources/static/pages/finance/addPayable.html b/src/main/resources/static/pages/finance/addPayable.html index b7bef69..487ffa6 100644 --- a/src/main/resources/static/pages/finance/addPayable.html +++ b/src/main/resources/static/pages/finance/addPayable.html @@ -42,7 +42,7 @@
-
diff --git a/src/main/resources/static/pages/finance/addPaymentAccount.html b/src/main/resources/static/pages/finance/addPaymentAccount.html index de226b9..1e5974f 100644 --- a/src/main/resources/static/pages/finance/addPaymentAccount.html +++ b/src/main/resources/static/pages/finance/addPaymentAccount.html @@ -25,6 +25,13 @@ +
+ +
+ +
+
+
@@ -65,6 +72,7 @@ async : false, success : function(data) { $("#name").val(data.name); + $("#accountNumber").val(data.accountNumber); $("#remarks").val(data.remarks); } }); @@ -84,6 +92,7 @@ } formdata.name = $("#name").val(); + formdata.accountNumber = $("#accountNumber").val(); formdata.remarks = $("#remarks").val(); $.ajax({ type : 'post', diff --git a/src/main/resources/static/pages/finance/paymentAccount.html b/src/main/resources/static/pages/finance/paymentAccount.html index 8839744..24aeeda 100644 --- a/src/main/resources/static/pages/finance/paymentAccount.html +++ b/src/main/resources/static/pages/finance/paymentAccount.html @@ -8,13 +8,15 @@