Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
c2ec2578
Commit
c2ec2578
authored
May 31, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
57f08796
ca8b11e9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
2 deletions
+39
-2
portal-manager/src/main/java/com/mortals/xhx/module/product/service/impl/ProductAppsServiceImpl.java
...x/module/product/service/impl/ProductAppsServiceImpl.java
+14
-0
portal-manager/src/main/java/com/mortals/xhx/module/product/service/impl/ProductDocumentServiceImpl.java
...dule/product/service/impl/ProductDocumentServiceImpl.java
+11
-1
portal-manager/src/main/java/com/mortals/xhx/module/product/service/impl/ProductInterfaceServiceImpl.java
...ule/product/service/impl/ProductInterfaceServiceImpl.java
+14
-1
No files found.
portal-manager/src/main/java/com/mortals/xhx/module/product/service/impl/ProductAppsServiceImpl.java
View file @
c2ec2578
...
...
@@ -3,6 +3,7 @@ import com.mortals.framework.exception.AppException;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.model.PageInfo
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.framework.util.StringUtils
;
import
com.mortals.xhx.module.product.dao.ProductAppsDao
;
import
com.mortals.xhx.module.product.model.ProductAppsEntity
;
import
com.mortals.xhx.module.product.model.ProductEntity
;
...
...
@@ -29,6 +30,19 @@ public class ProductAppsServiceImpl extends AbstractCRUDServiceImpl<ProductAppsD
@Autowired
private
ProductService
productService
;
@Override
protected
void
validData
(
ProductAppsEntity
entity
,
Context
context
)
throws
AppException
{
if
(
entity
.
getProductId
()==
null
){
throw
new
AppException
(
"产品id不能为空"
);
}
if
(
StringUtils
.
isEmpty
(
entity
.
getAppName
())){
throw
new
AppException
(
"应用名称不能为空"
);
}
if
(
entity
.
getDeveLanguage
()==
null
){
throw
new
AppException
(
"开发语言不能为空"
);
}
}
@Override
protected
ProductAppsEntity
findBefore
(
ProductAppsEntity
params
,
PageInfo
pageInfo
,
Context
context
)
throws
AppException
{
if
(
params
.
getProductId
()==
null
)
{
...
...
portal-manager/src/main/java/com/mortals/xhx/module/product/service/impl/ProductDocumentServiceImpl.java
View file @
c2ec2578
package
com.mortals.xhx.module.product.service.impl
;
import
com.mortals.framework.util.StringUtils
;
import
org.springframework.stereotype.Service
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.framework.exception.AppException
;
...
...
@@ -15,5 +16,14 @@ import com.mortals.xhx.module.product.service.ProductDocumentService;
*/
@Service
(
"productDocumentService"
)
public
class
ProductDocumentServiceImpl
extends
AbstractCRUDServiceImpl
<
ProductDocumentDao
,
ProductDocumentEntity
,
Long
>
implements
ProductDocumentService
{
@Override
protected
void
validData
(
ProductDocumentEntity
entity
,
Context
context
)
throws
AppException
{
if
(
entity
.
getProductId
()==
null
){
throw
new
AppException
(
"产品id不能为空"
);
}
if
(
StringUtils
.
isEmpty
(
entity
.
getDocName
())){
throw
new
AppException
(
"文档名称不能为空"
);
}
}
}
\ No newline at end of file
portal-manager/src/main/java/com/mortals/xhx/module/product/service/impl/ProductInterfaceServiceImpl.java
View file @
c2ec2578
package
com.mortals.xhx.module.product.service.impl
;
import
com.mortals.framework.util.StringUtils
;
import
org.springframework.stereotype.Service
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.framework.exception.AppException
;
...
...
@@ -15,5 +16,17 @@ import com.mortals.xhx.module.product.service.ProductInterfaceService;
*/
@Service
(
"productInterfaceService"
)
public
class
ProductInterfaceServiceImpl
extends
AbstractCRUDServiceImpl
<
ProductInterfaceDao
,
ProductInterfaceEntity
,
Long
>
implements
ProductInterfaceService
{
@Override
protected
void
validData
(
ProductInterfaceEntity
entity
,
Context
context
)
throws
AppException
{
if
(
entity
.
getProductId
()==
null
){
throw
new
AppException
(
"产品id不能为空"
);
}
if
(
StringUtils
.
isEmpty
(
entity
.
getInterfaceName
())){
throw
new
AppException
(
"接口名称不能为空"
);
}
if
(
StringUtils
.
isEmpty
(
entity
.
getVersionNumber
())){
throw
new
AppException
(
"版本号不能为空"
);
}
}
}
\ 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