Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
indicators
Overview
Overview
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
zhangkb
indicators
Commits
4d923797
Commit
4d923797
authored
Sep 27, 2020
by
hzc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增通过id集合,或通过code去获取获取短板筛选规则接口。
parent
4f5e6722
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
1 deletion
+30
-1
ShortboardRuleCtrl.java
...eymobile/indicators/api/hytobacco/ShortboardRuleCtrl.java
+13
-0
NoticeInfo.java
...ava/com/keymobile/indicators/model/entity/NoticeInfo.java
+1
-1
ShortboardRuleMapper.java
...dicators/model/mapper/indmapper/ShortboardRuleMapper.java
+3
-0
ShortboardRuleService.java
...e/indicators/service/hytobacco/ShortboardRuleService.java
+5
-0
ShortboardRuleMapper.xml
src/main/resources/mybatis/mapping/ShortboardRuleMapper.xml
+8
-0
No files found.
src/main/java/com/keymobile/indicators/api/hytobacco/ShortboardRuleCtrl.java
View file @
4d923797
...
...
@@ -6,6 +6,7 @@ import java.util.Map;
import
javax.servlet.http.HttpServletResponse
;
import
io.swagger.annotations.ApiParam
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
...
...
@@ -136,4 +137,16 @@ public class ShortboardRuleCtrl {
@RequestParam
String
code
)
throws
Exception
{
return
shortboardRuleService
.
getObjShortboard
(
compareId
,
date
,
compareObjs
,
driveIds
,
code
);
}
@ApiOperation
(
value
=
"根据ids获取批量获取短板筛选规则"
,
notes
=
"根据ids获取批量获取短板筛选规则"
)
@PostMapping
(
value
=
"/batchSelectByIds"
)
public
List
<
ShortboardRule
>
batchSelectByIds
(
@ApiParam
(
"短板筛选规则id集合"
)
@RequestBody
List
<
Integer
>
ids
){
return
shortboardRuleService
.
getByIdList
(
ids
);
}
@ApiOperation
(
value
=
"根据code(机构编码)获取短板筛选规则"
,
notes
=
"根据code(机构编码)获取短板筛选规则"
)
@PostMapping
(
value
=
"/findByCode"
)
public
List
<
ShortboardRule
>
selectByCode
(
@ApiParam
(
"机构编码"
)
@RequestParam
(
"code"
)
String
code
){
return
shortboardRuleService
.
selectByCode
(
code
);
}
}
src/main/java/com/keymobile/indicators/model/entity/NoticeInfo.java
View file @
4d923797
...
...
@@ -31,7 +31,7 @@ public class NoticeInfo extends BaseModel {
@ApiModelProperty
(
"任务id"
)
private
String
taskId
;
@ApiModelProperty
(
"消息类别 1)数据填报2)数据审核"
)
@ApiModelProperty
(
"消息类别 1)数据填报2)数据审核
3)其他
"
)
private
Integer
noticeClass
;
@ApiModelProperty
(
"跳转路径"
)
...
...
src/main/java/com/keymobile/indicators/model/mapper/indmapper/ShortboardRuleMapper.java
View file @
4d923797
...
...
@@ -20,4 +20,7 @@ public interface ShortboardRuleMapper extends BaseMapper<ShortboardRule>{
public
void
deleteByIdIn
(
@Param
(
"ids"
)
List
<
Integer
>
ids
);
public
List
<
ShortboardRule
>
findByIdList
(
@Param
(
"ids"
)
List
<
Integer
>
ids
);
List
<
ShortboardRule
>
selectByCode
(
String
code
);
}
src/main/java/com/keymobile/indicators/service/hytobacco/ShortboardRuleService.java
View file @
4d923797
...
...
@@ -532,4 +532,9 @@ public class ShortboardRuleService {
}
return
shortboardRule
;
}
public
List
<
ShortboardRule
>
selectByCode
(
String
code
)
{
return
shortboardRuleMapper
.
selectByCode
(
code
);
}
}
src/main/resources/mybatis/mapping/ShortboardRuleMapper.xml
View file @
4d923797
...
...
@@ -46,4 +46,11 @@
#{id}
</foreach>
</select>
<select
id=
"selectByCode"
resultType=
"com.keymobile.indicators.model.entity.shortboard.ShortboardRule"
>
select *
from short_board_rule
where code=#{code}
</select>
</mapper>
\ No newline at end of file
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