Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zrch-risk-39
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
zrch-risk-39
Commits
9cb3fade
提交
9cb3fade
authored
2月 02, 2026
作者:
liuluyu
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
http://47.97.51.208/root/zrch-risk-39
上级
d692b0a9
4030e116
全部展开
显示空白字符变更
内嵌
并排
正在显示
18 个修改的文件
包含
142 行增加
和
28 行删除
+142
-28
package.json
zrch-risk-client-39/package.json
+1
-0
pnpm-lock.yaml
zrch-risk-client-39/pnpm-lock.yaml
+8
-0
Tb1.vue
...isk-client-39/src/views/baosong/report/components/Tb1.vue
+0
-0
Tb10.vue
...sk-client-39/src/views/baosong/report/components/Tb10.vue
+0
-0
Tb2.vue
...isk-client-39/src/views/baosong/report/components/Tb2.vue
+0
-0
Tb4.vue
...isk-client-39/src/views/baosong/report/components/Tb4.vue
+0
-0
Tb5.vue
...isk-client-39/src/views/baosong/report/components/Tb5.vue
+0
-0
Tb6.vue
...isk-client-39/src/views/baosong/report/components/Tb6.vue
+0
-0
Tb7.vue
...isk-client-39/src/views/baosong/report/components/Tb7.vue
+0
-0
Tb8.vue
...isk-client-39/src/views/baosong/report/components/Tb8.vue
+0
-0
Tb9.vue
...isk-client-39/src/views/baosong/report/components/Tb9.vue
+0
-0
HistoryFillCheck.vue
...iews/baosong/report/components/check/HistoryFillCheck.vue
+12
-7
BaosongDataValidController.java
...es/stm/baosong/controller/BaosongDataValidController.java
+11
-0
BaosongTaskAllocController.java
...es/stm/baosong/controller/BaosongTaskAllocController.java
+27
-0
BaosongTaskRecordController.java
...s/stm/baosong/controller/BaosongTaskRecordController.java
+73
-4
BaosongTplController.java
.../modules/stm/baosong/controller/BaosongTplController.java
+4
-1
BaosongDataValid.java
...rg/jeecg/modules/stm/baosong/entity/BaosongDataValid.java
+0
-14
application-dev.yml
...jeecg-system-start/src/main/resources/application-dev.yml
+6
-2
没有找到文件。
zrch-risk-client-39/package.json
浏览文件 @
9cb3fade
...
...
@@ -79,6 +79,7 @@
"swagger-ui-dist"
:
"^5.29.3"
,
"tinymce"
:
"6.6.2"
,
"vditor"
:
"^3.11.2"
,
"vkbeautify"
:
"^0.99.3"
,
"vue"
:
"^3.5.22"
,
"vue-cropper"
:
"^0.6.5"
,
"vue-cropperjs"
:
"^5.0.0"
,
...
...
zrch-risk-client-39/pnpm-lock.yaml
浏览文件 @
9cb3fade
...
...
@@ -176,6 +176,9 @@ importers:
vditor
:
specifier
:
^3.11.2
version
:
3.11.2
vkbeautify
:
specifier
:
^0.99.3
version
:
0.99.3
vue
:
specifier
:
^3.5.22
version
:
3.5.27(typescript@5.9.3)
...
...
@@ -7619,6 +7622,9 @@ packages:
yaml
:
optional
:
true
vkbeautify@0.99.3
:
resolution
:
{
integrity
:
sha512-2ozZEFfmVvQcHWoHLNuiKlUfDKlhh4KGsy54U0UrlLMR1SO+XKAIDqBxtBwHgNrekurlJwE8A9K6L49T78ZQ9Q==
}
vue-component-type-helpers@2.2.12
:
resolution
:
{
integrity
:
sha512-YbGqHZ5/eW4SnkPNR44mKVc6ZKQoRs/Rux1sxC6rdwXb4qpbOSYfDr9DsTHolOTGmIKgM9j141mZbBeg05R1pw==
}
...
...
@@ -15963,6 +15969,8 @@ snapshots:
terser
:
5.46.0
tsx
:
4.21.0
vkbeautify@0.99.3
:
{}
vue-component-type-helpers@2.2.12
:
{}
vue-cropper@0.6.5
:
{}
...
...
zrch-risk-client-39/src/views/baosong/report/components/Tb1.vue
浏览文件 @
9cb3fade
差异被折叠。
点击展开。
zrch-risk-client-39/src/views/baosong/report/components/Tb10.vue
浏览文件 @
9cb3fade
差异被折叠。
点击展开。
zrch-risk-client-39/src/views/baosong/report/components/Tb2.vue
浏览文件 @
9cb3fade
差异被折叠。
点击展开。
zrch-risk-client-39/src/views/baosong/report/components/Tb4.vue
浏览文件 @
9cb3fade
差异被折叠。
点击展开。
zrch-risk-client-39/src/views/baosong/report/components/Tb5.vue
浏览文件 @
9cb3fade
差异被折叠。
点击展开。
zrch-risk-client-39/src/views/baosong/report/components/Tb6.vue
浏览文件 @
9cb3fade
差异被折叠。
点击展开。
zrch-risk-client-39/src/views/baosong/report/components/Tb7.vue
浏览文件 @
9cb3fade
差异被折叠。
点击展开。
zrch-risk-client-39/src/views/baosong/report/components/Tb8.vue
浏览文件 @
9cb3fade
差异被折叠。
点击展开。
zrch-risk-client-39/src/views/baosong/report/components/Tb9.vue
浏览文件 @
9cb3fade
差异被折叠。
点击展开。
zrch-risk-client-39/src/views/baosong/report/components/check/HistoryFillCheck.vue
浏览文件 @
9cb3fade
...
...
@@ -51,11 +51,11 @@ const gridOptions = reactive<VxeGridProps<RowVO>>({
{
field
:
'itemName'
,
title
:
'字段名称'
,
width
:
"15%"
},
{
field
:
'values'
,
title
:
'最近5年填报数据'
,
width
:
"75%"
,
children
:
[
{
field
:
'value
1
'
,
title
:
'第一次'
,
width
:
"15%"
},
{
field
:
'value
2
'
,
title
:
'第二次'
,
width
:
"15%"
},
{
field
:
'value
3
'
,
title
:
'第三次'
,
width
:
"15%"
},
{
field
:
'value
4
'
,
title
:
'第四次'
,
width
:
"15%"
},
{
field
:
'value
5
'
,
title
:
'第五次'
,
width
:
"15%"
},
{
field
:
'value
0
'
,
title
:
'第一次'
,
width
:
"15%"
},
{
field
:
'value
1
'
,
title
:
'第二次'
,
width
:
"15%"
},
{
field
:
'value
2
'
,
title
:
'第三次'
,
width
:
"15%"
},
{
field
:
'value
3
'
,
title
:
'第四次'
,
width
:
"15%"
},
{
field
:
'value
4
'
,
title
:
'第五次'
,
width
:
"15%"
},
],
},
{
field
:
'opt'
,
title
:
'操作'
,
width
:
"10%"
},
...
...
@@ -67,19 +67,24 @@ async function onDrawerShow(tplid: number) {
const
retData
=
await
findFillHistoryForCheck
({
tplid
:
tplid
});
// 调试:查看数据结构
console
.
log
(
'原始数据:'
,
retData
);
// 处理 values 数据
const
processedData
=
retData
.
map
(
item
=>
{
const
processedData
=
retData
.
map
(
(
item
,
itemIndex
)
=>
{
const
processedItem
=
{...
item
};
// 将 values 数组中的 value 属性提取出来
if
(
Array
.
isArray
(
processedItem
.
values
))
{
processedItem
.
values
.
forEach
((
valueItem
,
index
)
=>
{
// 将每个 valueItem 的 value 属性设置到单独的字段中
processedItem
[
`value
${
index
}
`
]
=
valueItem
.
value
;
// 注意:index从0开始,但字段名应该从1开始
processedItem
[
`value
${
index
+
1
}
`
]
=
valueItem
.
value
;
});
}
return
processedItem
;
});
console
.
log
(
'处理后的数据:'
,
processedData
);
gridOptions
.
data
=
processedData
;
return
false
;
}
...
...
zrch-risk-server-39/jeecg-module-system/jeecg-module-stm/src/main/java/org/jeecg/modules/stm/baosong/controller/BaosongDataValidController.java
浏览文件 @
9cb3fade
...
...
@@ -10,6 +10,7 @@ import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.system.query.QueryGenerator
;
import
org.jeecg.modules.stm.baosong.entity.BaosongDataValid
;
import
org.jeecg.modules.stm.baosong.entity.BaosongTaskAlloc
;
import
org.jeecg.modules.stm.baosong.entity.BaosongTaskRecord
;
import
org.jeecg.modules.stm.baosong.entity.BaosongTplItem
;
import
org.jeecg.modules.stm.baosong.service.IBaosongDataValidService
;
...
...
@@ -224,4 +225,14 @@ public class BaosongDataValidController extends JeecgController<BaosongDataValid
return
Result
.
OK
(
retMap
);
}
@GetMapping
(
value
=
"/getTblvalidFormula"
)
public
Result
<
List
<
BaosongDataValid
>>
getTblvalidFormula
(
BaosongDataValid
dataValid
,
HttpServletRequest
req
)
{
List
<
BaosongDataValid
>
listFormula
=
baosongDataValidService
.
lambdaQuery
()
.
eq
(
BaosongDataValid:
:
getTplid
,
dataValid
.
getTplid
())
.
list
();
return
Result
.
OK
(
listFormula
);
}
}
zrch-risk-server-39/jeecg-module-system/jeecg-module-stm/src/main/java/org/jeecg/modules/stm/baosong/controller/BaosongTaskAllocController.java
浏览文件 @
9cb3fade
...
...
@@ -268,4 +268,31 @@ public class BaosongTaskAllocController extends JeecgController<BaosongTaskAlloc
list
.
addAll
(
0
,
rootItemList
);
}
}
@GetMapping
(
value
=
"/findUserRightForTplItem"
)
public
Result
<
Set
<
String
>>
findUserRightForTplItem
(
BaosongTaskAlloc
taskAlloc
,
HttpServletRequest
req
)
{
Set
<
String
>
retCodeSet
=
new
HashSet
<>();
try
{
String
userId
=
UserUtil
.
getUserId
();
List
<
BaosongTaskAlloc
>
allocTplList
=
baosongTaskAllocService
.
lambdaQuery
()
.
eq
(
BaosongTaskAlloc:
:
getFillUser
,
userId
)
.
eq
(
BaosongTaskAlloc:
:
getTaskid
,
taskAlloc
.
getTaskid
())
.
eq
(
BaosongTaskAlloc:
:
getTplid
,
taskAlloc
.
getTplid
())
.
list
();
Set
<
Integer
>
tplIdSet
=
new
HashSet
<>();
for
(
BaosongTaskAlloc
alloc
:
allocTplList
)
{
tplIdSet
.
add
(
alloc
.
getItemid
());
}
List
<
BaosongTplItem
>
itemList
=
baosongTplItemService
.
lambdaQuery
()
.
in
(
BaosongTplItem:
:
getId
,
tplIdSet
)
.
list
();
for
(
BaosongTplItem
item
:
itemList
)
{
retCodeSet
.
add
(
item
.
getPcode
()+
"_"
+
item
.
getCode
());
}
return
Result
.
OK
(
retCodeSet
);
}
catch
(
Exception
e
)
{
log
.
error
(
"查询用户模板权限失败"
,
e
);
return
Result
.
error
(
"查询失败,请稍后重试"
);
}
}
}
zrch-risk-server-39/jeecg-module-system/jeecg-module-stm/src/main/java/org/jeecg/modules/stm/baosong/controller/BaosongTaskRecordController.java
浏览文件 @
9cb3fade
package
org
.
jeecg
.
modules
.
stm
.
baosong
.
controller
;
import
java.util.
ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.
*
;
import
com.aliyun.oss.ServiceException
;
import
com.baomidou.mybatisplus.core.toolkit.CollectionUtils
;
import
jakarta.servlet.http.HttpServletRequest
;
import
jakarta.servlet.http.HttpServletResponse
;
...
...
@@ -41,6 +41,7 @@ public class BaosongTaskRecordController extends JeecgController<BaosongTaskReco
@Autowired
private
IBaosongTaskRecordService
baosongTaskRecordService
;
/**
* 分页列表查询
*
...
...
@@ -261,4 +262,72 @@ public class BaosongTaskRecordController extends JeecgController<BaosongTaskReco
}
@GetMapping
(
value
=
"/findFillHistoryForCheck"
)
public
Result
<
List
<
Map
<
String
,
Object
>>>
findFillHistoryForCheckTraditional
(
BaosongQuery
baosongQuery
,
HttpServletRequest
req
)
{
// 参数校验
if
(
baosongQuery
==
null
)
{
return
Result
.
error
(
"查询参数不能为空"
);
}
List
<
Map
<
String
,
Object
>>
retList
=
new
ArrayList
<>();
try
{
List
<
BaosongQuery
>
list
=
baosongTaskRecordService
.
findTaskRecords
(
baosongQuery
);
if
(
CollectionUtils
.
isEmpty
(
list
))
{
return
Result
.
OK
(
Collections
.
emptyList
());
}
// 使用 LinkedHashMap 保持插入顺序
Map
<
Integer
,
List
<
Map
<
String
,
Object
>>>
tmpMap
=
new
LinkedHashMap
<>();
Map
<
Integer
,
String
>
itemNameMap
=
new
HashMap
<>();
Map
<
Integer
,
String
>
taskNameMap
=
new
HashMap
<>();
for
(
BaosongQuery
taskRecord
:
list
)
{
Integer
itemId
=
taskRecord
.
getItemid
();
// 获取或创建列表
List
<
Map
<
String
,
Object
>>
cList
=
tmpMap
.
computeIfAbsent
(
itemId
,
k
->
new
ArrayList
<>());
// 构建值Map
Map
<
String
,
Object
>
tmpVal
=
new
HashMap
<>(
3
);
tmpVal
.
put
(
"value"
,
taskRecord
.
getContent
());
tmpVal
.
put
(
"taskid"
,
taskRecord
.
getTaskid
());
tmpVal
.
put
(
"taskName"
,
taskRecord
.
getTaskName
());
cList
.
add
(
tmpVal
);
// 存储 itemName(如果已存在则跳过)
itemNameMap
.
putIfAbsent
(
itemId
,
taskRecord
.
getTplItemName
());
if
(
taskNameMap
.
get
(
taskRecord
.
getTaskid
())!=
null
){
taskNameMap
.
put
(
taskRecord
.
getTaskid
(),
taskRecord
.
getTaskName
());
}
}
// 构建结果
for
(
Map
.
Entry
<
Integer
,
List
<
Map
<
String
,
Object
>>>
entry
:
tmpMap
.
entrySet
())
{
Integer
itemId
=
entry
.
getKey
();
Map
<
String
,
Object
>
resultItem
=
new
HashMap
<>(
3
);
resultItem
.
put
(
"itemId"
,
itemId
);
resultItem
.
put
(
"itemName"
,
itemNameMap
.
get
(
itemId
));
resultItem
.
put
(
"values"
,
entry
.
getValue
());
retList
.
add
(
resultItem
);
}
// 可选:按 itemId 排序
retList
.
sort
(
Comparator
.
comparing
(
m
->
(
Integer
)
m
.
get
(
"itemId"
)));
}
catch
(
ServiceException
e
)
{
log
.
error
(
"查询填报历史记录失败,查询参数:{}"
,
baosongQuery
,
e
);
return
Result
.
error
(
"查询失败:"
+
e
.
getMessage
());
}
catch
(
Exception
e
)
{
log
.
error
(
"系统异常,查询填报历史记录失败"
,
e
);
return
Result
.
error
(
"系统异常,请稍后重试"
);
}
return
Result
.
OK
(
retList
);
}
}
zrch-risk-server-39/jeecg-module-system/jeecg-module-stm/src/main/java/org/jeecg/modules/stm/baosong/controller/BaosongTplController.java
浏览文件 @
9cb3fade
...
...
@@ -290,13 +290,14 @@ public class BaosongTplController extends JeecgController<BaosongTpl, IBaosongTp
}
@GetMapping
(
value
=
"/findUserRightForTpl"
)
public
Result
<
List
<
BaosongTpl
>>
findUserRightForTpl
(
HttpServletRequest
req
)
{
public
Result
<
List
<
BaosongTpl
>>
findUserRightForTpl
(
Integer
taskId
,
HttpServletRequest
req
)
{
List
<
BaosongTpl
>
retTplList
=
new
ArrayList
<>();
try
{
String
userId
=
UserUtil
.
getUserId
();
List
<
BaosongTaskAlloc
>
allocTplList
=
baosongTaskAllocService
.
lambdaQuery
()
.
eq
(
BaosongTaskAlloc:
:
getFillUser
,
userId
)
.
eq
(
BaosongTaskAlloc:
:
getTaskid
,
taskId
)
.
list
();
Set
<
Integer
>
tplIdSet
=
new
HashSet
<>();
for
(
BaosongTaskAlloc
alloc
:
allocTplList
)
{
...
...
@@ -319,4 +320,6 @@ public class BaosongTplController extends JeecgController<BaosongTpl, IBaosongTp
return
Result
.
error
(
"查询失败,请稍后重试"
);
}
}
}
zrch-risk-server-39/jeecg-module-system/jeecg-module-stm/src/main/java/org/jeecg/modules/stm/baosong/entity/BaosongDataValid.java
浏览文件 @
9cb3fade
...
...
@@ -34,30 +34,24 @@ public class BaosongDataValid implements Serializable {
/**id*/
@TableId
(
type
=
IdType
.
AUTO
)
private
java
.
lang
.
Integer
id
;
/**模板ID*/
@Excel
(
name
=
"模板"
,
width
=
15
)
private
Integer
tplid
;
/**公式编号*/
@Excel
(
name
=
"公式编号"
,
width
=
15
)
private
java
.
lang
.
String
code
;
/**名称*/
@Excel
(
name
=
"名称"
,
width
=
15
)
private
java
.
lang
.
String
name
;
/**验证公式*/
@Excel
(
name
=
"验证公式"
,
width
=
15
)
private
java
.
lang
.
String
formula
;
/**类型*/
@Excel
(
name
=
"类型"
,
width
=
15
)
private
java
.
lang
.
Integer
ctp
;
/**分类
* 1=表内校验
...
...
@@ -66,32 +60,24 @@ public class BaosongDataValid implements Serializable {
* 4=不同年份校验
* */
@Excel
(
name
=
"分类"
,
width
=
15
)
private
java
.
lang
.
Integer
tp
;
/**预期值*/
@Excel
(
name
=
"预期值"
,
width
=
15
)
private
java
.
lang
.
String
expectedValue
;
/**更新时间*/
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
java
.
util
.
Date
updateTime
;
/**创建时间*/
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
java
.
util
.
Date
createTime
;
/**参数*/
@Excel
(
name
=
"参数"
,
width
=
15
)
private
java
.
lang
.
String
params
;
/**说明*/
@Excel
(
name
=
"说明"
,
width
=
15
)
private
java
.
lang
.
String
des
;
@Excel
(
name
=
"itemid"
,
width
=
15
)
private
java
.
lang
.
Integer
tplItemid
;
}
zrch-risk-server-39/jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml
浏览文件 @
9cb3fade
...
...
@@ -151,9 +151,13 @@ spring:
slow-sql-millis
:
5000
datasource
:
master
:
url
:
jdbc:mysql://47.98.203.68:3306/zrch_stm_db_3.9?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
# url: jdbc:mysql://47.98.203.68:3306/zrch_stm_db_3.9?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
# username: root
# password: ZhongRunChangHong/123
url
:
jdbc:mysql://localhost:3306/zrch_stm_db_3.9?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username
:
root
password
:
ZhongRunChangHong/123
password
:
123456
driver-class-name
:
com.mysql.cj.jdbc.Driver
# # shardingjdbc数据源
# sharding-db:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论