Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
sample-form-platform
Commits
121233cd
Commit
121233cd
authored
Feb 25, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加样表设备列表
parent
a1bad497
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
5 deletions
+68
-5
sample-form-manager/src/main/java/com/mortals/xhx/common/code/DeviceSourceEnum.java
...in/java/com/mortals/xhx/common/code/DeviceSourceEnum.java
+65
-0
sample-form-manager/src/main/java/com/mortals/xhx/common/code/SourceEnum.java
...src/main/java/com/mortals/xhx/common/code/SourceEnum.java
+3
-3
sample-form-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterServiceImpl.java
...als/xhx/module/matter/service/impl/MatterServiceImpl.java
+0
-2
No files found.
sample-form-manager/src/main/java/com/mortals/xhx/common/code/DeviceSourceEnum.java
0 → 100644
View file @
121233cd
package
com.mortals.xhx.common.code
;
import
java.util.LinkedHashMap
;
import
java.util.Map
;
/**
* 设备来源(0.旧设备,1.新设备)枚举类
*
* @author zxfei
*/
public
enum
DeviceSourceEnum
{
旧设备
(
0
,
"旧设备"
),
新设备
(
1
,
"新设备"
);
private
Integer
value
;
private
String
desc
;
DeviceSourceEnum
(
Integer
value
,
String
desc
)
{
this
.
value
=
value
;
this
.
desc
=
desc
;
}
public
Integer
getValue
()
{
return
this
.
value
;
}
public
String
getDesc
()
{
return
this
.
desc
;
}
public
static
DeviceSourceEnum
getByValue
(
Integer
value
)
{
for
(
DeviceSourceEnum
sourceEnum
:
DeviceSourceEnum
.
values
())
{
if
(
sourceEnum
.
getValue
()
==
value
)
{
return
sourceEnum
;
}
}
return
null
;
}
/**
* 获取Map集合
*
* @param eItem 不包含项
* @return
*/
public
static
Map
<
String
,
String
>
getEnumMap
(
Integer
...
eItem
)
{
Map
<
String
,
String
>
resultMap
=
new
LinkedHashMap
<>();
for
(
DeviceSourceEnum
item
:
DeviceSourceEnum
.
values
())
{
try
{
boolean
hasE
=
false
;
for
(
Integer
e
:
eItem
)
{
if
(
item
.
getValue
()
==
e
)
{
hasE
=
true
;
break
;
}
}
if
(!
hasE
)
{
resultMap
.
put
(
item
.
getValue
()
+
""
,
item
.
getDesc
());
}
}
catch
(
Exception
ex
)
{
}
}
return
resultMap
;
}
}
\ No newline at end of file
sample-form-manager/src/main/java/com/mortals/xhx/common/code/SourceEnum.java
View file @
121233cd
...
...
@@ -4,13 +4,13 @@ import java.util.LinkedHashMap;
import
java.util.Map
;
/**
*
设备来源(0.旧设备,1.新设备
)枚举类
*
事项来源 (0.政务网,1.自定义
)枚举类
*
* @author zxfei
*/
public
enum
SourceEnum
{
旧设备
(
0
,
"旧设备
"
),
新设备
(
1
,
"新设备
"
);
政务网
(
0
,
"政务网
"
),
自定义
(
1
,
"自定义
"
);
private
Integer
value
;
private
String
desc
;
...
...
sample-form-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterServiceImpl.java
View file @
121233cd
...
...
@@ -6,7 +6,6 @@ import com.mortals.framework.exception.AppException;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.model.PageInfo
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.xhx.common.code.MatterSourceEnum
;
import
com.mortals.xhx.common.code.SourceEnum
;
import
com.mortals.xhx.common.code.YesNoEnum
;
import
com.mortals.xhx.module.matter.dao.MatterDao
;
...
...
@@ -18,7 +17,6 @@ import com.mortals.xhx.module.matter.service.MatterDatumService;
import
com.mortals.xhx.module.matter.service.MatterService
;
import
com.mortals.xhx.module.sheet.model.SheetMatterEntity
;
import
com.mortals.xhx.module.sheet.service.SheetMatterService
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.ObjectUtils
;
...
...
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