Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
4b467323
Commit
4b467323
authored
Jul 11, 2024
by
yangyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bug 20942、20749
parent
e9d326ee
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
6 deletions
+42
-6
PeasantHouseholdMapper.java
...s/boot/module/hygf/api/mapper/PeasantHouseholdMapper.java
+2
-1
PeasantHouseholdMapper.xml
...rc/main/resources/mapper/mysql/PeasantHouseholdMapper.xml
+3
-1
WorkOrderMapper.xml
...f-api/src/main/resources/mapper/mysql/WorkOrderMapper.xml
+1
-1
UnitInfoController.java
...s/boot/module/hygf/biz/controller/UnitInfoController.java
+17
-1
UnitInfoServiceImpl.java
...oot/module/hygf/biz/service/impl/UnitInfoServiceImpl.java
+19
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/PeasantHouseholdMapper.java
View file @
4b467323
...
@@ -19,7 +19,8 @@ public interface PeasantHouseholdMapper extends BaseMapper<PeasantHousehold> {
...
@@ -19,7 +19,8 @@ public interface PeasantHouseholdMapper extends BaseMapper<PeasantHousehold> {
@Param
(
"regionalCompaniesSeq"
)
Long
regionalCompaniesSeq
,
@Param
(
"regionalCompaniesSeq"
)
Long
regionalCompaniesSeq
,
@Param
(
"peasantHouseholdNo"
)
String
peasantHouseholdNo
,
@Param
(
"peasantHouseholdNo"
)
String
peasantHouseholdNo
,
@Param
(
"ownersName"
)
String
ownersName
,
@Param
(
"ownersName"
)
String
ownersName
,
@Param
(
"ids"
)
String
ids
@Param
(
"ids"
)
String
ids
,
@Param
(
"orderBy"
)
String
orderBy
);
);
List
<
PeasantHousehold
>
selectPeasantHouseholdListsg
(
@Param
(
"unitInfoCode"
)
String
unitInfoCode
,
List
<
PeasantHousehold
>
selectPeasantHouseholdListsg
(
@Param
(
"unitInfoCode"
)
String
unitInfoCode
,
@Param
(
"regionalCompaniesSeq"
)
Long
regionalCompaniesSeq
,
@Param
(
"regionalCompaniesSeq"
)
Long
regionalCompaniesSeq
,
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/PeasantHouseholdMapper.xml
View file @
4b467323
...
@@ -22,7 +22,9 @@ on hygf_document_station.preparation_money_id=hygf_preparation_money.sequence_nb
...
@@ -22,7 +22,9 @@ on hygf_document_station.preparation_money_id=hygf_preparation_money.sequence_nb
<if
test=
"ownersName!=null and ownersName !='' "
>
<if
test=
"ownersName!=null and ownersName !='' "
>
and hygf_peasant_household.owners_name like concat(concat("%",#{ownersName}),"%")
and hygf_peasant_household.owners_name like concat(concat("%",#{ownersName}),"%")
</if>
</if>
<if
test=
"orderBy !=null and orderBy !='' "
>
ORDER BY ${orderBy}
</if>
</select>
</select>
<select
id=
"selectPeasantHouseholdListsg"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.entity.PeasantHousehold"
>
<select
id=
"selectPeasantHouseholdListsg"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.entity.PeasantHousehold"
>
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/WorkOrderMapper.xml
View file @
4b467323
...
@@ -110,7 +110,7 @@
...
@@ -110,7 +110,7 @@
</if>
</if>
ORDER BY
ORDER BY
hygf_
power_station_engineering_info.completion
_date DESC,
hygf_
work_order.rec
_date DESC,
FIELD(hygf_work_order_power_station.power_station_construction_status, '待施工', '施工中', '待登记', '登记中', '待审核', '审核中', '未通过', '已完工')
FIELD(hygf_work_order_power_station.power_station_construction_status, '待施工', '施工中', '待登记', '登记中', '待审核', '审核中', '未通过', '已完工')
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/UnitInfoController.java
View file @
4b467323
...
@@ -775,7 +775,7 @@ public class UnitInfoController extends BaseController {
...
@@ -775,7 +775,7 @@ public class UnitInfoController extends BaseController {
@RequestParam
(
required
=
false
)
Long
regionalCompaniesSeq
@RequestParam
(
required
=
false
)
Long
regionalCompaniesSeq
)
{
)
{
UnitInfo
unitInfo
=
unitInfoMapper
.
selectById
(
unitInfoId
);
UnitInfo
unitInfo
=
unitInfoMapper
.
selectById
(
unitInfoId
);
List
<
PeasantHousehold
>
list
=
peasantHouseholdMapper
.
selectPeasantHouseholdList
(
unitInfo
.
getAmosCompanySeq
(),
regionalCompaniesSeq
,
null
,
null
,
null
);
List
<
PeasantHousehold
>
list
=
peasantHouseholdMapper
.
selectPeasantHouseholdList
(
unitInfo
.
getAmosCompanySeq
(),
regionalCompaniesSeq
,
null
,
null
,
null
,
null
);
List
<
Map
<
String
,
Object
>>
date
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
date
=
new
ArrayList
<>();
if
(
list
!=
null
){
if
(
list
!=
null
){
...
@@ -806,6 +806,22 @@ public class UnitInfoController extends BaseController {
...
@@ -806,6 +806,22 @@ public class UnitInfoController extends BaseController {
return
ResponseHelper
.
buildResponse
(
unitInfoServiceImpl
.
getPeasantHouseholdData
(
unitInfoId
,
regionalCompaniesSeq
,
current
,
size
,
peasantHouseholdNo
,
ownersName
,
ids
));
return
ResponseHelper
.
buildResponse
(
unitInfoServiceImpl
.
getPeasantHouseholdData
(
unitInfoId
,
regionalCompaniesSeq
,
current
,
size
,
peasantHouseholdNo
,
ownersName
,
ids
));
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表全部数据查询"
,
notes
=
"列表全部数据查询"
)
@GetMapping
(
value
=
"/getPeasantHouseholdDataNew"
)
public
ResponseModel
<
Page
<
PeasantHousehold
>>
getPeasantHouseholdDataNew
(
@RequestParam
(
required
=
false
)
Long
unitInfoId
,
@RequestParam
(
required
=
false
)
Long
regionalCompaniesSeq
,
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
required
=
false
)
String
peasantHouseholdNo
,
@RequestParam
(
required
=
false
)
String
ownersName
,
@RequestParam
(
required
=
false
)
String
ids
)
{
return
ResponseHelper
.
buildResponse
(
unitInfoServiceImpl
.
getPeasantHouseholdDataNew
(
unitInfoId
,
regionalCompaniesSeq
,
current
,
size
,
peasantHouseholdNo
,
ownersName
,
ids
));
}
/**获取当前登录人区域公司*/
/**获取当前登录人区域公司*/
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/UnitInfoServiceImpl.java
View file @
4b467323
...
@@ -1034,7 +1034,24 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
...
@@ -1034,7 +1034,24 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
return
jsonArray
;
return
jsonArray
;
}
}
public
Page
<
PeasantHousehold
>
getPeasantHouseholdDataNew
(
Long
unitInfoId
,
Long
regionalCompaniesSeq
,
int
pageNum
,
int
pageSize
,
String
peasantHouseholdNo
,
String
ownersName
,
String
ids
)
{
UnitInfo
unitInfo
=
unitInfoMapper
.
selectById
(
unitInfoId
);
PageHelper
.
startPage
(
pageNum
,
pageSize
);
List
<
PeasantHousehold
>
list
=
peasantHouseholdMapper
.
selectPeasantHouseholdList
(
unitInfo
.
getAmosCompanySeq
(),
regionalCompaniesSeq
,
peasantHouseholdNo
,
ownersName
,
ids
,
"hygf_peasant_household.rec_date DESC"
);
PageInfo
<
PeasantHousehold
>
page
=
new
PageInfo
(
list
);
Page
<
PeasantHousehold
>
pagenew
=
new
Page
<
PeasantHousehold
>();
pagenew
.
setCurrent
(
pageNum
);
pagenew
.
setTotal
(
page
.
getTotal
());
pagenew
.
setSize
(
pageSize
);
pagenew
.
setRecords
(
page
.
getList
());
return
pagenew
;
}
public
Page
<
PeasantHousehold
>
getPeasantHouseholdData
(
Long
unitInfoId
,
public
Page
<
PeasantHousehold
>
getPeasantHouseholdData
(
Long
unitInfoId
,
Long
regionalCompaniesSeq
,
Long
regionalCompaniesSeq
,
...
@@ -1045,7 +1062,7 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
...
@@ -1045,7 +1062,7 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
String
ids
){
String
ids
){
UnitInfo
unitInfo
=
unitInfoMapper
.
selectById
(
unitInfoId
);
UnitInfo
unitInfo
=
unitInfoMapper
.
selectById
(
unitInfoId
);
PageHelper
.
startPage
(
pageNum
,
pageSize
);
PageHelper
.
startPage
(
pageNum
,
pageSize
);
List
<
PeasantHousehold
>
list
=
peasantHouseholdMapper
.
selectPeasantHouseholdList
(
unitInfo
.
getAmosCompanySeq
(),
regionalCompaniesSeq
,
peasantHouseholdNo
,
ownersName
,
ids
);
List
<
PeasantHousehold
>
list
=
peasantHouseholdMapper
.
selectPeasantHouseholdList
(
unitInfo
.
getAmosCompanySeq
(),
regionalCompaniesSeq
,
peasantHouseholdNo
,
ownersName
,
ids
,
null
);
PageInfo
<
PeasantHousehold
>
page
=
new
PageInfo
(
list
);
PageInfo
<
PeasantHousehold
>
page
=
new
PageInfo
(
list
);
Page
<
PeasantHousehold
>
pagenew
=
new
Page
<
PeasantHousehold
>();
Page
<
PeasantHousehold
>
pagenew
=
new
Page
<
PeasantHousehold
>();
pagenew
.
setCurrent
(
pageNum
);
pagenew
.
setCurrent
(
pageNum
);
...
...
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