Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
chnmuseum-party
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liqin
chnmuseum-party
Commits
135817b1
Commit
135817b1
authored
May 21, 2021
by
jiawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
/tBoardStatistic/getBoardSurvey 获取展板统计概况
加上区域条件
parent
1f243b6b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
1 deletion
+47
-1
TBoardSurvey.java
src/main/java/cn/chnmuseum/party/model/TBoardSurvey.java
+10
-0
LearningProjectController.java
...useum/party/web/controller/LearningProjectController.java
+2
-1
TBoardStatisticController.java
...useum/party/web/controller/TBoardStatisticController.java
+3
-0
TBoardStatisticMapper.xml
src/main/resources/mapper/TBoardStatisticMapper.xml
+32
-0
No files found.
src/main/java/cn/chnmuseum/party/model/TBoardSurvey.java
View file @
135817b1
...
...
@@ -14,6 +14,7 @@ import lombok.experimental.Accessors;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* <p>
...
...
@@ -58,4 +59,13 @@ public class TBoardSurvey implements Serializable {
@ApiModelProperty
(
"机构编码"
)
private
String
organCode
;
@ApiModelProperty
(
"地区编码"
)
private
String
areaCode
;
/**
* 地区id集合
*/
@ApiModelProperty
(
hidden
=
true
)
private
List
<
String
>
areaIds
;
}
src/main/java/cn/chnmuseum/party/web/controller/LearningProjectController.java
View file @
135817b1
...
...
@@ -146,7 +146,8 @@ public class LearningProjectController extends BaseController {
})
@MethodLog
(
operModule
=
OperModule
.
LEARNPROJECT
,
operType
=
OperType
.
DELETE
)
public
Map
<
String
,
Object
>
deleteLearningProject
(
@PathVariable
(
"id"
)
String
id
)
{
this
.
learningContentService
.
remove
(
Wrappers
.<
LearningContent
>
lambdaUpdate
().
eq
(
LearningContent:
:
getLearningProjectId
,
id
));
//按照王亭亭的要求 删除学习项目,不删除学习内容 所以注释掉下面一行代码
// this.learningContentService.remove(Wrappers.<LearningContent>lambdaUpdate().eq(LearningContent::getLearningProjectId, id));
this
.
learningProjectService
.
removeById
(
id
);
return
getSuccessResult
();
}
...
...
src/main/java/cn/chnmuseum/party/web/controller/TBoardStatisticController.java
View file @
135817b1
...
...
@@ -69,6 +69,9 @@ public class TBoardStatisticController extends BaseController {
if
(
StringUtils
.
isEmpty
(
survey
.
getStatisticDate
()))
{
survey
.
setStatisticDate
(
DateUtil
.
getCurrentDate
(
"yyyyMM"
));
}
//加上区域条件
List
<
String
>
areaIds
=
findAllAreaIdByParentCode
(
survey
.
getAreaCode
());
survey
.
setAreaIds
(
areaIds
);
TBoardSurvey
result
=
this
.
tBoardStatisticService
.
getBoardSurvey
(
survey
);
return
getResult
(
result
);
...
...
src/main/resources/mapper/TBoardStatisticMapper.xml
View file @
135817b1
...
...
@@ -194,6 +194,14 @@
<if
test=
"organId != null"
>
and s.organ_id = #{organId}
</if>
<if
test=
"areaIds !=null and areaIds.size() > 0"
>
AND s.area_id IN
<foreach
collection=
"areaIds"
separator=
","
open=
"("
close=
")"
item=
"item"
>
#{item}
</foreach>
</if>
<if
test=
"organCode != null"
>
and o.code LIKE concat(#{organCode}, '%')
</if>
...
...
@@ -220,6 +228,14 @@
<if
test=
"organCode != null"
>
and o.code LIKE concat(#{organCode}, '%')
</if>
<if
test=
"areaIds !=null and areaIds.size() > 0"
>
AND s.area_id IN
<foreach
collection=
"areaIds"
separator=
","
open=
"("
close=
")"
item=
"item"
>
#{item}
</foreach>
</if>
</where>
GROUP BY s.board_id ) a
</select>
...
...
@@ -244,6 +260,14 @@
<if
test=
"organCode != null"
>
and o.code LIKE concat(#{organCode}, '%')
</if>
<if
test=
"areaIds !=null and areaIds.size() > 0"
>
AND s.area_id IN
<foreach
collection=
"areaIds"
separator=
","
open=
"("
close=
")"
item=
"item"
>
#{item}
</foreach>
</if>
</where>
GROUP BY s.organ_id ) a
</select>
...
...
@@ -264,6 +288,14 @@
<if
test=
"organCode != null"
>
and o.code LIKE concat(#{organCode}, '%')
</if>
<if
test=
"areaIds !=null and areaIds.size() > 0"
>
AND o.area_id IN
<foreach
collection=
"areaIds"
separator=
","
open=
"("
close=
")"
item=
"item"
>
#{item}
</foreach>
</if>
</where>
</select>
<!-- 互动频次统计 -->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment