Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-service-hmhj
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
wangweidong
patzn-cloud-service-hmhj
Commits
73eedae0
Commit
73eedae0
authored
Jan 18, 2022
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
霍煤多委托项目分配;
parent
da556a98
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
7 deletions
+48
-7
EntrustSampleItemController.java
...ice/lims/hmhj/controller/EntrustSampleItemController.java
+13
-0
EntrustSampleItemMapper.java
...oud/service/lims/hmhj/mapper/EntrustSampleItemMapper.java
+2
-2
IEntrustSampleItemService.java
.../service/lims/hmhj/service/IEntrustSampleItemService.java
+5
-0
EntrustSampleItemServiceImpl.java
.../lims/hmhj/service/impl/EntrustSampleItemServiceImpl.java
+22
-2
EntrustSampleItemMapper.xml
src/main/resources/mapper/hmhj/EntrustSampleItemMapper.xml
+6
-3
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/controller/EntrustSampleItemController.java
View file @
73eedae0
...
@@ -681,6 +681,19 @@ public class EntrustSampleItemController extends ServiceController {
...
@@ -681,6 +681,19 @@ public class EntrustSampleItemController extends ServiceController {
return
success
(
entrustSampleItemService
.
getItemFillProgressQuery
(
getPage
(),
itemVO
));
return
success
(
entrustSampleItemService
.
getItemFillProgressQuery
(
getPage
(),
itemVO
));
}
}
@ApiOperation
(
value
=
"按项目分配左侧列表"
,
notes
=
"按项目分配左侧列表"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_PAGE
,
value
=
"请求数据的页码"
,
required
=
true
,
paramType
=
"query"
,
dataType
=
"int"
),
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_ROWS
,
value
=
"每页条数"
,
required
=
true
,
paramType
=
"query"
,
dataType
=
"int"
),
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_SIDX
,
value
=
"排序字段"
,
paramType
=
"query"
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_SORD
,
value
=
"排序方式"
,
paramType
=
"query"
,
dataType
=
"String"
),
})
@PostMapping
(
"/page_allot_item_left"
)
public
RestResult
<
Page
<
ItemVO
>>
pageAllotItemLeft
(
ItemVO
vo
)
{
vo
.
setCompanyId
(
currentCompanyId
());
return
success
(
entrustSampleItemService
.
pageAllotItemLeft
(
getPage
(),
vo
));
}
@ApiOperation
(
value
=
"按项目录入左侧列表"
,
notes
=
"按项目录入左侧列表"
)
@ApiOperation
(
value
=
"按项目录入左侧列表"
,
notes
=
"按项目录入左侧列表"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_PAGE
,
value
=
"请求数据的页码"
,
required
=
true
,
paramType
=
"query"
,
dataType
=
"int"
),
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_PAGE
,
value
=
"请求数据的页码"
,
required
=
true
,
paramType
=
"query"
,
dataType
=
"int"
),
...
...
src/main/java/com/patzn/cloud/service/lims/hmhj/mapper/EntrustSampleItemMapper.java
View file @
73eedae0
...
@@ -81,8 +81,8 @@ public interface EntrustSampleItemMapper extends BatchMapper<EntrustSampleItem>
...
@@ -81,8 +81,8 @@ public interface EntrustSampleItemMapper extends BatchMapper<EntrustSampleItem>
List
<
EntrustSampleItemIndexVO
>
selectItemTestByEntrustId
(
@Param
(
"entrustId"
)
Long
entrustId
);
List
<
EntrustSampleItemIndexVO
>
selectItemTestByEntrustId
(
@Param
(
"entrustId"
)
Long
entrustId
);
@SqlParser
(
filter
=
true
)
@SqlParser
(
filter
=
true
)
List
<
ItemVO
>
pageI
nputItem
Left
(
RowBounds
rowBounds
,
@Param
(
"vo"
)
ItemVO
vo
);
List
<
ItemVO
>
pageI
temData
Left
(
RowBounds
rowBounds
,
@Param
(
"vo"
)
ItemVO
vo
);
@SqlParser
(
filter
=
true
)
@SqlParser
(
filter
=
true
)
List
<
ItemVO
>
pageI
nputItem
Right
(
RowBounds
rowBounds
,
@Param
(
"vo"
)
ItemVO
vo
);
List
<
ItemVO
>
pageI
temData
Right
(
RowBounds
rowBounds
,
@Param
(
"vo"
)
ItemVO
vo
);
}
}
src/main/java/com/patzn/cloud/service/lims/hmhj/service/IEntrustSampleItemService.java
View file @
73eedae0
...
@@ -124,9 +124,14 @@ public interface IEntrustSampleItemService extends IBaseService<EntrustSampleIte
...
@@ -124,9 +124,14 @@ public interface IEntrustSampleItemService extends IBaseService<EntrustSampleIte
EntrustSampleItem
getItemModelBySampleId
(
Long
sampleId
);
EntrustSampleItem
getItemModelBySampleId
(
Long
sampleId
);
Page
<
ItemVO
>
pageAllotItemLeft
(
Page
<
ItemVO
>
page
,
ItemVO
vo
);
Page
<
ItemVO
>
pageAllotItemRight
(
Page
<
ItemVO
>
page
,
ItemVO
vo
);
Page
<
ItemVO
>
pageInputItemLeft
(
Page
<
ItemVO
>
page
,
ItemVO
vo
);
Page
<
ItemVO
>
pageInputItemLeft
(
Page
<
ItemVO
>
page
,
ItemVO
vo
);
Page
<
ItemVO
>
pageInputItemRight
(
Page
<
ItemVO
>
page
,
ItemVO
vo
);
Page
<
ItemVO
>
pageInputItemRight
(
Page
<
ItemVO
>
page
,
ItemVO
vo
);
Boolean
checkCanWriteOriginal
(
Long
[]
ids
);
Boolean
checkCanWriteOriginal
(
Long
[]
ids
);
}
}
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustSampleItemServiceImpl.java
View file @
73eedae0
...
@@ -1384,12 +1384,32 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
...
@@ -1384,12 +1384,32 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
}
}
@Override
@Override
public
Page
<
ItemVO
>
pageAllotItemLeft
(
Page
<
ItemVO
>
page
,
ItemVO
vo
)
{
vo
.
setStatus
(
EntrustSampleItemStatusEnum
.
ALLOT
);
if
(
StringUtils
.
isNotBlank
(
vo
.
getName
()))
{
vo
.
setNameList
(
Arrays
.
asList
(
vo
.
getName
().
split
(
",|,"
)));
}
return
page
.
setRecords
(
baseMapper
.
pageItemDataLeft
(
page
,
vo
));
}
@Override
public
Page
<
ItemVO
>
pageAllotItemRight
(
Page
<
ItemVO
>
page
,
ItemVO
vo
)
{
vo
.
setStatus
(
EntrustSampleItemStatusEnum
.
ALLOT
);
if
(
StringUtils
.
isNotBlank
(
vo
.
getName
()))
{
vo
.
setNameList
(
Arrays
.
asList
(
vo
.
getName
().
split
(
",|,"
)));
}
List
<
ItemVO
>
list
=
baseMapper
.
pageItemDataRight
(
page
,
vo
);
return
page
.
setRecords
(
list
);
}
@Override
public
Page
<
ItemVO
>
pageInputItemLeft
(
Page
<
ItemVO
>
page
,
ItemVO
vo
)
{
public
Page
<
ItemVO
>
pageInputItemLeft
(
Page
<
ItemVO
>
page
,
ItemVO
vo
)
{
vo
.
setStatus
(
EntrustSampleItemStatusEnum
.
TEST
);
vo
.
setStatus
(
EntrustSampleItemStatusEnum
.
TEST
);
if
(
StringUtils
.
isNotBlank
(
vo
.
getName
()))
{
if
(
StringUtils
.
isNotBlank
(
vo
.
getName
()))
{
vo
.
setNameList
(
Arrays
.
asList
(
vo
.
getName
().
split
(
",|,"
)));
vo
.
setNameList
(
Arrays
.
asList
(
vo
.
getName
().
split
(
",|,"
)));
}
}
return
page
.
setRecords
(
baseMapper
.
pageI
nputItem
Left
(
page
,
vo
));
return
page
.
setRecords
(
baseMapper
.
pageI
temData
Left
(
page
,
vo
));
}
}
@Override
@Override
...
@@ -1398,7 +1418,7 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
...
@@ -1398,7 +1418,7 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
if
(
StringUtils
.
isNotBlank
(
vo
.
getName
()))
{
if
(
StringUtils
.
isNotBlank
(
vo
.
getName
()))
{
vo
.
setNameList
(
Arrays
.
asList
(
vo
.
getName
().
split
(
",|,"
)));
vo
.
setNameList
(
Arrays
.
asList
(
vo
.
getName
().
split
(
",|,"
)));
}
}
List
<
ItemVO
>
list
=
baseMapper
.
pageI
nputItem
Right
(
page
,
vo
);
List
<
ItemVO
>
list
=
baseMapper
.
pageI
temData
Right
(
page
,
vo
);
return
page
.
setRecords
(
list
);
return
page
.
setRecords
(
list
);
}
}
...
...
src/main/resources/mapper/hmhj/EntrustSampleItemMapper.xml
View file @
73eedae0
...
@@ -726,13 +726,16 @@
...
@@ -726,13 +726,16 @@
</select>
</select>
<!--获取数据录入 - 检测项目列表-->
<!--获取数据录入 - 检测项目列表-->
<select
id=
"pageI
nputItem
Left"
resultType=
"com.patzn.cloud.service.hmhj.vo.ItemVO"
>
<select
id=
"pageI
temData
Left"
resultType=
"com.patzn.cloud.service.hmhj.vo.ItemVO"
>
SELECT DISTINCT ON
SELECT DISTINCT ON
( NAME, standard ) NAME, standard
( NAME, standard ) NAME, standard
FROM
FROM
entrust_sample_item i
entrust_sample_item i
where i.deleted = 0 and i.
status = #{vo.status} and i.
company_id = #{vo.companyId}
where i.deleted = 0 and i.company_id = #{vo.companyId}
<if
test=
"null != vo.status"
>
and i.status = #{vo.status}
</if>
<if
test=
"null != vo.personal and vo.personal == 1"
>
<if
test=
"null != vo.personal and vo.personal == 1"
>
AND i.tester_id = #{vo.uid}
AND i.tester_id = #{vo.uid}
</if>
</if>
...
@@ -752,7 +755,7 @@
...
@@ -752,7 +755,7 @@
order by i.name
order by i.name
</select>
</select>
<!-- 查询数据录入- 按项目录入 - 右侧检测项目数据列表 -->
<!-- 查询数据录入- 按项目录入 - 右侧检测项目数据列表 -->
<select
id=
"pageI
nputItem
Right"
resultType=
"com.patzn.cloud.service.hmhj.vo.ItemVO"
>
<select
id=
"pageI
temData
Right"
resultType=
"com.patzn.cloud.service.hmhj.vo.ItemVO"
>
SELECT
SELECT
i.id,i.entrust_sample_id,i.name,i.status,i.company_id,i.standard,i.group_name,i.test_value,i.group_id,i.tester,i.tester_id,i.test_time,i.in_report,i.entrust_id,
i.id,i.entrust_sample_id,i.name,i.status,i.company_id,i.standard,i.group_name,i.test_value,i.group_id,i.tester,i.tester_id,i.test_time,i.in_report,i.entrust_id,
s.name "sampleName",s.code "sampleCode",s.compliance_test,s.sample_from,sample_shape,s.first_code,s.second_code,s.third_code,
s.name "sampleName",s.code "sampleCode",s.compliance_test,s.sample_from,sample_shape,s.first_code,s.second_code,s.third_code,
...
...
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