Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
data-acquisition
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
竹天卫
data-acquisition
Commits
b89b3e5a
Commit
b89b3e5a
authored
May 11, 2021
by
renchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产工序业务修改
parent
73493457
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
7 deletions
+22
-7
ProjectEnum.java
...n/wise/sc/acquisition/business/enumation/ProjectEnum.java
+13
-3
TSampleListServiceImpl.java
...isition/business/service/impl/TSampleListServiceImpl.java
+9
-4
No files found.
acquisition-business/src/main/java/cn/wise/sc/acquisition/business/enumation/ProjectEnum.java
View file @
b89b3e5a
...
@@ -189,10 +189,20 @@ public class ProjectEnum {
...
@@ -189,10 +189,20 @@ public class ProjectEnum {
*/
*/
public
enum
TSampleListType
{
public
enum
TSampleListType
{
YH
(
1
,
"Yh"
,
"样号"
),
HOLES_ID
(
2
,
"HolesID"
,
"炮孔编号"
);
YH
(
1
,
"Yh"
,
"样号"
),
HOLES_ID
(
2
,
"HolesID"
,
"炮孔编号"
),
QR_CODE
(
2
,
"QRCode"
,
"二维码"
),
STOPE_NAME
(
2
,
"StopeName"
,
"采区名称"
),
STEP_NAME
(
3
,
"StepName"
,
"平台名称"
),
BLAST_AREA_NAME
(
4
,
"BlastAreaName"
,
"爆区名称"
),
START
(
4
,
"Start"
,
"从"
),
END_TO
(
4
,
"EndTo"
,
"至"
),
SYR
(
4
,
"Syr"
,
"送样人"
),
SYRQ
(
4
,
"Syrq"
,
"送样时间"
),
BZ
(
4
,
"Bz"
,
"备注"
),
RECORD_NAME
(
4
,
"RecordName"
,
"记录对象"
),
RECORD_CODE
(
4
,
"RecordCode"
,
"记录形式"
);
// 成员变量
// 成员变量
...
...
acquisition-business/src/main/java/cn/wise/sc/acquisition/business/service/impl/TSampleListServiceImpl.java
View file @
b89b3e5a
...
@@ -44,11 +44,16 @@ public class TSampleListServiceImpl extends ServiceImpl<TSampleListMapper, TSamp
...
@@ -44,11 +44,16 @@ public class TSampleListServiceImpl extends ServiceImpl<TSampleListMapper, TSamp
Page
<
TSampleList
>
page
=
new
Page
<>(
query
.
getPageNum
(),
query
.
getPageSize
());
Page
<
TSampleList
>
page
=
new
Page
<>(
query
.
getPageNum
(),
query
.
getPageSize
());
//条件封装 因为图片字节太长,排除QR_CODE,RECORD_CODE
//条件封装 因为图片字节太长,排除QR_CODE,RECORD_CODE
QueryWrapper
<
TSampleList
>
queryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
TSampleList
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
select
(
ProjectEnum
.
TSampleListType
.
HOLES_ID
.
getLabel
(),
ProjectEnum
.
TSampleListType
.
START
.
getLabel
(),
ProjectEnum
.
TSampleListType
.
END_TO
.
getLabel
(),
ProjectEnum
.
TSampleListType
.
YH
.
getLabel
(),
ProjectEnum
.
TSampleListType
.
RECORD_NAME
.
getLabel
(),
ProjectEnum
.
TSampleListType
.
SYR
.
getLabel
(),
ProjectEnum
.
TSampleListType
.
SYRQ
.
getLabel
()
);
queryWrapper
queryWrapper
.
select
(
TSampleList
.
class
,
info
->
!
info
.
getColumn
().
equals
(
ProjectEnum
.
ImageType
.
QR_CODE
.
getLabel
())
&&
!
info
.
getColumn
().
equals
(
ProjectEnum
.
ImageType
.
RECORD_CODE
.
getLabel
()))
.
like
(
StringUtils
.
isNotBlank
(
tSampleListQuery
.
getSearch
()),
ProjectEnum
.
TSampleListType
.
YH
.
getLabel
(),
tSampleListQuery
.
getSearch
())
.
like
(
StringUtils
.
isNotBlank
(
tSampleListQuery
.
getSearch
()),
ProjectEnum
.
TSampleListType
.
YH
.
getLabel
(),
tSampleListQuery
.
getSearch
())
.
or
()
.
or
()
.
like
(
StringUtils
.
isNotBlank
(
tSampleListQuery
.
getSearch
()),
ProjectEnum
.
TSampleListType
.
HOLES_ID
.
getLabel
(),
tSampleListQuery
.
getSearch
());
.
like
(
StringUtils
.
isNotBlank
(
tSampleListQuery
.
getSearch
()),
ProjectEnum
.
TSampleListType
.
HOLES_ID
.
getLabel
(),
tSampleListQuery
.
getSearch
());
...
...
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