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
99f63eed
Commit
99f63eed
authored
Jan 17, 2024
by
李秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交验收管理相关接口
parent
4e193a07
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
57 additions
and
18 deletions
+57
-18
AcceptanceDto.java
.../yeejoin/amos/boot/module/hygf/api/dto/AcceptanceDto.java
+4
-2
AcceptanceRectificationOrderMapper.java
...e/hygf/api/mapper/AcceptanceRectificationOrderMapper.java
+8
-0
IAcceptanceService.java
...amos/boot/module/hygf/api/service/IAcceptanceService.java
+3
-1
AcceptanceMapper.xml
...-api/src/main/resources/mapper/mysql/AcceptanceMapper.xml
+3
-3
AcceptanceRectificationOrderMapper.xml
...urces/mapper/mysql/AcceptanceRectificationOrderMapper.xml
+25
-4
AcceptanceRectificationOrderController.java
...iz/controller/AcceptanceRectificationOrderController.java
+3
-3
AcceptanceRectificationOrderServiceImpl.java
...service/impl/AcceptanceRectificationOrderServiceImpl.java
+5
-0
AcceptanceServiceImpl.java
...t/module/hygf/biz/service/impl/AcceptanceServiceImpl.java
+6
-5
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/AcceptanceDto.java
View file @
99f63eed
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
dto
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
io.swagger.annotations.ApiModel
;
...
...
@@ -18,13 +19,14 @@ public class AcceptanceDto extends BaseDto {
private
String
ownersName
;
@ApiModelProperty
(
value
=
"项目地址"
)
private
String
projectAddress
;
private
String
projectAddress
Name
;
@ApiModelProperty
(
value
=
"服务代理商"
)
private
String
serviceAgent
;
@ApiModelProperty
(
value
=
"提交日期"
)
private
Object
submitDate
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Object
acceptanceRecDate
;
@JsonIgnore
@ApiModelProperty
(
value
=
"开始提交日期-[查询参数使用]"
)
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/AcceptanceRectificationOrderMapper.java
View file @
99f63eed
...
...
@@ -25,4 +25,12 @@ public interface AcceptanceRectificationOrderMapper extends BaseMapper<Acceptanc
@Param
(
"page"
)
IPage
<
AcceptanceRectificationOrderDto
>
page
,
@Param
(
"acceptanceSeqNbr"
)
Long
acceptanceSeqNbr
);
/**
* 根据编号查询
*
* @param sequenceNbr 编号
* @return 结果
*/
AcceptanceRectificationOrderDto
queryBySequenceNbr
(
@Param
(
"sequenceNbr"
)
Long
sequenceNbr
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/service/IAcceptanceService.java
View file @
99f63eed
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
service
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.AcceptanceDto
;
...
...
@@ -21,5 +22,6 @@ public interface IAcceptanceService {
* @param sequenceNbr sequenceNbr
* @return Map
*/
Map
<
String
,
Object
>
offlineAcceptanceDetails
(
Long
sequenceNbr
);
Map
<
String
,
Object
>
acceptanceDetails
(
Long
sequenceNbr
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/AcceptanceMapper.xml
View file @
99f63eed
...
...
@@ -9,7 +9,7 @@
ph.peasant_household_no AS powerStationCode,
ph.developer_name as serviceAgent,
ph.owners_name AS ownersName,
ph.project_address_name AS projectAddress,
ph.project_address_name AS projectAddress
Name
,
bga.acceptance_rec_date AS acceptanceRecDate,
bga.acceptance_status AS acceptanceStatus,
ph.regional_companies_code AS regionalCompaniesCode,
...
...
@@ -30,8 +30,8 @@
<if
test=
"param.sequenceNbr != null and param.sequenceNbr != ''"
>
AND bga.sequence_nbr = #{param.sequenceNbr}
</if>
<if
test=
"param.projectAddress
!= null and param.projectAddress
!= ''"
>
AND ph.project_address
LIKE CONCAT('%', #{param.projectAddress
}, '%')
<if
test=
"param.projectAddress
Name != null and param.projectAddressName
!= ''"
>
AND ph.project_address
_name LIKE CONCAT('%', #{param.projectAddressName
}, '%')
</if>
<if
test=
"param.serviceAgent != null and param.serviceAgent != ''"
>
AND ph.developer_name LIKE CONCAT('%', #{param.serviceAgent}, '%')
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/AcceptanceRectificationOrderMapper.xml
View file @
99f63eed
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.hygf.api.mapper.AcceptanceRectificationOrderMapper"
>
<select
id=
"page"
resultType=
"
java.util.Map
"
>
<select
id=
"page"
resultType=
"
com.yeejoin.amos.boot.module.hygf.api.dto.AcceptanceRectificationOrderDto
"
>
SELECT
aro.sequence_nbr AS sequenceNbr,
ph.peasant_household_no as powerStationCode,
ph.owners_name AS ownersName,
ph.project_address AS powerStationAddress,
ph.project_address
_name
AS powerStationAddress,
IF(aro.rectification_status IS NULL OR aro.rectification_status = '', 0, 1) AS rectificationStatus
FROM
hygf_acceptance_rectification_order aro
LEFT JOIN hygf_peasant_household ph ON ph.sequence_nbr = aro.peasant_household_id
LEFT JOIN hygf_basic_grid_acceptance bga ON bga.peasant_household_id = aro.peasant_household_id
LEFT JOIN hygf_peasant_household ph ON ph.sequence_nbr = bga.peasant_household_id
<where>
aro.is_delete = 0
<if
test=
"acceptanceSeqNbr != null and acceptanceSeqNbr != ''"
>
AND
aro.peasant_household_id
= #{acceptanceSeqNbr}
AND
bga.sequence_nbr
= #{acceptanceSeqNbr}
</if>
</where>
ORDER BY
aro.rectification_status DESC,
aro.rec_date DESC
</select>
<select
id=
"queryBySequenceNbr"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.AcceptanceRectificationOrderDto"
>
SELECT
aro.*,
ph.peasant_household_no as powerStationCode,
ph.owners_name AS ownersName,
ph.project_address_name AS powerStationAddress,
IF(aro.rectification_status IS NULL OR aro.rectification_status = '', 0, 1) AS rectificationStatus
FROM
hygf_acceptance_rectification_order aro
LEFT JOIN hygf_basic_grid_acceptance bga ON bga.peasant_household_id = aro.peasant_household_id
LEFT JOIN hygf_peasant_household ph ON ph.sequence_nbr = bga.peasant_household_id
<where>
aro.is_delete = 0
<if
test=
"sequenceNbr != null and sequenceNbr != ''"
>
AND aro.sequence_nbr = #{sequenceNbr}
</if>
</where>
</select>
</mapper>
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/AcceptanceRectificationOrderController.java
View file @
99f63eed
...
...
@@ -77,11 +77,11 @@ public class AcceptanceRectificationOrderController extends BaseController {
* @param sequenceNbr 主键
* @return
*/
@GetMapping
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个验收整改单"
,
notes
=
"根据sequenceNbr查询单个验收整改单"
)
public
ResponseModel
<
AcceptanceRectificationOrderDto
>
selectOne
(
@
PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
acceptanceRectificationOrderServiceImpl
.
queryBySeq
(
sequenceNbr
));
public
ResponseModel
<
AcceptanceRectificationOrderDto
>
selectOne
(
@
RequestParam
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
acceptanceRectificationOrderServiceImpl
.
queryBySeq
uenceNbr
(
sequenceNbr
));
}
/**
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/AcceptanceRectificationOrderServiceImpl.java
View file @
99f63eed
...
...
@@ -40,4 +40,8 @@ public class AcceptanceRectificationOrderServiceImpl extends BaseService<Accepta
public
List
<
AcceptanceRectificationOrderDto
>
queryForAcceptanceRectificationOrderList
()
{
return
this
.
queryForList
(
""
,
false
);
}
public
AcceptanceRectificationOrderDto
queryBySequenceNbr
(
Long
sequenceNbr
)
{
return
acceptanceRectificationOrderMapper
.
queryBySequenceNbr
(
sequenceNbr
);
}
}
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/AcceptanceServiceImpl.java
View file @
99f63eed
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.yeejoin.amos.boot.module.hygf.api.Enum.AcceptanceStatusEnum
;
...
...
@@ -51,10 +52,10 @@ public class AcceptanceServiceImpl implements IAcceptanceService {
acceptanceDto
.
setAcceptanceStatus
(
jsonArray
.
toJSONString
());
}
// 处理提交日期
if
(
Objects
.
nonNull
(
acceptanceDto
.
get
SubmitDate
())
&&
acceptanceDto
.
getSubmit
Date
()
instanceof
List
)
{
Object
submitDate
=
acceptanceDto
.
getSubmit
Date
();
List
<
String
>
dates
=
((
ArrayList
<
String
>)
submit
Date
).
stream
().
map
(
String:
:
trim
).
collect
(
Collectors
.
toList
());
if
(!
dates
.
isEmpty
())
{
if
(
Objects
.
nonNull
(
acceptanceDto
.
get
AcceptanceRecDate
())
&&
acceptanceDto
.
getAcceptanceRec
Date
()
instanceof
List
)
{
Object
acceptanceRecDate
=
acceptanceDto
.
getAcceptanceRec
Date
();
List
<
String
>
dates
=
((
ArrayList
<
String
>)
acceptanceRec
Date
).
stream
().
map
(
String:
:
trim
).
collect
(
Collectors
.
toList
());
if
(!
dates
.
isEmpty
()
&&
StringUtils
.
hasText
(
dates
.
get
(
0
))
&&
StringUtils
.
hasText
(
dates
.
get
(
1
))
)
{
acceptanceDto
.
setStartSubmitDate
(
dates
.
get
(
0
)
+
" 00:00:00"
);
acceptanceDto
.
setEndSubmitDate
(
dates
.
get
(
1
)
+
" 23:59:59"
);
}
...
...
@@ -76,7 +77,7 @@ public class AcceptanceServiceImpl implements IAcceptanceService {
* @return Map
*/
@Override
public
Map
<
String
,
Object
>
offlineA
cceptanceDetails
(
Long
sequenceNbr
)
{
public
Map
<
String
,
Object
>
a
cceptanceDetails
(
Long
sequenceNbr
)
{
Assert
.
notNull
(
sequenceNbr
,
"sequenceNbr不能为空"
);
BasicGridAcceptance
basicGridAcceptance
=
basicGridAcceptanceMapper
.
selectById
(
sequenceNbr
);
...
...
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