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
Expand all
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 {
...
@@ -44,7 +44,7 @@ public class OpenApiControllerAop {
String
[]
url
=
new
String
[]{
"/api/user/selectInfo"
,
"/api/user/save/curCompany"
,
"/bizToken/applyToken"
,
String
[]
url
=
new
String
[]{
"/api/user/selectInfo"
,
"/api/user/save/curCompany"
,
"/bizToken/applyToken"
,
"/openapi/bizToken/getAppId"
,
"/lift/upload"
,
"/lift/status"
,
"/lift/run"
,
"/lift/fault"
,
"/openapi/bizToken/getAppId"
,
"/lift/upload"
,
"/lift/status"
,
"/lift/run"
,
"/lift/fault"
,
"/lift/video/preview"
,
"/cylinderPage/serviceProvider"
,
"/cylinderPage/getTableInfo"
,
"/lift/video/preview"
,
"/cylinderPage/serviceProvider"
,
"/cylinderPage/getTableInfo"
,
"/cylinderPage/initCylinderNum"
,
"/openapi/appId/
set
AppId"
};
"/cylinderPage/initCylinderNum"
,
"/openapi/appId/
gen
AppId"
};
// 获取请求路径
// 获取请求路径
for
(
String
uri
:
url
)
{
for
(
String
uri
:
url
)
{
if
(
request
.
getRequestURI
().
indexOf
(
uri
)
!=
-
1
)
{
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;
...
@@ -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.ResponseHelper
;
import
com.yeejoin.amos.api.common.restful.utils.ResponseModel
;
import
com.yeejoin.amos.api.common.restful.utils.ResponseModel
;
import
com.yeejoin.amos.api.openapi.constant.Constant
;
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
com.yeejoin.amos.feign.privilege.util.DesUtil
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
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.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
...
@@ -26,15 +29,23 @@ public class AppIdMain {
...
@@ -26,15 +29,23 @@ public class AppIdMain {
// logger.info("appId信息:", appId);
// logger.info("appId信息:", appId);
// System.out.println("appId信息:" + appId);
// System.out.println("appId信息:" + appId);
// }
// }
@Autowired
OpenapiBizTokenService
openapiBizTokenService
;
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
value
=
"生成AppId"
)
@ApiOperation
(
value
=
"手动为对接企业生成AppId"
)
@GetMapping
(
value
=
"/setAppId"
)
@GetMapping
(
value
=
"/genAppId"
)
public
ResponseModel
<
String
>
applyAppId
(
public
ResponseModel
<
String
>
applyAppId
(
@RequestParam
String
apiCompanyCode
,
@RequestParam
String
apiCompanyName
)
{
@RequestParam
String
apiCompanyCode
)
throws
Exception
logger
.
info
(
"开始为apiCompanyCode生成对应appId信息:{}"
,
apiCompanyCode
);
{
logger
.
info
(
"appId信息:"
,
apiCompanyCode
);
String
appId
=
DesUtil
.
encode
(
apiCompanyCode
,
Constant
.
SECRETKEY
);
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
);
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 {
...
@@ -45,7 +45,7 @@ public enum CylinderTypeFieldValidation {
isNoBulgingOrLeakage2
(
CylinderType
.
LIQUEFIED_GAS_LPG
,
"isNoBulgingOrLeakage"
,
true
,
false
,
new
String
[]{
CylinderField
.
FillStage
.
AFTER
.
getCode
()},
"瓶体未出现鼓包变形或泄漏等严重缺陷"
),
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
()},
"瓶体温度没有异常升高的迹象"
),
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
()},
"气瓶粘贴警示标签和充装标签)"
),
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
// 压缩气体气瓶 COMPRESSED_GAS
...
@@ -106,7 +106,7 @@ public enum CylinderTypeFieldValidation {
...
@@ -106,7 +106,7 @@ public enum CylinderTypeFieldValidation {
oxidizingGasCylinderFreeOfOil
(
CylinderType
.
MIXED_GAS
,
"oxidizingGasCylinderFreeOfOil"
,
true
,
false
,
new
String
[]{
CylinderField
.
FillStage
.
BEFORE
.
getCode
()},
"氧化性混合气体的瓶体、瓶阀未沾染油脂"
),
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
()},
"气瓶经预处理(抽真空、烘干、置换或组合)合格"
),
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
()},
"充装量"
),
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
()},
"各组分含量"
),
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
()},
"异常情况"
),
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 {
...
@@ -58,7 +58,7 @@ public class TmCylinderFillingRecordModel extends CylinderAbstractBaseModel {
private
Double
acetyleneFillingAmount
;
private
Double
acetyleneFillingAmount
;
@ApiModelProperty
(
value
=
"各组分含量"
)
@ApiModelProperty
(
value
=
"各组分含量"
)
private
Double
componentContents
;
private
String
componentContents
;
@ApiModelProperty
(
value
=
"标称皮重"
)
@ApiModelProperty
(
value
=
"标称皮重"
)
private
Double
tareWeightNominal
;
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 {
...
@@ -64,7 +64,7 @@ public class TmCylinderFillingRecord extends CylinderAbstractBaseEntity {
private
Double
acetyleneFillingAmount
;
private
Double
acetyleneFillingAmount
;
@ApiModelProperty
(
value
=
"各组分含量"
)
@ApiModelProperty
(
value
=
"各组分含量"
)
private
Double
componentContents
;
private
String
componentContents
;
@ApiModelProperty
(
value
=
"标称皮重"
)
@ApiModelProperty
(
value
=
"标称皮重"
)
private
Double
tareWeightNominal
;
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
This diff is collapsed.
Click to expand it.
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 {
...
@@ -206,8 +206,9 @@ public class CylinderService {
cylinderFillingMessageEntity
.
setCylinderNumber
(
validateResult
.
getCylinderNumber
());
cylinderFillingMessageEntity
.
setCylinderNumber
(
validateResult
.
getCylinderNumber
());
List
<
String
>
logMessage
=
new
ArrayList
<>();
List
<
String
>
logMessage
=
new
ArrayList
<>();
int
errorNumber
=
0
;
int
errorNumber
=
0
;
JSONObject
error
=
new
JSONObject
();
if
(!
ObjectUtils
.
isEmpty
(
validateResult
.
getBeforeErrorData
()))
{
if
(!
ObjectUtils
.
isEmpty
(
validateResult
.
getBeforeErrorData
()))
{
JSONObject
error
=
new
JSONObject
();
errorNumber
+=
validateResult
.
getBeforeErrorData
().
size
();
errorNumber
+=
validateResult
.
getBeforeErrorData
().
size
();
error
.
put
(
"充装前检查错误数据:"
,
validateResult
.
getBeforeErrorData
());
error
.
put
(
"充装前检查错误数据:"
,
validateResult
.
getBeforeErrorData
());
errorData
.
add
(
error
);
errorData
.
add
(
error
);
...
@@ -216,6 +217,7 @@ public class CylinderService {
...
@@ -216,6 +217,7 @@ public class CylinderService {
}
}
if
(!
ObjectUtils
.
isEmpty
(
validateResult
.
getRecordErrorData
()))
{
if
(!
ObjectUtils
.
isEmpty
(
validateResult
.
getRecordErrorData
()))
{
JSONObject
error
=
new
JSONObject
();
errorNumber
+=
validateResult
.
getRecordErrorData
().
size
();
errorNumber
+=
validateResult
.
getRecordErrorData
().
size
();
error
.
put
(
"充装记录错误数据:"
,
validateResult
.
getRecordErrorData
());
error
.
put
(
"充装记录错误数据:"
,
validateResult
.
getRecordErrorData
());
errorData
.
add
(
error
);
errorData
.
add
(
error
);
...
@@ -224,6 +226,7 @@ public class CylinderService {
...
@@ -224,6 +226,7 @@ public class CylinderService {
}
}
if
(!
ObjectUtils
.
isEmpty
(
validateResult
.
getAfterErrorData
()))
{
if
(!
ObjectUtils
.
isEmpty
(
validateResult
.
getAfterErrorData
()))
{
JSONObject
error
=
new
JSONObject
();
errorNumber
+=
validateResult
.
getAfterErrorData
().
size
();
errorNumber
+=
validateResult
.
getAfterErrorData
().
size
();
error
.
put
(
"充装后复查错误数据:"
,
validateResult
.
getAfterErrorData
());
error
.
put
(
"充装后复查错误数据:"
,
validateResult
.
getAfterErrorData
());
errorData
.
add
(
error
);
errorData
.
add
(
error
);
...
@@ -232,6 +235,7 @@ public class CylinderService {
...
@@ -232,6 +235,7 @@ public class CylinderService {
}
}
if
(!
ObjectUtils
.
isEmpty
(
validateResult
.
getSeqCodeErrorData
()))
{
if
(!
ObjectUtils
.
isEmpty
(
validateResult
.
getSeqCodeErrorData
()))
{
JSONObject
error
=
new
JSONObject
();
errorNumber
+=
validateResult
.
getSeqCodeErrorData
().
size
();
errorNumber
+=
validateResult
.
getSeqCodeErrorData
().
size
();
error
.
put
(
"气瓶信息不存在:"
,
validateResult
.
getSeqCodeErrorData
());
error
.
put
(
"气瓶信息不存在:"
,
validateResult
.
getSeqCodeErrorData
());
errorData
.
add
(
error
);
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
...
@@ -53,7 +53,16 @@ public class OpenapiBizTokenService extends BaseService<OpenapiBizTokenModel, Op
}
}
public
String
getByAppId
(
String
appId
)
{
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
))
{
if
(
ValidationUtil
.
isEmpty
(
unitInfo
))
{
throw
new
RuntimeException
(
"未找到对接单位信息"
);
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 {
...
@@ -210,7 +210,7 @@ public class ESCylinderFillingInfoDto {
@Field
(
type
=
FieldType
.
Keyword
)
@Field
(
type
=
FieldType
.
Keyword
)
@ApiModelProperty
(
value
=
"各组分含量"
)
@ApiModelProperty
(
value
=
"各组分含量"
)
private
Double
componentContents
;
private
String
componentContents
;
@Field
(
type
=
FieldType
.
Double
)
@Field
(
type
=
FieldType
.
Double
)
@ApiModelProperty
(
value
=
"标称皮重"
)
@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 {
...
@@ -70,7 +70,7 @@ public class CylinderFillingRecord extends CylinderFillingBaseEntity {
private
Double
acetyleneFillingAmount
;
private
Double
acetyleneFillingAmount
;
@ApiModelProperty
(
value
=
"各组分含量"
)
@ApiModelProperty
(
value
=
"各组分含量"
)
private
Double
componentContents
;
private
String
componentContents
;
@ApiModelProperty
(
value
=
"标称皮重"
)
@ApiModelProperty
(
value
=
"标称皮重"
)
private
Double
tareWeightNominal
;
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;
...
@@ -29,6 +29,7 @@ import org.redisson.api.RLock;
import
org.redisson.api.RedissonClient
;
import
org.redisson.api.RedissonClient
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity
;
import
org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity
;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
...
@@ -327,6 +328,9 @@ public class RuleActionHandler {
...
@@ -327,6 +328,9 @@ public class RuleActionHandler {
private
List
<
String
>
getOpeningSeqs
(
List
<
String
>
useCodes
,
List
<
TzBaseUnitLicence
>
unitLicenceList
)
{
private
List
<
String
>
getOpeningSeqs
(
List
<
String
>
useCodes
,
List
<
TzBaseUnitLicence
>
unitLicenceList
)
{
// 所有符合资质对应证ID
// 所有符合资质对应证ID
List
<
String
>
enterpriseCertSeqs
=
unitLicenceList
.
stream
().
filter
(
unitLicence
->
useCodes
.
contains
(
unitLicence
.
getUnitCode
())).
map
(
TzBaseUnitLicence:
:
getEnterpriseCertSeq
).
collect
(
Collectors
.
toList
());
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
// 正对应开通ID
return
openingApplicationMapper
.
selectOpeningSeqInEnterpriseCertSeq
(
enterpriseCertSeqs
);
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 {
...
@@ -930,6 +930,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
log
.
error
(
e
.
getMessage
());
log
.
error
(
e
.
getMessage
());
}
}
System
.
out
.
println
(
userDetailsDtos
.
size
()
+
"==================="
);
System
.
out
.
println
(
userDetailsDtos
.
size
()
+
"==================="
);
log
.
info
(
"生成的完整时间======={}"
,
JSONObject
.
toJSONString
(
timeList
));
return
PlanTaskUtil
.
genWholeExeData
(
timeList
,
plan
,
userDetailsDtos
,
route
);
return
PlanTaskUtil
.
genWholeExeData
(
timeList
,
plan
,
userDetailsDtos
,
route
);
}
}
...
@@ -948,6 +949,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
...
@@ -948,6 +949,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
HashMap
<
String
,
Object
>
paramMap
=
new
HashMap
<
String
,
Object
>();
HashMap
<
String
,
Object
>
paramMap
=
new
HashMap
<
String
,
Object
>();
paramMap
.
put
(
"id"
,
plan
.
getId
());
paramMap
.
put
(
"id"
,
plan
.
getId
());
paramMap
.
put
(
"next_gen_date"
,
DateUtil
.
formatDatrToStr
(
now
,
"yyyy-MM-dd"
));
paramMap
.
put
(
"next_gen_date"
,
DateUtil
.
formatDatrToStr
(
now
,
"yyyy-MM-dd"
));
log
.
info
(
"insertPlanTaskAndDetNew更新下次任务生成日期======={}"
,
JSONObject
.
toJSONString
(
paramMap
));
planMapper
.
updPlanStatusOrGenDate
(
paramMap
);
// 更新下次任务生成日期
planMapper
.
updPlanStatusOrGenDate
(
paramMap
);
// 更新下次任务生成日期
}
else
{
}
else
{
try
{
try
{
...
@@ -1079,7 +1081,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
...
@@ -1079,7 +1081,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
paramMap
.
put
(
"first_flag"
,
XJConstant
.
PLAN_FIRST_STATUS_NO
);
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
))
{
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
);
// 更新下次任务生成日期
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
;
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.constants.XJConstant
;
import
com.yeejoin.amos.patrol.business.dto.UserDetailsDto
;
import
com.yeejoin.amos.patrol.business.dto.UserDetailsDto
;
import
com.yeejoin.amos.patrol.business.vo.CalDateVo
;
import
com.yeejoin.amos.patrol.business.vo.CalDateVo
;
...
@@ -11,7 +12,6 @@ import com.yeejoin.amos.patrol.exception.YeeException;
...
@@ -11,7 +12,6 @@ import com.yeejoin.amos.patrol.exception.YeeException;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.ObjectUtils
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
...
@@ -562,6 +562,7 @@ public static List<HashMap<String, Object>> genWholeExeData(List<HashMap<String,
...
@@ -562,6 +562,7 @@ public static List<HashMap<String, Object>> genWholeExeData(List<HashMap<String,
}
else
{
}
else
{
wholeList
=
timeList
;
wholeList
=
timeList
;
}
}
log
.
info
(
"genWholeExeData:{}"
,
JSONObject
.
toJSONString
(
wholeList
));
return
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