Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
Overview
Overview
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
吴迪
gs1-office-web-sit
Commits
72b666bb
Commit
72b666bb
authored
Jan 19, 2022
by
唐功亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改】 修改 统一社会信用代码 唯一性校验
parent
e5a1f880
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
TycpdmFirmDao.java
...main/java/io/office/modules/manage/dao/TycpdmFirmDao.java
+2
-2
TycpdmFirmServiceImpl.java
...ce/modules/manage/service/impl/TycpdmFirmServiceImpl.java
+2
-1
No files found.
src/main/java/io/office/modules/manage/dao/TycpdmFirmDao.java
View file @
72b666bb
...
...
@@ -49,8 +49,8 @@ public interface TycpdmFirmDao extends BaseMapper<TycpdmFirmEntity> {
@Select
(
"select count(1) from tycpdm_firm where firmName=#{firmname} and logout_flag=1"
)
int
selectByIdFirmNameSC
(
@Param
(
"firmname"
)
String
firmname
);
@Select
(
"select count(1) from tycpdm_firm where certificateCode=#{certificateCode} and logout_flag=1"
)
int
selectByIdCertificateCode
(
@Param
(
"certificateCode"
)
String
certificateCode
);
@Select
(
"select count(1) from tycpdm_firm where certificateCode=#{certificateCode} and logout_flag=1
and f_id<>#{fId}
"
)
int
selectByIdCertificateCode
(
@Param
(
"certificateCode"
)
String
certificateCode
,
@Param
(
"fId"
)
String
fId
);
@Select
(
"select count(1) from firm where firm_name=#{firmname} and (logout_flag=2 or logout_flag=0)"
)
int
selectByIdFirmNameXTSC
(
@Param
(
"firmname"
)
String
firmname
);
...
...
src/main/java/io/office/modules/manage/service/impl/TycpdmFirmServiceImpl.java
View file @
72b666bb
...
...
@@ -323,7 +323,8 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
if
(!
AlgorithmUtils
.
checkUSCC
(
certificateCode
.
toString
())){
throw
new
RRException
(
"统一社会信用代码输入错误"
);
}
if
(
tycpdmFirmDao
.
selectByIdCertificateCode
(
String
.
valueOf
(
certificateCode
))>
0
){
if
(
tycpdmFirmDao
.
selectByIdCertificateCode
(
String
.
valueOf
(
certificateCode
),
String
.
valueOf
(
body
.
get
(
"fid"
)))>
0
){
throw
new
RRException
(
"统一社会信用代码已存在"
);
}
//写入死值
...
...
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