Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
06d70205
Commit
06d70205
authored
Jul 22, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.业务全过程增加单位过滤
parent
998ca368
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
5 deletions
+29
-5
TZSCommonConstant.java
...os/boot/module/common/api/constant/TZSCommonConstant.java
+11
-0
ReginStepEnum.java
...join/amos/boot/module/common/api/enums/ReginStepEnum.java
+18
-5
DPStatisticsServiceImpl.java
...t/module/jg/biz/service/impl/DPStatisticsServiceImpl.java
+0
-0
No files found.
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/constant/TZSCommonConstant.java
0 → 100644
View file @
06d70205
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
constant
;
/**
* @author Administrator
*/
public
class
TZSCommonConstant
{
/**
* 陕西省行政区划编码
*/
public
final
static
String
SHAN_XI_REGION_CODE
=
"61000"
;
}
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/enums/ReginStepEnum.java
View file @
06d70205
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
enums
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
enums
;
import
com.yeejoin.amos.feign.systemctl.model.RegionModel
;
import
lombok.Getter
;
import
lombok.Getter
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
/**
* 需要提级的行政区划
* 需要提级的行政区划
*/
*/
...
@@ -11,16 +16,15 @@ public enum ReginStepEnum {
...
@@ -11,16 +16,15 @@ public enum ReginStepEnum {
/**
/**
* 杨凌区
* 杨凌区
*/
*/
YANGLING
(
"610403"
,
"杨陵区"
,
"map"
),
YANGLING
(
"610403"
,
"杨陵区"
,
"map"
),
/**
/**
* 西咸新区
* 西咸新区
*/
*/
XIXIAN
(
"617000"
,
"西咸新区"
,
"other
"
),
XIXIAN
(
"617000"
,
"西咸新区"
,
"map
"
),
/**
/**
* 韩城市
* 韩城市
*/
*/
HANCHENG
(
"610581"
,
"韩城市"
,
"map"
);
HANCHENG
(
"610581"
,
"韩城市"
,
"map"
);
private
final
String
code
;
private
final
String
code
;
...
@@ -29,9 +33,18 @@ public enum ReginStepEnum {
...
@@ -29,9 +33,18 @@ public enum ReginStepEnum {
private
final
String
type
;
private
final
String
type
;
ReginStepEnum
(
String
code
,
String
name
,
String
type
)
{
ReginStepEnum
(
String
code
,
String
name
,
String
type
)
{
this
.
code
=
code
;
this
.
code
=
code
;
this
.
name
=
name
;
this
.
name
=
name
;
this
.
type
=
type
;
this
.
type
=
type
;
}
}
public
static
List
<
RegionModel
>
enum2RegionList
(
String
type
)
{
return
Arrays
.
stream
(
ReginStepEnum
.
values
()).
filter
(
e
->
e
.
getType
().
equals
(
type
)).
map
(
e
->
{
RegionModel
regionModel
=
new
RegionModel
();
regionModel
.
setRegionCode
(
Integer
.
parseInt
(
e
.
getCode
()));
regionModel
.
setRegionName
(
e
.
getName
());
return
regionModel
;
}).
collect
(
Collectors
.
toList
());
}
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/DPStatisticsServiceImpl.java
View file @
06d70205
This diff is collapsed.
Click to expand it.
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