工程预付款统计功能bug修改,系统漏洞修复

This commit is contained in:
lSun 2025-06-16 18:18:08 +08:00
parent e377fda7e5
commit d7bb63f5a6
6 changed files with 65 additions and 28 deletions

View File

@ -12,6 +12,7 @@ import com.bonus.boot.manager.manager.service.UserService;
import com.bonus.boot.manager.manager.table.PageTableHandler; import com.bonus.boot.manager.manager.table.PageTableHandler;
import com.bonus.boot.manager.manager.table.PageTableRequest; import com.bonus.boot.manager.manager.table.PageTableRequest;
import com.bonus.boot.manager.manager.table.PageTableResponse; import com.bonus.boot.manager.manager.table.PageTableResponse;
import com.bonus.boot.manager.manager.utils.AESCBCUtils;
import com.bonus.boot.manager.manager.utils.AjaxRes; import com.bonus.boot.manager.manager.utils.AjaxRes;
import com.bonus.boot.manager.manager.utils.GlobalConst; import com.bonus.boot.manager.manager.utils.GlobalConst;
import com.bonus.boot.manager.manager.utils.UserUtil; import com.bonus.boot.manager.manager.utils.UserUtil;
@ -229,6 +230,8 @@ public class UserController {
@PostMapping("resetPasswordForOne") @PostMapping("resetPasswordForOne")
@ApiOperation(value = "用户管理-第一次重置密码") @ApiOperation(value = "用户管理-第一次重置密码")
public AjaxRes resetPasswordForOne(SysUser bean) { public AjaxRes resetPasswordForOne(SysUser bean) {
bean.setUsername(AESCBCUtils.decrypt(bean.getUsername()));
bean.setPassword(AESCBCUtils.decrypt(bean.getPassword()));
AjaxRes ar = new AjaxRes(); AjaxRes ar = new AjaxRes();
int result = userService.resetPasswordForOne(bean); int result = userService.resetPasswordForOne(bean);
if(result==1){ if(result==1){

View File

@ -1,13 +1,13 @@
server.port=20020 server.port=2002
#????·?? #????·??
server.servlet.context-path=/yncw server.servlet.context-path=/yncw
#mysql????????? #mysql?????????
spring.datasource.url=jdbc:mysql://192.168.0.14:4418/yncw_real?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true #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://192.168.1.23:2000/yncw_real?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true
spring.datasource.username=root spring.datasource.username=root
spring.datasource.password=Bonus@admin123! spring.datasource.password=Ynsbd@mysql123!
#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.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.max-idle=10 spring.datasource.max-idle=10
spring.datasource.max-wait=60000 spring.datasource.max-wait=60000
@ -21,20 +21,19 @@ mybatis.type-aliases-package=com.bonus.boot.manager.*.entity
# ????????????????????? # ?????????????????????
mybatis.configuration.map-underscore-to-camel-case=true mybatis.configuration.map-underscore-to-camel-case=true
#redis config #redis config
spring.redis.host=127.0.0.1 #spring.redis.host=127.0.0.1
spring.redis.port=6379 #spring.redis.port=6379
spring.redis.password= #spring.redis.password=
spring.redis.host=192.168.1.23
#spring.redis.host=192.168.0.14 spring.redis.port=2001
#spring.redis.port=2001 spring.redis.password=Ynsbd@Redis123!
#spring.redis.password=Dszbns@Redis123!
# ??? # ???
logging.config=classpath:logback-boot.xml logging.config=classpath:logback-boot.xml
log.level.root=info log.level.root=info
log.level.my=debug log.level.my=debug
log.file=logs/sys-back.log log.file=logs/sys-back.log
log.maxsize=30MB log.maxsize=30MB
#???????С #????????
server.max-http-header-size=102400 server.max-http-header-size=102400
spring.servlet.multipart.max-file-size=999MB spring.servlet.multipart.max-file-size=999MB
spring.servlet.multipart.max-request-size=999MB spring.servlet.multipart.max-request-size=999MB
@ -50,7 +49,7 @@ spring.servlet.multipart.enabled=true
#files.path=e:\\yncw\\files #files.path=e:\\yncw\\files
files.path=/data/yncw/files files.path=/data/yncw/files
files.url=http://127.0.0.1:8080/yncw/statics files.url=http://127.0.0.1:8080/yncw/statics
files.upload=F:\\files files.upload=e:\\files
#sql.ip=192.168.0.14 #sql.ip=192.168.0.14
#sql.host=1103 #sql.host=1103
@ -64,6 +63,8 @@ sql.name=root
sql.pwd=Ynsbd@mysql123! sql.pwd=Ynsbd@mysql123!
sql.database=yncw_real sql.database=yncw_real
server.tomcat.connection-timeout=10s
#????? server.tomcat.max-threads=800
admin/YNsbd@12345 server.tomcat.min-spare-threads=50
server.tomcat.accept-count=500
server.tomcat.max-swallow-size=2MB

View File

@ -61,4 +61,10 @@ sql.ip=192.168.1.23
sql.host=2000 sql.host=2000
sql.name=root sql.name=root
sql.pwd=Ynsbd@mysql123! sql.pwd=Ynsbd@mysql123!
sql.database=yncw_real sql.database=yncw_real
server.tomcat.connection-timeout=10s
server.tomcat.max-threads=800
server.tomcat.min-spare-threads=50
server.tomcat.accept-count=500
server.tomcat.max-swallow-size=2MB

View File

@ -50,7 +50,11 @@
if (token != null && token.trim().length != 0) { if (token != null && token.trim().length != 0) {
$.ajax({ $.ajax({
type : 'get', type : 'get',
url : ctxPath + '/users/current?token=' + token, // url : ctxPath + '/users/current?token=' + token,
url : ctxPath + '/users/current',
headers: {
'Authorization': 'Bearer ' + token // 通过 HTTP Header 传递 token
},
success : function(data) { success : function(data) {
location.href = ctxPath + '/index.html'; location.href = ctxPath + '/index.html';
}, },
@ -107,7 +111,8 @@
url: ctxPath + '/users/resetPasswordForOne',// 请求地址 url: ctxPath + '/users/resetPasswordForOne',// 请求地址
contentType: "application/x-www-form-urlencoded", contentType: "application/x-www-form-urlencoded",
dataType: 'json', // 服务器返回数据类型 dataType: 'json', // 服务器返回数据类型
data: JSON.stringify({'username': username,'password':password}), //获取提交的表单字段 // data: JSON.stringify({'username': username,'password':password}), //获取提交的表单字段
data: JSON.stringify({'username': encryptCBC(username),'password':encryptCBC(password)}), //获取提交的表单字段
success: function (data) { success: function (data) {
var resMsg = data.resMsg; var resMsg = data.resMsg;
if ("数据获取成功" == resMsg) { if ("数据获取成功" == resMsg) {

View File

@ -13,9 +13,7 @@
top: 15px; top: 15px;
right: 450px; right: 450px;
} }
.layui-icon{
font-size: 80px!important;
}
.layui-input, .layui-textarea{ .layui-input, .layui-textarea{
width: 100%; width: 100%;
@ -152,8 +150,25 @@
formdata.id = id; formdata.id = id;
} }
formdata.type = $("#type").val(); formdata.type = $("#type").val();
var typeVal = $("#type").val()
if (!typeVal) {
layer.msg('请选择类型', {icon: 2, time: 20000});
return false;
}
formdata.name = $("#name").val(); formdata.name = $("#name").val();
var nameVal = $("#name").val().trim();
if (!nameVal) {
$("#name").focus();
layer.msg('请输入名称', {icon: 2, time: 20000});
return false;
}
formdata.remarks = $("#remarks").val(); formdata.remarks = $("#remarks").val();
var remarksVal = $("#remarks").val().trim();
if (!remarksVal) {
$("#remarks").focus();
layer.msg('请输入备注', {icon: 2, time: 2000});
return false;
}
$.ajax({ $.ajax({
type : 'post', type : 'post',
url : ctxPath + '/prepayment/addOrUpdate', url : ctxPath + '/prepayment/addOrUpdate',

View File

@ -22,6 +22,10 @@
.layui-input, .layui-textarea{ .layui-input, .layui-textarea{
width: 100%; width: 100%;
} }
.text-center {
text-align: center !important;
vertical-align: middle !important;
}
</style> </style>
</head> </head>
<body> <body>
@ -176,9 +180,11 @@
var c = meta.settings._iDisplayStart + meta.row + 1; var c = meta.settings._iDisplayStart + meta.row + 1;
return c; return c;
}, },
"class": "text-center",
"orderable": false "orderable": false
}, },
{ "data": "", "defaultContent": "", { "data": "", "defaultContent": "","orderable": false, "width":100,
"class": "text-center",
"render": function (data, type, row) { "render": function (data, type, row) {
var type = row['type']; var type = row['type'];
if(type == 1){ if(type == 1){
@ -188,12 +194,13 @@
} }
}, },
}, },
{ "data": "name", "defaultContent": ""}, { "data": "name", "defaultContent": "","orderable": false,"class": "text-center","width":550},
{ "data": "remarks", "defaultContent": ""}, { "data": "remarks", "defaultContent": "","orderable": false,"class": "text-center","width":550},
{ {
"data": "", "data": "",
"defaultContent": "", "defaultContent": "",
"orderable":false, "orderable":false,
"class": "text-center",
"render": function (data, type, row) { "render": function (data, type, row) {
var id = row['id']; var id = row['id'];
var edit = buttonupdte(id, "", pers); var edit = buttonupdte(id, "", pers);