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
e0e5e00a
Commit
e0e5e00a
authored
Jun 27, 2024
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
26854 【智信户用(管理端)】迁移工作台相关代码
parent
e434030e
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
41 additions
and
17 deletions
+41
-17
FinancingInfoMapper.xml
...i/src/main/resources/mapper/mysql/FinancingInfoMapper.xml
+3
-0
FinancingInfoController.java
...t/module/hygf/biz/controller/FinancingInfoController.java
+3
-2
TaskV2FeignService.java
...n/amos/boot/module/hygf/biz/feign/TaskV2FeignService.java
+14
-4
BasicGridAcceptanceServiceImpl.java
...hygf/biz/service/impl/BasicGridAcceptanceServiceImpl.java
+3
-1
CommonServiceImpl.java
.../boot/module/hygf/biz/service/impl/CommonServiceImpl.java
+6
-1
FinancingInfoServiceImpl.java
...odule/hygf/biz/service/impl/FinancingInfoServiceImpl.java
+2
-1
SurveyInformationServiceImpl.java
...e/hygf/biz/service/impl/SurveyInformationServiceImpl.java
+4
-2
UnitInfoServiceImpl.java
...oot/module/hygf/biz/service/impl/UnitInfoServiceImpl.java
+6
-6
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/FinancingInfoMapper.xml
View file @
e0e5e00a
...
@@ -35,6 +35,9 @@
...
@@ -35,6 +35,9 @@
<if
test=
"params.type == 3 "
>
<if
test=
"params.type == 3 "
>
and info.status in ('待整改','整改未完成')
and info.status in ('待整改','整改未完成')
</if>
</if>
<if
test=
"params.peasantHouseholdNo != null and params.peasantHouseholdNo !='' "
>
and hph.peasant_household_no = #{params.peasantHouseholdNo}
</if>
</where>
</where>
ORDER BY
ORDER BY
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/FinancingInfoController.java
View file @
e0e5e00a
...
@@ -117,11 +117,12 @@ public class FinancingInfoController extends BaseController {
...
@@ -117,11 +117,12 @@ public class FinancingInfoController extends BaseController {
public
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"type"
)
String
type
,
public
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"type"
)
String
type
,
@RequestParam
(
value
=
"status"
,
required
=
false
)
String
status
,
@RequestParam
(
value
=
"status"
,
required
=
false
)
String
status
,
@RequestParam
(
value
=
"regionalCompaniesCode"
,
required
=
false
)
String
regionalCompaniesCode
,
@RequestParam
(
value
=
"regionalCompaniesCode"
,
required
=
false
)
String
regionalCompaniesCode
,
@RequestParam
(
value
=
"ownersName"
,
required
=
false
)
String
ownersName
){
@RequestParam
(
value
=
"ownersName"
,
required
=
false
)
String
ownersName
,
@RequestParam
(
value
=
"peasantHouseholdNo"
,
required
=
false
)
String
peasantHouseholdNo
){
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<
Map
<
String
,
Object
>>();
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<
Map
<
String
,
Object
>>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
financingInfoServiceImpl
.
queryForFinancingInfoPage
(
page
,
type
,
status
,
regionalCompaniesCode
,
ownersName
));
return
ResponseHelper
.
buildResponse
(
financingInfoServiceImpl
.
queryForFinancingInfoPage
(
page
,
type
,
status
,
regionalCompaniesCode
,
ownersName
,
peasantHouseholdNo
));
}
}
/**
/**
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/feign/TaskV2FeignService.java
View file @
e0e5e00a
...
@@ -4,10 +4,7 @@ import com.yeejoin.amos.component.feign.config.InnerInvokException;
...
@@ -4,10 +4,7 @@ import com.yeejoin.amos.component.feign.config.InnerInvokException;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.feign.systemctl.model.TaskV2Model
;
import
com.yeejoin.amos.feign.systemctl.model.TaskV2Model
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
java.util.List
;
import
java.util.List
;
...
@@ -30,6 +27,19 @@ public interface TaskV2FeignService {
...
@@ -30,6 +27,19 @@ public interface TaskV2FeignService {
FeignClientResult
<
List
<
TaskV2Model
>>
batchAdd
(
@RequestBody
List
<
TaskV2Model
>
modelList
)
throws
InnerInvokException
;
FeignClientResult
<
List
<
TaskV2Model
>>
batchAdd
(
@RequestBody
List
<
TaskV2Model
>
modelList
)
throws
InnerInvokException
;
/**
/**
* 批量新增任务
*
* @param modelList 新增待办
* @return TaskV2Model
* @throws InnerInvokException e
*/
@RequestMapping
(
value
=
"/batch/add"
,
method
=
RequestMethod
.
POST
)
FeignClientResult
<
List
<
TaskV2Model
>>
batchAddNew
(
@RequestHeader
(
name
=
"appKey"
,
required
=
true
)
String
appKey
,
@RequestHeader
(
name
=
"product"
,
required
=
true
)
String
product
,
@RequestHeader
(
name
=
"token"
,
required
=
true
)
String
token
,
@RequestBody
List
<
TaskV2Model
>
modelList
)
throws
InnerInvokException
;
/**
* 更新任务
* 更新任务
*
*
* @param model 待办信息
* @param model 待办信息
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/BasicGridAcceptanceServiceImpl.java
View file @
e0e5e00a
...
@@ -284,7 +284,9 @@ public class BasicGridAcceptanceServiceImpl extends BaseService<BasicGridAccepta
...
@@ -284,7 +284,9 @@ public class BasicGridAcceptanceServiceImpl extends BaseService<BasicGridAccepta
basicGridAcceptanceMapper
.
updateById
(
basicGridAcceptanc
);
basicGridAcceptanceMapper
.
updateById
(
basicGridAcceptanc
);
//更新待办
//更新待办
updateBasicGridAcceptanceTask
(
basicGridAcceptanc
,
workFlowService
.
buildWorkFlowInfo
(
CollectionUtil
.
newArrayList
(
processTaskDTO
)).
get
(
0
));
WorkflowResultDto
workflowResultDto
=
workFlowService
.
buildWorkFlowInfo
(
CollectionUtil
.
newArrayList
(
processTaskDTO
)).
get
(
0
);
workflowResultDto
.
setInstanceId
(
basicGridAcceptanc
.
getInstanceId
());
updateBasicGridAcceptanceTask
(
basicGridAcceptanc
,
workflowResultDto
);
}
}
/**
/**
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/CommonServiceImpl.java
View file @
e0e5e00a
...
@@ -181,7 +181,12 @@ public class CommonServiceImpl {
...
@@ -181,7 +181,12 @@ public class CommonServiceImpl {
taskV2Models
.
add
(
model
);
taskV2Models
.
add
(
model
);
}
}
taskV2FeignService
.
batchAdd
(
taskV2Models
);
//如果使用的是机器人则使用机器人的token、appkey、product进行调用
if
(
amosRequestContext
.
getUserId
().
equals
(
RequestContext
.
getExeUserId
()))
{
taskV2FeignService
.
batchAddNew
(
amosRequestContext
.
getAppKey
(),
amosRequestContext
.
getProduct
(),
amosRequestContext
.
getToken
(),
taskV2Models
);
}
else
{
taskV2FeignService
.
batchAdd
(
taskV2Models
);
}
}
}
private
void
dealStartUser
(
TaskModelDto
obj
)
{
private
void
dealStartUser
(
TaskModelDto
obj
)
{
...
...
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 @
e0e5e00a
...
@@ -66,7 +66,7 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina
...
@@ -66,7 +66,7 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina
private
CommonServiceImpl
commonService
;
private
CommonServiceImpl
commonService
;
@UserLimits
@UserLimits
public
Page
<
Map
<
String
,
Object
>>
queryForFinancingInfoPage
(
Page
<
Map
<
String
,
Object
>>
page
,
String
type
,
String
status
,
String
regionalCompaniesCode
,
String
ownersName
)
{
public
Page
<
Map
<
String
,
Object
>>
queryForFinancingInfoPage
(
Page
<
Map
<
String
,
Object
>>
page
,
String
type
,
String
status
,
String
regionalCompaniesCode
,
String
ownersName
,
String
peasantHouseholdNo
)
{
StdUserEmpower
orgCode
=
(
StdUserEmpower
)
redisUtils
.
get
(
"Emp_"
+
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
()));
StdUserEmpower
orgCode
=
(
StdUserEmpower
)
redisUtils
.
get
(
"Emp_"
+
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
()));
ReginParams
reginParams
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
ReginParams
reginParams
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
List
<
String
>
amosOrgCodes
=
orgCode
.
getAmosOrgCode
();
List
<
String
>
amosOrgCodes
=
orgCode
.
getAmosOrgCode
();
...
@@ -75,6 +75,7 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina
...
@@ -75,6 +75,7 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina
params
.
put
(
"status"
,
status
);
params
.
put
(
"status"
,
status
);
params
.
put
(
"regionalCompaniesCode"
,
regionalCompaniesCode
);
params
.
put
(
"regionalCompaniesCode"
,
regionalCompaniesCode
);
params
.
put
(
"type"
,
type
);
params
.
put
(
"type"
,
type
);
params
.
put
(
"peasantHouseholdNo"
,
peasantHouseholdNo
);
// 1 投融人员 2.融资 3经销商管理员
// 1 投融人员 2.融资 3经销商管理员
switch
(
type
)
{
switch
(
type
)
{
case
"1"
:
case
"1"
:
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/SurveyInformationServiceImpl.java
View file @
e0e5e00a
...
@@ -380,8 +380,10 @@ public class SurveyInformationServiceImpl
...
@@ -380,8 +380,10 @@ public class SurveyInformationServiceImpl
long
idsk
=
peasantHousehold
.
getSequenceNbr
();
long
idsk
=
peasantHousehold
.
getSequenceNbr
();
up
.
eq
(
PeasantHousehold:
:
getSequenceNbr
,
idsk
);
up
.
eq
(
PeasantHousehold:
:
getSequenceNbr
,
idsk
);
peasantHouseholdMapper
.
update
(
null
,
up
);
peasantHouseholdMapper
.
update
(
null
,
up
);
List
<
WorkflowResultDto
>
workflowResultDtos
=
workFlowService
.
buildWorkFlowInfo
(
processTaskDTOS
);
//添加待办
commonService
.
buildTaskModel
(
commonService
.
buildTaskModelDto
(
powerStation
,
workflowResultDtos
.
get
(
0
),
BusinessTypeEnum
.
HYGF_DZ_SH
));
WorkflowResultDto
workflowResultDto
=
workFlowService
.
buildWorkFlowInfo
(
processTaskDTOS
).
get
(
0
);
workflowResultDto
.
setInstanceId
(
powerStation
.
getProcessInstanceId
());
commonService
.
buildTaskModel
(
commonService
.
buildTaskModelDto
(
powerStation
,
workflowResultDto
,
BusinessTypeEnum
.
HYGF_DZ_SH
));
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
...
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 @
e0e5e00a
...
@@ -560,7 +560,7 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto, UnitInfo, Unit
...
@@ -560,7 +560,7 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto, UnitInfo, Unit
@Override
@Override
@Transactional
@
Global
Transactional
public
String
powerStationExamine
(
long
pageId
,
String
nodeCode
,
String
stationId
,
String
taskId
,
String
planInstanceId
,
Map
<
String
,
Object
>
kv
)
{
public
String
powerStationExamine
(
long
pageId
,
String
nodeCode
,
String
stationId
,
String
taskId
,
String
planInstanceId
,
Map
<
String
,
Object
>
kv
)
{
// 2.更新审核记录表
// 2.更新审核记录表
...
@@ -676,8 +676,8 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto, UnitInfo, Unit
...
@@ -676,8 +676,8 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto, UnitInfo, Unit
this
.
saveOrUpdate
(
unitInfo
);
this
.
saveOrUpdate
(
unitInfo
);
//更新待办
//更新待办
WorkflowResultDto
workflowResultDto
=
workFlowService
.
buildWorkFlowInfo
(
CollectionUtil
.
newArrayList
(
processTaskDTO
)).
get
(
0
);
WorkflowResultDto
workflowResultDto
=
workFlowService
.
buildWorkFlowInfo
(
CollectionUtil
.
newArrayList
(
processTaskDTO
)).
get
(
0
);
workflowResultDto
.
setInstanceId
(
planInstanceId
);
workflowResultDto
.
setInstanceId
(
dealerReview
.
getProcessInstanceId
()
);
updateUnitInfoTask
(
dealerReview
,
workflowResultDto
);
updateUnitInfoTask
(
unitInfo
,
workflowResultDto
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -816,16 +816,16 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto, UnitInfo, Unit
...
@@ -816,16 +816,16 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto, UnitInfo, Unit
return
code
;
return
code
;
}
}
private
void
updateUnitInfoTask
(
DealerReview
dealerReview
,
WorkflowResultDto
workflowResultDto
)
{
private
void
updateUnitInfoTask
(
UnitInfo
unitInfo
,
WorkflowResultDto
workflowResultDto
)
{
Map
<
String
,
Object
>
updateTaskParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
updateTaskParam
=
new
HashMap
<>();
updateTaskParam
.
put
(
"flowStatus"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getCode
());
updateTaskParam
.
put
(
"flowStatus"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getCode
());
updateTaskParam
.
put
(
"flowStatusLabel"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
());
updateTaskParam
.
put
(
"flowStatusLabel"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
());
updateTaskParam
.
put
(
"taskStatus"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getCode
());
updateTaskParam
.
put
(
"taskStatus"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getCode
());
updateTaskParam
.
put
(
"taskStatusLabel"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
());
updateTaskParam
.
put
(
"taskStatusLabel"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
());
updateTaskParam
.
put
(
"model"
,
dealerReview
);
updateTaskParam
.
put
(
"model"
,
unitInfo
);
updateTaskParam
.
put
(
"relationId"
,
workflowResultDto
.
getInstanceId
());
updateTaskParam
.
put
(
"relationId"
,
workflowResultDto
.
getInstanceId
());
commonService
.
updateTaskModel
(
updateTaskParam
);
commonService
.
updateTaskModel
(
updateTaskParam
);
commonService
.
buildTaskModel
((
commonService
.
buildTaskModelDto
(
dealerReview
,
workflowResultDto
,
BusinessTypeEnum
.
HYGF_JXS_SH
)));
commonService
.
buildTaskModel
((
commonService
.
buildTaskModelDto
(
unitInfo
,
workflowResultDto
,
BusinessTypeEnum
.
HYGF_JXS_SH
)));
}
}
@Override
@Override
...
...
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