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
55d21662
Commit
55d21662
authored
Aug 24, 2023
by
杨阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打印日志
调整二维码接口参数验证 调整平台微信注册接口 农户注册bug fixed - 事务统一
parent
c4ff2483
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
PeasantHouseholdWxController.java
...ule/hygf/biz/controller/PeasantHouseholdWxController.java
+1
-7
PeasantHouseholdServiceImpl.java
...le/hygf/biz/service/impl/PeasantHouseholdServiceImpl.java
+7
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/PeasantHouseholdWxController.java
View file @
55d21662
...
@@ -163,13 +163,7 @@ public class PeasantHouseholdWxController extends BaseController {
...
@@ -163,13 +163,7 @@ public class PeasantHouseholdWxController extends BaseController {
}
}
}
}
}
}
PeasantHouseholdDto
result
=
peasantHouseholdServiceImpl
.
savePeasantHousehold
(
model
);
PeasantHouseholdDto
result
=
peasantHouseholdServiceImpl
.
savePeasantHousehold
(
model
,
userInfo
);
// 更新姓名到平台用户的真实姓名
RequestContext
.
setAppKey
(
"AMOS_STUDIO"
);
RequestContext
.
setProduct
(
"AMOS_STUDIO_WEB"
);
RequestContext
.
setToken
(
requestContext
.
getToken
());
userInfo
.
setRealName
(
model
.
getOwnersName
());
Privilege
.
agencyUserClient
.
update
(
userInfo
,
userInfo
.
getUserId
());
return
ResponseHelper
.
buildResponse
(
result
);
return
ResponseHelper
.
buildResponse
(
result
);
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/PeasantHouseholdServiceImpl.java
View file @
55d21662
...
@@ -151,7 +151,7 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
...
@@ -151,7 +151,7 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
public
static
final
String
SECRETKEY
=
"qaz"
;
public
static
final
String
SECRETKEY
=
"qaz"
;
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
PeasantHouseholdDto
savePeasantHousehold
(
PeasantHouseholdDto
model
)
{
public
PeasantHouseholdDto
savePeasantHousehold
(
PeasantHouseholdDto
model
,
AgencyUserModel
userInfo
)
{
SurveyInformationDto
surveyInformationDto
=
new
SurveyInformationDto
();
SurveyInformationDto
surveyInformationDto
=
new
SurveyInformationDto
();
surveyInformationServiceImpl
.
createWithModel
(
surveyInformationDto
);
surveyInformationServiceImpl
.
createWithModel
(
surveyInformationDto
);
...
@@ -195,7 +195,12 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
...
@@ -195,7 +195,12 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
householdContract
.
setProjectUserId
(
peasantHousehold
.
getAmosUserId
());
householdContract
.
setProjectUserId
(
peasantHousehold
.
getAmosUserId
());
householdContractServiceImpl
.
addHouseholdContract
(
householdContract
);
householdContractServiceImpl
.
addHouseholdContract
(
householdContract
);
// 更新姓名到平台用户的真实姓名
RequestContext
.
setAppKey
(
"AMOS_STUDIO"
);
RequestContext
.
setProduct
(
"AMOS_STUDIO_WEB"
);
RequestContext
.
setToken
(
requestContext
.
getToken
());
userInfo
.
setRealName
(
model
.
getOwnersName
());
Privilege
.
agencyUserClient
.
update
(
userInfo
,
userInfo
.
getUserId
());
return
model
;
return
model
;
}
}
...
...
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