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
ff190ea8
Commit
ff190ea8
authored
May 07, 2022
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除无用配置文件
parent
337db081
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
38 additions
and
93 deletions
+38
-93
.gitignore
.gitignore
+3
-2
EntrustRecordServiceImpl.java
...vice/lims/hmhj/service/impl/EntrustRecordServiceImpl.java
+2
-0
EntrustSampleItemServiceImpl.java
.../lims/hmhj/service/impl/EntrustSampleItemServiceImpl.java
+2
-1
EntrustServiceImpl.java
...ud/service/lims/hmhj/service/impl/EntrustServiceImpl.java
+13
-11
application-dev.yml
src/main/resources/application-dev.yml
+16
-15
application-local.yml
src/main/resources/application-local.yml
+1
-1
application-test151.yml
src/main/resources/application-test151.yml
+1
-0
application-ys.yml
src/main/resources/application-ys.yml
+0
-63
No files found.
.gitignore
View file @
ff190ea8
...
...
@@ -5,4 +5,5 @@ gradle*
Dockerfile
Jenkinsfile-test
libs
*env.json
\ No newline at end of file
*env.json
*.log
\ No newline at end of file
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustRecordServiceImpl.java
View file @
ff190ea8
...
...
@@ -64,6 +64,8 @@ public class EntrustRecordServiceImpl extends BaseServiceImpl<EntrustRecordMappe
entrustRecord
.
setOrigin
(
from
);
entrustRecord
.
setTarget
(
to
);
entrustRecord
.
setType
(
type
);
entrustRecord
.
setCompanyId
(
account
.
getCompanyId
());
entrustRecord
.
setUid
(
account
.
getUserId
());
entrustRecord
.
setRemark
(
remark
);
saveRecord
.
add
(
entrustRecord
);
...
...
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustSampleItemServiceImpl.java
View file @
ff190ea8
...
...
@@ -1980,7 +1980,8 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
@Override
public
List
<
Long
>
getTesterIdListByEntrustId
(
Long
entrustId
)
{
List
<
EntrustSampleItem
>
sampleItems
=
getListByEntrustId
(
entrustId
);
return
CollectionUtils
.
isEmpty
(
sampleItems
)
?
null
:
sampleItems
.
stream
().
map
(
EntrustSampleItem:
:
getTesterId
).
collect
(
Collectors
.
toList
());
return
Optional
.
ofNullable
(
sampleItems
).
orElse
(
new
ArrayList
<>()).
stream
().
map
(
EntrustSampleItem:
:
getTesterId
)
.
filter
(
Objects:
:
nonNull
).
distinct
().
collect
(
Collectors
.
toList
());
}
@Override
...
...
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustServiceImpl.java
View file @
ff190ea8
...
...
@@ -650,6 +650,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
Entrust
entrust
=
entrustDTO
.
convert
(
Entrust
.
class
);
entrust
.
setSampleName
(
sampleList
.
get
(
0
).
getName
());
if
(
updateById
(
entrust
))
{
final
Long
entrustId
=
entrust
.
getId
();
List
<
EntrustSample
>
updateSampleList
=
new
ArrayList
<>();
List
<
EntrustSample
>
saveSampleList
=
new
ArrayList
<>();
...
...
@@ -657,13 +658,13 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
int
incNum
=
10
;
for
(
EntrustSampleDTO
dto
:
sampleList
)
{
EntrustSample
sample
=
dto
.
convert
(
EntrustSample
.
class
);
sample
.
setEntrustId
(
entrustId
);
sample
.
setOrderBy
(
incNum
);
incNum
+=
10
;
boolean
isInsert
=
false
;
// 如果室新增的样品
if
(
null
==
sample
.
getId
())
{
isInsert
=
true
;
sample
.
setEntrustId
(
entrust
.
getId
());
sample
.
setId
(
IdWorker
.
getId
());
}
if
(
isSubmit
)
{
...
...
@@ -694,7 +695,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
if
(
null
==
item
.
getId
())
{
item
.
setId
(
IdWorker
.
getId
());
item
.
setEntrustSampleId
(
sample
.
getId
());
item
.
setEntrustId
(
entrust
.
getId
()
);
item
.
setEntrustId
(
entrust
Id
);
item
.
setStatus
(
EntrustSampleItemStatusEnum
.
DRAFT
);
item
.
setProgress
(
EntrustSampleItemStatusEnum
.
DRAFT
);
saveItemList
.
add
(
item
);
...
...
@@ -713,15 +714,14 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
if
(
CollectionUtils
.
isNotEmpty
(
saveItemList
))
{
entrustSampleItemService
.
saveBatch
(
saveItemList
);
}
}
entrustSampleItemService
.
updateItemComposeJudgeByEntrustId
(
entrust
.
getId
());
CompletableFuture
.
runAsync
(()
->
{
// 委托费用
calTotalFee
(
entrust
.
getId
());
});
entrustSampleItemService
.
updateItemComposeJudgeByEntrustId
(
entrustId
);
CompletableFuture
.
runAsync
(()
->
{
// 委托费用
calTotalFee
(
entrustId
);
});
}
return
true
;
}
...
...
@@ -988,8 +988,10 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
if
(!
isUpdateSampleInfo
)
{
return
true
;
}
// 修改样品信息及其样品附属信息
entrustSampleService
.
updateSampleNextFlowInfo
(
entrust
,
nextFlowStatus
,
account
);
// 异步修改样品信息及其样品附属信息
CompletableFuture
.
runAsync
(()
->
{
entrustSampleService
.
updateSampleNextFlowInfo
(
entrust
,
nextFlowStatus
,
account
);
});
// 修改委托状态信息
entrust
.
setStatus
(
nextStatus
);
entrust
.
setProgress
(
nextStatus
);
...
...
src/main/resources/application-dev.yml
View file @
ff190ea8
...
...
@@ -11,20 +11,15 @@ service:
spring
:
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
# url: jdbc:postgresql://localhost:5432/dev_lims_meter
username
:
postgres
password
:
123456
url
:
jdbc:postgresql://192.168.0.1
15
:5432/dev_lims_hmhj
password
:
www.163.com
url
:
jdbc:postgresql://192.168.0.1
40
:5432/dev_lims_hmhj
driver-class-name
:
org.postgresql.Driver
dynamic
:
enabled
:
false
# 注册中心配置
cloud
:
consul
:
host
:
192.168.0.115
discovery
:
health-check-interval
:
5s
# host: localhost
consul
:
localhost
rabbitmq
:
host
:
124.70.150.247
port
:
5672
...
...
@@ -38,19 +33,25 @@ spring:
equip-check-msg
:
dev.topic.equip.check.msg
report-make-msg
:
dev.topic.report.make.msg
hmhj-work-msg
:
dev.topic.hmhj.work.msg
# Mongodb GridFS
data
:
mongodb
:
uri
:
mongodb://limsAdmin:devpt12!mg@192.168.0.140:27017/lims
grid-fs-database
:
lims
redis
:
host
:
192.168.0.140
port
:
6379
password
:
123456
# 对象存储配置
oss
:
grid-fs
:
true
bucket-name
:
base
### jobs
jobs
:
admin-address
:
http://api.dev.patzn.com:7000/print
# 对象存储配置
oss
:
bucket-name
:
pt-web-sys
aliyun
:
endpoint
:
http://oss.test.patzn.com
folder
:
dev/hmhj
#libreOffice 安装信息
libreOffice
:
url
:
C:/Program Files/LibreOffice
...
...
src/main/resources/application-local.yml
View file @
ff190ea8
...
...
@@ -56,7 +56,7 @@ spring:
data
:
mongodb
:
#uri: mongodb://limsAdmin:devpt12!mg@192.168.0.142:27017/lims
uri
:
mongodb://mongo:Mong$6358#@
localhost:27017
/lims
uri
:
mongodb://mongo:Mong$6358#@
meazty.fun:27154
/lims
grid-fs-database
:
lims
# Mongodb GridFS 存储
...
...
src/main/resources/application-test151.yml
View file @
ff190ea8
...
...
@@ -13,6 +13,7 @@ service:
province-item-url
:
http://60.216.97.250:8087/
soffice
:
/opt/libreoffice6.2/program/soffice
static-url
:
static.hmlims.com:9000
erp-url
:
http://192.168.0.19:5050/api/LimsData/SaveData
spring
:
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
...
...
src/main/resources/application-ys.yml
deleted
100644 → 0
View file @
337db081
# 测试环境
server
:
exception
:
to
:
1327531085@qq.com;18463106881@163.com
form
:
ptlims_test@163.com
subject
:
测试 hmhj服务异常
swagger
:
enable
:
true
service
:
api-url
:
http://api.ys.patzn.com
url
:
http://api.ys.patzn.com
food-url
:
http://food.ys.patzn.com
province-item-url
:
http://60.216.97.250:8087/
soffice
:
/opt/libreoffice6.2/program/soffice
spring
:
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
url
:
jdbc:postgresql://39.103.208.182:5432/pc_lims_hmhj
username
:
dbhmhj
password
:
svfYEhgW586e!$6
dynamic
:
enabled
:
false
# 注册中心配置
cloud
:
consul
:
host
:
121.89.205.20
redis
:
host
:
121.89.205.20
password
:
ysadmin63Tba
mail
:
host
:
smtp.163.com
username
:
ptlims_test@163.com
password
:
QTXWOTEUSHARYDWT
port
:
25
protocol
:
smtp
default-encoding
:
UTF-8
rabbitmq
:
host
:
121.89.205.20
port
:
5672
username
:
ysadmin
password
:
ysadmin63$%64
virtual-host
:
/
topic
:
push-msg
:
pro.topic.push.msg
sys-log
:
pro.topic.sys.log
chemical-classify-warning
:
pro.topic.chemical.classify.warning
equip-check-msg
:
pro.topic.equip.check.msg
report-make-msg
:
pro.topic.report.make.msg
soil-work-msg
:
test.topic.soil.work.msg
hmhj-work-msg
:
pro.topic.hmhj.work.msg
# 对象存储配置
oss
:
aliyun
:
folder
:
hmhj
#libreOffice 安装信息
libreOffice
:
url
:
/opt/libreOffice6.2
### jobs
jobs
:
admin-address
:
http://api.ys.patzn.com/print
\ 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