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
9dfe76e5
Commit
9dfe76e5
authored
Apr 09, 2026
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(检验检测):报检结果查看
1.报检申请详情增加结果查看功能 2.检验业务查询同步修改 3.申请单状态增加结果已出状态筛选
parent
c96cd52e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
83 additions
and
1 deletion
+83
-1
BizCommonConstant.java
...n/amos/boot/module/jyjc/api/common/BizCommonConstant.java
+5
-0
JyjcInspectionResultMapper.java
...ot/module/jyjc/api/mapper/JyjcInspectionResultMapper.java
+3
-0
JyjcInspectionApplicationModel.java
...module/jyjc/api/model/JyjcInspectionApplicationModel.java
+3
-0
JyjcInspectionResultModel.java
...boot/module/jyjc/api/model/JyjcInspectionResultModel.java
+4
-0
JyjcInspectionApplicationMapper.xml
...main/resources/mapper/JyjcInspectionApplicationMapper.xml
+0
-0
JyjcInspectionResultMapper.xml
.../src/main/resources/mapper/JyjcInspectionResultMapper.xml
+18
-1
JyjcInspectionResultController.java
...e/jyjc/biz/controller/JyjcInspectionResultController.java
+15
-0
JyjcInspectionApplicationServiceImpl.java
...iz/service/impl/JyjcInspectionApplicationServiceImpl.java
+13
-0
JyjcInspectionResultServiceImpl.java
...yjc/biz/service/impl/JyjcInspectionResultServiceImpl.java
+22
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/common/BizCommonConstant.java
View file @
9dfe76e5
...
...
@@ -148,4 +148,9 @@ public interface BizCommonConstant {
* 检验机构分类
*/
String
JYJGFL_DICT_KEY
=
"JYJGFL"
;
/**
* 检验检测申请单据状态
*/
String
JYZT
=
"JYLCZT"
;
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/mapper/JyjcInspectionResultMapper.java
View file @
9dfe76e5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jyjc
.
api
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.common.api.dto.DPFilterParamDto
;
import
com.yeejoin.amos.boot.module.jg.api.vo.SortVo
;
...
...
@@ -27,4 +28,6 @@ public interface JyjcInspectionResultMapper extends BaseMapper<JyjcInspectionRes
List
<
InspectionTimelinesDto
>
queryInspectionTimelinessTopXX
(
@Param
(
"top"
)
String
top
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
);
List
<
JyjcInspectionResultVo
>
queryExportInIds
(
@Param
(
"ids"
)
List
<
String
>
ids
);
IPage
<
JyjcInspectionResultModel
>
findByApplicationNo
(
@Param
(
"page"
)
Page
<
JyjcInspectionResultModel
>
page
,
@Param
(
"applicationNo"
)
String
applicationNo
);
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/model/JyjcInspectionApplicationModel.java
View file @
9dfe76e5
...
...
@@ -221,6 +221,9 @@ public class JyjcInspectionApplicationModel extends BaseModel {
@ApiModelProperty
(
value
=
"接收人名称"
)
private
String
receiveUserName
;
@ApiModelProperty
(
value
=
"实际业务状态,聚合申请和结果状态"
)
private
String
actualStatus
;
public
String
getProcessInstanceId
()
{
return
this
.
instanceId
!=
null
?
this
.
instanceId
:
this
.
processInstanceId
;
}
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/model/JyjcInspectionResultModel.java
View file @
9dfe76e5
...
...
@@ -193,4 +193,8 @@ public class JyjcInspectionResultModel extends BaseModel {
*/
@ApiModelProperty
(
value
=
"结果来源"
)
private
String
sourceResult
;
@ApiModelProperty
(
value
=
"结果表主键,前端详情时使用"
)
private
String
ids
;
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/resources/mapper/JyjcInspectionApplicationMapper.xml
View file @
9dfe76e5
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/resources/mapper/JyjcInspectionResultMapper.xml
View file @
9dfe76e5
...
...
@@ -146,7 +146,7 @@
res.equ_define,
res.result_type,
ot.supervisory_code,
concat
(
ibjui.province_name, ibjui.city_name,ibjui.county_name, ibjui.street_name,ibjui.ADDRESS ) as equUseAddress
concat
_ws('',
ibjui.province_name, ibjui.city_name,ibjui.county_name, ibjui.street_name,ibjui.ADDRESS ) as equUseAddress
FROM
tz_jyjc_inspection_result res
LEFT JOIN idx_biz_jg_use_info ibjui ON ibjui.record = res.equip_unicode
...
...
@@ -377,4 +377,21 @@
</where>
order by res.application_no desc
</select>
<select
id=
"findByApplicationNo"
resultType=
"com.yeejoin.amos.boot.module.jyjc.api.model.JyjcInspectionResultModel"
>
select * from (
<include
refid=
"page-list2"
/>
<where>
res.equ_list != '8000'
and res.application_no = #{applicationNo}
</where>
union all
<include
refid=
"page-list3"
/>
<where>
res.equ_list = '8000'
and res.application_no = #{applicationNo}
</where>
)
ORDER BY sequence_nbr DESC
</select>
</mapper>
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/controller/JyjcInspectionResultController.java
View file @
9dfe76e5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jyjc
.
biz
.
controller
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.jyjc.api.dto.PipelineInspectionResultDto
;
import
com.yeejoin.amos.boot.module.jyjc.api.entity.JyjcInspectionResult
;
import
com.yeejoin.amos.boot.module.jyjc.api.enums.ResultTypeEnum
;
import
com.yeejoin.amos.boot.module.jyjc.api.model.JyjcInspectionResultDataModel
;
import
com.yeejoin.amos.boot.module.jyjc.api.model.JyjcInspectionResultModel
;
...
...
@@ -259,4 +261,17 @@ public class JyjcInspectionResultController extends BaseController {
public
ResponseModel
<
List
<
PipelineInspectionResultDto
>>
savePipelineResultDataBatch
(
@RequestBody
List
<
PipelineInspectionResultDto
>
resultData
){
return
ResponseHelper
.
buildResponse
(
jyjcInspectionResultServiceImpl
.
receivePipelineResultData
(
resultData
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/application/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询报检申请单"
,
notes
=
"查询报检申请单"
)
public
ResponseModel
<
IPage
<
JyjcInspectionResultModel
>>
applicationPageList
(
@RequestParam
int
current
,
@RequestParam
int
size
,
@RequestParam
String
applicationNo
)
{
Page
<
JyjcInspectionResultModel
>
page
=
new
Page
<>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
jyjcInspectionResultServiceImpl
.
queryForPageListByApplyNo
(
page
,
applicationNo
));
}
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcInspectionApplicationServiceImpl.java
View file @
9dfe76e5
...
...
@@ -583,15 +583,26 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
if
(
ValidationUtil
.
equals
(
"receive"
,
identity
))
{
currentInspectionUnitCode
=
companyCode
;
}
Map
<
String
,
String
>
statusCodeNameMap
=
getStatusMap
();
String
orgCode
=
"jgLook"
.
equals
(
client
)
?
reginParams
.
getCompany
().
getOrgCode
()
:
null
;
Page
<
JyjcInspectionApplicationModel
>
result
=
this
.
getBaseMapper
().
selectForPage
(
page
,
model
,
identity
,
currentApplicationUnitCode
,
currentInspectionUnitCode
,
currentUserId
,
sortMap
,
orgCode
);
result
.
getRecords
().
forEach
(
r
->
{
r
.
setLoginPersonCompanyCode
(
companyCode
);
r
.
setStatusName
(
this
.
buildStatusNameByActualStatus
(
statusCodeNameMap
,
r
.
getActualStatus
()));
// this.addPlanAndConfirmStatus(r, model);
});
return
result
;
}
private
Map
<
String
,
String
>
getStatusMap
()
{
List
<
DataDictionary
>
dataDictionaries
=
dataDictionaryService
.
getByType
(
BizCommonConstant
.
JYZT
);
return
dataDictionaries
.
stream
().
collect
(
Collectors
.
toMap
(
DataDictionary:
:
getCode
,
DataDictionary:
:
getName
));
}
private
String
buildStatusNameByActualStatus
(
Map
<
String
,
String
>
statusCodeNameMap
,
String
actualStatus
)
{
return
statusCodeNameMap
.
get
(
actualStatus
);
}
public
Page
<
JyjcInspectionApplicationModel
>
queryForPageList2
(
Page
<
JyjcInspectionApplication
>
page
,
JyjcInspectionApplicationModel
model
,
String
sort
)
{
ReginParams
reginParams
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
String
client
;
...
...
@@ -600,12 +611,14 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
}
else
{
// 监管端
client
=
BaseController
.
COMPANY_TYPE_SUPERVISION
;
}
Map
<
String
,
String
>
statusCodeNameMap
=
getStatusMap
();
SortVo
sortMap
=
commonService
.
sortFieldConversion
(
sort
);
String
companyCode
=
CommonServiceImpl
.
getUnitCode
(
reginParams
.
getCompany
());
String
agencyClassify
=
this
.
getAgencyClassify
(
companyCode
);
Page
<
JyjcInspectionApplicationModel
>
result
=
this
.
getBaseMapper
().
selectForPage2
(
page
,
model
,
client
,
companyCode
,
sortMap
,
reginParams
.
getCompany
().
getOrgCode
(),
agencyClassify
);
result
.
getRecords
().
forEach
(
r
->
{
r
.
setLoginPersonCompanyCode
(
companyCode
);
r
.
setStatusName
(
this
.
buildStatusNameByActualStatus
(
statusCodeNameMap
,
r
.
getActualStatus
()));
// this.addPlanAndConfirmStatus(r, model);
});
return
result
;
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcInspectionResultServiceImpl.java
View file @
9dfe76e5
...
...
@@ -8,6 +8,7 @@ import com.alibaba.fastjson.JSONObject;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.core.type.TypeReference
;
...
...
@@ -1125,4 +1126,24 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
updateWrapper
.
set
(
IdxBizJgTechParamsPipeline:
:
getRemarks
,
techParamPipeline
.
getRemarks
());
techParamPipelineMapper
.
update
(
null
,
updateWrapper
);
}
public
IPage
<
JyjcInspectionResultModel
>
queryForPageListByApplyNo
(
Page
<
JyjcInspectionResultModel
>
page
,
String
applicationNo
)
{
IPage
<
JyjcInspectionResultModel
>
resultIPage
=
this
.
getBaseMapper
().
findByApplicationNo
(
page
,
applicationNo
);
resultIPage
.
getRecords
().
forEach
(
v
->{
if
(
ResultStatusEnum
.
NO_RESULT
.
getCode
().
equals
(
v
.
getResultStatus
()))
{
v
.
setResultStatusName
(
ResultStatusEnum
.
NO_RESULT
.
getName
());
}
if
(
ResultStatusEnum
.
YES_RESULT
.
getCode
().
equals
(
v
.
getResultStatus
()))
{
v
.
setResultStatusName
(
ResultStatusEnum
.
YES_RESULT
.
getName
());
}
v
.
setSourceResult
(
ResultTypeEnum
.
getNameByCode
(
v
.
getResultType
()));
v
.
setUseInnerCode
(
"null"
.
equals
(
v
.
getUseInnerCode
())
?
""
:
v
.
getUseInnerCode
());
v
.
setIds
(
v
.
getSequenceNbr
().
toString
());
// 去掉不使用的字段,防止页面跳转时整行数据加到url上,长度超长
v
.
setEquAddress
(
null
);
v
.
setApplicationUnitName
(
null
);
v
.
setUseUnitName
(
null
);
});
return
resultIPage
;
}
}
\ 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