Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
3b2027ba
Commit
3b2027ba
authored
Mar 27, 2026
by
tianbo
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_main' into develop_tzs_register
parents
d9302f7f
76f2e70b
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
123 additions
and
48 deletions
+123
-48
OpenApiControllerAop.java
...om/yeejoin/amos/api/openapi/aop/OpenApiControllerAop.java
+1
-1
AppIdMain.java
...va/com/yeejoin/amos/api/openapi/controller/AppIdMain.java
+18
-7
CylinderTypeFieldValidation.java
...n/amos/api/openapi/enums/CylinderTypeFieldValidation.java
+2
-2
TmCylinderFillingRecordModel.java
.../api/openapi/face/model/TmCylinderFillingRecordModel.java
+1
-1
TmCylinderFillingRecord.java
.../api/openapi/face/orm/entity/TmCylinderFillingRecord.java
+1
-1
CylinderFillingDataValidationService.java
...pi/face/service/CylinderFillingDataValidationService.java
+74
-30
CylinderService.java
...eejoin/amos/api/openapi/face/service/CylinderService.java
+5
-1
OpenapiBizTokenService.java
...amos/api/openapi/face/service/OpenapiBizTokenService.java
+10
-1
ESCylinderFillingInfoDto.java
.../module/cylinder/api/entity/ESCylinderFillingInfoDto.java
+1
-1
CylinderFillingRecord.java
...module/cylinder/flc/api/entity/CylinderFillingRecord.java
+1
-1
RuleActionHandler.java
...n/amos/boot/module/jyjc/biz/action/RuleActionHandler.java
+4
-0
PlanTaskServiceImpl.java
...mos/patrol/business/service/impl/PlanTaskServiceImpl.java
+3
-1
PlanTaskUtil.java
...a/com/yeejoin/amos/patrol/business/util/PlanTaskUtil.java
+2
-1
No files found.
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/aop/OpenApiControllerAop.java
View file @
3b2027ba
...
...
@@ -44,7 +44,7 @@ public class OpenApiControllerAop {
String
[]
url
=
new
String
[]{
"/api/user/selectInfo"
,
"/api/user/save/curCompany"
,
"/bizToken/applyToken"
,
"/openapi/bizToken/getAppId"
,
"/lift/upload"
,
"/lift/status"
,
"/lift/run"
,
"/lift/fault"
,
"/lift/video/preview"
,
"/cylinderPage/serviceProvider"
,
"/cylinderPage/getTableInfo"
,
"/cylinderPage/initCylinderNum"
,
"/openapi/appId/
set
AppId"
};
"/cylinderPage/initCylinderNum"
,
"/openapi/appId/
gen
AppId"
};
// 获取请求路径
for
(
String
uri
:
url
)
{
if
(
request
.
getRequestURI
().
indexOf
(
uri
)
!=
-
1
)
{
...
...
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/controller/AppIdMain.java
View file @
3b2027ba
...
...
@@ -3,11 +3,14 @@ package com.yeejoin.amos.api.openapi.controller;
import
com.yeejoin.amos.api.common.restful.utils.ResponseHelper
;
import
com.yeejoin.amos.api.common.restful.utils.ResponseModel
;
import
com.yeejoin.amos.api.openapi.constant.Constant
;
import
com.yeejoin.amos.api.openapi.face.model.OpenapiBizTokenModel
;
import
com.yeejoin.amos.api.openapi.face.service.OpenapiBizTokenService
;
import
com.yeejoin.amos.feign.privilege.util.DesUtil
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
...
...
@@ -26,15 +29,23 @@ public class AppIdMain {
// logger.info("appId信息:", appId);
// System.out.println("appId信息:" + appId);
// }
@Autowired
OpenapiBizTokenService
openapiBizTokenService
;
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
value
=
"生成AppId"
)
@GetMapping
(
value
=
"/setAppId"
)
public
ResponseModel
<
String
>
applyAppId
(
@RequestParam
String
apiCompanyCode
)
throws
Exception
{
logger
.
info
(
"appId信息:"
,
apiCompanyCode
);
@ApiOperation
(
value
=
"手动为对接企业生成AppId"
)
@GetMapping
(
value
=
"/genAppId"
)
public
ResponseModel
<
String
>
applyAppId
(
@RequestParam
String
apiCompanyCode
,
@RequestParam
String
apiCompanyName
)
{
logger
.
info
(
"开始为apiCompanyCode生成对应appId信息:{}"
,
apiCompanyCode
);
String
appId
=
DesUtil
.
encode
(
apiCompanyCode
,
Constant
.
SECRETKEY
);
logger
.
info
(
"appToken信息:"
,
appId
);
OpenapiBizTokenModel
openapiBizTokenModel
=
new
OpenapiBizTokenModel
();
openapiBizTokenModel
.
setAppId
(
appId
);
openapiBizTokenModel
.
setApiCompanyCode
(
apiCompanyCode
);
openapiBizTokenModel
.
setApiCompanyName
(
apiCompanyName
);
openapiBizTokenService
.
createWithModel
(
openapiBizTokenModel
);
logger
.
info
(
"appToken信息:{}"
,
appId
);
return
ResponseHelper
.
buildResponse
(
appId
);
}
}
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/enums/CylinderTypeFieldValidation.java
View file @
3b2027ba
...
...
@@ -45,7 +45,7 @@ public enum CylinderTypeFieldValidation {
isNoBulgingOrLeakage2
(
CylinderType
.
LIQUEFIED_GAS_LPG
,
"isNoBulgingOrLeakage"
,
true
,
false
,
new
String
[]{
CylinderField
.
FillStage
.
AFTER
.
getCode
()},
"瓶体未出现鼓包变形或泄漏等严重缺陷"
),
isTemperatureNormal2
(
CylinderType
.
LIQUEFIED_GAS_LPG
,
"isTemperatureNormal"
,
true
,
false
,
new
String
[]{
CylinderField
.
FillStage
.
AFTER
.
getCode
()},
"瓶体温度没有异常升高的迹象"
),
hasWarningAndFillingLabels
(
CylinderType
.
LIQUEFIED_GAS_LPG
,
"hasWarningAndFillingLabels"
,
true
,
false
,
new
String
[]{
CylinderField
.
FillStage
.
AFTER
.
getCode
()},
"气瓶粘贴警示标签和充装标签)"
),
reweighedWithinLimit
(
CylinderType
.
LIQUEFIED_GAS_LPG
,
"
hasWarningAndFillingLabels
"
,
true
,
false
,
new
String
[]{
CylinderField
.
FillStage
.
AFTER
.
getCode
()},
"充装量复秤未超重"
),
reweighedWithinLimit
(
CylinderType
.
LIQUEFIED_GAS_LPG
,
"
reweighedWithinLimit
"
,
true
,
false
,
new
String
[]{
CylinderField
.
FillStage
.
AFTER
.
getCode
()},
"充装量复秤未超重"
),
// 压缩气体气瓶 COMPRESSED_GAS
...
...
@@ -106,7 +106,7 @@ public enum CylinderTypeFieldValidation {
oxidizingGasCylinderFreeOfOil
(
CylinderType
.
MIXED_GAS
,
"oxidizingGasCylinderFreeOfOil"
,
true
,
false
,
new
String
[]{
CylinderField
.
FillStage
.
BEFORE
.
getCode
()},
"氧化性混合气体的瓶体、瓶阀未沾染油脂"
),
preTreatedSuccessfully
(
CylinderType
.
MIXED_GAS
,
"preTreatedSuccessfully"
,
true
,
false
,
new
String
[]{
CylinderField
.
FillStage
.
BEFORE
.
getCode
()},
"气瓶经预处理(抽真空、烘干、置换或组合)合格"
),
fillingPressure5
(
CylinderType
.
MIXED_GAS
,
"fillingPressure
LessThan
"
,
true
,
false
,
new
String
[]{
CylinderField
.
FillStage
.
FILLING
.
getCode
()},
"充装压力"
),
fillingPressure5
(
CylinderType
.
MIXED_GAS
,
"fillingPressure"
,
true
,
false
,
new
String
[]{
CylinderField
.
FillStage
.
FILLING
.
getCode
()},
"充装压力"
),
fillingAmount5
(
CylinderType
.
MIXED_GAS
,
"fillingAmount"
,
true
,
false
,
new
String
[]{
CylinderField
.
FillStage
.
FILLING
.
getCode
()},
"充装量"
),
componentContents
(
CylinderType
.
MIXED_GAS
,
"componentContents"
,
true
,
false
,
new
String
[]{
CylinderField
.
FillStage
.
FILLING
.
getCode
()},
"各组分含量"
),
abnormalConditions5
(
CylinderType
.
MIXED_GAS
,
"abnormalConditions"
,
true
,
false
,
new
String
[]{
CylinderField
.
FillStage
.
FILLING
.
getCode
()},
"异常情况"
),
...
...
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/model/TmCylinderFillingRecordModel.java
View file @
3b2027ba
...
...
@@ -58,7 +58,7 @@ public class TmCylinderFillingRecordModel extends CylinderAbstractBaseModel {
private
Double
acetyleneFillingAmount
;
@ApiModelProperty
(
value
=
"各组分含量"
)
private
Double
componentContents
;
private
String
componentContents
;
@ApiModelProperty
(
value
=
"标称皮重"
)
private
Double
tareWeightNominal
;
...
...
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/orm/entity/TmCylinderFillingRecord.java
View file @
3b2027ba
...
...
@@ -64,7 +64,7 @@ public class TmCylinderFillingRecord extends CylinderAbstractBaseEntity {
private
Double
acetyleneFillingAmount
;
@ApiModelProperty
(
value
=
"各组分含量"
)
private
Double
componentContents
;
private
String
componentContents
;
@ApiModelProperty
(
value
=
"标称皮重"
)
private
Double
tareWeightNominal
;
...
...
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/CylinderFillingDataValidationService.java
View file @
3b2027ba
...
...
@@ -3,7 +3,10 @@ package com.yeejoin.amos.api.openapi.face.service;
import
cn.hutool.core.collection.ConcurrentHashSet
;
import
com.google.common.collect.Lists
;
import
com.yeejoin.amos.api.openapi.enums.*
;
import
com.yeejoin.amos.api.openapi.enums.CylinderField
;
import
com.yeejoin.amos.api.openapi.enums.CylinderOffloadingFieldEnum
;
import
com.yeejoin.amos.api.openapi.enums.CylinderType
;
import
com.yeejoin.amos.api.openapi.enums.CylinderTypeFieldValidation
;
import
com.yeejoin.amos.api.openapi.face.model.*
;
import
com.yeejoin.amos.api.openapi.face.orm.dao.MidEquipRegistrationInfoMapper
;
import
com.yeejoin.amos.boot.module.cylinder.api.dto.TzBaseEnterpriseInfoDto
;
...
...
@@ -14,6 +17,7 @@ import net.sf.json.JSONObject;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.ObjectUtils
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
java.util.*
;
...
...
@@ -194,6 +198,19 @@ public class CylinderFillingDataValidationService {
throw
new
BadRequest
(
"充装后复查数据不能为空!!!"
);
}
JSONArray
fillingBefore
=
jsonobject
.
getJSONArray
(
"fillingBefore"
);
JSONArray
filling
=
jsonobject
.
getJSONArray
(
"filling"
);
JSONArray
fillingAfter
=
jsonobject
.
getJSONArray
(
"fillingAfter"
);
List
<
JSONObject
>
errorList
=
new
ArrayList
<>();
// 判断3个数组大小是否一致
if
(
fillingBefore
.
size
()
!=
filling
.
size
()
||
filling
.
size
()
!=
fillingAfter
.
size
())
{
JSONObject
resultJson
=
new
JSONObject
();
resultJson
.
put
(
"result"
,
"充装前检查数据、充装记录数据、充装后复查数据长度不一致,请检查后重新上传数据!"
);
errorList
.
add
(
resultJson
);
result
.
setBeforeErrorData
(
errorList
.
stream
().
map
(
JSONObject:
:
toString
).
collect
(
Collectors
.
toList
()));
return
result
;
}
Set
<
String
>
cylinderCodeSet
=
new
ConcurrentHashSet
<>();
Set
<
String
>
beforeErrorCylinderSet
=
new
ConcurrentHashSet
<>();
Set
<
String
>
recordErrorCylinderSet
=
new
ConcurrentHashSet
<>();
...
...
@@ -201,36 +218,24 @@ public class CylinderFillingDataValidationService {
CompletableFuture
<
List
<
String
>>
beforeFuture
=
CompletableFuture
.
supplyAsync
(()
->
{
// 异步校验充装前数据
JSONArray
fillingBefore
=
jsonobject
.
getJSONArray
(
"fillingBefore"
);
if
(!
ObjectUtils
.
isEmpty
(
fillingBefore
))
{
for
(
int
i
=
0
;
i
<
fillingBefore
.
size
();
i
++)
{
JSONObject
row
=
fillingBefore
.
getJSONObject
(
i
);
cylinderCodeSet
.
add
(
row
.
getString
(
"sequenceCode"
));
}
}
List
<
JSONObject
>
innerErrorList
=
new
ArrayList
<>();
if
(
preValidateData
(
fillingBefore
,
innerErrorList
,
cylinderCodeSet
))
return
innerErrorList
.
stream
().
map
(
JSONObject:
:
toString
).
collect
(
Collectors
.
toList
());
return
validateFillingBeforeData
(
fillingBefore
,
beforeErrorCylinderSet
);
});
CompletableFuture
<
List
<
String
>>
recordFuture
=
CompletableFuture
.
supplyAsync
(()
->
{
// 异步校验检充装时数据
JSONArray
filling
=
jsonobject
.
getJSONArray
(
"filling"
);
if
(!
ObjectUtils
.
isEmpty
(
filling
))
{
for
(
int
i
=
0
;
i
<
filling
.
size
();
i
++)
{
JSONObject
row
=
filling
.
getJSONObject
(
i
);
cylinderCodeSet
.
add
(
row
.
getString
(
"sequenceCode"
));
}
}
List
<
JSONObject
>
innerErrorList
=
new
ArrayList
<>();
if
(
preValidateData
(
filling
,
innerErrorList
,
cylinderCodeSet
))
return
innerErrorList
.
stream
().
map
(
JSONObject:
:
toString
).
collect
(
Collectors
.
toList
());
return
validateFillingRecordData
(
filling
,
recordErrorCylinderSet
);
});
CompletableFuture
<
List
<
String
>>
afterFuture
=
CompletableFuture
.
supplyAsync
(()
->
{
// 异步校验充装后数据
JSONArray
fillingAfter
=
jsonobject
.
getJSONArray
(
"fillingAfter"
);
if
(!
ObjectUtils
.
isEmpty
(
fillingAfter
))
{
for
(
int
i
=
0
;
i
<
fillingAfter
.
size
();
i
++)
{
JSONObject
row
=
fillingAfter
.
getJSONObject
(
i
);
cylinderCodeSet
.
add
(
row
.
getString
(
"sequenceCode"
));
}
}
List
<
JSONObject
>
innerErrorList
=
new
ArrayList
<>();
if
(
preValidateData
(
fillingAfter
,
innerErrorList
,
cylinderCodeSet
))
return
innerErrorList
.
stream
().
map
(
JSONObject:
:
toString
).
collect
(
Collectors
.
toList
());
return
validateFillingAfterData
(
fillingAfter
,
afterErrorCylinderSet
);
});
...
...
@@ -258,6 +263,31 @@ public class CylinderFillingDataValidationService {
return
result
;
}
private
boolean
preValidateData
(
JSONArray
fillingAfter
,
List
<
JSONObject
>
errorList
,
Set
<
String
>
cylinderCodeSet
)
{
if
(!
ObjectUtils
.
isEmpty
(
fillingAfter
))
{
for
(
int
i
=
0
;
i
<
fillingAfter
.
size
();
i
++)
{
JSONObject
row
=
fillingAfter
.
getJSONObject
(
i
);
if
(!
ValidationUtil
.
isEmpty
(
row
))
{
if
(!
row
.
containsKey
(
"sequenceCode"
)
||
!
row
.
containsKey
(
"cylinderType"
))
{
JSONObject
error
=
new
JSONObject
();
error
.
put
(
"result"
,
"第"
+
(
i
+
1
)
+
"个数据有误:sequenceCode或cylinderType为空。请检查后重新上传数据!"
);
error
.
put
(
"errorData"
,
row
);
errorList
.
add
(
error
);
return
true
;
}
else
{
cylinderCodeSet
.
add
(
row
.
getString
(
"sequenceCode"
));
}
}
else
{
JSONObject
error
=
new
JSONObject
();
error
.
put
(
"result"
,
"第"
+
(
i
+
1
)
+
"个数据为空,请检查后重新上传数据!"
);
errorList
.
add
(
error
);
return
true
;
}
}
}
return
false
;
}
/**
* 验证检验前数据
...
...
@@ -308,16 +338,24 @@ public class CylinderFillingDataValidationService {
* @return 校验结果 通过为 true,不通过为false
*/
public
List
<
String
>
validateRequiredByStage
(
CylinderField
.
FillStage
stage
,
JSONArray
jsonArray
,
Set
<
String
>
errorCylinderSet
)
{
List
<
String
>
errorList
=
new
ArrayList
<>();
List
<
JSONObject
>
errorList
=
new
ArrayList
<>();
JSONObject
error
=
new
JSONObject
();
for
(
int
i
=
0
;
i
<
jsonArray
.
size
();
i
++)
{
JSONObject
row
=
jsonArray
.
getJSONObject
(
i
);
CylinderType
type
=
CylinderType
.
getByCode
(
row
.
getString
(
"cylinderType"
));
List
<
String
>
keys
=
CylinderTypeFieldValidation
.
getRequiredFieldsForType
(
type
,
stage
.
getCode
());
List
<
String
>
missingKeys
=
Lists
.
newArrayList
();
for
(
String
key
:
keys
)
{
if
(!
row
.
containsKey
(
key
)
||
ObjectUtils
.
isEmpty
(
row
.
get
(
key
))
||
row
.
get
(
key
).
equals
(
JSONNull
.
getInstance
()))
{
errorList
.
add
(
row
.
toString
()
);
missingKeys
.
add
(
key
);
}
}
if
(!
ObjectUtils
.
isEmpty
(
missingKeys
))
{
error
.
put
(
"missingKeys"
,
missingKeys
);
error
.
put
(
"rawData"
,
row
);
error
.
put
(
"sequenceCode"
,
row
.
getString
(
"sequenceCode"
));
errorList
.
add
(
error
);
}
}
if
(!
ObjectUtils
.
isEmpty
(
errorList
))
{
...
...
@@ -327,10 +365,10 @@ public class CylinderFillingDataValidationService {
});
JSONObject
result
=
new
JSONObject
();
result
.
put
(
"result"
,
"必填字段不能为空"
);
return
errorList
.
stream
().
map
(
e
->
{
result
.
put
(
"errorData"
,
e
);
return
result
.
toString
();
}).
collect
(
Collectors
.
toList
());
return
errorList
.
stream
().
map
(
e
->
{
result
.
put
All
(
e
);
return
result
.
toString
();
}).
collect
(
Collectors
.
toList
());
}
return
errorList
;
return
errorList
.
stream
().
map
(
JSONObject:
:
toString
).
collect
(
Collectors
.
toList
())
;
}
/**
...
...
@@ -342,7 +380,8 @@ public class CylinderFillingDataValidationService {
*/
public
List
<
String
>
validateUniqueByStage
(
CylinderField
.
FillStage
stage
,
JSONArray
jsonArray
,
Set
<
String
>
errorCylinderSet
)
{
Map
<
String
,
Set
<
Object
>>
valuesMap
=
new
HashMap
<>();
List
<
String
>
errorList
=
new
ArrayList
<>();
List
<
JSONObject
>
errorList
=
new
ArrayList
<>();
JSONObject
error
=
new
JSONObject
();
for
(
int
i
=
0
;
i
<
jsonArray
.
size
();
i
++)
{
JSONObject
row
=
jsonArray
.
getJSONObject
(
i
);
CylinderType
type
=
CylinderType
.
getByCode
(
row
.
getString
(
"cylinderType"
));
...
...
@@ -352,7 +391,10 @@ public class CylinderFillingDataValidationService {
valuesMap
.
put
(
key
,
new
HashSet
<>());
}
if
(
valuesMap
.
get
(
key
).
contains
(
row
.
get
(
key
)))
{
errorList
.
add
(
row
.
toString
());
error
.
put
(
"duplicateKeys"
,
key
);
error
.
put
(
"rawData"
,
row
);
error
.
put
(
"sequenceCode"
,
row
.
getString
(
"sequenceCode"
));
errorList
.
add
(
error
);
}
valuesMap
.
get
(
key
).
add
(
row
.
get
(
key
));
}
...
...
@@ -363,10 +405,12 @@ public class CylinderFillingDataValidationService {
String
sequenceCode
=
JSONObject
.
fromObject
(
json
).
getString
(
"sequenceCode"
);
errorCylinderSet
.
add
(
sequenceCode
);
});
return
errorList
.
stream
().
map
(
e
->
"上传数据重复:"
+
e
).
collect
(
Collectors
.
toList
());
JSONObject
result
=
new
JSONObject
();
result
.
put
(
"result"
,
"上传数据重复"
);
return
errorList
.
stream
().
map
(
e
->
{
result
.
putAll
(
e
);
return
result
.
toString
();
}).
collect
(
Collectors
.
toList
());
}
return
errorList
;
return
errorList
.
stream
().
map
(
JSONObject:
:
toString
).
collect
(
Collectors
.
toList
())
;
}
/**
...
...
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/CylinderService.java
View file @
3b2027ba
...
...
@@ -206,8 +206,9 @@ public class CylinderService {
cylinderFillingMessageEntity
.
setCylinderNumber
(
validateResult
.
getCylinderNumber
());
List
<
String
>
logMessage
=
new
ArrayList
<>();
int
errorNumber
=
0
;
JSONObject
error
=
new
JSONObject
();
if
(!
ObjectUtils
.
isEmpty
(
validateResult
.
getBeforeErrorData
()))
{
JSONObject
error
=
new
JSONObject
();
errorNumber
+=
validateResult
.
getBeforeErrorData
().
size
();
error
.
put
(
"充装前检查错误数据:"
,
validateResult
.
getBeforeErrorData
());
errorData
.
add
(
error
);
...
...
@@ -216,6 +217,7 @@ public class CylinderService {
}
if
(!
ObjectUtils
.
isEmpty
(
validateResult
.
getRecordErrorData
()))
{
JSONObject
error
=
new
JSONObject
();
errorNumber
+=
validateResult
.
getRecordErrorData
().
size
();
error
.
put
(
"充装记录错误数据:"
,
validateResult
.
getRecordErrorData
());
errorData
.
add
(
error
);
...
...
@@ -224,6 +226,7 @@ public class CylinderService {
}
if
(!
ObjectUtils
.
isEmpty
(
validateResult
.
getAfterErrorData
()))
{
JSONObject
error
=
new
JSONObject
();
errorNumber
+=
validateResult
.
getAfterErrorData
().
size
();
error
.
put
(
"充装后复查错误数据:"
,
validateResult
.
getAfterErrorData
());
errorData
.
add
(
error
);
...
...
@@ -232,6 +235,7 @@ public class CylinderService {
}
if
(!
ObjectUtils
.
isEmpty
(
validateResult
.
getSeqCodeErrorData
()))
{
JSONObject
error
=
new
JSONObject
();
errorNumber
+=
validateResult
.
getSeqCodeErrorData
().
size
();
error
.
put
(
"气瓶信息不存在:"
,
validateResult
.
getSeqCodeErrorData
());
errorData
.
add
(
error
);
...
...
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/face/service/OpenapiBizTokenService.java
View file @
3b2027ba
...
...
@@ -53,7 +53,16 @@ public class OpenapiBizTokenService extends BaseService<OpenapiBizTokenModel, Op
}
public
String
getByAppId
(
String
appId
)
{
Map
<
String
,
String
>
unitInfo
=
baseMapper
.
queryUnitInfoByAppId
(
appId
);
// 先从iot_openapi_biz_token表中查询(手动创建不需要在平台注册的对接方的appId信息),如果未找到则从业务库企业表查询
OpenapiBizToken
openapiBizToken
=
baseMapper
.
getByAppId
(
appId
);
Map
<
String
,
String
>
unitInfo
=
MapUtil
.
newHashMap
();
if
(!
ValidationUtil
.
isEmpty
(
openapiBizToken
))
{
unitInfo
.
put
(
"use_unit_code"
,
openapiBizToken
.
getApiCompanyCode
());
unitInfo
.
put
(
"use_unit"
,
openapiBizToken
.
getApiCompanyName
());
}
if
(
ValidationUtil
.
isEmpty
(
unitInfo
))
{
unitInfo
=
baseMapper
.
queryUnitInfoByAppId
(
appId
);
}
if
(
ValidationUtil
.
isEmpty
(
unitInfo
))
{
throw
new
RuntimeException
(
"未找到对接单位信息"
);
}
...
...
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/java/com/yeejoin/amos/boot/module/cylinder/api/entity/ESCylinderFillingInfoDto.java
View file @
3b2027ba
...
...
@@ -210,7 +210,7 @@ public class ESCylinderFillingInfoDto {
@Field
(
type
=
FieldType
.
Keyword
)
@ApiModelProperty
(
value
=
"各组分含量"
)
private
Double
componentContents
;
private
String
componentContents
;
@Field
(
type
=
FieldType
.
Double
)
@ApiModelProperty
(
value
=
"标称皮重"
)
...
...
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/java/com/yeejoin/amos/boot/module/cylinder/flc/api/entity/CylinderFillingRecord.java
View file @
3b2027ba
...
...
@@ -70,7 +70,7 @@ public class CylinderFillingRecord extends CylinderFillingBaseEntity {
private
Double
acetyleneFillingAmount
;
@ApiModelProperty
(
value
=
"各组分含量"
)
private
Double
componentContents
;
private
String
componentContents
;
@ApiModelProperty
(
value
=
"标称皮重"
)
private
Double
tareWeightNominal
;
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/action/RuleActionHandler.java
View file @
3b2027ba
...
...
@@ -29,6 +29,7 @@ import org.redisson.api.RLock;
import
org.redisson.api.RedissonClient
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Component
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity
;
import
java.time.LocalDate
;
...
...
@@ -327,6 +328,9 @@ public class RuleActionHandler {
private
List
<
String
>
getOpeningSeqs
(
List
<
String
>
useCodes
,
List
<
TzBaseUnitLicence
>
unitLicenceList
)
{
// 所有符合资质对应证ID
List
<
String
>
enterpriseCertSeqs
=
unitLicenceList
.
stream
().
filter
(
unitLicence
->
useCodes
.
contains
(
unitLicence
.
getUnitCode
())).
map
(
TzBaseUnitLicence:
:
getEnterpriseCertSeq
).
collect
(
Collectors
.
toList
());
if
(
ValidationUtil
.
isEmpty
(
enterpriseCertSeqs
))
{
return
Collections
.
emptyList
();
}
// 正对应开通ID
return
openingApplicationMapper
.
selectOpeningSeqInEnterpriseCertSeq
(
enterpriseCertSeqs
);
}
...
...
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/PlanTaskServiceImpl.java
View file @
3b2027ba
...
...
@@ -930,6 +930,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
log
.
error
(
e
.
getMessage
());
}
System
.
out
.
println
(
userDetailsDtos
.
size
()
+
"==================="
);
log
.
info
(
"生成的完整时间======={}"
,
JSONObject
.
toJSONString
(
timeList
));
return
PlanTaskUtil
.
genWholeExeData
(
timeList
,
plan
,
userDetailsDtos
,
route
);
}
...
...
@@ -948,6 +949,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
HashMap
<
String
,
Object
>
paramMap
=
new
HashMap
<
String
,
Object
>();
paramMap
.
put
(
"id"
,
plan
.
getId
());
paramMap
.
put
(
"next_gen_date"
,
DateUtil
.
formatDatrToStr
(
now
,
"yyyy-MM-dd"
));
log
.
info
(
"insertPlanTaskAndDetNew更新下次任务生成日期======={}"
,
JSONObject
.
toJSONString
(
paramMap
));
planMapper
.
updPlanStatusOrGenDate
(
paramMap
);
// 更新下次任务生成日期
}
else
{
try
{
...
...
@@ -1079,7 +1081,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
paramMap
.
put
(
"first_flag"
,
XJConstant
.
PLAN_FIRST_STATUS_NO
);
}
if
(
DateUtil
.
str2Date
(
strGenDate
,
"yyyy-MM-dd"
).
getTime
()
-
now
.
getTime
()
<
0
||
org
.
apache
.
commons
.
lang
.
StringUtils
.
isBlank
(
strGenDate
))
{
paramMap
.
put
(
"next_gen_date"
,
DateUtil
.
formatDatrToStr
(
now
,
"yyyy-MM-dd"
));
paramMap
.
put
(
"next_gen_date"
,
DateUtil
.
formatDatrToStr
(
now
,
"yyyy-MM-dd"
));
//TODO 确认这里now对着不
}
planMapper
.
updPlanStatusOrGenDate
(
paramMap
);
// 更新下次任务生成日期
...
...
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/java/com/yeejoin/amos/patrol/business/util/PlanTaskUtil.java
View file @
3b2027ba
package
com
.
yeejoin
.
amos
.
patrol
.
business
.
util
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.amos.patrol.business.constants.XJConstant
;
import
com.yeejoin.amos.patrol.business.dto.UserDetailsDto
;
import
com.yeejoin.amos.patrol.business.vo.CalDateVo
;
...
...
@@ -11,7 +12,6 @@ import com.yeejoin.amos.patrol.exception.YeeException;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.ObjectUtils
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
...
...
@@ -562,6 +562,7 @@ public static List<HashMap<String, Object>> genWholeExeData(List<HashMap<String,
}
else
{
wholeList
=
timeList
;
}
log
.
info
(
"genWholeExeData:{}"
,
JSONObject
.
toJSONString
(
wholeList
));
return
wholeList
;
}
...
...
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