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
3e986395
Commit
3e986395
authored
Jan 17, 2022
by
唐功亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改】 社会统一信用代码 唯一性检验
parent
1bce718e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
TycpdmFirmDao.java
...main/java/io/office/modules/manage/dao/TycpdmFirmDao.java
+3
-0
TycpdmFirmServiceImpl.java
...ce/modules/manage/service/impl/TycpdmFirmServiceImpl.java
+4
-0
No files found.
src/main/java/io/office/modules/manage/dao/TycpdmFirmDao.java
View file @
3e986395
...
@@ -49,6 +49,9 @@ public interface TycpdmFirmDao extends BaseMapper<TycpdmFirmEntity> {
...
@@ -49,6 +49,9 @@ public interface TycpdmFirmDao extends BaseMapper<TycpdmFirmEntity> {
@Select
(
"select count(1) from tycpdm_firm where firmName=#{firmname} and logout_flag=1"
)
@Select
(
"select count(1) from tycpdm_firm where firmName=#{firmname} and logout_flag=1"
)
int
selectByIdFirmNameSC
(
@Param
(
"firmname"
)
String
firmname
);
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 firm where firm_name=#{firmname} and (logout_flag=2 or logout_flag=0)"
)
@Select
(
"select count(1) from firm where firm_name=#{firmname} and (logout_flag=2 or logout_flag=0)"
)
int
selectByIdFirmNameXTSC
(
@Param
(
"firmname"
)
String
firmname
);
int
selectByIdFirmNameXTSC
(
@Param
(
"firmname"
)
String
firmname
);
...
...
src/main/java/io/office/modules/manage/service/impl/TycpdmFirmServiceImpl.java
View file @
3e986395
...
@@ -319,9 +319,13 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
...
@@ -319,9 +319,13 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
TycpdmFirmChangeEntity
tycpdmFirmChangeEntity
=
new
TycpdmFirmChangeEntity
();
TycpdmFirmChangeEntity
tycpdmFirmChangeEntity
=
new
TycpdmFirmChangeEntity
();
Integer
status
=
body
.
get
(
"status"
)==
null
?
0
:
Integer
.
valueOf
(
String
.
valueOf
(
body
.
get
(
"status"
)));
Integer
status
=
body
.
get
(
"status"
)==
null
?
0
:
Integer
.
valueOf
(
String
.
valueOf
(
body
.
get
(
"status"
)));
Object
certificateCode
=
body
.
get
(
"certificatecode"
);
//填统一社会信用代码
Object
certificateCode
=
body
.
get
(
"certificatecode"
);
//填统一社会信用代码
if
(!
AlgorithmUtils
.
checkUSCC
(
certificateCode
.
toString
())){
if
(!
AlgorithmUtils
.
checkUSCC
(
certificateCode
.
toString
())){
throw
new
RRException
(
"统一社会信用代码输入错误"
);
throw
new
RRException
(
"统一社会信用代码输入错误"
);
}
}
if
(
tycpdmFirmDao
.
selectByIdCertificateCode
(
String
.
valueOf
(
certificateCode
))>
0
){
throw
new
RRException
(
"统一社会信用代码已存在"
);
}
//写入死值
//写入死值
body
.
put
(
"useddesc"
,
"企业产品描述信息"
);
body
.
put
(
"useddesc"
,
"企业产品描述信息"
);
body
.
put
(
"wishusednum"
,
100
);
body
.
put
(
"wishusednum"
,
100
);
...
...
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