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
96b228a1
Commit
96b228a1
authored
May 13, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):设备履历字段添加
parent
272d3322
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
10 deletions
+30
-10
JgResumeInfoController.java
...boot/module/jg/biz/controller/JgResumeInfoController.java
+20
-5
ChangeLogInsertListener.java
...e/jg/biz/edit/event/listener/ChangeLogInsertListener.java
+2
-2
JgResumeInfoServiceImpl.java
...t/module/jg/biz/service/impl/JgResumeInfoServiceImpl.java
+8
-3
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgResumeInfoController.java
View file @
96b228a1
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
controller
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
controller
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgResumeInfoDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgResumeInfoDto
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgResumeInfo
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -104,13 +105,14 @@ public class JgResumeInfoController extends BaseController {
...
@@ -104,13 +105,14 @@ public class JgResumeInfoController extends BaseController {
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"分页查询"
,
notes
=
"分页查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"分页查询"
,
notes
=
"分页查询"
)
public
ResponseModel
<
Page
<
JgResumeInfoDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
public
ResponseModel
<
Page
<
JgResumeInfoDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
(
value
=
"size"
)
int
size
)
{
@RequestParam
(
value
=
"size"
)
int
size
,
Page
<
JgResumeInfoDto
>
page
=
new
Page
<
JgResumeInfoDto
>();
@RequestParam
(
value
=
"record"
)
String
record
)
{
Page
<
JgResumeInfoDto
>
page
=
new
Page
<>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
jgResumeInfoServiceImpl
.
queryForJgResumeInfoPage
(
page
));
return
ResponseHelper
.
buildResponse
(
jgResumeInfoServiceImpl
.
queryForJgResumeInfoPage
(
page
,
record
));
}
}
/**
/**
...
@@ -124,4 +126,17 @@ public class JgResumeInfoController extends BaseController {
...
@@ -124,4 +126,17 @@ public class JgResumeInfoController extends BaseController {
public
ResponseModel
<
List
<
JgResumeInfoDto
>>
selectForList
()
{
public
ResponseModel
<
List
<
JgResumeInfoDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
jgResumeInfoServiceImpl
.
queryForJgResumeInfoList
());
return
ResponseHelper
.
buildResponse
(
jgResumeInfoServiceImpl
.
queryForJgResumeInfoList
());
}
}
/**
* 根据changeLogId查询详情
*
* @param changeLogId 主键
* @return ResponseModel
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/details"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据changeLogId查询设备编辑详情"
,
notes
=
"根据changeLogId查询设备编辑详情"
)
public
ResponseModel
<
JgResumeInfo
>
getDetails
(
@RequestParam
(
"changeLogId"
)
String
changeLogId
)
{
return
ResponseHelper
.
buildResponse
(
jgResumeInfoServiceImpl
.
getDetails
(
changeLogId
));
}
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/edit/event/listener/ChangeLogInsertListener.java
View file @
96b228a1
...
@@ -129,13 +129,13 @@ public class ChangeLogInsertListener {
...
@@ -129,13 +129,13 @@ public class ChangeLogInsertListener {
bizChangeLogService
.
getBaseMapper
().
insert
(
changeLog
);
bizChangeLogService
.
getBaseMapper
().
insert
(
changeLog
);
String
equId
=
event
.
getBizRelationData
().
getRecords
().
stream
().
findFirst
().
orElse
(
null
);
String
equId
=
event
.
getBizRelationData
().
getRecords
().
stream
().
findFirst
().
orElse
(
null
);
jgResumeInfoService
.
createWithModel
(
JgResumeInfoDto
.
builder
()
jgResumeInfoService
.
createWithModel
(
JgResumeInfoDto
.
builder
()
.
applyNo
(
event
.
getBizRelationData
().
get
UnitCode
())
.
applyNo
(
event
.
getBizRelationData
().
get
BizId
())
.
businessType
(
BusinessTypeEnum
.
findNameByEnumName
(
bizTypeTableMap
.
get
(
changeLog
.
getBizType
())).
orElse
(
"未知类型"
))
.
businessType
(
BusinessTypeEnum
.
findNameByEnumName
(
bizTypeTableMap
.
get
(
changeLog
.
getBizType
())).
orElse
(
"未知类型"
))
.
businessId
(
event
.
getBizRelationData
().
getBizId
())
.
businessId
(
event
.
getBizRelationData
().
getBizId
())
.
equId
(
equId
)
.
equId
(
equId
)
.
resumeType
(
"1"
)
.
resumeType
(
"1"
)
.
changeLogId
(
String
.
valueOf
(
changeLog
.
getSequenceNbr
()))
.
changeLogId
(
String
.
valueOf
(
changeLog
.
getSequenceNbr
()))
.
approvalUnit
(
event
.
getBizRelationData
().
getUnit
Cod
e
())
.
approvalUnit
(
event
.
getBizRelationData
().
getUnit
Nam
e
())
.
approvalUnitCode
(
event
.
getBizRelationData
().
getUnitCode
())
.
approvalUnitCode
(
event
.
getBizRelationData
().
getUnitCode
())
.
createUserName
(
event
.
getBizRelationData
().
getCreateUserName
())
.
createUserName
(
event
.
getBizRelationData
().
getCreateUserName
())
.
status
(
"正常"
)
.
status
(
"正常"
)
...
...
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/JgResumeInfoServiceImpl.java
View file @
96b228a1
...
@@ -9,7 +9,6 @@ import com.yeejoin.amos.boot.module.jg.api.service.IJgResumeInfoService;
...
@@ -9,7 +9,6 @@ import com.yeejoin.amos.boot.module.jg.api.service.IJgResumeInfoService;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
java.util.Collection
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.Set
;
...
@@ -26,8 +25,8 @@ public class JgResumeInfoServiceImpl extends BaseService<JgResumeInfoDto, JgResu
...
@@ -26,8 +25,8 @@ public class JgResumeInfoServiceImpl extends BaseService<JgResumeInfoDto, JgResu
/**
/**
* 分页查询
* 分页查询
*/
*/
public
Page
<
JgResumeInfoDto
>
queryForJgResumeInfoPage
(
Page
<
JgResumeInfoDto
>
page
)
{
public
Page
<
JgResumeInfoDto
>
queryForJgResumeInfoPage
(
Page
<
JgResumeInfoDto
>
page
,
String
equId
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
return
this
.
queryForPage
(
page
,
null
,
false
,
equId
);
}
}
/**
/**
...
@@ -63,4 +62,9 @@ public class JgResumeInfoServiceImpl extends BaseService<JgResumeInfoDto, JgResu
...
@@ -63,4 +62,9 @@ public class JgResumeInfoServiceImpl extends BaseService<JgResumeInfoDto, JgResu
public
void
deleteBatchByBusinessId
(
Set
<
String
>
idList
)
{
public
void
deleteBatchByBusinessId
(
Set
<
String
>
idList
)
{
this
.
baseMapper
.
deleteBatchByBusinessId
(
idList
);
this
.
baseMapper
.
deleteBatchByBusinessId
(
idList
);
}
}
public
JgResumeInfo
getDetails
(
String
changeLogId
)
{
return
this
.
baseMapper
.
selectOne
(
new
LambdaQueryWrapper
<
JgResumeInfo
>()
.
eq
(
JgResumeInfo:
:
getChangeLogId
,
changeLogId
));
}
}
}
\ 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