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
3b9cde15
Commit
3b9cde15
authored
Jul 08, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.报检结果、检验申请的检验类型下拉接口新增
parent
0ecc4b66
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
82 additions
and
15 deletions
+82
-15
JYJCTypeEnum.java
...yeejoin/amos/boot/module/jyjc/api/enums/JYJCTypeEnum.java
+20
-6
JyjcInspectionApplicationMapper.xml
...main/resources/mapper/JyjcInspectionApplicationMapper.xml
+2
-2
JyjcInspectionApplicationController.java
...c/biz/controller/JyjcInspectionApplicationController.java
+8
-0
JyjcInspectionResultController.java
...e/jyjc/biz/controller/JyjcInspectionResultController.java
+8
-0
DisableRuleDataPreparationListener.java
...iz/event/listener/DisableRuleDataPreparationListener.java
+1
-1
JyjcInspectionApplicationServiceImpl.java
...iz/service/impl/JyjcInspectionApplicationServiceImpl.java
+19
-1
JyjcInspectionResultServiceImpl.java
...yjc/biz/service/impl/JyjcInspectionResultServiceImpl.java
+24
-5
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/enums/JYJCTypeEnum.java
View file @
3b9cde15
...
@@ -2,6 +2,11 @@ package com.yeejoin.amos.boot.module.jyjc.api.enums;
...
@@ -2,6 +2,11 @@ package com.yeejoin.amos.boot.module.jyjc.api.enums;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
import
lombok.Getter
;
import
org.apache.commons.lang3.StringUtils
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
/**
* @author LiuLin
* @author LiuLin
...
@@ -14,16 +19,18 @@ public enum JYJCTypeEnum {
...
@@ -14,16 +19,18 @@ public enum JYJCTypeEnum {
/**
/**
* 检验检测类型
* 检验检测类型
*/
*/
DTJC
(
"DTJC"
,
"电梯检测"
,
"jc"
),
DTJC
(
"DTJC"
,
"电梯检测"
,
"jc"
,
BizTypeEnum
.
DETECTION
.
getCode
()
),
DQJY
(
"DQJY"
,
"定期检验"
,
"jy"
),
DQJY
(
"DQJY"
,
"定期检验"
,
"jy"
,
BizTypeEnum
.
FIRST_INSPECTION
.
getCode
()
),
SCJY
(
"SCJY"
,
"首次检验"
,
"jy"
),
SCJY
(
"SCJY"
,
"首次检验"
,
"jy"
,
BizTypeEnum
.
FIRST_INSPECTION
.
getCode
()
),
WXJDJY
(
"WXJDJY"
,
"维修监督检验"
,
"jy"
),
WXJDJY
(
"WXJDJY"
,
"维修监督检验"
,
"jy"
,
BizTypeEnum
.
SUPERVISE
.
getCode
()
),
GZJDJY
(
"GZJDJY"
,
"改造监督检验"
,
"jy"
),
GZJDJY
(
"GZJDJY"
,
"改造监督检验"
,
"jy"
,
BizTypeEnum
.
SUPERVISE
.
getCode
()
),
AZJDJY
(
"AZJDJY"
,
"安装监督检验"
,
"jy"
);
AZJDJY
(
"AZJDJY"
,
"安装监督检验"
,
"jy"
,
BizTypeEnum
.
SUPERVISE
.
getCode
()
);
private
final
String
code
;
private
final
String
code
;
private
final
String
name
;
private
final
String
name
;
private
final
String
openBizType
;
private
final
String
bizType
;
private
final
String
bizType
;
public
static
JYJCTypeEnum
of
(
String
code
)
{
public
static
JYJCTypeEnum
of
(
String
code
)
{
...
@@ -34,4 +41,11 @@ public enum JYJCTypeEnum {
...
@@ -34,4 +41,11 @@ public enum JYJCTypeEnum {
}
}
return
null
;
return
null
;
}
}
public
static
List
<
JYJCTypeEnum
>
getListByBizType
(
String
bizType
)
{
if
(
StringUtils
.
isEmpty
(
bizType
))
{
return
Arrays
.
asList
(
JYJCTypeEnum
.
values
());
}
return
Arrays
.
stream
(
JYJCTypeEnum
.
values
()).
filter
(
e
->
e
.
getBizType
().
equals
(
bizType
)).
collect
(
Collectors
.
toList
());
}
}
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/resources/mapper/JyjcInspectionApplicationMapper.xml
View file @
3b9cde15
...
@@ -80,8 +80,8 @@
...
@@ -80,8 +80,8 @@
<if
test=
"jyjcInspectionApplicationModel.applicationNo != null and jyjcInspectionApplicationModel.applicationNo != ''"
>
<if
test=
"jyjcInspectionApplicationModel.applicationNo != null and jyjcInspectionApplicationModel.applicationNo != ''"
>
and tzjia.application_no like concat('%',#{jyjcInspectionApplicationModel.applicationNo},'%')
and tzjia.application_no like concat('%',#{jyjcInspectionApplicationModel.applicationNo},'%')
</if>
</if>
<if
test=
"jyjcInspectionApplicationModel.inspection
Classify != null and jyjcInspectionApplicationModel.inspectionClassify
!= ''"
>
<if
test=
"jyjcInspectionApplicationModel.inspection
Type != null and jyjcInspectionApplicationModel.inspectionType
!= ''"
>
and tzjia.inspection_
classify = #{jyjcInspectionApplicationModel.inspectionClassify
}
and tzjia.inspection_
type = #{jyjcInspectionApplicationModel.inspectionType
}
</if>
</if>
<if
test=
"jyjcInspectionApplicationModel.equipClassify != null and jyjcInspectionApplicationModel.equipClassify != ''"
>
<if
test=
"jyjcInspectionApplicationModel.equipClassify != null and jyjcInspectionApplicationModel.equipClassify != ''"
>
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/controller/JyjcInspectionApplicationController.java
View file @
3b9cde15
...
@@ -13,6 +13,7 @@ import com.yeejoin.amos.boot.module.jyjc.biz.event.InspectionApplicationPushEven
...
@@ -13,6 +13,7 @@ import com.yeejoin.amos.boot.module.jyjc.biz.event.InspectionApplicationPushEven
import
com.yeejoin.amos.boot.module.jyjc.biz.event.publisher.EventPublisher
;
import
com.yeejoin.amos.boot.module.jyjc.biz.event.publisher.EventPublisher
;
import
com.yeejoin.amos.boot.module.jyjc.biz.service.impl.JyjcInspectionApplicationServiceImpl
;
import
com.yeejoin.amos.boot.module.jyjc.biz.service.impl.JyjcInspectionApplicationServiceImpl
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.TzBaseEnterpriseInfoDto
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.TzBaseEnterpriseInfoDto
;
import
com.yeejoin.amos.feign.systemctl.model.DictionarieModel
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -274,4 +275,11 @@ public class JyjcInspectionApplicationController extends BaseController {
...
@@ -274,4 +275,11 @@ public class JyjcInspectionApplicationController extends BaseController {
public
ResponseModel
<
List
<
TzBaseEnterpriseInfoDto
>>
getInspectionUnitListForWorkbench
(
@RequestParam
String
openBizType
)
{
public
ResponseModel
<
List
<
TzBaseEnterpriseInfoDto
>>
getInspectionUnitListForWorkbench
(
@RequestParam
String
openBizType
)
{
return
ResponseHelper
.
buildResponse
(
jyjcInspectionApplicationServiceImpl
.
getInspectionUnitListForWorkbench
(
openBizType
));
return
ResponseHelper
.
buildResponse
(
jyjcInspectionApplicationServiceImpl
.
getInspectionUnitListForWorkbench
(
openBizType
));
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"检验类型-按照业务查询"
,
notes
=
"检验类型-按照业务查询"
)
@GetMapping
(
value
=
"/{bizType}/inspectType/list"
)
public
ResponseModel
<
List
<
DictionarieModel
>>
inspectTypeListByBizType
(
@PathVariable
String
bizType
){
return
ResponseHelper
.
buildResponse
(
jyjcInspectionApplicationServiceImpl
.
inspectTypeListByBizType
(
bizType
));
}
}
}
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 @
3b9cde15
...
@@ -5,6 +5,7 @@ import com.yeejoin.amos.boot.biz.common.controller.BaseController;
...
@@ -5,6 +5,7 @@ import com.yeejoin.amos.boot.biz.common.controller.BaseController;
import
com.yeejoin.amos.boot.module.jyjc.api.model.JyjcInspectionResultDataModel
;
import
com.yeejoin.amos.boot.module.jyjc.api.model.JyjcInspectionResultDataModel
;
import
com.yeejoin.amos.boot.module.jyjc.api.model.JyjcInspectionResultModel
;
import
com.yeejoin.amos.boot.module.jyjc.api.model.JyjcInspectionResultModel
;
import
com.yeejoin.amos.boot.module.jyjc.biz.service.impl.JyjcInspectionResultServiceImpl
;
import
com.yeejoin.amos.boot.module.jyjc.biz.service.impl.JyjcInspectionResultServiceImpl
;
import
com.yeejoin.amos.feign.systemctl.model.DictionarieModel
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -187,4 +188,11 @@ public class JyjcInspectionResultController extends BaseController {
...
@@ -187,4 +188,11 @@ public class JyjcInspectionResultController extends BaseController {
public
ResponseModel
<
List
<
JyjcInspectionResultDataModel
>>
saveResultDataBatch
(
@RequestBody
List
<
JyjcInspectionResultDataModel
>
resultDataModels
){
public
ResponseModel
<
List
<
JyjcInspectionResultDataModel
>>
saveResultDataBatch
(
@RequestBody
List
<
JyjcInspectionResultDataModel
>
resultDataModels
){
return
ResponseHelper
.
buildResponse
(
jyjcInspectionResultServiceImpl
.
receivePushResultData
(
resultDataModels
));
return
ResponseHelper
.
buildResponse
(
jyjcInspectionResultServiceImpl
.
receivePushResultData
(
resultDataModels
));
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"检验类型-按照身份查询"
,
notes
=
"\"检验类型-按照身份查询"
)
@GetMapping
(
value
=
"/inspectType/list"
)
public
ResponseModel
<
List
<
DictionarieModel
>>
inspectTypeListByPerson
(){
return
ResponseHelper
.
buildResponse
(
jyjcInspectionResultServiceImpl
.
inspectTypeListByPerson
(
getSelectedOrgInfo
()));
}
}
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/event/listener/DisableRuleDataPreparationListener.java
View file @
3b9cde15
...
@@ -86,7 +86,7 @@ public class DisableRuleDataPreparationListener implements ApplicationListener<I
...
@@ -86,7 +86,7 @@ public class DisableRuleDataPreparationListener implements ApplicationListener<I
private
String
getBizTypeByInspectionType
(
String
inspectionType
)
{
private
String
getBizTypeByInspectionType
(
String
inspectionType
)
{
JYJCTypeEnum
jyjcTypeEnum
=
JYJCTypeEnum
.
of
(
inspectionType
);
JYJCTypeEnum
jyjcTypeEnum
=
JYJCTypeEnum
.
of
(
inspectionType
);
if
(
jyjcTypeEnum
!=
null
)
{
if
(
jyjcTypeEnum
!=
null
)
{
return
jyjcTypeEnum
.
getBizType
();
return
jyjcTypeEnum
.
get
Open
BizType
();
}
}
return
OpenBizTypeEnum
.
JY
.
getCode
();
return
OpenBizTypeEnum
.
JY
.
getCode
();
}
}
...
...
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 @
3b9cde15
...
@@ -38,6 +38,7 @@ import com.yeejoin.amos.boot.module.ymt.api.enums.FlowStatusEnum;
...
@@ -38,6 +38,7 @@ import com.yeejoin.amos.boot.module.ymt.api.enums.FlowStatusEnum;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.IdxBizJgUseInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.IdxBizJgUseInfoMapper
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.model.CompanyModel
;
import
com.yeejoin.amos.feign.privilege.model.CompanyModel
;
import
com.yeejoin.amos.feign.systemctl.model.DictionarieModel
;
import
com.yeejoin.amos.feign.systemctl.model.TaskV2Model
;
import
com.yeejoin.amos.feign.systemctl.model.TaskV2Model
;
import
com.yeejoin.amos.feign.workflow.model.ActWorkflowBatchDTO
;
import
com.yeejoin.amos.feign.workflow.model.ActWorkflowBatchDTO
;
import
com.yeejoin.amos.feign.workflow.model.ActWorkflowStartDTO
;
import
com.yeejoin.amos.feign.workflow.model.ActWorkflowStartDTO
;
...
@@ -71,8 +72,8 @@ import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
...
@@ -71,8 +72,8 @@ import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
javax.validation.constraints.NotNull
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.lang.reflect.Field
;
import
java.util.*
;
import
java.util.*
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.TimeUnit
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -1309,4 +1310,20 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -1309,4 +1310,20 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
public
List
<
TzBaseEnterpriseInfoDto
>
getInspectionUnitListForWorkbench
(
String
openBizType
)
{
public
List
<
TzBaseEnterpriseInfoDto
>
getInspectionUnitListForWorkbench
(
String
openBizType
)
{
return
commonService
.
getInspectionUnitList
(
openBizType
);
return
commonService
.
getInspectionUnitList
(
openBizType
);
}
}
public
List
<
DictionarieModel
>
inspectTypeListByBizType
(
String
bizType
)
{
return
getDictionarieModels
(
bizType
);
}
@NotNull
public
static
List
<
DictionarieModel
>
getDictionarieModels
(
String
bizType
)
{
List
<
JYJCTypeEnum
>
enums
=
JYJCTypeEnum
.
getListByBizType
(
bizType
);
return
enums
.
stream
().
map
(
e
->
{
DictionarieModel
dictionarieModel
=
new
DictionarieModel
();
dictionarieModel
.
setDictCode
(
e
.
getCode
());
dictionarieModel
.
setDictName
(
e
.
getName
());
return
dictionarieModel
;
}).
collect
(
Collectors
.
toList
());
}
}
}
\ No newline at end of file
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 @
3b9cde15
...
@@ -16,7 +16,9 @@ import com.yeejoin.amos.boot.module.jyjc.api.common.StringUtil;
...
@@ -16,7 +16,9 @@ import com.yeejoin.amos.boot.module.jyjc.api.common.StringUtil;
import
com.yeejoin.amos.boot.module.jyjc.api.entity.JyjcInspectionResult
;
import
com.yeejoin.amos.boot.module.jyjc.api.entity.JyjcInspectionResult
;
import
com.yeejoin.amos.boot.module.jyjc.api.entity.JyjcInspectionResultAttachment
;
import
com.yeejoin.amos.boot.module.jyjc.api.entity.JyjcInspectionResultAttachment
;
import
com.yeejoin.amos.boot.module.jyjc.api.entity.JyjcInspectionResultParam
;
import
com.yeejoin.amos.boot.module.jyjc.api.entity.JyjcInspectionResultParam
;
import
com.yeejoin.amos.boot.module.jyjc.api.enums.BizTypeEnum
;
import
com.yeejoin.amos.boot.module.jyjc.api.enums.EquipCategoryEnum
;
import
com.yeejoin.amos.boot.module.jyjc.api.enums.EquipCategoryEnum
;
import
com.yeejoin.amos.boot.module.jyjc.api.enums.JYJCTypeEnum
;
import
com.yeejoin.amos.boot.module.jyjc.api.enums.ResultStatusEnum
;
import
com.yeejoin.amos.boot.module.jyjc.api.enums.ResultStatusEnum
;
import
com.yeejoin.amos.boot.module.jyjc.api.mapper.JyjcInspectionResultMapper
;
import
com.yeejoin.amos.boot.module.jyjc.api.mapper.JyjcInspectionResultMapper
;
import
com.yeejoin.amos.boot.module.jyjc.api.model.JyjcInspectionResultDataModel
;
import
com.yeejoin.amos.boot.module.jyjc.api.model.JyjcInspectionResultDataModel
;
...
@@ -33,6 +35,7 @@ import com.yeejoin.amos.boot.module.ymt.api.entity.InspectionDetectionInfo;
...
@@ -33,6 +35,7 @@ import com.yeejoin.amos.boot.module.ymt.api.entity.InspectionDetectionInfo;
import
com.yeejoin.amos.boot.module.ymt.api.entity.TzsUserInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.TzsUserInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.EquipmentClassifityEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.EquipmentClassifityEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.*
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.*
;
import
com.yeejoin.amos.feign.systemctl.model.DictionarieModel
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
...
@@ -187,6 +190,16 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
...
@@ -187,6 +190,16 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
return
"no"
;
return
"no"
;
}
}
static
String
getPersonIdentityByType
(
String
companyType
)
{
if
(
"使用单位"
.
equals
(
companyType
))
{
return
BizTypeEnum
.
FIRST_INSPECTION
.
getCode
();
}
else
if
(
"安装改造维修单位"
.
equals
(
companyType
))
{
return
BizTypeEnum
.
SUPERVISE
.
getCode
();
}
else
{
return
""
;
}
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
JyjcInspectionResultModel
updateJyjcInspectionResult
(
Map
<
String
,
Map
<
String
,
Object
>>
tableModel
)
{
public
JyjcInspectionResultModel
updateJyjcInspectionResult
(
Map
<
String
,
Map
<
String
,
Object
>>
tableModel
)
{
...
@@ -409,11 +422,11 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
...
@@ -409,11 +422,11 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
private
void
deleteAndCreateSubTable
(
Map
<
String
,
JyjcInspectionResult
>
resultListMap
,
List
<
JyjcInspectionResultAttachment
>
resultAttachments
,
List
<
JyjcInspectionResultParam
>
resultParams
)
{
private
void
deleteAndCreateSubTable
(
Map
<
String
,
JyjcInspectionResult
>
resultListMap
,
List
<
JyjcInspectionResultAttachment
>
resultAttachments
,
List
<
JyjcInspectionResultParam
>
resultParams
)
{
List
<
JyjcInspectionResult
>
resultList
=
new
ArrayList
<>(
resultListMap
.
values
());
List
<
JyjcInspectionResult
>
resultList
=
new
ArrayList
<>(
resultListMap
.
values
());
List
<
Long
>
resultIds
=
resultList
.
stream
().
map
(
BaseEntity:
:
getSequenceNbr
).
collect
(
Collectors
.
toList
());
List
<
Long
>
resultIds
=
resultList
.
stream
().
map
(
BaseEntity:
:
getSequenceNbr
).
collect
(
Collectors
.
toList
());
if
(
resultAttachments
.
size
()
>
0
)
{
if
(
resultAttachments
.
size
()
>
0
)
{
attachmentService
.
remove
(
new
LambdaQueryWrapper
<
JyjcInspectionResultAttachment
>().
in
(
JyjcInspectionResultAttachment:
:
getResultSeq
,
resultIds
));
attachmentService
.
remove
(
new
LambdaQueryWrapper
<
JyjcInspectionResultAttachment
>().
in
(
JyjcInspectionResultAttachment:
:
getResultSeq
,
resultIds
));
attachmentService
.
saveBatch
(
resultAttachments
);
attachmentService
.
saveBatch
(
resultAttachments
);
}
}
if
(
resultParams
.
size
()
>
0
)
{
if
(
resultParams
.
size
()
>
0
)
{
resultParamService
.
remove
(
new
LambdaQueryWrapper
<
JyjcInspectionResultParam
>().
in
(
JyjcInspectionResultParam:
:
getResultSeq
,
resultIds
));
resultParamService
.
remove
(
new
LambdaQueryWrapper
<
JyjcInspectionResultParam
>().
in
(
JyjcInspectionResultParam:
:
getResultSeq
,
resultIds
));
resultParamService
.
saveBatch
(
resultParams
);
resultParamService
.
saveBatch
(
resultParams
);
}
}
...
@@ -470,7 +483,7 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
...
@@ -470,7 +483,7 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
}
}
private
String
getUserSeqByPersonCode
(
String
innerPersonCode
)
{
private
String
getUserSeqByPersonCode
(
String
innerPersonCode
)
{
if
(
StrUtil
.
isNotEmpty
(
innerPersonCode
))
{
if
(
StrUtil
.
isNotEmpty
(
innerPersonCode
))
{
List
<
TzsUserInfo
>
tzsUserInfos
=
tzsUserInfoMapper
.
selectList
(
new
LambdaQueryWrapper
<
TzsUserInfo
>().
in
(
TzsUserInfo:
:
getInnerPersonCode
,
Arrays
.
asList
(
innerPersonCode
.
split
(
","
))));
List
<
TzsUserInfo
>
tzsUserInfos
=
tzsUserInfoMapper
.
selectList
(
new
LambdaQueryWrapper
<
TzsUserInfo
>().
in
(
TzsUserInfo:
:
getInnerPersonCode
,
Arrays
.
asList
(
innerPersonCode
.
split
(
","
))));
return
tzsUserInfos
.
stream
().
map
(
u
->
u
.
getSequenceNbr
()
+
""
).
collect
(
Collectors
.
joining
(
","
));
return
tzsUserInfos
.
stream
().
map
(
u
->
u
.
getSequenceNbr
()
+
""
).
collect
(
Collectors
.
joining
(
","
));
}
}
...
@@ -485,6 +498,11 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
...
@@ -485,6 +498,11 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
wrapper
.
in
(
JyjcInspectionResult:
:
getApplicationNo
,
applicationNos
);
wrapper
.
in
(
JyjcInspectionResult:
:
getApplicationNo
,
applicationNos
);
wrapper
.
in
(
JyjcInspectionResult:
:
getSupervisoryCode
,
supervisoryCodes
);
wrapper
.
in
(
JyjcInspectionResult:
:
getSupervisoryCode
,
supervisoryCodes
);
List
<
JyjcInspectionResult
>
resultList
=
this
.
list
(
wrapper
);
List
<
JyjcInspectionResult
>
resultList
=
this
.
list
(
wrapper
);
return
resultList
.
stream
().
collect
(
Collectors
.
toMap
((
c
)->
c
.
getApplicationNo
()
+
":"
+
c
.
getSupervisoryCode
(),
Function
.
identity
()));
return
resultList
.
stream
().
collect
(
Collectors
.
toMap
((
c
)
->
c
.
getApplicationNo
()
+
":"
+
c
.
getSupervisoryCode
(),
Function
.
identity
()));
}
public
List
<
DictionarieModel
>
inspectTypeListByPerson
(
ReginParams
selectedOrgInfo
)
{
String
group
=
getPersonIdentityByType
(
selectedOrgInfo
.
getCompany
().
getCompanyType
());
return
JyjcInspectionApplicationServiceImpl
.
getDictionarieModels
(
group
);
}
}
}
}
\ 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