Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zrch-risk-39
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
zrch-risk-39
Commits
6f7a94e5
提交
6f7a94e5
authored
3月 17, 2026
作者:
kxjia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
完善 非现场报送模板
上级
d3370854
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
37 行增加
和
20 行删除
+37
-20
BaosongTaskController.java
...modules/stm/baosong/controller/BaosongTaskController.java
+8
-1
BaosongTask.java
...ava/org/jeecg/modules/stm/baosong/entity/BaosongTask.java
+3
-0
BaosongTaskAllocMapper.java
...cg/modules/stm/baosong/mapper/BaosongTaskAllocMapper.java
+1
-0
IBaosongTaskAllocService.java
...modules/stm/baosong/service/IBaosongTaskAllocService.java
+1
-0
BaosongTaskAllocServiceImpl.java
...stm/baosong/service/impl/BaosongTaskAllocServiceImpl.java
+10
-0
BaosongTaskAllocMapper.xml
...main/resources/mapping/baosong/BaosongTaskAllocMapper.xml
+14
-19
没有找到文件。
zrch-risk-server-39/jeecg-module-system/jeecg-module-stm/src/main/java/org/jeecg/modules/stm/baosong/controller/BaosongTaskController.java
浏览文件 @
6f7a94e5
...
@@ -255,17 +255,24 @@ public class BaosongTaskController extends JeecgController<BaosongTask, IBaosong
...
@@ -255,17 +255,24 @@ public class BaosongTaskController extends JeecgController<BaosongTask, IBaosong
Map
<
Integer
,
Integer
>
taskAllocMap
=
baosongTaskAllocService
.
statAllocNum
(
alloc
);
Map
<
Integer
,
Integer
>
taskAllocMap
=
baosongTaskAllocService
.
statAllocNum
(
alloc
);
Map
<
Integer
,
Integer
>
tplChildNumMap
=
baosongTaskAllocService
.
staTplChildNum
(
alloc
);
Map
<
Integer
,
Integer
>
tplChildNumMap
=
baosongTaskAllocService
.
staTplChildNum
(
alloc
);
Map
<
Integer
,
Integer
>
fillStatMap
=
baosongTaskAllocService
.
selectTaskFillSta
(
alloc
);
Map
<
Integer
,
Integer
>
fillStatMap
=
baosongTaskAllocService
.
selectTaskFillSta
(
alloc
);
Map
<
Integer
,
Integer
>
fillNumMap
=
baosongTaskAllocService
.
selectTaskFillNum
(
alloc
);
for
(
BaosongTask
task:
tasks
){
for
(
BaosongTask
task:
tasks
){
Integer
tt
=
tplChildNumMap
.
get
(
task
.
getTp
());
Integer
tt
=
tplChildNumMap
.
get
(
task
.
getTp
());
if
(
tt
==
null
)
continue
;
if
(
tt
==
null
)
continue
;
Integer
aa
=
taskAllocMap
.
get
(
task
.
getId
());
Integer
aa
=
taskAllocMap
.
get
(
task
.
getId
());
Integer
cc
=
fillStatMap
.
get
(
task
.
getId
());
Integer
cc
=
fillStatMap
.
get
(
task
.
getId
());
Integer
dd
=
fillNumMap
.
get
(
task
.
getId
());
Integer
sta
=
task
.
getSta
();
Integer
sta
=
task
.
getSta
();
if
(
sta
==
null
)
sta
=
1
;
if
(
sta
==
null
)
sta
=
1
;
if
(
cc
==
null
)
cc
=
0
;
if
(
aa
==
null
)
aa
=
0
;
if
(
dd
==
null
)
aa
=
0
;
updateTaskStatus
(
task
,
sta
,
aa
,
cc
,
tt
);
updateTaskStatus
(
task
,
sta
,
aa
,
cc
,
tt
);
task
.
setAllocNum
(
aa
);
task
.
setAllocNum
(
aa
);
task
.
setTplItemNum
(
tt
);
task
.
setTplItemNum
(
tt
);
task
.
setFillStaNum
(
cc
);
task
.
setFillStaNum
(
cc
);
task
.
setFillNum
(
dd
);
}
}
}
}
...
...
zrch-risk-server-39/jeecg-module-system/jeecg-module-stm/src/main/java/org/jeecg/modules/stm/baosong/entity/BaosongTask.java
浏览文件 @
6f7a94e5
...
@@ -93,6 +93,9 @@ public class BaosongTask implements Serializable {
...
@@ -93,6 +93,9 @@ public class BaosongTask implements Serializable {
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
java
.
lang
.
Integer
fillStaNum
;
private
java
.
lang
.
Integer
fillStaNum
;
@TableField
(
exist
=
false
)
private
java
.
lang
.
Integer
fillNum
;
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
java
.
lang
.
String
staText
;
private
java
.
lang
.
String
staText
;
}
}
zrch-risk-server-39/jeecg-module-system/jeecg-module-stm/src/main/java/org/jeecg/modules/stm/baosong/mapper/BaosongTaskAllocMapper.java
浏览文件 @
6f7a94e5
...
@@ -25,4 +25,5 @@ public interface BaosongTaskAllocMapper extends BaseMapper<BaosongTaskAlloc> {
...
@@ -25,4 +25,5 @@ public interface BaosongTaskAllocMapper extends BaseMapper<BaosongTaskAlloc> {
List
<
Map
<
String
,
Object
>>
selectTaskStatus
(
@Param
(
"query"
)
BaosongTaskAlloc
alloc
);
List
<
Map
<
String
,
Object
>>
selectTaskStatus
(
@Param
(
"query"
)
BaosongTaskAlloc
alloc
);
List
<
Map
<
String
,
Object
>>
selectTaskFillSta
(
@Param
(
"query"
)
BaosongTaskAlloc
alloc
);
List
<
Map
<
String
,
Object
>>
selectTaskFillSta
(
@Param
(
"query"
)
BaosongTaskAlloc
alloc
);
List
<
Map
<
String
,
Object
>>
getFillUsers
(
@Param
(
"query"
)
BaosongTaskAlloc
alloc
);
List
<
Map
<
String
,
Object
>>
getFillUsers
(
@Param
(
"query"
)
BaosongTaskAlloc
alloc
);
List
<
Map
<
String
,
Object
>>
selectTaskFillNum
(
@Param
(
"query"
)
BaosongTaskAlloc
alloc
);
}
}
zrch-risk-server-39/jeecg-module-system/jeecg-module-stm/src/main/java/org/jeecg/modules/stm/baosong/service/IBaosongTaskAllocService.java
浏览文件 @
6f7a94e5
...
@@ -25,4 +25,5 @@ public interface IBaosongTaskAllocService extends IService<BaosongTaskAlloc> {
...
@@ -25,4 +25,5 @@ public interface IBaosongTaskAllocService extends IService<BaosongTaskAlloc> {
Map
<
Integer
,
Boolean
>
selectTaskStatus
(
BaosongTaskAlloc
alloc
);
Map
<
Integer
,
Boolean
>
selectTaskStatus
(
BaosongTaskAlloc
alloc
);
Map
<
Integer
,
Integer
>
selectTaskFillSta
(
BaosongTaskAlloc
alloc
);
Map
<
Integer
,
Integer
>
selectTaskFillSta
(
BaosongTaskAlloc
alloc
);
String
getFillUsers
(
Integer
taskId
,
Integer
tplId
);
String
getFillUsers
(
Integer
taskId
,
Integer
tplId
);
Map
<
Integer
,
Integer
>
selectTaskFillNum
(
BaosongTaskAlloc
alloc
);
}
}
zrch-risk-server-39/jeecg-module-system/jeecg-module-stm/src/main/java/org/jeecg/modules/stm/baosong/service/impl/BaosongTaskAllocServiceImpl.java
浏览文件 @
6f7a94e5
...
@@ -89,6 +89,16 @@ public class BaosongTaskAllocServiceImpl extends ServiceImpl<BaosongTaskAllocMap
...
@@ -89,6 +89,16 @@ public class BaosongTaskAllocServiceImpl extends ServiceImpl<BaosongTaskAllocMap
return
retMap
;
return
retMap
;
}
}
@Override
public
Map
<
Integer
,
Integer
>
selectTaskFillNum
(
BaosongTaskAlloc
alloc
){
List
<
Map
<
String
,
Object
>>
retList
=
this
.
baseMapper
.
selectTaskFillNum
(
alloc
);
Map
<
Integer
,
Integer
>
retMap
=
new
HashMap
<>();
for
(
Map
<
String
,
Object
>
map:
retList
)
{
Integer
taskid
=
Integer
.
valueOf
(
map
.
get
(
"taskid"
).
toString
());
retMap
.
put
(
taskid
,
Integer
.
valueOf
(
map
.
get
(
"cnt"
).
toString
()));
}
return
retMap
;
}
@Override
@Override
public
String
getFillUsers
(
Integer
taskId
,
Integer
tplId
){
public
String
getFillUsers
(
Integer
taskId
,
Integer
tplId
){
...
...
zrch-risk-server-39/jeecg-module-system/jeecg-module-stm/src/main/resources/mapping/baosong/BaosongTaskAllocMapper.xml
浏览文件 @
6f7a94e5
...
@@ -2,14 +2,6 @@
...
@@ -2,14 +2,6 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"org.jeecg.modules.stm.baosong.mapper.BaosongTaskAllocMapper"
>
<mapper
namespace=
"org.jeecg.modules.stm.baosong.mapper.BaosongTaskAllocMapper"
>
<!-- 优化说明:
1. 移除了所有索引提示(USE INDEX)
2. 优化了SQL结构和格式,提高可读性
3. 移除了不必要的1=1条件
4. 保持了原有的字段命名风格
5. 优化了复杂查询的逻辑结构
-->
<select
id=
"queryAllTaskAlloc"
resultType=
"java.util.Map"
>
<select
id=
"queryAllTaskAlloc"
resultType=
"java.util.Map"
>
SELECT
SELECT
A.*,
A.*,
...
@@ -119,11 +111,10 @@
...
@@ -119,11 +111,10 @@
</select>
</select>
<select
id=
"staTplChildNum"
resultType=
"java.util.Map"
>
<select
id=
"staTplChildNum"
resultType=
"java.util.Map"
>
SELECT
SELECT COUNT(*) cnt ,A.tp
SUM(child_num) AS cnt,
FROM baosong_tpl A INNER JOIN baosong_tpl_item B ON A.id=B.tplid
tp
WHERE B.child_num=0
FROM baosong_tpl
GROUP BY A.tp
GROUP BY tp
</select>
</select>
<select
id=
"selectTaskStatus"
resultType=
"java.util.Map"
>
<select
id=
"selectTaskStatus"
resultType=
"java.util.Map"
>
...
@@ -147,15 +138,19 @@
...
@@ -147,15 +138,19 @@
ON AA.tp = BB.tp
ON AA.tp = BB.tp
</select>
</select>
<select
id=
"selectTaskFillNum"
resultType=
"java.util.Map"
>
SELECT COUNT(*) AS cnt,A.taskid
FROM baosong_task_alloc A
INNER JOIN baosong_task_record B ON A.taskid=B.taskid AND A.itemid=B.itemid
WHERE B.itemid IS NOT NULL
GROUP BY A.taskid
</select>
<select
id=
"selectTaskFillSta"
resultType=
"java.util.Map"
>
<select
id=
"selectTaskFillSta"
resultType=
"java.util.Map"
>
SELECT
SELECT COUNT(*) AS cnt,taskid
COUNT(*) AS cnt,
FROM baosong_task_alloc
taskid
WHERE fill_sta IS TRUE
FROM baosong_task_alloc
WHERE fill_sta = TRUE
GROUP BY taskid
GROUP BY taskid
</select>
</select>
<select
id=
"getFillUsers"
resultType=
"java.util.Map"
>
<select
id=
"getFillUsers"
resultType=
"java.util.Map"
>
SELECT
SELECT
GROUP_CONCAT(DISTINCT B.realname SEPARATOR ',') AS usernames
GROUP_CONCAT(DISTINCT B.realname SEPARATOR ',') AS usernames
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论