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
23c3e1f0
Commit
23c3e1f0
authored
Dec 05, 2024
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):黑设备历史登记功能开发
parent
fd2ac89b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
127 additions
and
23 deletions
+127
-23
JgUseRegistrationDto.java
...oin/amos/boot/module/jg/api/dto/JgUseRegistrationDto.java
+3
-0
TaskMessageDto.java
...m/yeejoin/amos/boot/module/jg/api/dto/TaskMessageDto.java
+5
-0
JgUseRegistration.java
...oin/amos/boot/module/jg/api/entity/JgUseRegistration.java
+6
-0
WorkFlowStatusEnum.java
...oin/amos/boot/module/jg/api/enums/WorkFlowStatusEnum.java
+2
-2
JgUseRegistrationMapper.xml
...api/src/main/resources/mapper/JgUseRegistrationMapper.xml
+8
-4
IdxBizJqEquipmentRegisterController.java
...g/biz/controller/IdxBizJqEquipmentRegisterController.java
+14
-0
JgUseRegistrationController.java
...module/jg/biz/controller/JgUseRegistrationController.java
+2
-1
IIdxBizJgRegisterInfoService.java
...t/module/jg/biz/service/IIdxBizJgRegisterInfoService.java
+2
-0
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+5
-0
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+0
-0
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+80
-16
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/JgUseRegistrationDto.java
View file @
23c3e1f0
...
...
@@ -180,4 +180,7 @@ public class JgUseRegistrationDto extends BaseDto {
@ApiModelProperty
(
value
=
"气瓶类别(0液化石油气瓶、1工业气瓶、2其他)"
)
private
String
cylinderCategory
;
@ApiModelProperty
(
value
=
" 监察处置机构代码"
)
private
String
supervisionOrgCode
;
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/dto/TaskMessageDto.java
View file @
23c3e1f0
...
...
@@ -64,4 +64,9 @@ public class TaskMessageDto {
* 下节点任务id
*/
String
nextTaskId
;
/**
* 登记类型(新增使用登记,历史使用登记,特殊使用登记)
*/
String
regType
;
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/JgUseRegistration.java
View file @
23c3e1f0
...
...
@@ -255,4 +255,10 @@ public class JgUseRegistration extends BaseEntity {
*/
@TableField
(
"cylinder_category"
)
private
String
cylinderCategory
;
/**
* 监察处置机构代码
*/
@TableField
(
"supervision_org_code"
)
private
String
supervisionOrgCode
;
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/enums/WorkFlowStatusEnum.java
View file @
23c3e1f0
...
...
@@ -19,11 +19,11 @@ public enum WorkFlowStatusEnum {
* 使用登记流程
*/
USE_SUBMIT
(
"使用单位提交"
,
"useSubmit"
,
"使用单位待提交"
,
"一级受理已驳回"
,
"使用单位已撤回"
),
USE_RECEIVE
(
"一级受理"
,
"useReceive"
,
"一级待受理"
,
"二级受理已驳回"
,
"一级受理已撤回"
),
USE_RECEIVE
(
"一级受理"
,
"useReceive"
,
"一级待受理"
,
"已驳回"
,
"一级受理已撤回"
),
USE_SAFETY_CHECK
(
"安全监察受理"
,
"safetyCheck"
,
"安全监察待受理"
,
"二级受理已驳回"
,
"安全监察已撤回"
),
USE_PRELIMINARY
(
"二级受理"
,
"usePreliminary"
,
"二级待受理"
,
"三级受理已驳回"
,
"二级受理已撤回"
),
USE_REEXAMINE
(
"三级受理"
,
"useReexamine"
,
"三级待受理"
,
""
,
""
),
/**
* 维保备案
*/
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgUseRegistrationMapper.xml
View file @
23c3e1f0
...
...
@@ -77,6 +77,7 @@
ur.receive_company_code,
ur.use_unit_credit_code,
ur.transfer_to_user_ids,
ur.supervision_org_code,
ur.use_address as fullAddress,
ur.cancel_reason as cancelReason,
(select group_concat(re.equ_id) from tzs_jg_use_registration_eq re where ur.sequence_nbr = re.equip_transfer_id) as equipId,
...
...
@@ -186,8 +187,9 @@
AND auditPassDate BETWEEN #{dto.auditPassDateStart} AND #{dto.auditPassDateEnd}
</if>
<if
test=
"dto.dataType == 'supervision' "
>
AND (receive_company_code = #{dto.receiveCompanyCode} or transfer_to_user_ids LIKE concat ('%',
#{dto.currentUserId}, '%'))
AND (receive_company_code = #{dto.receiveCompanyCode}
OR transfer_to_user_ids LIKE concat ('%',#{dto.currentUserId}, '%'))
OR supervision_org_code LIKE concat (#{dto.supervisionOrgCode}, '%')
AND status
<![CDATA[<>]]>
'使用单位待提交'
</if>
<if
test=
"dto.dataType == 'company' "
>
...
...
@@ -305,7 +307,8 @@
jri.OTHER_ACCESSORIES_REG as otherAccessoriesReg,
jfi.OTHER_ACCESSORIES_FACT as otherAccessoriesFact,
jfi.FACT_SUPERVISION_INSPECTION_REPORT as factSupervisionInspectionReport,
jfi.BOILER_ENERGY_EFFICIENCY_CERTIFICATE as boilerEnergyEfficiencyCertificate
jfi.BOILER_ENERGY_EFFICIENCY_CERTIFICATE as boilerEnergyEfficiencyCertificate,
jfi.FACTORY_IS_COMPLETE as factoryIsComplete
from idx_biz_jg_register_info jri
LEFT JOIN idx_biz_jg_factory_info jfi on jri.RECORD = jfi.RECORD
where jri.RECORD = #{id}
...
...
@@ -399,7 +402,8 @@
APPRAISAL_DATE as appraisalDate,
DESIGN_DOC as designDoc,
DESIGN_STANDARD as designStandard,
OTHER_ACCESSORIES_DES as otherAccessoriesDes
OTHER_ACCESSORIES_DES as otherAccessoriesDes,
DESIGN_IS_COMPLETE as designIsComplete
from idx_biz_jg_design_info
where RECORD = #{id}
</select>
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/IdxBizJqEquipmentRegisterController.java
View file @
23c3e1f0
...
...
@@ -120,6 +120,20 @@ public class IdxBizJqEquipmentRegisterController extends BaseController {
return
ResponseHelper
.
buildResponse
(
idxBizJgRegisterInfoService
.
queryForEquipmentRegisterPage
(
jsonObject
));
}
/**
* @author LiuLin
*
* 历史无证设备分页查询接口(ES)
* @param map 参数
* @return 分页信息
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/queryHisNoCertEquipPage"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"历史无证设备分页查询接口查询"
,
notes
=
"历史无证设备分页查询接口查询"
)
public
ResponseModel
<
Page
<
JSONObject
>>
queryHisNoCertEquipPage
(
@RequestParam
Map
<
String
,
Object
>
map
)
{
return
ResponseHelper
.
buildResponse
(
idxBizJgRegisterInfoService
.
queryHisNoCertEquipPage
(
new
JSONObject
(
map
)));
}
// /**
// * 查询设备注册列表
// *
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgUseRegistrationController.java
View file @
23c3e1f0
...
...
@@ -112,6 +112,7 @@ public class JgUseRegistrationController extends BaseController {
}
else
{
dto
.
setDataType
(
BaseController
.
COMPANY_TYPE_SUPERVISION
);
dto
.
setReceiveCompanyCode
(
info
.
getCompany
().
getCompanyCode
());
dto
.
setSupervisionOrgCode
(
info
.
getCompany
().
getOrgCode
());
}
if
(
dto
.
getAuditPassDateRange
()
!=
null
&&
!
dto
.
getAuditPassDateRange
().
isEmpty
()
&&
!
dto
.
getAuditPassDateRange
().
equals
(
"[, ]"
))
{
String
dateRangeStr
=
dto
.
getAuditPassDateRange
();
...
...
@@ -136,7 +137,7 @@ public class JgUseRegistrationController extends BaseController {
Page
<
Map
<
String
,
Object
>>
list
=
jgUseRegistrationServiceImpl
.
getList
(
dto
,
sort
,
page
,
dto
.
getRoleIds
());
list
.
getRecords
().
forEach
(
x
->
{
x
.
put
(
"companyType"
,
info
.
getCompany
().
getCompanyType
());
x
.
put
(
"regType"
,
"1"
.
equals
(
x
.
get
(
"regType"
))
?
"历史登记"
:
"新增登记"
);
x
.
put
(
"regType"
,
"1"
.
equals
(
x
.
get
(
"regType"
))
?
"历史登记"
:
"2"
.
equals
(
x
.
get
(
"regType"
))
?
"特殊历史登记"
:
"新增登记"
);
});
return
ResponseHelper
.
buildResponse
(
list
);
}
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/IIdxBizJgRegisterInfoService.java
View file @
23c3e1f0
...
...
@@ -73,4 +73,6 @@ public interface IIdxBizJgRegisterInfoService {
void
inspectionExpirationReminderOnce
();
void
initEnterpriseLicenseExpirationOnce
();
Page
<
JSONObject
>
queryHisNoCertEquipPage
(
JSONObject
jsonObject
);
}
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 @
23c3e1f0
...
...
@@ -1291,6 +1291,11 @@ public class CommonServiceImpl implements ICommonService {
return
jgUseRegistrationServiceImpl
.
handleUnitHistoryEquip
(
jsonObject
);
case
"vehicle"
:
return
jgVehicleInformationService
.
saveOrUpdateHisData
(
jsonObject
);
case
"set_sp"
:
//特殊历史登记
jsonObject
.
put
(
"regType"
,
"2"
);
jsonObject
.
put
(
"businessCode"
,
"DJ_SY"
);
jsonObject
.
put
(
"submit"
,
Boolean
.
TRUE
);
return
jgUseRegistrationServiceImpl
.
handleUseRegistration
(
jsonObject
);
default
:
return
jgUseRegistrationServiceImpl
.
handleHistoryEquip
(
jsonObject
);
}
...
...
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 @
23c3e1f0
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/JgUseRegistrationServiceImpl.java
View file @
23c3e1f0
This diff is collapsed.
Click to expand it.
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