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
62786ff8
Commit
62786ff8
authored
Jul 09, 2024
by
朱晨阳
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
72b7db07
bcc73203
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
31 additions
and
10 deletions
+31
-10
UserDataJBDto.java
.../yeejoin/amos/boot/module/hygf/api/dto/UserDataJBDto.java
+1
-0
PeasantHouseholdMapper.java
...s/boot/module/hygf/api/mapper/PeasantHouseholdMapper.java
+1
-1
PeasantHouseholdMapper.xml
...rc/main/resources/mapper/mysql/PeasantHouseholdMapper.xml
+2
-2
PreparationMoneyController.java
...odule/hygf/biz/controller/PreparationMoneyController.java
+4
-1
UnitInfoController.java
...s/boot/module/hygf/biz/controller/UnitInfoController.java
+1
-1
FinancingInfoServiceImpl.java
...odule/hygf/biz/service/impl/FinancingInfoServiceImpl.java
+4
-1
PersonnelBusinessServiceImpl.java
...e/hygf/biz/service/impl/PersonnelBusinessServiceImpl.java
+5
-0
PreparationMoneyServiceImpl.java
...le/hygf/biz/service/impl/PreparationMoneyServiceImpl.java
+11
-2
UnitInfoServiceImpl.java
...oot/module/hygf/biz/service/impl/UnitInfoServiceImpl.java
+2
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/UserDataJBDto.java
View file @
62786ff8
...
...
@@ -33,4 +33,5 @@ public class UserDataJBDto {
* 是否有业务操作
*/
private
Boolean
hasOperationRecords
;
private
List
<
Long
>
role
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/PeasantHouseholdMapper.java
View file @
62786ff8
...
...
@@ -21,7 +21,7 @@ public interface PeasantHouseholdMapper extends BaseMapper<PeasantHousehold> {
@Param
(
"ownersName"
)
String
ownersName
,
@Param
(
"ids"
)
String
ids
);
List
<
PeasantHousehold
>
selectPeasantHouseholdListsg
(
@Param
(
"
developerId"
)
Long
developerId
,
List
<
PeasantHousehold
>
selectPeasantHouseholdListsg
(
@Param
(
"
unitInfoCode"
)
String
unitInfoCode
,
@Param
(
"regionalCompaniesSeq"
)
Long
regionalCompaniesSeq
,
@Param
(
"peasantHouseholdNo"
)
String
peasantHouseholdNo
,
@Param
(
"ownersName"
)
String
ownersName
,
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/PeasantHouseholdMapper.xml
View file @
62786ff8
...
...
@@ -32,7 +32,7 @@ on hygf_document_station.preparation_money_id=hygf_preparation_money.sequence_nb
FROM hygf_peasant_household
where
hygf_peasant_household.construction_state='备货完成'
and hygf_peasant_household.developer_id
=#{developerId}
and hygf_peasant_household.developer_id
like concat('%',#{developerId},'%')
and hygf_peasant_household.regional_companies_seq=#{regionalCompaniesSeq}
and hygf_peasant_household.sequence_nbr not in (
select hygf_work_order_power_station.peasant_household_id from hygf_work_order_power_station
...
...
@@ -69,7 +69,7 @@ on hygf_document_station.preparation_money_id=hygf_preparation_money.sequence_nb
and developer_code = #{developerCode}
</if>
<if
test=
"peasantHouseholdNo!=null and peasantHouseholdNo !=''"
>
and peasant_household_no
= #{peasantHouseholdNo}
and peasant_household_no
like concat ('%',#{peasantHouseholdNo},'%')
</if>
ORDER BY creation_time DESC
</select>
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/PreparationMoneyController.java
View file @
62786ff8
...
...
@@ -341,6 +341,9 @@ public class PreparationMoneyController extends BaseController {
public
ResponseModel
<
PreparationMoney
>
getFromInfo
(
@RequestParam
(
value
=
"ids"
)
String
ids
){
List
<
String
>
list
=
Arrays
.
asList
(
ids
.
split
(
","
));
return
ResponseHelper
.
buildResponse
(
preparationMoneyServiceImpl
.
getFromInfo
(
list
))
;
AgencyUserModel
userInfo
=
getUserInfo
();
PreparationMoney
fromInfo
=
preparationMoneyServiceImpl
.
getFromInfo
(
list
);
fromInfo
.
setOrderUser
(
userInfo
.
getRealName
());
return
ResponseHelper
.
buildResponse
(
fromInfo
)
;
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/UnitInfoController.java
View file @
62786ff8
...
...
@@ -904,7 +904,7 @@ public ResponseModel< List<Map<String,Object>> > getRegionalCompanieByuser(
)
{
UserUnitInformationDto
userUnitInformationDto
=
personnelBusinessMapper
.
getUserUnitInformationDto
(
getUserInfo
().
getUserId
());
return
ResponseHelper
.
buildResponse
(
unitInfoServiceImpl
.
selectPeasantHouseholdListsg
(
userUnitInformationDto
.
getAmosDealer
Id
(),
regionalCompaniesSeq
,
current
,
size
,
peasantHouseholdNo
,
ownersName
,
ids
));
return
ResponseHelper
.
buildResponse
(
unitInfoServiceImpl
.
selectPeasantHouseholdListsg
(
userUnitInformationDto
.
getAmosDealer
OrgCode
(),
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/FinancingInfoServiceImpl.java
View file @
62786ff8
...
...
@@ -283,6 +283,9 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina
if
(
params
.
get
(
"isFlag"
).
equals
(
"1"
))
{
params
.
put
(
"comments"
,
"退回整改"
);
params
.
put
(
"approvalStatus"
,
params
.
getOrDefault
(
"problemDescription"
,
""
));
}
else
{
params
.
put
(
"approvalStatus"
,
""
);
}
}
else
{
task
.
setResultCode
(
"approvalStatus"
);
...
...
@@ -300,7 +303,7 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina
if
(
null
==
financingAuditingDto
.
getInstanceId
())
{
financingAuditingDto
.
setInstanceId
(
financingAuditing
.
getInstanceId
());
}
financingAuditingDto
.
setStatus
(
params
.
get
(
"approvalStatus
"
).
toString
());
financingAuditingDto
.
setStatus
(
params
.
get
OrDefault
(
"comments"
,
"
"
).
toString
());
financingAuditingDto
.
setNodeRouting
(
FinancingAuditEnum
.
getNodeByCode
(
workflowResultDto
.
getNextNodeKey
()));
financingAuditingService
.
createWithModel
(
financingAuditingDto
);
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/PersonnelBusinessServiceImpl.java
View file @
62786ff8
...
...
@@ -506,6 +506,7 @@ public class PersonnelBusinessServiceImpl extends BaseService<PersonnelBusinessD
Boolean
hasOperationRecords
=
hasOperationRecords
(
id
);
userDataZHDto
.
setHasOperationRecords
(
hasOperationRecords
);
userDataJBDto
.
setHasOperationRecords
(
hasOperationRecords
);
userDataJBDto
.
setRole
(
JSONArray
.
parseArray
(
publicAgencyUse
.
getRole
(),
long
.
class
));
return
new
UserDataDto
(
userDataZHDto
,
userDataJBDto
,
userDataZZDto
);
}
...
...
@@ -530,6 +531,10 @@ public class PersonnelBusinessServiceImpl extends BaseService<PersonnelBusinessD
List
<
String
>
tableName
=
personnelBusinessMapper
.
selectHygfTableName
();
if
(
CollectionUtil
.
isNotEmpty
(
tableName
))
{
for
(
String
table
:
tableName
)
{
// 排除人员业务信息表, 经销商人员信息, 人员消息
if
(
"hygf_personnel_business"
.
equals
(
table
)
||
"hygf_unit_info"
.
equals
(
table
)
||
"hygf_user_message"
.
equals
(
table
))
{
continue
;
}
int
count
=
personnelBusinessMapper
.
countByUserId
(
table
,
userId
);
if
(
count
>
0
)
{
operateRecord
=
true
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/PreparationMoneyServiceImpl.java
View file @
62786ff8
...
...
@@ -1071,11 +1071,18 @@ public class PreparationMoneyServiceImpl extends BaseService<PreparationMoneyDto
//补货审核
public
void
replenishmentAudit
(
Long
sequenceNbr
,
Map
<
String
,
Object
>
kv
)
{
PreparationMoney
preparationMoney
=
preparationMoneyMapper
.
selectById
(
sequenceNbr
);
LambdaQueryWrapper
<
DocumentStation
>
stations
=
new
LambdaQueryWrapper
<>();
stations
.
eq
(
DocumentStation:
:
getPreparationMoneyId
,
sequenceNbr
);
List
<
DocumentStation
>
documentStations
=
documentStationMapper
.
selectList
(
stations
);
List
<
Long
>
collect
=
documentStations
.
stream
().
map
(
DocumentStation:
:
getStationId
).
collect
(
Collectors
.
toList
());
LambdaUpdateWrapper
<
PeasantHousehold
>
up
=
new
LambdaUpdateWrapper
<>();
if
(
kv
.
get
(
"approvalStatus"
).
toString
().
equals
(
"0"
)){
preparationMoney
.
setOrderStatus
(
DeliveryStateeEnum
.
待补货
.
getName
());
up
.
set
(
PeasantHousehold:
:
getPreparationMoneyState
,
DeliveryStateeEnum
.
待补货
.
getName
());
up
.
set
(
PeasantHousehold:
:
getConstructionState
,
DeliveryStateeEnum
.
待补货
.
getName
());
up
.
in
(
BaseEntity:
:
getSequenceNbr
,
collect
);
peasantHouseholdMapper
.
update
(
null
,
up
);
}
else
{
preparationMoney
.
setOrderStatus
(
DeliveryStateeEnum
.
待确认
.
getName
());
...
...
@@ -1137,8 +1144,8 @@ public class PreparationMoneyServiceImpl extends BaseService<PreparationMoneyDto
listDocumentStation
.
add
(
documentStation
);
}
up
.
in
(
PeasantHousehold:
:
getSequenceNbr
,
idsH
);
up
.
set
(
PeasantHousehold:
:
getPreparationMoneyState
,
DeliveryStateeEnum
.
待补
货
.
getName
());
up
.
set
(
PeasantHousehold:
:
getConstructionState
,
DeliveryStateeEnum
.
待补
货
.
getName
());
up
.
set
(
PeasantHousehold:
:
getPreparationMoneyState
,
ArrivalStateeEnum
.
待收
货
.
getName
());
up
.
set
(
PeasantHousehold:
:
getConstructionState
,
ArrivalStateeEnum
.
待收
货
.
getName
());
peasantHouseholdMapper
.
update
(
null
,
up
);
documentStationService
.
saveBatch
(
listDocumentStation
);
}
...
...
@@ -1198,6 +1205,7 @@ public class PreparationMoneyServiceImpl extends BaseService<PreparationMoneyDto
stations
.
add
(
documentStation
);
});
preparationMoney
.
setPeasantHouseholdId
(
stations
);
preparationMoney
.
setOrderTime
(
new
Date
());
return
preparationMoney
;
}
}
\ 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/UnitInfoServiceImpl.java
View file @
62786ff8
...
...
@@ -1054,7 +1054,7 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
pagenew
.
setRecords
(
page
.
getList
());
return
pagenew
;
}
public
Page
<
PeasantHousehold
>
selectPeasantHouseholdListsg
(
Long
unitInfoId
,
public
Page
<
PeasantHousehold
>
selectPeasantHouseholdListsg
(
String
unitInfoCode
,
Long
regionalCompaniesSeq
,
int
pageNum
,
int
pageSize
,
...
...
@@ -1062,7 +1062,7 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
String
ownersName
,
String
ids
){
PageHelper
.
startPage
(
pageNum
,
pageSize
);
List
<
PeasantHousehold
>
list
=
peasantHouseholdMapper
.
selectPeasantHouseholdListsg
(
unitInfo
Id
,
regionalCompaniesSeq
,
peasantHouseholdNo
,
ownersName
,
ids
);
List
<
PeasantHousehold
>
list
=
peasantHouseholdMapper
.
selectPeasantHouseholdListsg
(
unitInfo
Code
,
regionalCompaniesSeq
,
peasantHouseholdNo
,
ownersName
,
ids
);
PageInfo
<
PeasantHousehold
>
page
=
new
PageInfo
(
list
);
Page
<
PeasantHousehold
>
pagenew
=
new
Page
<
PeasantHousehold
>();
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