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
aaf10b50
Commit
aaf10b50
authored
Mar 08, 2023
by
dengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
多层权重计算逻辑实现
parent
b6ae7575
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
190 additions
and
2 deletions
+190
-2
WeightIndValueMapper.java
.../indicators/model/mapper/weight/WeightIndValueMapper.java
+3
-0
ScoreRuleService.java
...mobile/indicators/service/hytobacco/ScoreRuleService.java
+181
-2
WeightIndValueMapper.xml
src/main/resources/mybatis/mapping/WeightIndValueMapper.xml
+6
-0
No files found.
src/main/java/com/keymobile/indicators/model/mapper/weight/WeightIndValueMapper.java
View file @
aaf10b50
...
@@ -31,4 +31,7 @@ public interface WeightIndValueMapper extends BaseMapper<WeightIndValue> {
...
@@ -31,4 +31,7 @@ public interface WeightIndValueMapper extends BaseMapper<WeightIndValue> {
void
batchDeleteByWeightIds
(
@Param
(
"ids"
)
List
<
Integer
>
ids
);
void
batchDeleteByWeightIds
(
@Param
(
"ids"
)
List
<
Integer
>
ids
);
WeightIndValue
findByIndIdAndObjId
(
@Param
(
"indId"
)
String
indId
,
@Param
(
"objId"
)
String
objId
);
}
}
src/main/java/com/keymobile/indicators/service/hytobacco/ScoreRuleService.java
View file @
aaf10b50
This diff is collapsed.
Click to expand it.
src/main/resources/mybatis/mapping/WeightIndValueMapper.xml
View file @
aaf10b50
...
@@ -34,4 +34,9 @@
...
@@ -34,4 +34,9 @@
</foreach>
</foreach>
</update>
</update>
<select
id=
"findByIndIdAndObjId"
resultType=
"com.keymobile.indicators.model.entity.weight.WeightIndValue"
>
select * from weight_ind_value
where ind_id = #{indId} and obj_id = #{objId} and state = 1
</select>
</mapper>
</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