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
4d858f3d
Commit
4d858f3d
authored
Jan 12, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
95364fc2
5fcf7364
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
12 deletions
+17
-12
JgChangeRegistrationTransferEqMapper.java
...e/jg/api/mapper/JgChangeRegistrationTransferEqMapper.java
+4
-0
JgChangeRegistrationTransferController.java
...iz/controller/JgChangeRegistrationTransferController.java
+2
-2
JgChangeRegistrationTransferServiceImpl.java
...service/impl/JgChangeRegistrationTransferServiceImpl.java
+10
-9
urlInfo.json
...s-boot-module-jg-biz/src/main/resources/json/urlInfo.json
+1
-1
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/mapper/JgChangeRegistrationTransferEqMapper.java
View file @
4d858f3d
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jg.api.mapper;
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jg.api.mapper;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgChangeRegistrationTransferEq
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgChangeRegistrationTransferEq
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
org.apache.ibatis.annotations.Update
;
import
org.apache.ibatis.annotations.Update
;
/**
/**
...
@@ -14,4 +15,7 @@ import org.apache.ibatis.annotations.Update;
...
@@ -14,4 +15,7 @@ import org.apache.ibatis.annotations.Update;
public
interface
JgChangeRegistrationTransferEqMapper
extends
BaseMapper
<
JgChangeRegistrationTransferEq
>
{
public
interface
JgChangeRegistrationTransferEqMapper
extends
BaseMapper
<
JgChangeRegistrationTransferEq
>
{
@Update
(
"update tzs_jg_change_registration_transfer_eq set is_invalid = 1 where equ_id = #{equipId} and equip_transfer_id != #{currentDocumentId} "
)
@Update
(
"update tzs_jg_change_registration_transfer_eq set is_invalid = 1 where equ_id = #{equipId} and equip_transfer_id != #{currentDocumentId} "
)
void
updateEquipIsVaildByEquipIdAndCurrentDocumentId
(
@Param
(
"equipId"
)
String
equipId
,
@Param
(
"currentDocumentId"
)
String
currentDocumentId
);
void
updateEquipIsVaildByEquipIdAndCurrentDocumentId
(
@Param
(
"equipId"
)
String
equipId
,
@Param
(
"currentDocumentId"
)
String
currentDocumentId
);
@Select
(
"select equ_id from tzs_jg_change_registration_transfer_eq where equip_transfer_id = #{currentDocumentId} "
)
String
getEquipIdByEquipTransferId
(
@Param
(
"currentDocumentId"
)
String
currentDocumentId
);
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgChangeRegistrationTransferController.java
View file @
4d858f3d
...
@@ -130,8 +130,8 @@ public class JgChangeRegistrationTransferController extends BaseController {
...
@@ -130,8 +130,8 @@ public class JgChangeRegistrationTransferController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/detail"
)
@GetMapping
(
value
=
"/detail"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个移装变更登记登记"
,
notes
=
"根据sequenceNbr查询单个移装变更登记登记"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个移装变更登记登记"
,
notes
=
"根据sequenceNbr查询单个移装变更登记登记"
)
public
ResponseModel
<
Map
<
String
,
Map
<
String
,
Object
>>>
selectOne
(
@RequestParam
String
sequenceNbr
,
public
ResponseModel
<
Map
<
String
,
Map
<
String
,
Object
>>>
selectOne
(
@RequestParam
(
value
=
"sequenceNbr"
)
String
sequenceNbr
,
@RequestParam
String
equipId
)
{
@RequestParam
(
value
=
"equipId"
,
required
=
false
)
String
equipId
)
{
return
ResponseHelper
.
buildResponse
(
jgChangeRegistrationTransferService
.
getTransferDetail
(
sequenceNbr
,
equipId
));
return
ResponseHelper
.
buildResponse
(
jgChangeRegistrationTransferService
.
getTransferDetail
(
sequenceNbr
,
equipId
));
}
}
...
...
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 @
4d858f3d
...
@@ -456,21 +456,14 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
...
@@ -456,21 +456,14 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
}
}
/**
/**
* 根据
设备Id
查询详情
* 根据
移装变更记录sequenceNbr
查询详情
*
*
* @param
equipId 设备Id
* @param
sequenceNbr 变更记录sequenceNbr
* @return
* @return
*/
*/
public
Map
<
String
,
Map
<
String
,
Object
>>
getTransferDetail
(
String
sequenceNbr
,
String
equipId
)
{
public
Map
<
String
,
Map
<
String
,
Object
>>
getTransferDetail
(
String
sequenceNbr
,
String
equipId
)
{
Map
<
String
,
Map
<
String
,
Object
>>
pageDataMap
=
new
HashMap
<>();
Map
<
String
,
Map
<
String
,
Object
>>
pageDataMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
resultDataMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
resultDataMap
=
new
HashMap
<>();
//查询设备详情
if
(!
ValidationUtil
.
isEmpty
(
equipId
))
{
Map
<
String
,
Object
>
equipDetailMap
=
idxBizJgRegisterInfoService
.
getDetailFieldCamelCaseByRecord
(
equipId
);
resultDataMap
.
putAll
(
equipDetailMap
);
}
//移装变更详情
//移装变更详情
JgChangeRegistrationTransfer
transferById
=
this
.
getById
(
sequenceNbr
);
JgChangeRegistrationTransfer
transferById
=
this
.
getById
(
sequenceNbr
);
if
(!
ValidationUtil
.
isEmpty
(
transferById
))
{
if
(!
ValidationUtil
.
isEmpty
(
transferById
))
{
...
@@ -478,6 +471,14 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
...
@@ -478,6 +471,14 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
resultDataMap
.
putAll
(
transferToMap
);
resultDataMap
.
putAll
(
transferToMap
);
}
}
//查询设备详情
if
(
ValidationUtil
.
isEmpty
(
equipId
))
{
equipId
=
jgChangeRegistrationTransferEqMapper
.
getEquipIdByEquipTransferId
(
sequenceNbr
);
}
Map
<
String
,
Object
>
equipDetailMap
=
idxBizJgRegisterInfoService
.
getDetailFieldCamelCaseByRecord
(
equipId
);
resultDataMap
.
putAll
(
equipDetailMap
);
//判断流程是否执行完成,
//判断流程是否执行完成,
// 1、未执行完成时查询历史表
// 1、未执行完成时查询历史表
// 2、执行完成后查询使用信息表
// 2、执行完成后查询使用信息表
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/resources/json/urlInfo.json
View file @
4d858f3d
...
@@ -105,7 +105,7 @@
...
@@ -105,7 +105,7 @@
"type"
:
"110"
,
"type"
:
"110"
,
"pageType"
:
"look"
,
"pageType"
:
"look"
,
"name"
:
"移装变更登记"
,
"name"
:
"移装变更登记"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=1737388393685348353&roleIds={roleIds}&userId={userId}&
form
Type=look"
"url"
:
"/mixuap?appId=1742358052905971713&id=1737388393685348353&roleIds={roleIds}&userId={userId}&
page
Type=look"
},
},
{
{
"type"
:
"110"
,
"type"
:
"110"
,
...
...
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