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
458a69f7
Commit
458a69f7
authored
Apr 29, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_tzs_register' of…
Merge branch 'develop_tzs_register' of
http://36.40.66.175:5000/moa/amos-boot-biz
into develop_tzs_register
parents
fd3910a8
23c0761d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
1 deletion
+25
-1
CommonController.java
.../amos/boot/module/jg/biz/controller/CommonController.java
+7
-1
ICommonService.java
...ejoin/amos/boot/module/jg/biz/service/ICommonService.java
+7
-0
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+11
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/CommonController.java
View file @
458a69f7
...
...
@@ -539,5 +539,11 @@ public class CommonController extends BaseController {
return
ResponseHelper
.
buildResponse
(
"succese"
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/unitType/selected"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"更新缓存中单位类型"
,
notes
=
"更新缓存中单位类型"
)
public
ResponseModel
<
String
>
updateUnitTypeCache
(
@ApiParam
(
"单位类型"
)
@RequestParam
String
unitType
){
commonService
.
updateUnitTypeCache
(
getSelectedOrgInfo
(),
unitType
);
return
ResponseHelper
.
buildResponse
(
"success"
);
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/ICommonService.java
View file @
458a69f7
...
...
@@ -187,4 +187,11 @@ public interface ICommonService {
CompanyBo
getOneCompany
(
String
companyCode
);
Integer
checkFactoryNumUniquenessForVehicleCylinder
(
String
factoryNum
,
String
sequenceNbr
);
/**
* 更新单位类型缓存
*
* @param unitType 单位类型
*/
void
updateUnitTypeCache
(
ReginParams
reginParams
,
String
unitType
);
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/CommonServiceImpl.java
View file @
458a69f7
...
...
@@ -159,6 +159,10 @@ public class CommonServiceImpl implements ICommonService {
private
static
final
String
SBZX_PAGE_ID
=
"jgScrapCancelAdd"
;
// 业务通用发起——更名变更表单key
private
static
final
String
GMBG_PAGE_ID
=
"jgRegistrationInfo"
;
@Value
(
"${redis.cache.failure.time}"
)
private
Long
redisRegionTimeSecond
;
@Autowired
EquipmentCategoryMapper
equipmentCategoryMapper
;
@Autowired
...
...
@@ -1800,4 +1804,10 @@ public class CommonServiceImpl implements ICommonService {
return
"templates/use-flag-model-other.pdf"
;
}
}
@Override
public
void
updateUnitTypeCache
(
ReginParams
reginParams
,
String
unitType
)
{
reginParams
.
getCompany
().
setCompanyType
(
unitType
);
redisUtils
.
set
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
()),
JSONObject
.
toJSONString
(
reginParams
),
redisRegionTimeSecond
);
}
}
\ No newline at end of file
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