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
692e01ea
Commit
692e01ea
authored
Jan 08, 2022
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部分功能优化;
parent
8b321b28
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
8 deletions
+37
-8
EntrustController.java
...cloud/service/lims/hmhj/controller/EntrustController.java
+1
-1
EntrustSampleController.java
...service/lims/hmhj/controller/EntrustSampleController.java
+10
-0
EntrustMapper.xml
src/main/resources/mapper/hmhj/EntrustMapper.xml
+3
-0
EntrustSampleMapper.xml
src/main/resources/mapper/hmhj/EntrustSampleMapper.xml
+5
-4
StatisticsMapper.xml
src/main/resources/mapper/hmhj/StatisticsMapper.xml
+3
-3
20220108新增字段.sql
src/test/java/resources/db_sql/hmhj/v172/20220108新增字段.sql
+15
-0
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/controller/EntrustController.java
View file @
692e01ea
...
...
@@ -226,7 +226,7 @@ public class EntrustController extends ServiceController {
entrust
.
setNotSampleStatus
(
EntrustSampleStatusEnum
.
DRAFT
);
entrust
.
setGroupNameList
(
userInfoService
.
getCurGroupNameList
());
// 涉及到检测人的数据
entrust
.
setTesterId
(
getAccount
().
getUserId
());
//
entrust.setTesterId(getAccount().getUserId());
return
success
(
entrustService
.
pageEntrustByNotSample
(
getPage
(),
entrust
));
}
...
...
src/main/java/com/patzn/cloud/service/lims/hmhj/controller/EntrustSampleController.java
View file @
692e01ea
...
...
@@ -214,6 +214,16 @@ public class EntrustSampleController extends ServiceController {
}
@ApiOperation
(
"根据 id 修改信息"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"id"
,
value
=
"主键"
,
required
=
true
,
paramType
=
"path"
,
dataTypeClass
=
Long
.
class
),
})
@PutMapping
(
"/edit/{id}"
)
public
RestResult
<
Boolean
>
editSample
(
@PathVariable
(
"id"
)
Long
id
,
EntrustSample
entrustSample
)
{
entrustSample
.
setId
(
id
);
return
success
(
entrustSampleService
.
updateById
(
entrustSample
));
}
@ApiOperation
(
"根据 id 修改信息"
)
@PutMapping
(
"/edit_sample"
)
public
RestResult
<
Boolean
>
editSample
(
EntrustSample
entrustSample
,
String
source
)
{
return
success
(
entrustSampleService
.
updateSample
(
entrustSample
,
source
,
getAccount
()));
...
...
src/main/resources/mapper/hmhj/EntrustMapper.xml
View file @
692e01ea
...
...
@@ -130,6 +130,9 @@
SELECT
s.company_id,s.entrust_id,max(s.sample_from) "sample_from"
from entrust_sample s where s.deleted = 0
<if
test=
"null != vo.sampleCode"
>
and s.code like concat('%',#{vo.sampleCode},'%')
</if>
<if
test=
"null != vo.sampleStatus"
>
and s.status = #{vo.sampleStatus}
</if>
...
...
src/main/resources/mapper/hmhj/EntrustSampleMapper.xml
View file @
692e01ea
...
...
@@ -7,11 +7,12 @@
SELECT
p.id, p.entrust_sample_id,s.code "code",s.name,s.product_code,s.product_basis_name,s.compose_judge,s.product_standard_id,s.name_code,
s.compliance_test,p.group_id,p.group_name,p.make_type,p.make_quantity,p.store_way,p.store_location,p.maker,p.make_time,
s.first_code,s.second_code,s.third_code
s.first_code,s.second_code,s.third_code
,e.entrust_time
FROM
entrust_sample_prepare
P JOIN entrust_sample s ON P.entrust_sample_id = s.ID
WHERE s.deleted = 0 AND p.deleted = 0
entrust_sample_prepare P
JOIN entrust_sample s ON P.entrust_sample_id = s.ID AND s.deleted = 0
JOIN entrust e ON e.id = s.entrust_id and e.deleted = 0
WHERE p.deleted = 0
<if
test=
"null!=vo.entrustSampleId"
>
AND p.entrust_sample_id = #{vo.entrustSampleId}
</if>
...
...
src/main/resources/mapper/hmhj/StatisticsMapper.xml
View file @
692e01ea
...
...
@@ -305,7 +305,7 @@
</if>
</sql>
<!--原铝品
味
台账查询-->
<!--原铝品
位
台账查询-->
<select
id=
"selectAlGradeLedger"
resultType=
"com.patzn.cloud.service.hmhj.vo.DailyStatsLedgerVO"
>
SELECT
s.slot_no "label",
...
...
@@ -313,7 +313,7 @@
s.sample_grading "value"
FROM
entrust_sample s
JOIN electrolyzer e on e.id = s.electrolyzer_id
JOIN electrolyzer e on e.id = s.electrolyzer_id
and e.deleted = 0
JOIN (
SELECT
i.entrust_sample_id,
...
...
@@ -326,7 +326,7 @@
i.entrust_sample_id
) i ON i.entrust_sample_id = s.ID
WHERE
s.deleted = 0
and e.deleted = 0
s.deleted = 0
AND s.NAME = '原铝'
AND s.sample_grading IS NOT NULL
AND i.test_time LIKE '${vo.yearMonth}%'
...
...
src/test/java/resources/db_sql/hmhj/v172/20220108新增字段.sql
0 → 100644
View file @
692e01ea
/** created by meazty on 2021/10/8 15:50 **/
/** created by meazty on 2021/10/8 15:50 **/
-- 委托样品 --
ALTER
TABLE
"public"
.
"entrust_sample"
ADD
COLUMN
"conclusion"
varchar
(
64
)
COLLATE
"pg_catalog"
.
"default"
;
COMMENT
ON
COLUMN
"public"
.
"entrust_sample"
.
"conclusion"
IS
'验收结论'
;
-- 资质项目 --
ALTER
TABLE
"public"
.
"qualification"
ADD
COLUMN
"judge_standard"
varchar
(
120
)
COLLATE
"pg_catalog"
.
"default"
;
COMMENT
ON
COLUMN
"public"
.
"qualification"
.
"judge_standard"
IS
'判定标准'
;
\ 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