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
840bf9fe
Commit
840bf9fe
authored
Dec 22, 2023
by
yangyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
667b89f1
023a0e0c
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
52 additions
and
54 deletions
+52
-54
BizCustomDateSerializer.java
...os/boot/module/jg/api/common/BizCustomDateSerializer.java
+1
-1
JgInstallationNoticeDto.java
.../amos/boot/module/jg/api/dto/JgInstallationNoticeDto.java
+5
-0
JgInstallationNotice.java
.../amos/boot/module/jg/api/entity/JgInstallationNotice.java
+8
-0
JgEquipTransferMapper.xml
...g-api/src/main/resources/mapper/JgEquipTransferMapper.xml
+1
-0
JgInstallationNoticeMapper.xml
.../src/main/resources/mapper/JgInstallationNoticeMapper.xml
+24
-24
JgScrapCancelMapper.xml
...-jg-api/src/main/resources/mapper/JgScrapCancelMapper.xml
+1
-1
JgEquipTransferServiceImpl.java
...odule/jg/biz/service/impl/JgEquipTransferServiceImpl.java
+12
-28
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/common/BizCustomDateSerializer.java
View file @
840bf9fe
...
@@ -30,7 +30,7 @@ import java.util.Objects;
...
@@ -30,7 +30,7 @@ import java.util.Objects;
*/
*/
public
class
BizCustomDateSerializer
extends
JsonSerializer
<
Date
>
{
public
class
BizCustomDateSerializer
extends
JsonSerializer
<
Date
>
{
private
List
<
String
>
customFields
=
Arrays
.
asList
(
"acceptDate"
,
"expiryDate"
,
"applicationDate"
);
private
List
<
String
>
customFields
=
Arrays
.
asList
(
"acceptDate"
,
"expiryDate"
,
"applicationDate"
,
"noticeDate"
,
"installStartDate"
,
"handleDate"
);
public
BizCustomDateSerializer
()
public
BizCustomDateSerializer
()
{
{
...
...
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 @
840bf9fe
...
@@ -2,8 +2,10 @@ package com.yeejoin.amos.boot.module.jg.api.dto;
...
@@ -2,8 +2,10 @@ package com.yeejoin.amos.boot.module.jg.api.dto;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
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.biz.common.dto.BaseDto
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.yeejoin.amos.boot.module.jg.api.common.BizCustomDateSerializer
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -86,6 +88,7 @@ public class JgInstallationNoticeDto extends BaseDto {
...
@@ -86,6 +88,7 @@ public class JgInstallationNoticeDto extends BaseDto {
@ApiModelProperty
(
value
=
"安装开始日期"
)
@ApiModelProperty
(
value
=
"安装开始日期"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonSerialize
(
using
=
BizCustomDateSerializer
.
class
)
private
Date
installStartDate
;
private
Date
installStartDate
;
@ApiModelProperty
(
value
=
"安装竣工日期"
)
@ApiModelProperty
(
value
=
"安装竣工日期"
)
...
@@ -183,6 +186,7 @@ public class JgInstallationNoticeDto extends BaseDto {
...
@@ -183,6 +186,7 @@ public class JgInstallationNoticeDto extends BaseDto {
private
String
isXixian
;
private
String
isXixian
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonSerialize
(
using
=
BizCustomDateSerializer
.
class
)
@ApiModelProperty
(
value
=
"告知日期"
)
@ApiModelProperty
(
value
=
"告知日期"
)
private
Date
noticeDate
;
private
Date
noticeDate
;
...
@@ -240,6 +244,7 @@ public class JgInstallationNoticeDto extends BaseDto {
...
@@ -240,6 +244,7 @@ public class JgInstallationNoticeDto extends BaseDto {
private
String
equAddress
;
private
String
equAddress
;
@ApiModelProperty
(
value
=
"办理日期"
)
@ApiModelProperty
(
value
=
"办理日期"
)
@JsonSerialize
(
using
=
BizCustomDateSerializer
.
class
)
private
Date
handleDate
;
private
Date
handleDate
;
...
...
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 @
840bf9fe
...
@@ -2,7 +2,10 @@ package com.yeejoin.amos.boot.module.jg.api.entity;
...
@@ -2,7 +2,10 @@ package com.yeejoin.amos.boot.module.jg.api.entity;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.module.jg.api.common.BizCustomDateSerializer
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
...
@@ -153,6 +156,8 @@ public class JgInstallationNotice extends BaseEntity {
...
@@ -153,6 +156,8 @@ public class JgInstallationNotice extends BaseEntity {
* 安装开始日期
* 安装开始日期
*/
*/
@TableField
(
"install_start_date"
)
@TableField
(
"install_start_date"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonSerialize
(
using
=
BizCustomDateSerializer
.
class
)
private
Date
installStartDate
;
private
Date
installStartDate
;
/**
/**
...
@@ -333,6 +338,8 @@ public class JgInstallationNotice extends BaseEntity {
...
@@ -333,6 +338,8 @@ public class JgInstallationNotice extends BaseEntity {
* 告知日期
* 告知日期
*/
*/
@TableField
(
"notice_date"
)
@TableField
(
"notice_date"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonSerialize
(
using
=
BizCustomDateSerializer
.
class
)
private
Date
noticeDate
;
private
Date
noticeDate
;
/**
/**
...
@@ -384,6 +391,7 @@ public class JgInstallationNotice extends BaseEntity {
...
@@ -384,6 +391,7 @@ public class JgInstallationNotice extends BaseEntity {
private
String
equAddress
;
private
String
equAddress
;
@TableField
(
"handle_date"
)
@TableField
(
"handle_date"
)
@JsonSerialize
(
using
=
BizCustomDateSerializer
.
class
)
private
Date
handleDate
;
private
Date
handleDate
;
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgEquipTransferMapper.xml
View file @
840bf9fe
...
@@ -86,6 +86,7 @@
...
@@ -86,6 +86,7 @@
</if>
</if>
<if
test=
"type == 'installUnit'"
>
<if
test=
"type == 'installUnit'"
>
AND jet.install_unit_credit_code = #{companyCode}
AND jet.install_unit_credit_code = #{companyCode}
AND jet.instance_id is not null
</if>
</if>
</where>
</where>
ORDER BY jet.apply_date DESC
ORDER BY jet.apply_date DESC
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgInstallationNoticeMapper.xml
View file @
840bf9fe
...
@@ -4,30 +4,30 @@
...
@@ -4,30 +4,30 @@
<select
id=
"queryForPage"
resultType=
"com.yeejoin.amos.boot.module.jg.api.entity.JgInstallationNotice"
>
<select
id=
"queryForPage"
resultType=
"com.yeejoin.amos.boot.module.jg.api.entity.JgInstallationNotice"
>
select
select
isn.sequence_nbr AS sequenceNbr,
isn.sequence_nbr AS sequenceNbr,
isn.apply_no AS applyNo,
isn.apply_no AS applyNo,
isn.supervisory_code AS supervisoryCode,
isn.supervisory_code AS supervisoryCode,
isn.notice_date AS noticeDate,
isn.notice_date AS noticeDate,
isn.use_unit_name AS useUnitName,
isn.use_unit_name AS useUnitName,
isn.receive_org_name AS receiveOrgName,
isn.receive_org_name AS receiveOrgName,
isn.region_no AS regionNo,
isn.region_no AS regionNo,
isn.install_start_date AS installStartDate,
isn.install_start_date AS installStartDate,
isn.address AS address,
isn.address AS address,
isn.notice_status AS noticeStatus,
isn.notice_status AS noticeStatus,
isn.install_unit_name AS installUnitName,
isn.install_unit_name AS installUnitName,
isn.province_name AS provinceName,
isn.province_name AS provinceName,
isn.city_name AS cityName,
isn.city_name AS cityName,
isn.county_name AS countyName,
isn.county_name AS countyName,
isn.instance_id AS instanceId,
isn.instance_id AS instanceId,
isn.promoter,
isn.promoter,
isn.next_execute_ids AS nextExecuteIds,
isn.next_execute_ids AS nextExecuteIds,
isn.instance_status AS instanceStatus,
isn.instance_status AS instanceStatus,
isn.equ_address AS equAddress,
isn.equ_address AS equAddress,
isn.handle_date AS handleDate,
isn.handle_date AS handleDate,
isn.equ_list AS equList,
isn.equ_list AS equList,
isn.notice_report_url AS noticeReportUrl
isn.notice_report_url AS noticeReportUrl
FROM
FROM
tzs_jg_installation_notice isn
tzs_jg_installation_notice isn
<where>
<where>
isn.is_delete = false
isn.is_delete = false
<if
test=
"param != null "
>
<if
test=
"param != null "
>
...
@@ -118,6 +118,6 @@
...
@@ -118,6 +118,6 @@
LEFT JOIN tz_base_enterprise_info ei ON ei.use_code = isn.use_unit_credit_code
LEFT JOIN tz_base_enterprise_info ei ON ei.use_code = isn.use_unit_credit_code
WHERE
WHERE
isn.sequence_nbr = #{sequenceNbr}
isn.sequence_nbr = #{sequenceNbr}
LIMIT 1
LIMIT 1
</select>
</select>
</mapper>
</mapper>
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgScrapCancelMapper.xml
View file @
840bf9fe
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
jri.EQU_CODE as equCode,
jri.EQU_CODE as equCode,
use.USE_INNER_CODE as innerCode,
use.USE_INNER_CODE as innerCode,
use.ADDRESS as address,
use.ADDRESS as address,
concat(use.PROVINCE_NAME,'-',use.CITY_NAME,'-',use.COUNTY_NAME) as
place,
CONCAT(use.PROVINCE_NAME,'', use.CITY_NAME, '', use.COUNTY_NAME, '', use.street_name, use.ADDRESS, '') AS
place,
re.equ_id as equipId
re.equ_id as equipId
from tzs_jg_scrap_cancel ur
from tzs_jg_scrap_cancel ur
LEFT JOIN tzs_jg_scrap_cancel_eq re on ur.sequence_nbr = re.equip_transfer_id
LEFT JOIN tzs_jg_scrap_cancel_eq re on ur.sequence_nbr = re.equip_transfer_id
...
...
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/JgEquipTransferServiceImpl.java
View file @
840bf9fe
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
service
.
impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.map.MapBuilder
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
...
@@ -154,10 +153,14 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,J
...
@@ -154,10 +153,14 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,J
String
applyNo
=
applyNoList
.
get
(
i
);
String
applyNo
=
applyNoList
.
get
(
i
);
dto
.
setApplyNo
(
applyNo
);
dto
.
setApplyNo
(
applyNo
);
dto
.
setApplyDate
(
new
Date
());
dto
.
setApplyDate
(
new
Date
());
dto
.
setNextExecuteIds
(
String
.
join
(
","
,
roleListSecond
));
dto
.
setInstanceStatus
(
String
.
join
(
","
,
roleListFirst
));
if
(
SUBMIT_TYPE_FLOW
.
equals
(
submitType
))
{
dto
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
dto
.
setNextExecuteIds
(
String
.
join
(
","
,
roleListSecond
));
dto
.
setApplyStatus
(
taskName
[
0
]);
dto
.
setInstanceStatus
(
String
.
join
(
","
,
roleListFirst
));
dto
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
dto
.
setApplyStatus
(
taskName
[
0
]);
}
jgEquipTransferEq
.
setEquId
(
String
.
valueOf
(
obj
.
get
(
"SEQUENCE_NBR"
)));
jgEquipTransferEq
.
setEquId
(
String
.
valueOf
(
obj
.
get
(
"SEQUENCE_NBR"
)));
jgEquipTransferEq
.
setEquipTransferId
(
applyNo
);
jgEquipTransferEq
.
setEquipTransferId
(
applyNo
);
if
(!
CollectionUtils
.
isEmpty
(
instanceIdList
))
{
if
(!
CollectionUtils
.
isEmpty
(
instanceIdList
))
{
...
@@ -194,27 +197,6 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,J
...
@@ -194,27 +197,6 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,J
}
}
}
}
public
Map
<
String
,
Object
>
getNextWorkflowNode
(
String
instanceId
)
{
String
role
=
""
;
String
taskName
=
"流程结束"
;
ArrayList
<
String
>
roleList
=
new
ArrayList
<>();
AjaxResult
taskNoAuth
=
Workflow
.
taskClient
.
getTaskNoAuth
(
instanceId
);
if
(!
org
.
springframework
.
util
.
ObjectUtils
.
isEmpty
(
taskNoAuth
.
get
(
"data"
)))
{
JSONObject
nextTask
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
taskNoAuth
.
get
(
"data"
)));
String
nextTaskId
=
nextTask
.
getString
(
"id"
);
taskName
=
nextTask
.
getString
(
"name"
);
AjaxResult
taskGroupName
=
Workflow
.
taskClient
.
getTaskGroupName
(
nextTaskId
);
JSONArray
data
=
JSON
.
parseArray
(
JSON
.
toJSONString
(
taskGroupName
.
get
(
"data"
)));
for
(
Object
datum
:
data
)
{
if
(((
Map
)
datum
).
containsKey
(
"groupId"
))
{
roleList
.
add
(((
Map
)
datum
).
get
(
"groupId"
).
toString
());
}
}
}
role
=
String
.
join
(
","
,
roleList
);
return
MapBuilder
.<
String
,
Object
>
create
().
put
(
"taskName"
,
taskName
).
put
(
"role"
,
role
).
build
();
}
void
getNext
(
ArrayList
<
String
>
roleListFirst
,
String
instanceId
,
String
[]
taskName
)
{
void
getNext
(
ArrayList
<
String
>
roleListFirst
,
String
instanceId
,
String
[]
taskName
)
{
AjaxResult
aj
=
Workflow
.
taskClient
.
getTaskNoAuth
(
instanceId
);
AjaxResult
aj
=
Workflow
.
taskClient
.
getTaskNoAuth
(
instanceId
);
JSONObject
taskNoAuth
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
aj
.
get
(
"data"
)));
JSONObject
taskNoAuth
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
aj
.
get
(
"data"
)));
...
@@ -281,7 +263,7 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,J
...
@@ -281,7 +263,7 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,J
return
null
;
return
null
;
}
}
Map
<
String
,
Object
>
equipTransferInfo
=
createEquipTransferInfo
(
equipTransfer
);
Map
<
String
,
Object
>
equipTransferInfo
=
new
HashMap
<>(
);
String
[]
fields
=
{
"productPhoto"
,
"designDoc"
,
"designStandard"
,
"factoryStandard"
,
String
[]
fields
=
{
"productPhoto"
,
"designDoc"
,
"designStandard"
,
"factoryStandard"
,
"productQualityYieldProve"
,
"insUseMaintainExplain"
,
"inspectReport"
,
"productQualityYieldProve"
,
"insUseMaintainExplain"
,
"inspectReport"
,
...
@@ -293,8 +275,9 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,J
...
@@ -293,8 +275,9 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,J
handleJsonArrayFields
(
equipmentInfos
.
get
(
0
),
fields
);
handleJsonArrayFields
(
equipmentInfos
.
get
(
0
),
fields
);
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
resultMap
.
putAll
(
equipmentInfos
.
get
(
0
));
resultMap
.
putAll
(
equipTransferInfo
);
resultMap
.
putAll
(
equipTransferInfo
);
resultMap
.
putAll
(
equipmentInfos
.
get
(
0
));
resultMap
.
putAll
(
createEquipTransferInfo
(
equipTransfer
));
return
resultMap
;
return
resultMap
;
}
}
...
@@ -387,6 +370,7 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,J
...
@@ -387,6 +370,7 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,J
JgEquipTransfer
equipTransfer
=
this
.
baseMapper
.
selectById
(
equipTransferInfo
.
getSequenceNbr
());
JgEquipTransfer
equipTransfer
=
this
.
baseMapper
.
selectById
(
equipTransferInfo
.
getSequenceNbr
());
if
(
ajaxResult
.
getStatus
()
==
200
)
{
if
(
ajaxResult
.
getStatus
()
==
200
)
{
equipTransfer
.
setApplyStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_SUBMITTED
.
getCode
()));
equipTransfer
.
setApplyStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_SUBMITTED
.
getCode
()));
equipTransfer
.
setPromoter
(
""
);
this
.
baseMapper
.
updateById
(
equipTransfer
);
this
.
baseMapper
.
updateById
(
equipTransfer
);
}
}
}
}
...
...
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