Commit ff190ea8 by lijingjing

去除无用配置文件

parent 337db081
...@@ -6,3 +6,4 @@ Dockerfile ...@@ -6,3 +6,4 @@ Dockerfile
Jenkinsfile-test Jenkinsfile-test
libs libs
*env.json *env.json
*.log
\ No newline at end of file
...@@ -64,6 +64,8 @@ public class EntrustRecordServiceImpl extends BaseServiceImpl<EntrustRecordMappe ...@@ -64,6 +64,8 @@ public class EntrustRecordServiceImpl extends BaseServiceImpl<EntrustRecordMappe
entrustRecord.setOrigin(from); entrustRecord.setOrigin(from);
entrustRecord.setTarget(to); entrustRecord.setTarget(to);
entrustRecord.setType(type); entrustRecord.setType(type);
entrustRecord.setCompanyId(account.getCompanyId());
entrustRecord.setUid(account.getUserId());
entrustRecord.setRemark(remark); entrustRecord.setRemark(remark);
saveRecord.add(entrustRecord); saveRecord.add(entrustRecord);
......
...@@ -1980,7 +1980,8 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI ...@@ -1980,7 +1980,8 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
@Override @Override
public List<Long> getTesterIdListByEntrustId(Long entrustId) { public List<Long> getTesterIdListByEntrustId(Long entrustId) {
List<EntrustSampleItem> sampleItems = getListByEntrustId(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 @Override
......
...@@ -650,6 +650,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust> ...@@ -650,6 +650,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
Entrust entrust = entrustDTO.convert(Entrust.class); Entrust entrust = entrustDTO.convert(Entrust.class);
entrust.setSampleName(sampleList.get(0).getName()); entrust.setSampleName(sampleList.get(0).getName());
if (updateById(entrust)) { if (updateById(entrust)) {
final Long entrustId = entrust.getId();
List<EntrustSample> updateSampleList = new ArrayList<>(); List<EntrustSample> updateSampleList = new ArrayList<>();
List<EntrustSample> saveSampleList = new ArrayList<>(); List<EntrustSample> saveSampleList = new ArrayList<>();
...@@ -657,13 +658,13 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust> ...@@ -657,13 +658,13 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
int incNum = 10; int incNum = 10;
for (EntrustSampleDTO dto : sampleList) { for (EntrustSampleDTO dto : sampleList) {
EntrustSample sample = dto.convert(EntrustSample.class); EntrustSample sample = dto.convert(EntrustSample.class);
sample.setEntrustId(entrustId);
sample.setOrderBy(incNum); sample.setOrderBy(incNum);
incNum += 10; incNum += 10;
boolean isInsert = false; boolean isInsert = false;
// 如果室新增的样品 // 如果室新增的样品
if (null == sample.getId()) { if (null == sample.getId()) {
isInsert = true; isInsert = true;
sample.setEntrustId(entrust.getId());
sample.setId(IdWorker.getId()); sample.setId(IdWorker.getId());
} }
if (isSubmit) { if (isSubmit) {
...@@ -694,7 +695,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust> ...@@ -694,7 +695,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
if (null == item.getId()) { if (null == item.getId()) {
item.setId(IdWorker.getId()); item.setId(IdWorker.getId());
item.setEntrustSampleId(sample.getId()); item.setEntrustSampleId(sample.getId());
item.setEntrustId(entrust.getId()); item.setEntrustId(entrustId);
item.setStatus(EntrustSampleItemStatusEnum.DRAFT); item.setStatus(EntrustSampleItemStatusEnum.DRAFT);
item.setProgress(EntrustSampleItemStatusEnum.DRAFT); item.setProgress(EntrustSampleItemStatusEnum.DRAFT);
saveItemList.add(item); saveItemList.add(item);
...@@ -713,15 +714,14 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust> ...@@ -713,15 +714,14 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
if (CollectionUtils.isNotEmpty(saveItemList)) { if (CollectionUtils.isNotEmpty(saveItemList)) {
entrustSampleItemService.saveBatch(saveItemList); entrustSampleItemService.saveBatch(saveItemList);
} }
}
entrustSampleItemService.updateItemComposeJudgeByEntrustId(entrust.getId()); entrustSampleItemService.updateItemComposeJudgeByEntrustId(entrustId);
CompletableFuture.runAsync(() -> { CompletableFuture.runAsync(() -> {
// 委托费用 // 委托费用
calTotalFee(entrust.getId()); calTotalFee(entrustId);
}); });
}
return true; return true;
} }
...@@ -988,8 +988,10 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust> ...@@ -988,8 +988,10 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
if (!isUpdateSampleInfo) { if (!isUpdateSampleInfo) {
return true; return true;
} }
// 修改样品信息及其样品附属信息 // 异步修改样品信息及其样品附属信息
CompletableFuture.runAsync(() -> {
entrustSampleService.updateSampleNextFlowInfo(entrust, nextFlowStatus, account); entrustSampleService.updateSampleNextFlowInfo(entrust, nextFlowStatus, account);
});
// 修改委托状态信息 // 修改委托状态信息
entrust.setStatus(nextStatus); entrust.setStatus(nextStatus);
entrust.setProgress(nextStatus); entrust.setProgress(nextStatus);
......
...@@ -11,20 +11,15 @@ service: ...@@ -11,20 +11,15 @@ service:
spring: spring:
datasource: datasource:
type: com.zaxxer.hikari.HikariDataSource type: com.zaxxer.hikari.HikariDataSource
# url: jdbc:postgresql://localhost:5432/dev_lims_meter
username: postgres username: postgres
password: 123456 password: www.163.com
url: jdbc:postgresql://192.168.0.115:5432/dev_lims_hmhj url: jdbc:postgresql://192.168.0.140:5432/dev_lims_hmhj
driver-class-name: org.postgresql.Driver driver-class-name: org.postgresql.Driver
dynamic: dynamic:
enabled: false enabled: false
# 注册中心配置 # 注册中心配置
cloud: cloud:
consul: consul: localhost
host: 192.168.0.115
discovery:
health-check-interval: 5s
# host: localhost
rabbitmq: rabbitmq:
host: 124.70.150.247 host: 124.70.150.247
port: 5672 port: 5672
...@@ -38,19 +33,25 @@ spring: ...@@ -38,19 +33,25 @@ spring:
equip-check-msg: dev.topic.equip.check.msg equip-check-msg: dev.topic.equip.check.msg
report-make-msg: dev.topic.report.make.msg report-make-msg: dev.topic.report.make.msg
hmhj-work-msg: dev.topic.hmhj.work.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
jobs: jobs:
admin-address: http://api.dev.patzn.com:7000/print 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 安装信息
libreOffice: libreOffice:
url: C:/Program Files/LibreOffice url: C:/Program Files/LibreOffice
......
...@@ -56,7 +56,7 @@ spring: ...@@ -56,7 +56,7 @@ spring:
data: data:
mongodb: mongodb:
#uri: mongodb://limsAdmin:devpt12!mg@192.168.0.142:27017/lims #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 grid-fs-database: lims
# Mongodb GridFS 存储 # Mongodb GridFS 存储
......
...@@ -13,6 +13,7 @@ service: ...@@ -13,6 +13,7 @@ service:
province-item-url: http://60.216.97.250:8087/ province-item-url: http://60.216.97.250:8087/
soffice: /opt/libreoffice6.2/program/soffice soffice: /opt/libreoffice6.2/program/soffice
static-url: static.hmlims.com:9000 static-url: static.hmlims.com:9000
erp-url: http://192.168.0.19:5050/api/LimsData/SaveData
spring: spring:
datasource: datasource:
type: com.zaxxer.hikari.HikariDataSource type: com.zaxxer.hikari.HikariDataSource
......
# 测试环境
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment