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
1e855670
Commit
1e855670
authored
Jul 10, 2024
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix(tcm):气站注册更新appid字段
parent
b9085301
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
RegUnitInfoDto.java
...join/amos/boot/module/tcm/flc/api/dto/RegUnitInfoDto.java
+5
-0
RegUnitInfo.java
...join/amos/boot/module/tcm/flc/api/entity/RegUnitInfo.java
+5
-0
RegUnitInfoServiceImpl.java
...dule/tcm/flc/biz/service/impl/RegUnitInfoServiceImpl.java
+4
-1
No files found.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/java/com/yeejoin/amos/boot/module/tcm/flc/api/dto/RegUnitInfoDto.java
View file @
1e855670
...
...
@@ -145,4 +145,9 @@ public class RegUnitInfoDto extends BaseDto {
@ApiModelProperty
(
value
=
"单位所在地是否为全国"
)
private
String
isNationwide
;
/**
* 气站对接appId
*/
private
String
appId
;
}
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/java/com/yeejoin/amos/boot/module/tcm/flc/api/entity/RegUnitInfo.java
View file @
1e855670
...
...
@@ -208,4 +208,9 @@ public class RegUnitInfo extends BaseEntity {
* 单位是省内或省外。1省外
*/
private
String
isNationwide
;
/**
* 气站对接appId
*/
private
String
appId
;
}
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/flc/biz/service/impl/RegUnitInfoServiceImpl.java
View file @
1e855670
...
...
@@ -219,7 +219,8 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
model
.
getRegUnitIc
().
setUnitName
(
model
.
getName
());
Bean
.
copyExistPropertis
(
model
.
getRegUnitIc
(),
regUnitIc
);
regUnitIcService
.
saveOrUpdate
(
regUnitIc
);
// 5.创建企业信息
// 5.创建企业信息:tz_base_enterprise_info
model
.
setAppId
(
regUnitInfo
.
getAppId
());
this
.
createBaseEnterpriseInfo
(
model
,
EnterpriseEnums
.
QY_DW
.
getType
());
if
(!
ObjectUtils
.
isEmpty
(
regUnitInfo
.
getAdminName
()))
{
regUnitInfo
.
setContactPerson
(
regUnitInfo
.
getAdminName
());
...
...
@@ -435,6 +436,7 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
}
baseEnterpriseInfo
.
setSyncDate
(
new
Date
());
baseEnterpriseInfo
.
setSyncState
(
0
);
baseEnterpriseInfo
.
setAppId
(
regUnitInfo
.
getAppId
());
LambdaQueryWrapper
<
TzBaseEnterpriseInfo
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
TzBaseEnterpriseInfo:
:
getUseCode
,
regUnitInfo
.
getUnitCode
());
tzBaseEnterpriseInfoService
.
saveOrUpdate
(
baseEnterpriseInfo
,
wrapper
);
...
...
@@ -928,6 +930,7 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
shadowUser
.
setUserName
(
appId
);
shadowUser
.
setPassword
(
DEFAULT_PASSWORD
);
Privilege
.
agencyUserClient
.
createLoginInfoAppId
(
shadowUser
);
regUnitInfo
.
setAppId
(
appId
);
}
regUnitInfo
.
setAdminUserId
(
adminUserId
);
...
...
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