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
3f45ecb4
Commit
3f45ecb4
authored
Sep 29, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):处理车用气瓶和安装告知错误数据
parent
bd8b650d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
5 deletions
+50
-5
JgInstallationByWorkFlowController.java
...jg/biz/controller/JgInstallationByWorkFlowController.java
+14
-4
JgVehicleInformationController.java
...ule/jg/biz/controller/JgVehicleInformationController.java
+15
-0
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+7
-1
JgInstallationNoticeServiceImpl.java
.../jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
+0
-0
JgVehicleInformationServiceImpl.java
.../jg/biz/service/impl/JgVehicleInformationServiceImpl.java
+14
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgInstallationByWorkFlowController.java
View file @
3f45ecb4
...
...
@@ -7,10 +7,7 @@ import com.yeejoin.amos.boot.module.jg.biz.service.impl.JgInstallationNoticeServ
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.component.event.RestEventTrigger
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
...
...
@@ -88,4 +85,17 @@ public class JgInstallationByWorkFlowController {
jgInstallationNoticeServiceImpl
.
accept
(
jgInstallationNoticeDto
,
op
);
return
ResponseHelper
.
buildResponse
(
null
);
}
/**
* 处理安装告知流程结束,业务未结束单子问题
* @param applyNo 申请单号
* @return s
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/handleNoticeWrongData"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"处理安装告知流程结束,业务未结束单子问题"
,
notes
=
"处理安装告知流程结束,业务未结束单子问题"
)
public
ResponseModel
<
Object
>
handleNoticeWrongData
(
@RequestParam
(
"applyNo"
)
String
applyNo
)
{
jgInstallationNoticeServiceImpl
.
handleNoticeWrongData
(
applyNo
);
return
ResponseHelper
.
buildResponse
(
"ok"
);
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgVehicleInformationController.java
View file @
3f45ecb4
...
...
@@ -248,4 +248,19 @@ public class JgVehicleInformationController extends BaseController {
public
ResponseModel
<
Object
>
saveOrUpdateHisData
(
@RequestBody
JSONObject
map
)
{
return
ResponseHelper
.
buildResponse
(
jgVehicleInformationServiceImpl
.
saveOrUpdateHisData
(
map
));
}
/**
* 处理车用气瓶流程结束,业务未结束单子问题
* @param applyNo 申请单号
* @param equDefineCode 设备品种code
* @return s
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/handleVehicleWrongData"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"处理车用气瓶流程结束,业务未结束单子问题"
,
notes
=
"处理车用气瓶流程结束,业务未结束单子问题"
)
public
ResponseModel
<
Object
>
handleVehicleWrongData
(
@RequestParam
(
"applyNo"
)
String
applyNo
,
@RequestParam
(
"equDefineCode"
)
String
equDefineCode
)
{
jgVehicleInformationServiceImpl
.
handleVehicleWrongData
(
applyNo
,
equDefineCode
);
return
ResponseHelper
.
buildResponse
(
"ok"
);
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
View file @
3f45ecb4
...
...
@@ -212,6 +212,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
List
<
String
>
useInnerCodeList
=
new
ArrayList
<>();
// 单位内部编号集合
List
<
String
>
equCodeList
=
new
ArrayList
<>();
// 设备代码集合
List
<
String
>
factoryNumList
=
new
ArrayList
<>();
private
static
final
int
MAX_UPLOAD
=
2000
;
// 最大上传条数
// 出厂编码集合
@Autowired
RestHighLevelClient
restHighLevelClient
;
...
...
@@ -1058,7 +1059,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
// 根据96333码检查唯一性
LambdaQueryWrapper
<
IdxBizJgOtherInfo
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
IdxBizJgOtherInfo:
:
getCode96333
,
equipmentInfoForm
.
get
(
CODE96333
));
wrapper
.
notIn
(
IdxBizJgOtherInfo:
:
getClaimStatus
,
"待认领
"
,
"已拒领"
,
"
草稿"
);
wrapper
.
notIn
(
IdxBizJgOtherInfo:
:
getClaimStatus
,
"待认领
,已拒领,
草稿"
);
wrapper
.
ne
(!
ObjectUtils
.
isEmpty
(
equipmentInfoForm
.
get
(
OTHERINFO_SEQ
)),
IdxBizJgOtherInfo:
:
getSequenceNbr
,
equipmentInfoForm
.
get
(
OTHERINFO_SEQ
));
Integer
count
=
otherInfoMapper
.
selectCount
(
wrapper
);
if
(
count
>
0
)
{
...
...
@@ -4139,6 +4140,11 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
if
(!
checkMsg
.
isEmpty
())
{
resultError
.
add
(
checkMsg
);
}
// 限制最大上传数量
if
(
aircraftList
.
size
()
>
MAX_UPLOAD
)
{
resultError
.
add
(
"每次最多允许上传 "
+
MAX_UPLOAD
+
" 条数据,请分批上传!"
);
throw
new
BadRequest
(
resultError
.
stream
().
filter
(
s
->
!
s
.
isEmpty
()).
collect
(
Collectors
.
joining
(
"<br/>"
)));
}
}
@Override
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
View file @
3f45ecb4
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgVehicleInformationServiceImpl.java
View file @
3f45ecb4
...
...
@@ -2533,4 +2533,17 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
public
boolean
countUseTimesForInvalid
(
Object
code
)
{
return
jgVehicleInformationMapper
.
countUseTimesForInvalid
(
code
)
<=
0
;
}
public
void
handleVehicleWrongData
(
String
applyNo
,
String
equDefineCode
)
{
JgVehicleInformation
vehicleInformation
=
jgVehicleInformationMapper
.
selectOne
(
new
LambdaQueryWrapper
<
JgVehicleInformation
>()
.
in
(
JgVehicleInformation:
:
getApplyNo
,
applyNo
)
.
eq
(
JgVehicleInformation:
:
getIsDelete
,
0
)
.
ne
(
JgVehicleInformation:
:
getStatus
,
"已作废"
));
WorkflowResultDto
workflowResultDto
=
new
WorkflowResultDto
();
workflowResultDto
.
setNextExecutorRoleIds
(
vehicleInformation
.
getNextExecuteIds
());
workflowResultDto
.
setNextTaskCode
(
"已完成"
);
workflowResultDto
.
setNextTaskId
(
vehicleInformation
.
getNextTaskId
());
workflowResultDto
.
setNextExecutorUserIds
(
vehicleInformation
.
getNextExecuteUserIds
());
this
.
updateData
(
vehicleInformation
.
getSequenceNbr
(),
"0"
,
workflowResultDto
,
Boolean
.
FALSE
,
equDefineCode
);
}
}
\ 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