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
9e230d42
Commit
9e230d42
authored
Nov 08, 2022
by
limei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
材料管理添加接口修改、企业注册校验接口修改
parent
126aa0f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
+16
-12
CompanyController.java
...mos/boot/module/ugp/biz/controller/CompanyController.java
+3
-3
AttachmentServiceImpl.java
...ot/module/ugp/biz/service/impl/AttachmentServiceImpl.java
+13
-9
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/CompanyController.java
View file @
9e230d42
...
...
@@ -294,7 +294,7 @@ public class CompanyController extends BaseController {
public
ResponseModel
<
Boolean
>
hasExistUser
(
@PathVariable
(
value
=
"adminLoginName"
)
String
adminLoginName
)
{
Boolean
flag
=
false
;
Company
company
=
companyServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
Company
>().
eq
(
Company:
:
getAdminLoginName
,
adminLoginName
));
if
(
!
ValidationUtil
.
isEmpty
(
company
))
{
if
(
ValidationUtil
.
isEmpty
(
company
))
{
flag
=
true
;
}
return
ResponseHelper
.
buildResponse
(
flag
);
...
...
@@ -419,7 +419,7 @@ public class CompanyController extends BaseController {
public
ResponseModel
<
Boolean
>
hasExistPhone
(
@PathVariable
(
value
=
"adminTel"
)
String
adminTel
)
{
Boolean
flag
=
false
;
Company
company
=
companyServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
Company
>().
eq
(
Company:
:
getAdminTel
,
adminTel
));
if
(
!
ValidationUtil
.
isEmpty
(
company
))
{
if
(
ValidationUtil
.
isEmpty
(
company
))
{
flag
=
true
;
}
return
ResponseHelper
.
buildResponse
(
flag
);
...
...
@@ -436,7 +436,7 @@ public class CompanyController extends BaseController {
public
ResponseModel
<
Boolean
>
hasExistUnit
(
@PathVariable
(
value
=
"creditCode"
)
String
creditCode
)
{
Boolean
flag
=
false
;
Company
company
=
companyServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
Company
>().
eq
(
Company:
:
getCreditCode
,
creditCode
));
if
(
!
ValidationUtil
.
isEmpty
(
company
))
{
if
(
ValidationUtil
.
isEmpty
(
company
))
{
flag
=
true
;
}
return
ResponseHelper
.
buildResponse
(
flag
);
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/AttachmentServiceImpl.java
View file @
9e230d42
...
...
@@ -7,6 +7,7 @@ import com.yeejoin.amos.boot.module.ugp.api.entity.Attachment;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.AttachmentMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.service.IAttachmentService
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.AttachmentDto
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
...
...
@@ -42,20 +43,22 @@ public class AttachmentServiceImpl extends BaseService<AttachmentDto,Attachment,
*/
public
void
saveAttachment
(
JSONArray
subForm
,
Long
sequenceNbr
){
Attachment
attachment
=
new
Attachment
();
attachment
.
setSourceId
(
sequenceNbr
);
attachment
.
setInfo
(
JSON
.
toJSONString
(
subForm
));
for
(
Object
o:
subForm
){
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
o
));
jsonObject
.
getString
(
"Symbol_key"
);
JSONArray
jsonArray
=
jsonObject
.
getJSONArray
(
"info"
);
for
(
Object
j:
jsonArray
){
JSONObject
info
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
j
));
String
name
=
info
.
getString
(
"name"
);
attachment
.
setSourceId
(
sequenceNbr
);
attachment
.
setName
(
info
.
getString
(
"name"
));
attachment
.
setInfo
(
JSON
.
toJSONString
(
subForm
));
attachment
.
setType
(
name
.
substring
(
name
.
lastIndexOf
(
"."
)+
1
));
this
.
save
(
attachment
);
break
;
if
(!
ValidationUtil
.
isEmpty
(
jsonArray
))
{
for
(
Object
j
:
jsonArray
)
{
JSONObject
info
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
j
));
String
name
=
info
.
getString
(
"name"
);
attachment
.
setName
(
info
.
getString
(
"name"
));
attachment
.
setType
(
name
.
substring
(
name
.
lastIndexOf
(
"."
)
+
1
));
break
;
}
}
}
this
.
save
(
attachment
);
}
}
\ 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