Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
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
base_platform_enterprise
gic-platform-enterprise
Commits
79d07d59
Commit
79d07d59
authored
Jun 01, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
情报站修改
parent
09d48dc6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
107 additions
and
4 deletions
+107
-4
ProductMarketController.java
...gic/operation/web/controller/ProductMarketController.java
+7
-4
ProductMarketQO.java
...c/main/java/com/gic/operation/web/qo/ProductMarketQO.java
+100
-0
No files found.
gic-platform-operation-web/src/main/java/com/gic/operation/web/controller/ProductMarketController.java
View file @
79d07d59
package
com
.
gic
.
operation
.
web
.
controller
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.enterprise.dto.ProductMarketDTO
;
import
com.gic.enterprise.qo.ProductMarketQO
;
...
...
@@ -26,21 +27,23 @@ public class ProductMarketController {
/**
* 新增情报
* @param p
roductMarketDTO
* @param p
aram
* @return
*/
@RequestMapping
(
"save-product-market"
)
public
RestResponse
saveProductMarket
(
ProductMarketDTO
productMarketDTO
)
{
public
RestResponse
saveProductMarket
(
ProductMarketQO
param
)
{
ProductMarketDTO
productMarketDTO
=
EntityUtil
.
changeEntityNew
(
ProductMarketDTO
.
class
,
param
);
return
ResultControllerUtils
.
commonResult
(
productMarketApiService
.
saveProductMarket
(
productMarketDTO
));
}
/**
* 编辑情报
* @param p
roductMarketDTO
* @param p
aram
* @return
*/
@RequestMapping
(
"update-product-market"
)
public
RestResponse
updateProductMarket
(
ProductMarketDTO
productMarketDTO
)
{
public
RestResponse
updateProductMarket
(
ProductMarketQO
param
)
{
ProductMarketDTO
productMarketDTO
=
EntityUtil
.
changeEntityNew
(
ProductMarketDTO
.
class
,
param
);
return
ResultControllerUtils
.
commonResult
(
productMarketApiService
.
updateProductMarket
(
productMarketDTO
));
}
...
...
gic-platform-operation-web/src/main/java/com/gic/operation/web/qo/ProductMarketQO.java
0 → 100644
View file @
79d07d59
package
com
.
gic
.
operation
.
web
.
qo
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 情报
* @ClassName:
* @Description:
* @author guojuxing
* @date 2021/6/1 11:40 AM
*/
public
class
ProductMarketQO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
6693359417336191988L
;
/**
*
*/
private
Integer
productMarketId
;
/**
* 标题
*/
private
String
title
;
/**
* 类型(1 功能更新、2 产品推广、3 成功案例)
*/
private
Integer
infoType
;
/**
* 超链接
*/
private
String
hyperLink
;
/**
* 发布时间
*/
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
,
pattern
=
"yyyy-mm-dd HH:mm:ss"
)
private
Date
releaseTime
;
public
Integer
getProductMarketId
()
{
return
productMarketId
;
}
public
ProductMarketQO
setProductMarketId
(
Integer
productMarketId
)
{
this
.
productMarketId
=
productMarketId
;
return
this
;
}
public
String
getTitle
()
{
return
title
;
}
public
ProductMarketQO
setTitle
(
String
title
)
{
this
.
title
=
title
;
return
this
;
}
public
Integer
getInfoType
()
{
return
infoType
;
}
public
ProductMarketQO
setInfoType
(
Integer
infoType
)
{
this
.
infoType
=
infoType
;
return
this
;
}
public
String
getHyperLink
()
{
return
hyperLink
;
}
public
ProductMarketQO
setHyperLink
(
String
hyperLink
)
{
this
.
hyperLink
=
hyperLink
;
return
this
;
}
public
Date
getReleaseTime
()
{
return
releaseTime
;
}
public
ProductMarketQO
setReleaseTime
(
Date
releaseTime
)
{
this
.
releaseTime
=
releaseTime
;
return
this
;
}
@Override
public
String
toString
()
{
return
"ProductMarketQO{"
+
"productMarketId="
+
productMarketId
+
", title='"
+
title
+
'\''
+
", infoType="
+
infoType
+
", hyperLink='"
+
hyperLink
+
'\''
+
", releaseTime="
+
releaseTime
+
'}'
;
}
}
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