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
a19fb881
Commit
a19fb881
authored
Jan 30, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
f59931b7
df725516
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
249 additions
and
68 deletions
+249
-68
JgInstallationNoticeDto.java
.../amos/boot/module/jg/api/dto/JgInstallationNoticeDto.java
+13
-0
JgInstallationNotice.java
.../amos/boot/module/jg/api/entity/JgInstallationNotice.java
+12
-0
JgChangeRegistrationNameMapper.xml
.../main/resources/mapper/JgChangeRegistrationNameMapper.xml
+1
-1
JgChangeRegistrationReformMapper.xml
...ain/resources/mapper/JgChangeRegistrationReformMapper.xml
+2
-1
JgChangeRegistrationTransferMapper.xml
...n/resources/mapper/JgChangeRegistrationTransferMapper.xml
+1
-1
JgChangeRegistrationUnitMapper.xml
.../main/resources/mapper/JgChangeRegistrationUnitMapper.xml
+1
-1
JgEnableDisableMapper.xml
...g-api/src/main/resources/mapper/JgEnableDisableMapper.xml
+1
-1
JgEquipTransferMapper.xml
...g-api/src/main/resources/mapper/JgEquipTransferMapper.xml
+1
-1
JgInstallationNoticeMapper.xml
.../src/main/resources/mapper/JgInstallationNoticeMapper.xml
+6
-3
JgMaintainNoticeMapper.xml
...-api/src/main/resources/mapper/JgMaintainNoticeMapper.xml
+1
-1
JgMaintenanceContractMapper.xml
...src/main/resources/mapper/JgMaintenanceContractMapper.xml
+1
-2
JgReformNoticeMapper.xml
...jg-api/src/main/resources/mapper/JgReformNoticeMapper.xml
+1
-1
JgTransferNoticeMapper.xml
...-api/src/main/resources/mapper/JgTransferNoticeMapper.xml
+2
-2
JgUseRegistrationMapper.xml
...api/src/main/resources/mapper/JgUseRegistrationMapper.xml
+4
-3
CommonController.java
.../amos/boot/module/jg/biz/controller/CommonController.java
+34
-1
JgInstallationNoticeController.java
...ule/jg/biz/controller/JgInstallationNoticeController.java
+1
-0
ICommonService.java
...ejoin/amos/boot/module/jg/biz/service/ICommonService.java
+6
-0
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+26
-0
JgChangeRegistrationReformServiceImpl.java
...z/service/impl/JgChangeRegistrationReformServiceImpl.java
+1
-1
JgChangeRegistrationTransferServiceImpl.java
...service/impl/JgChangeRegistrationTransferServiceImpl.java
+1
-1
JgEnableDisableServiceImpl.java
...odule/jg/biz/service/impl/JgEnableDisableServiceImpl.java
+0
-3
JgInstallationNoticeServiceImpl.java
.../jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
+43
-0
JgMaintainNoticeServiceImpl.java
...dule/jg/biz/service/impl/JgMaintainNoticeServiceImpl.java
+1
-0
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+6
-0
equipment-registration-certificate-report.ftl
...s/templates/equipment-registration-certificate-report.ftl
+28
-28
JyjcInspectionApplicationModel.java
...module/jyjc/api/model/JyjcInspectionApplicationModel.java
+9
-2
JyjcOpeningApplicationModel.java
...ot/module/jyjc/api/model/JyjcOpeningApplicationModel.java
+2
-1
JyjcInspectionResultController.java
...e/jyjc/biz/controller/JyjcInspectionResultController.java
+1
-1
JyjcInspectionApplicationServiceImpl.java
...iz/service/impl/JyjcInspectionApplicationServiceImpl.java
+20
-11
JyjcInspectionResultServiceImpl.java
...yjc/biz/service/impl/JyjcInspectionResultServiceImpl.java
+11
-1
IdxBizJgInspectionDetectionInfo.java
...odule/ymt/api/entity/IdxBizJgInspectionDetectionInfo.java
+6
-0
InspectionDetectionInfo.java
...s/boot/module/ymt/api/entity/InspectionDetectionInfo.java
+6
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/dto/JgInstallationNoticeDto.java
View file @
a19fb881
...
...
@@ -101,6 +101,9 @@ public class JgInstallationNoticeDto extends BaseDto {
@ApiModelProperty
(
value
=
"产权单位"
)
private
String
propertyUnitName
;
@ApiModelProperty
(
"产权单位统一信用代码"
)
private
String
propertyUnitCreditCode
;
@ApiModelProperty
(
value
=
"使用单位id"
)
private
String
useUnitCreditCode
;
...
...
@@ -266,4 +269,14 @@ public class JgInstallationNoticeDto extends BaseDto {
private
String
transferToUserIds
;
/**
* 属地监管部门code
*/
private
String
orgBranchCode
;
/**
* '属地监管部门name'
*/
private
String
orgBranchName
;
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/JgInstallationNotice.java
View file @
a19fb881
...
...
@@ -429,4 +429,16 @@ public class JgInstallationNotice extends BaseEntity {
@TableField
(
value
=
"transfer_to_user_ids"
)
private
String
transferToUserIds
;
/**
* 属地监管部门code
*/
@TableField
(
value
=
"org_branch_code"
)
private
String
orgBranchCode
;
/**
* 属地监管部门name
*/
@TableField
(
value
=
"org_branch_name"
)
private
String
orgBranchName
;
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgChangeRegistrationNameMapper.xml
View file @
a19fb881
...
...
@@ -63,7 +63,7 @@
<if
test=
"dto.type == 'company'"
>
and ur.use_unit_credit_code = #{dto.useUnitCreditCode}
</if>
and (1=1 or ur.transfer_to_user_ids like concat('%',#{currentUserId},'%')
)
OR (ur.transfer_to_user_ids LIKE concat ('%', #{currentUserId}, '%') AND ur.is_delete = 0
)
</where>
order by ur.rec_date desc
</select>
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgChangeRegistrationReformMapper.xml
View file @
a19fb881
...
...
@@ -60,7 +60,7 @@
and ur.use_unit_credit_code = #{dto.useUnitCreditCode}
</if>
<if
test=
"currentUserId != null and currentUserId != '' "
>
or
ur.transfer_to_user_ids like concat('%',#{currentUserId},'%'
)
or
(ur.transfer_to_user_ids like concat('%',#{currentUserId},'%') and ur.is_delete = 0
)
</if>
</where>
order by ur.rec_date desc
...
...
@@ -164,6 +164,7 @@
ur.apply_no as applyNo,
ifnull(ur.next_executor_ids,'') as nextExecutorIds,
ur.promoter,
ur.supervisory_code as supervisoryCode,
ur.next_execute_user_ids as nextExecuteUserIds
from tzs_jg_change_registration_reform ur
LEFT JOIN tzs_jg_change_registration_reform_eq re on ur.sequence_nbr = re.equip_transfer_id
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgChangeRegistrationTransferMapper.xml
View file @
a19fb881
...
...
@@ -64,7 +64,7 @@
AND crt.use_unit_credit_code = #{dto.unitCode}
</if>
<if
test=
"currentUserId != null and currentUserId != '' "
>
or
crt.transfer_to_user_ids like concat('%',#{currentUserId},'%'
)
or
(crt.transfer_to_user_ids like concat('%',#{currentUserId},'%') and crt.is_delete = 0
)
</if>
</where>
order by crt.rec_date desc
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgChangeRegistrationUnitMapper.xml
View file @
a19fb881
...
...
@@ -58,7 +58,7 @@
instance_status like concat('%',#{role},'%')
</foreach>
</if>
and (1=1 or isn.transfer_to_user_ids like concat('%',#{currentUserId},'%')
)
OR (isn.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' ) and isn.is_delete = false
)
</where>
ORDER BY
isn.create_date DESC, isn.apply_no DESC
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgEnableDisableMapper.xml
View file @
a19fb881
...
...
@@ -55,7 +55,7 @@
<if
test=
"dto.applyType != null and dto.applyType != ''"
>
and jed.apply_type = #{dto.applyType}
</if>
or jed.transfer_to_user_ids like concat('%',#{userId},'%'
)
OR (jed.transfer_to_user_ids like concat('%',#{userId},'%') AND jed.is_delete = 0
)
</where>
order by jed.rec_date desc
</select>
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgEquipTransferMapper.xml
View file @
a19fb881
...
...
@@ -106,7 +106,7 @@
</if>
</otherwise>
</choose>
and (1=1 or jet.transfer_to_user_ids like concat('%',#{currentUserId},'%')
)
OR (jet.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' ) AND jet.is_delete = 0
)
</where>
ORDER BY jet.apply_date DESC
</select>
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgInstallationNoticeMapper.xml
View file @
a19fb881
...
...
@@ -24,18 +24,20 @@
isn.instance_status AS instanceStatus,
<!-- isn.equ_address AS equAddress,-->
isn.handle_date AS handleDate,
isn.equ_list AS equList,
<!-- isn.equ_list AS equList,-->
ec.name AS equList,
isn.notice_report_url AS noticeReportUrl,
isn.create_user_id as createUserId,
isn.next_task
I
d AS nextTaskId,
isn.next_task
_i
d AS nextTaskId,
isn.next_execute_user_ids as nextExecuteUserIds,
concat(ibjui."PROVINCE_NAME", '', ibjui."CITY_NAME", '', ibjui."COUNTY_NAME", '', ibjui."STREET_NAME", '', ibjui."ADDRESS") as equAddress
FROM tzs_jg_installation_notice isn
LEFT JOIN tzs_jg_installation_notice_eq insEq on insEq.equip_transfer_id = isn.sequence_nbr
LEFT JOIN idx_biz_jg_use_info ibjui on insEq.equ_id = ibjui.RECORD
LEFT JOIN idx_biz_jg_register_info ri ON ri.record = insEq.equ_id
LEFT JOIN tz_equipment_category ec ON ec.code = ri.equ_category
<where>
isn.is_delete = false
AND (1=1 or isn.transfer_to_user_ids like concat('%',#{currentUserId},'%'))
<if
test=
"param != null "
>
<if
test=
"param.applyNo != null and param.applyNo != ''"
>
AND isn.apply_no LIKE CONCAT('%', #{param.applyNo}, '%')
...
...
@@ -66,6 +68,7 @@
or
AND isn.install_unit_credit_code = #{orgCode})
</if>
or (isn.is_delete = false and isn.transfer_to_user_ids like concat('%',#{param.transferToUserIds},'%'))
</where>
ORDER BY
isn.create_date DESC
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgMaintainNoticeMapper.xml
View file @
a19fb881
...
...
@@ -48,7 +48,7 @@
<if
test=
"type == 'company'"
>
AND isn.install_unit_credit_code = #{orgCode}
</if>
or isn.transfer_to_user_ids like concat('%',#{userId},'%'
)
OR (isn.transfer_to_user_ids like concat('%',#{userId},'%') AND isn.is_delete = 0
)
</where>
ORDER BY
isn.apply_no DESC
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgMaintenanceContractMapper.xml
View file @
a19fb881
...
...
@@ -175,8 +175,7 @@
and receive_org_code = #{contractDto.receiveOrgCodeFilter}
</if>
-- 转办隔离逻辑
and (1=1 or transfer_to_user_ids like concat('%',#{currentUserId},'%'))
OR (transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' ) and is_delete = 0)
-- 数据过滤结束 ----------------------------------------------------
</where>
order by apply_no desc
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgReformNoticeMapper.xml
View file @
a19fb881
...
...
@@ -68,7 +68,7 @@
<if
test=
"type == 'company'"
>
AND isn.install_unit_credit_code = #{orgCode}
</if>
and (1=1 or isn.transfer_to_user_ids like concat('%',#{currentUserId},'%')
)
OR (isn.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' ) AND isn.is_delete = 0
)
</where>
ORDER BY
isn.apply_no DESC
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgTransferNoticeMapper.xml
View file @
a19fb881
...
...
@@ -28,7 +28,7 @@
tjtn.create_user_id as createUserId,
tjtn.next_execute_user_ids as nextExecuteUserIds,
oi.SUPERVISORY_CODE as supervisoryCode,
tjtn.next_task
I
d AS nextTaskId,
tjtn.next_task
_i
d AS nextTaskId,
concat(ibjui."PROVINCE_NAME", '', ibjui."CITY_NAME", '', ibjui."COUNTY_NAME", '', ibjui."STREET_NAME", '', ibjui."ADDRESS") as equAddress
FROM
tzs_jg_transfer_notice tjtn
...
...
@@ -39,7 +39,6 @@
left join idx_biz_jg_other_info oi on oi.RECORD = re.equ_id
<where>
tjtn.is_delete = false
AND (1=1 or tjtn.transfer_to_user_ids like concat('%',#{currentUserId},'%'))
<if
test=
"param != null "
>
<if
test=
"param.applyNo != null and param.applyNo != ''"
>
AND tjtn.apply_no LIKE CONCAT('%', #{param.applyNo}, '%')
...
...
@@ -88,6 +87,7 @@
or
AND tjtn.install_unit_credit_code = #{orgCode})
</if>
or (tjtn.is_delete = false and tjtn.transfer_to_user_ids like concat('%',#{param.transferToUserIds},'%'))
</where>
ORDER BY
tjtn.apply_no DESC
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgUseRegistrationMapper.xml
View file @
a19fb881
...
...
@@ -39,7 +39,6 @@
LEFT JOIN idx_biz_jg_other_info other on re.equ_id = other.RECORD
<where>
and ur.is_delete = 0 and (1=1 or ur.transfer_to_user_ids like concat('%',#{dto.currentUserId},'%'))
<if
test=
"dto.equCategory != null and dto.equCategory != ''"
>
and jri.EQU_CATEGORY = #{dto.equCategory}
</if>
...
...
@@ -63,6 +62,7 @@
<if
test=
"dto.dataType == 'company' "
>
and ur.use_unit_credit_code = #{dto.unitCode}
</if>
OR (ur.transfer_to_user_ids LIKE concat ( '%', #{dto.currentUserId}, '%' ) AND ur.is_delete = 0 )
</where>
order by ur.rec_date desc
</select>
...
...
@@ -121,8 +121,9 @@
SAFETY_MANAGER as safetyManager,
SAFETY_MANAGER_CODE as safetyManagerCode,
PHONE as phone,
ESTATE_UNIT_NAME as estateUnitName,
ESTATE_UNIT_CREDIT_CODE as estateUnitCreditCode,
concat(ESTATE_UNIT_CREDIT_CODE, '_', ESTATE_UNIT_NAME) as estateUnitName,
-- ESTATE_UNIT_NAME as estateUnitName,
-- ESTATE_UNIT_CREDIT_CODE as estateUnitCreditCode,
ADDRESS as address,
PROVINCE as province,
CITY as city,
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/CommonController.java
View file @
a19fb881
...
...
@@ -10,6 +10,7 @@ import com.yeejoin.amos.boot.module.ymt.api.enums.FlowStatusEnum;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
...
...
@@ -228,7 +229,39 @@ public class CommonController extends BaseController {
@GetMapping
(
value
=
"/getCreatTree"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取管辖分局树"
,
notes
=
"获取管辖分局树"
)
public
ResponseModel
<
Object
>
getCreatTree
()
{
return
ResponseHelper
.
buildResponse
(
commonService
.
creatTree
());
return
ResponseHelper
.
buildResponse
(
commonService
.
getCreatTree
());
}
/**
* 获取管辖分局树
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/getCreatTreeByInstallation"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取管辖分局树安装告知使用"
,
notes
=
"获取管辖分局树安装告知使用"
)
public
ResponseModel
<
Object
>
getCreatTreeByInstallation
(
String
county
)
{
List
<
LinkedHashMap
>
creatTree
=
commonService
.
getCreatTreeByInstallation
();
String
code
=
county
.
split
(
"_"
)[
0
];
List
<
LinkedHashMap
>
infoByCounty
=
getInfoByCounty
(
code
,
creatTree
);
return
ResponseHelper
.
buildResponse
(
infoByCounty
);
}
private
List
<
LinkedHashMap
>
getInfoByCounty
(
String
county
,
List
<
LinkedHashMap
>
children
)
{
for
(
LinkedHashMap
item
:
children
)
{
if
(
item
.
get
(
"level"
).
toString
().
equals
(
"county"
)
&&
item
.
get
(
"companyCode"
).
toString
().
equals
(
county
))
{
return
(
List
<
LinkedHashMap
>)
item
.
get
(
"children"
);
}
else
{
if
(!
ObjectUtils
.
isEmpty
(
item
.
get
(
"children"
)))
{
List
<
LinkedHashMap
>
children1
=
getInfoByCounty
(
county
,
(
List
<
LinkedHashMap
>)
item
.
get
(
"children"
));
if
(!
CollectionUtils
.
isEmpty
(
children1
))
{
return
children1
;
}
}
}
}
return
new
ArrayList
<>();
}
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgInstallationNoticeController.java
View file @
a19fb881
...
...
@@ -69,6 +69,7 @@ public class JgInstallationNoticeController extends BaseController {
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新安装告知"
,
notes
=
"根据sequenceNbr更新安装告知"
)
public
ResponseModel
<
JgInstallationNoticeDto
>
updateBySequenceNbrJgInstallationNotice
(
@RequestParam
String
submitType
,
@RequestBody
Map
<
String
,
Object
>
model
,
@RequestParam
(
value
=
"op"
,
required
=
false
)
String
op
)
{
JgInstallationNoticeDto
installationInfo
=
BeanUtil
.
mapToBean
(((
LinkedHashMap
)
model
.
get
(
"installationInfo"
)),
JgInstallationNoticeDto
.
class
,
true
);
installationInfo
.
setEquList
(((
LinkedHashMap
<?,
?>)
model
.
get
(
"installationInfo"
)).
get
(
"equListDesc"
).
toString
());
if
(
Objects
.
isNull
(
installationInfo
))
{
throw
new
IllegalArgumentException
(
"参数installationInfo不能为空"
);
}
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/ICommonService.java
View file @
a19fb881
...
...
@@ -47,4 +47,10 @@ public interface ICommonService {
Object
getCompanyUser
(
Long
companyId
);
Object
transfer
(
Map
<
String
,
Object
>
obj
);
List
<
LinkedHashMap
>
getCreatTree
();
List
<
LinkedHashMap
>
getCreatTreeByInstallation
();
List
<
LinkedHashMap
>
getCreatTreeByInstallationTree
();
}
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/CommonServiceImpl.java
View file @
a19fb881
...
...
@@ -277,6 +277,32 @@ public class CommonServiceImpl implements ICommonService {
@Override
public
List
<
LinkedHashMap
>
getCreatTree
()
{
List
<
LinkedHashMap
>
result
=
(
List
<
LinkedHashMap
>)
redisUtils
.
get
(
REGULATOR_UNIT_TREE
);
//判断redis是否存在管辖机构树
return
!
ObjectUtils
.
isEmpty
(
result
)
?
result
:
creatTree
();
}
@Override
public
List
<
LinkedHashMap
>
getCreatTreeByInstallation
()
{
List
<
LinkedHashMap
>
result
=
(
List
<
LinkedHashMap
>)
redisUtils
.
get
(
REGULATOR_UNIT_TREE
);
//判断redis是否存在管辖机构树
return
!
ObjectUtils
.
isEmpty
(
result
)
?
result
:
getCreatTreeByInstallationTree
();
}
@Override
public
List
<
LinkedHashMap
>
getCreatTreeByInstallationTree
()
{
FeignClientResult
tree
=
privilegeFeginService
.
queryAgencyTreeForCache
(
RequestContext
.
getToken
(),
RequestContext
.
getAppKey
(),
RequestContext
.
getProduct
());
List
<
LinkedHashMap
>
result
=
(
List
<
LinkedHashMap
>)
tree
.
getResult
();
List
<
LinkedHashMap
>
treeData
=
deleteTreeData
(
result
,
REGULATOR_UNIT
);
List
<
LinkedHashMap
>
supervisionTree
=
treeData
.
stream
().
filter
(
e
->
code
.
equals
(
e
.
get
(
"orgCode"
))).
collect
(
Collectors
.
toList
());
List
<
LinkedHashMap
>
resultTree
=
updateNullChildren
(
supervisionTree
);
redisUtils
.
set
(
REGULATOR_UNIT_TREE
,
resultTree
);
return
resultTree
;
}
@Override
public
List
<
LinkedHashMap
>
getTree
(
ReginParams
reginParams
)
{
// 企业逻辑
if
(
reginParams
.
getCompany
().
getLevel
().
equals
(
BaseController
.
COMPANY_TYPE_COMPANY
))
{
...
...
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/JgChangeRegistrationReformServiceImpl.java
View file @
a19fb881
...
...
@@ -180,7 +180,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
jgRegistrationHistory
.
setSupervisoryCode
(
supervisoryCode
);
//数据状态
jgChangeRegistrationReform
.
setUseRegistrationCode
(
jgRegistrationHistory
.
getUseRegistrationCode
());
String
equipListName
=
this
.
getBaseMapper
().
getEquiplistNameByEquiplist
(
Optional
.
ofNullable
(
map
.
get
(
"equList"
).
toString
()).
orElse
(
" "
)
);
String
equipListName
=
Optional
.
ofNullable
(
map
.
get
(
"equListDesc"
).
toString
()).
orElse
(
" "
);
jgChangeRegistrationReform
.
setEquipListName
(
equipListName
);
jgChangeRegistrationReform
.
setCreateUserId
(
reginParams
.
getUserModel
().
getUserId
());
jgChangeRegistrationReform
.
setCreateUserName
(
reginParams
.
getUserModel
().
getRealName
());
...
...
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/JgChangeRegistrationTransferServiceImpl.java
View file @
a19fb881
...
...
@@ -337,7 +337,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
this
.
flowExecute
(
oldTransfer
.
getSequenceNbr
(),
oldTransfer
.
getInstanceId
(),
"0"
,
""
);
}
else
{
// 如果是新启动的流程开启自动访问
String
equipListName
=
this
.
getBaseMapper
().
getEquiplistNameByEquiplist
(
Optional
.
ofNullable
(
tableData
.
get
(
"equList"
).
toString
()).
orElse
(
" "
)
);
String
equipListName
=
Optional
.
ofNullable
(
tableData
.
get
(
"equListDesc"
).
toString
()).
orElse
(
" "
);
oldTransfer
.
setAuditStatus
(
WorkFlowStatusEnum
.
TRANSFER_RECEIVE
.
getPass
());
oldTransfer
.
setStatus
(
WorkFlowStatusEnum
.
TRANSFER_RECEIVE
.
getPass
());
oldTransfer
.
setEquipListName
(
equipListName
);
...
...
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/JgEnableDisableServiceImpl.java
View file @
a19fb881
...
...
@@ -599,9 +599,6 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
JgEnableDisableEq
jgEnableDisableEq
=
jgEnableDisableEqMapper
.
selectOne
(
new
LambdaQueryWrapper
<
JgEnableDisableEq
>().
eq
(
JgEnableDisableEq:
:
getEnableDisableApplyId
,
sequenceNbr
));
if
(!
ObjectUtils
.
isEmpty
(
jgEnableDisableEq
)){
Map
<
String
,
Object
>
map
=
idxBizJgRegisterInfoService
.
getDetailFieldCamelCaseByRecord
(
jgEnableDisableEq
.
getEquId
());
map
.
put
(
"equListDesc"
,
map
.
get
(
"equList"
));
map
.
put
(
"equCategoryDesc"
,
map
.
get
(
"equCategory"
));
map
.
put
(
"equDefineDesc"
,
map
.
get
(
"equDefine"
));
String
[]
fields
=
{
"productPhoto"
,
"designDoc"
,
"designStandard"
,
"factoryStandard"
,
"productQualityYieldProve"
,
"insUseMaintainExplain"
,
"inspectReport"
,
"proxyStatementAttachment"
,
"installContractAttachment"
};
for
(
String
s
:
fields
)
{
...
...
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 @
a19fb881
...
...
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.dao.mapper.DataDictionaryMapper
;
...
...
@@ -124,6 +125,9 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
SupervisoryCodeInfoMapper
supervisoryCodeInfoMapper
;
@Autowired
SuperviseInfoMapper
superviseInfoMapper
;
@Autowired
IIdxBizJgConstructionInfoService
constructionInfoService
;
@Autowired
...
...
@@ -184,6 +188,13 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
if
(!
ValidationUtil
.
isEmpty
(
notice
.
getFactoryUseSiteStreet
())
&&
!
ValidationUtil
.
isEmpty
(
notice
.
getStreetName
()))
{
installationInfo
.
put
(
"factoryUseSiteStreet"
,
notice
.
getFactoryUseSiteStreet
()
+
"_"
+
notice
.
getStreetName
());
}
if
(!
ValidationUtil
.
isEmpty
(
notice
.
getOrgBranchCode
())
&&
!
ValidationUtil
.
isEmpty
(
notice
.
getOrgBranchName
()))
{
installationInfo
.
put
(
"orgBranchCode"
,
notice
.
getOrgBranchCode
()
+
"_"
+
notice
.
getOrgBranchName
());
}
if
(!
ValidationUtil
.
isEmpty
(
notice
.
getPropertyUnitCreditCode
())
&&
!
ValidationUtil
.
isEmpty
(
notice
.
getPropertyUnitName
()))
{
installationInfo
.
put
(
"propertyUnitName"
,
notice
.
getPropertyUnitCreditCode
()
+
"_"
+
notice
.
getPropertyUnitName
());
}
String
[]
fields
=
{
"productPhoto"
,
"designDoc"
,
"designStandard"
,
"factoryStandard"
,
"productQualityYieldProve"
,
"insUseMaintainExplain"
,
"inspectReport"
,
...
...
@@ -685,6 +696,16 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
}
}
String
propertyUnitName
=
model
.
getPropertyUnitName
();
if
(!
ObjectUtils
.
isEmpty
(
propertyUnitName
))
{
String
[]
split
=
propertyUnitName
.
split
(
"_"
);
if
(
split
.
length
>
1
)
{
model
.
setPropertyUnitCreditCode
(
split
[
0
]);
model
.
setPropertyUnitName
(
split
[
1
]);
}
}
String
county
=
model
.
getCounty
();
if
(!
ObjectUtils
.
isEmpty
(
county
))
{
String
[]
countyList
=
county
.
split
(
"_"
);
...
...
@@ -703,6 +724,15 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
}
}
String
branchCodeString
=
model
.
getOrgBranchCode
();
if
(!
ObjectUtils
.
isEmpty
(
branchCodeString
))
{
String
[]
branchCodeStringList
=
branchCodeString
.
split
(
"_"
);
if
(
branchCodeStringList
.
length
>
1
)
{
model
.
setOrgBranchCode
(
branchCodeStringList
[
0
]);
model
.
setOrgBranchName
(
branchCodeStringList
[
1
]);
}
}
// 分割单位
String
useUnitId
=
model
.
getUseUnitCreditCode
();
if
(!
ObjectUtils
.
isEmpty
(
useUnitId
))
{
...
...
@@ -860,6 +890,19 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
useInfo
.
setIsNotXiXian
(
jgInstallationNotice
.
getIsXixian
()
==
null
?
"0"
:
jgInstallationNotice
.
getIsXixian
());
useInfoService
.
saveOrUpdateData
(
useInfo
);
}
// 修改属地
LambdaUpdateWrapper
<
SuperviseInfo
>
lambdaUpdateWrapper
=
new
LambdaUpdateWrapper
<>();
lambdaUpdateWrapper
.
eq
(
SuperviseInfo:
:
getRecord
,
jgRelationEquip
.
getEquId
());
SuperviseInfo
superviseInfo
=
new
SuperviseInfo
();
superviseInfo
.
setOrgBranchName
(
jgInstallationNotice
.
getOrgBranchName
());
superviseInfo
.
setOrgBranchCode
(
jgInstallationNotice
.
getOrgBranchCode
());
superviseInfoMapper
.
update
(
superviseInfo
,
lambdaUpdateWrapper
);
HashMap
<
String
,
Object
>
hashMap
=
new
HashMap
<>();
Map
<
String
,
Map
<
String
,
Object
>>
superMap
=
new
HashMap
<>();
hashMap
.
put
(
"ORG_BRANCH_CODE"
,
jgInstallationNotice
.
getOrgBranchCode
());
hashMap
.
put
(
"ORG_BRANCH_NAME"
,
jgInstallationNotice
.
getOrgBranchCode
());
superMap
.
put
(
jgRelationEquip
.
getEquId
(),
hashMap
);
tzsServiceFeignClient
.
commonUpdateEsDataByIds
(
superMap
);
// 上个代办改为已办
HashMap
<
String
,
Object
>
taskMap
=
new
HashMap
<>();
taskMap
.
put
(
"taskStatus"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getCode
());
...
...
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/JgMaintainNoticeServiceImpl.java
View file @
a19fb881
...
...
@@ -146,6 +146,7 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto
map
.
put
(
"uuseUnitCreditCode"
,
map
.
get
(
"useUnitCreditCode"
));
map
.
remove
(
"useUnitCreditCode"
);
map
.
remove
(
"address"
);
map
.
remove
(
"sequenceNbr"
);
for
(
String
s
:
fields
)
{
if
(
maintainInfo
.
containsKey
(
s
)
&&
!
ObjectUtils
.
isEmpty
(
map
.
get
(
s
)))
...
...
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/JgUseRegistrationServiceImpl.java
View file @
a19fb881
...
...
@@ -149,6 +149,12 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
useInfo
.
setProvinceName
(
"陕西省"
);
LambdaQueryWrapper
<
IdxBizJgUseInfo
>
lambda
=
new
QueryWrapper
<
IdxBizJgUseInfo
>().
lambda
();
lambda
.
eq
(
IdxBizJgUseInfo:
:
getRecord
,
map
.
get
(
"equipId"
));
// 产权单位信息
if
(
map
.
containsKey
(
"estateUnitName"
))
{
String
[]
data
=
String
.
valueOf
(
map
.
getString
(
"estateUnitName"
)).
split
(
"_"
);
useInfo
.
setEstateUnitCreditCode
(
data
[
0
]);
useInfo
.
setEstateUnitName
(
data
[
1
]);
}
// 更新使用信息
useInfoMapper
.
update
(
useInfo
,
lambda
);
InspectionDetectionInfo
inspectionDetectionInfo
=
new
InspectionDetectionInfo
();
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/resources/templates/equipment-registration-certificate-report.ftl
View file @
a19fb881
...
...
@@ -449,7 +449,7 @@
<w:sz
w:val=
"24"
/>
</w:rPr>
<w:pict>
<v:shape
id=
"文本框 9"
o:spid=
"_x0000_s1026"
o:spt=
"202"
type=
"#_x0000_t202"
style=
"position:absolute;left:0pt;margin-left:-49.05pt;margin-top:12
5.55pt;height:103.45
pt;width:515.75pt;z-index:251662336;mso-width-relative:page;mso-height-relative:page;"
fillcolor=
"#FFFFFF"
filled=
"t"
stroked=
"f"
coordsize=
"21600,21600"
>
<v:shape
id=
"文本框 9"
o:spid=
"_x0000_s1026"
o:spt=
"202"
type=
"#_x0000_t202"
style=
"position:absolute;left:0pt;margin-left:-49.05pt;margin-top:12
0pt;height:150
pt;width:515.75pt;z-index:251662336;mso-width-relative:page;mso-height-relative:page;"
fillcolor=
"#FFFFFF"
filled=
"t"
stroked=
"f"
coordsize=
"21600,21600"
>
<v:path/>
<v:fill
on=
"t"
color2=
"#FFFFFF"
focussize=
"0,0"
/>
<v:stroke
on=
"f"
weight=
"0.5pt"
/>
...
...
@@ -485,7 +485,7 @@
<w:sz
w:val=
"46"
/>
<w:sz-cs
w:val=
"46"
/>
</w:rPr>
<w:t>
按照《中华人民共和国特种设备安全法》
</w:t>
<w:t>
按照《中华人民共和国特种设备安全法》
的规定, 依据特种设备安全技术规范要求,予以使用登记。
</w:t>
</w:r>
<w:r>
<w:rPr>
...
...
@@ -495,22 +495,22 @@
</w:rPr>
<w:t></w:t>
</w:r>
<w:r
>
<w:rPr
>
<w:spacing
w:val=
"-13"
/
>
<w:sz
w:val=
"46"
/
>
<w:sz-cs
w:val=
"46"
/
>
</w:rPr
>
<w:t>
的规定, 依据特种设备安全技术规范要求,予以
</w:t
>
</w:r
>
<w:r
>
<w:rPr
>
<w:spacing
w:val=
"1"
/
>
<w:sz
w:val=
"46"
/
>
<w:sz-cs
w:val=
"46"
/
>
</w:rPr
>
<w:t>
使用登记。
</w:t
>
</w:r
>
<
#--
<w:r>
--
>
<
#--
<w:rPr>
--
>
<
#--
<w:spacing
w:val=
"-13"
/>
--
>
<
#--
<w:sz
w:val=
"46"
/>
--
>
<
#--
<w:sz-cs
w:val=
"46"
/>
--
>
<
#--
</w:rPr>
--
>
<
#--
<w:t>
的规定, 依据特种设备安全技术规范要求,予以
</w:t>
--
>
<
#--
</w:r>
--
>
<
#--
<w:r>
--
>
<
#--
<w:rPr>
--
>
<
#--
<w:spacing
w:val=
"1"
/>
--
>
<
#--
<w:sz
w:val=
"46"
/>
--
>
<
#--
<w:sz-cs
w:val=
"46"
/>
--
>
<
#--
</w:rPr>
--
>
<
#--
<w:t>
使用登记。
</w:t>
--
>
<
#--
</w:r>
--
>
</w:p>
<w:p>
<w:pPr>
...
...
@@ -624,7 +624,7 @@
<w:sz
w:val=
"24"
/>
</w:rPr>
<w:pict>
<v:shape
id=
"文本框 15"
o:spid=
"_x0000_s1029"
o:spt=
"202"
type=
"#_x0000_t202"
style=
"position:absolute;left:0pt;margin-left:-25.65pt;margin-top:6
86pt;height:44.05
pt;width:461.2pt;z-index:251667456;mso-width-relative:page;mso-height-relative:page;"
fillcolor=
"#FFFFFF"
filled=
"t"
stroked=
"f"
coordsize=
"21600,21600"
>
<v:shape
id=
"文本框 15"
o:spid=
"_x0000_s1029"
o:spt=
"202"
type=
"#_x0000_t202"
style=
"position:absolute;left:0pt;margin-left:-25.65pt;margin-top:6
70pt;height:50
pt;width:461.2pt;z-index:251667456;mso-width-relative:page;mso-height-relative:page;"
fillcolor=
"#FFFFFF"
filled=
"t"
stroked=
"f"
coordsize=
"21600,21600"
>
<v:path/>
<v:fill
on=
"t"
color2=
"#FFFFFF"
focussize=
"0,0"
/>
<v:stroke
on=
"f"
weight=
"0.5pt"
/>
...
...
@@ -662,16 +662,16 @@
<w:sz
w:val=
"28"
/>
<w:sz-cs
w:val=
"28"
/>
</w:rPr>
<w:t>
依据安全技术规范的要求,应当在定期检验确定的有效期和技术参数范围
</w:t>
</w:r>
<w:r>
<w:rPr>
<w:spacing
w:val=
"-12"
/>
<w:sz
w:val=
"28"
/>
<w:sz-cs
w:val=
"28"
/>
</w:rPr>
<w:t>
内使用。
</w:t>
<w:t>
依据安全技术规范的要求,应当在定期检验确定的有效期和技术参数范围内使用。
</w:t>
</w:r>
<
#--
<w:r>
-->
<
#--
<w:rPr>
-->
<
#--
<w:spacing
w:val=
"-12"
/>
-->
<
#--
<w:sz
w:val=
"28"
/>
-->
<
#--
<w:sz-cs
w:val=
"28"
/>
-->
<
#--
</w:rPr>
-->
<
#--
<w:t>
内使用。
</w:t>
-->
<
#--
</w:r>
-->
</w:p>
<w:p>
<w:pPr>
...
...
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 @
a19fb881
...
...
@@ -27,12 +27,16 @@ public class JyjcInspectionApplicationModel extends BaseModel {
@ApiModelProperty
(
value
=
"检验检测单位编码"
)
private
String
inspectionUnitCode
;
@ApiModelProperty
(
value
=
"检验检测单位名称"
)
private
String
inspectionUnitName
;
@ApiModelProperty
(
value
=
"检验检测类型"
)
private
String
inspectionType
;
@ApiModelProperty
(
value
=
"检验检测类型名称"
)
private
String
inspectionTypeName
;
@ApiModelProperty
(
value
=
"设备种类"
)
private
String
equipClassify
;
...
...
@@ -75,10 +79,13 @@ public class JyjcInspectionApplicationModel extends BaseModel {
@ApiModelProperty
(
value
=
"报检单位编号"
)
private
String
applicationUnitCode
;
@ApiModelProperty
(
value
=
"报检单位名称"
)
private
String
applicationUnitName
;
@ApiModelProperty
(
value
=
"报检单位地址"
)
private
String
address
;
@ApiModelProperty
(
value
=
"监管单位名称"
)
private
String
superviseOrgName
;
...
...
@@ -140,14 +147,14 @@ public class JyjcInspectionApplicationModel extends BaseModel {
@ApiModelProperty
(
value
=
"下一步任务名称"
)
private
String
nextTaskName
;
@ApiModelProperty
(
value
=
"设备分类"
)
private
String
equList
;
@ApiModelProperty
(
value
=
"监管码"
)
private
String
supervisoryCode
;
private
String
instanceId
;
public
String
getInstanceId
()
{
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/model/JyjcOpeningApplicationModel.java
View file @
a19fb881
...
...
@@ -87,7 +87,8 @@ public class JyjcOpeningApplicationModel extends BaseModel {
@ApiModelProperty
(
value
=
"创建人ID"
)
private
String
createUserId
;
/* ---------------- -------------- */
@ApiModelProperty
(
value
=
"企业资质信息"
)
List
<
TzBaseUnitLicenceDto
>
baseUnitLicences
;
...
...
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 @
a19fb881
...
...
@@ -85,7 +85,7 @@ public class JyjcInspectionResultController extends BaseController {
/**
* 列表全部数据查询
*
*
getJyjcPersonByUnitCode
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
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 @
a19fb881
...
...
@@ -11,11 +11,9 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.toolkit.CollectionUtils
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.sun.org.apache.bcel.internal.generic.NEW
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.service.IDataDictionaryService
;
import
com.yeejoin.amos.boot.biz.common.service.impl.DataDictionaryServiceImpl
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
...
...
@@ -23,7 +21,6 @@ import com.yeejoin.amos.boot.biz.common.workflow.feign.WorkflowFeignService;
import
com.yeejoin.amos.boot.module.common.api.dto.AttachmentDto
;
import
com.yeejoin.amos.boot.module.jyjc.api.entity.*
;
import
com.yeejoin.amos.boot.module.jyjc.api.enums.BizTypeEnum
;
import
com.yeejoin.amos.boot.module.jyjc.api.enums.BusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.jyjc.api.enums.DocumentEnum
;
import
com.yeejoin.amos.boot.module.jyjc.api.enums.ResultStatusEnum
;
import
com.yeejoin.amos.boot.module.jyjc.api.mapper.JyjcInspectionApplicationEquipMapper
;
...
...
@@ -34,14 +31,15 @@ import com.yeejoin.amos.boot.module.jyjc.biz.feign.JgFeignClient;
import
com.yeejoin.amos.boot.module.jyjc.biz.feign.TzsServiceFeignClient
;
import
com.yeejoin.amos.boot.module.jyjc.biz.service.TaskModelServiceImpl
;
import
com.yeejoin.amos.boot.module.jyjc.biz.service.impl.handler.JyjcInspectionApplicationHandlerFactory
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.EquipmentCategory
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.ApplicationFormTypeEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.FlowStatusEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.EquipmentCategoryMapper
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.feign.systemctl.model.TaskV2Model
;
import
com.yeejoin.amos.feign.workflow.Workflow
;
import
com.yeejoin.amos.feign.workflow.model.*
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.io.IOUtils
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
...
...
@@ -56,16 +54,10 @@ import org.typroject.tyboot.core.foundation.exception.BaseException;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
java.io.IOException
;
import
java.io.UnsupportedEncodingException
;
import
java.nio.charset.StandardCharsets
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
static
com
.
alibaba
.
fastjson
.
JSON
.
parseArray
;
import
static
com
.
yeejoin
.
amos
.
boot
.
biz
.
common
.
service
.
impl
.
WorkflowExcuteServiceImpl
.
buildOrderNo
;
/**
* 服务实现类
*
...
...
@@ -120,6 +112,9 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
@Autowired
DataDictionaryServiceImpl
dataDictionaryService
;
@Autowired
EquipmentCategoryMapper
equipmentCategoryMapper
;
public
JyjcInspectionApplicationModel
save
(
@RequestBody
JSONObject
obj
)
{
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
...
...
@@ -314,7 +309,8 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
jyjcInspectionApplicationAttachmentService
.
getBaseMapper
().
insert
(
attachments
);
}
}
model
.
setStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_SUBMITTED
.
getCode
()));
//6611 对应数据字典 检验流程状态 待受理
//6611 对应数据字典 检验流程状态 待受理
model
.
setStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_SUBMITTED
.
getCode
()));
ArrayList
<
String
>
roleList
=
new
ArrayList
<>();
String
taskId
=
model
.
getNextTaskId
();
...
...
@@ -356,9 +352,22 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
executeOneStep
(
model
,
taskName1
,
nextUserIds
);
this
.
updateWithModel
(
model
);
}
return
this
.
buildRedundancyField
(
model
);
}
private
JyjcInspectionApplicationModel
buildRedundancyField
(
JyjcInspectionApplicationModel
model
)
{
// 冗余前端显示检验检测类型名称
if
(
StringUtils
.
isNotEmpty
(
model
.
getInspectionType
())){
model
.
setInspectionTypeName
(
getInspectionTypeName
(
model
.
getInspectionType
()));
}
return
model
;
}
private
String
getInspectionTypeName
(
String
inspectionType
){
DataDictionary
dictionary
=
dataDictionaryService
.
getByCode
(
inspectionType
,
"JYJC"
);
return
dictionary
!=
null
?
dictionary
.
getName
()
:
""
;
}
@Override
public
Boolean
deleteBatchData
(
List
<
Long
>
sequenceNbr
)
{
...
...
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 @
a19fb881
...
...
@@ -24,6 +24,7 @@ import com.yeejoin.amos.boot.module.jyjc.api.service.IJyjcInspectionResultServic
import
com.yeejoin.amos.boot.module.jyjc.biz.utils.JsonUtils
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.InspectionDetectionInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.TzBaseEnterpriseInfo
;
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.mapper.*
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -89,6 +90,9 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
@Autowired
TzBaseEnterpriseInfoMapper
tzBaseEnterpriseInfoMapper
;
@Autowired
CommonserviceImpl
commonService
;
/**
* 检验检测单位分页查询
*/
...
...
@@ -267,7 +271,8 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
info
.
setInspectType
(
model
.
getInspectionType
());
info
.
setRecord
(
model
.
getEquipUnicode
());
info
.
setInspectDate
(
model
.
getInspectionDate
());
info
.
setInspectStaff
(
model
.
getInspector
());
info
.
setInspectStaff
(
getInspectUserName
(
model
));
info
.
setInspectStaffCode
(
model
.
getInspector
());
info
.
setInspectReport
(
jybgFile
.
getAttachmentUrl
());
info
.
setInspectConclusion
(
model
.
getInspectionConclusion
());
info
.
setProblemRemark
(
model
.
getNonConformance
());
...
...
@@ -278,6 +283,11 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
info
.
setRecDate
(
new
Date
());
}
private
String
getInspectUserName
(
JyjcInspectionResultModel
model
)
{
List
<
TzsUserInfo
>
userInfos
=
commonService
.
getUserInfosByUnitCode
(
model
.
getInspectionUnitCode
());
return
userInfos
.
stream
().
filter
(
u
->
model
.
getInspector
().
contains
(
u
.
getSequenceNbr
()
+
""
)).
map
(
TzsUserInfo:
:
getName
).
collect
(
Collectors
.
joining
(
","
));
}
/**
* 列表查询 示例
*/
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/api/entity/IdxBizJgInspectionDetectionInfo.java
View file @
a19fb881
...
...
@@ -115,4 +115,10 @@ public class IdxBizJgInspectionDetectionInfo extends TzsBaseEntity {
@TableField
(
exist
=
false
)
private
String
supervisoryCode
;
/**
* 检验人员ids(检验检测业务使用)
*/
@TableField
(
value
=
"\"INSPECT_STAFF_CODE\""
)
private
String
inspectStaffCode
;
}
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/api/entity/InspectionDetectionInfo.java
View file @
a19fb881
...
...
@@ -104,4 +104,10 @@ public class InspectionDetectionInfo extends AbstractEquipBaseEntity {
*/
@TableField
(
value
=
"\"INSPECT_REPORT_NO\""
)
private
String
inspectReportNo
;
/**
* 检验人员ids(检验检测业务使用)
*/
@TableField
(
value
=
"\"INSPECT_STAFF_CODE\""
)
private
String
inspectStaffCode
;
}
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