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
ca24bad2
Commit
ca24bad2
authored
Jul 15, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.设备注销报废初稿代码提交
parent
e9f63ae5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
10 deletions
+17
-10
JgScrapCancelDto.java
...yeejoin/amos/boot/module/jg/api/dto/JgScrapCancelDto.java
+6
-0
JgScrapCancelMapper.xml
...-jg-api/src/main/resources/mapper/JgScrapCancelMapper.xml
+3
-2
JgScrapCancelServiceImpl.java
.../module/jg/biz/service/impl/JgScrapCancelServiceImpl.java
+2
-2
urlInfo.json
...s-boot-module-jg-biz/src/main/resources/json/urlInfo.json
+6
-6
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/JgScrapCancelDto.java
View file @
ca24bad2
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
dto
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.module.jg.api.common.BizCustomDateSerializer
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -51,6 +55,8 @@ public class JgScrapCancelDto extends BaseDto {
private
String
createUserId
;
@ApiModelProperty
(
value
=
"创建时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonSerialize
(
using
=
BizCustomDateSerializer
.
class
)
private
Date
createDate
;
@ApiModelProperty
(
value
=
"流程状态"
)
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgScrapCancelMapper.xml
View file @
ca24bad2
...
...
@@ -34,7 +34,8 @@
DATE_FORMAT(tjsc.audit_pass_date,'%Y-%m-%d') as auditPassDate,
tjsc.use_unit_name,
tjsc.use_unit_code,
tjsc.use_registration_code
tjsc.use_registration_code,
tjsc.equ_list_code
from tzs_jg_scrap_cancel tjsc
<where>
tjsc.is_delete = 0
...
...
@@ -58,7 +59,7 @@
</if>
<if
test=
"dto.useRegistrationCode != null and dto.useRegistrationCode != ''"
>
AND tjsc."
USE_ORG_CODE
" like concat('%',#{dto.useRegistrationCode},'%')
AND tjsc."
use_registration_code
" like concat('%',#{dto.useRegistrationCode},'%')
</if>
<if
test=
"roleIds != null and dto.type == 'supervision'"
>
<foreach
collection=
'roleIds'
item=
'role'
open=
'and ('
close=
')'
separator=
'or'
>
...
...
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/JgScrapCancelServiceImpl.java
View file @
ca24bad2
...
...
@@ -136,7 +136,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
Page
<
JgScrapCancelDto
>
listPage
=
this
.
baseMapper
.
getListPage
(
page
,
sortMap
,
dto
,
roleIds
,
orgCode
,
currentUserId
);
listPage
.
getRecords
().
forEach
(
item
->
{
if
(
item
.
getCancelType
()
!=
null
)
{
item
.
setCancelType
(
CancelTypeEnum
.
getNameByType
(
item
.
getCancelType
()));
item
.
setCancelType
Desc
(
CancelTypeEnum
.
getNameByType
(
item
.
getCancelType
()));
}
if
(
item
.
getEquListCode
()
!=
null
)
{
item
.
setEquListName
(
EquipmentClassifityEnum
.
getNameByCode
(
item
.
getEquListCode
()));
...
...
@@ -264,7 +264,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
String
equListName
=
EquipmentClassifityEnum
.
getNameByCode
(
jsonObject
.
get
(
"equListCode"
).
toString
());
save2HisData
(
jsonObject
,
jgScrapCancel
.
getSequenceNbr
().
toString
());
JgScrapCancelDto
dto
=
new
JgScrapCancelDto
();
BeanUtil
.
copyProperties
(
jgScrapCancel
,
new
JgScrapCancelDto
()
);
BeanUtil
.
copyProperties
(
jgScrapCancel
,
dto
);
dto
.
setEquListName
(
equListName
);
return
dto
;
}
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/resources/json/urlInfo.json
View file @
ca24bad2
...
...
@@ -236,37 +236,37 @@
{
"type"
:
"113-1"
,
"pageType"
:
"draft"
,
"name"
:
"
移装
注销"
,
"name"
:
"注销"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=1737357808040439809&roleIds={roleIds}&userId={userId}&pageType=edit"
},
{
"type"
:
"113-1"
,
"pageType"
:
"look"
,
"name"
:
"
移装
注销"
,
"name"
:
"注销"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=1737357871097606146&roleIds={roleIds}&userId={userId}&pageType=look"
},
{
"type"
:
"113-1"
,
"pageType"
:
"edit"
,
"name"
:
"
移装
注销"
,
"name"
:
"注销"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=1737357871097606146&roleIds={roleIds}&userId={userId}&pageType=edit"
},
{
"type"
:
"113-2"
,
"pageType"
:
"draft"
,
"name"
:
"报废
注销
"
,
"name"
:
"报废"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=1737357808040439809&roleIds={roleIds}&userId={userId}&pageType=edit"
},
{
"type"
:
"113-2"
,
"pageType"
:
"look"
,
"name"
:
"报废
注销
"
,
"name"
:
"报废"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=1737357871097606146&roleIds={roleIds}&userId={userId}&pageType=look"
},
{
"type"
:
"113-2"
,
"pageType"
:
"edit"
,
"name"
:
"报废
注销
"
,
"name"
:
"报废"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=1737357871097606146&roleIds={roleIds}&userId={userId}&pageType=edit"
},
{
...
...
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