Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
1
Merge Requests
1
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
haoban3.0
haoban-manage3.0
Commits
09120a07
Commit
09120a07
authored
Aug 17, 2023
by
王祖波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建数据
parent
c04e2326
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
1 deletions
+62
-1
ContentCreativeController.java
...age/web/controller/content/ContentCreativeController.java
+5
-1
ContentAuditMaterialDataQO.java
...ban/manage/web/qo/content/ContentAuditMaterialDataQO.java
+57
-0
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/content/ContentCreativeController.java
View file @
09120a07
...
@@ -17,6 +17,7 @@ import com.gic.haoban.common.utils.EntityUtil;
...
@@ -17,6 +17,7 @@ import com.gic.haoban.common.utils.EntityUtil;
import
com.gic.haoban.manage.api.dto.StaffDTO
;
import
com.gic.haoban.manage.api.dto.StaffDTO
;
import
com.gic.haoban.manage.web.controller.content.adaptor.ClerkStoreAdaptor
;
import
com.gic.haoban.manage.web.controller.content.adaptor.ClerkStoreAdaptor
;
import
com.gic.haoban.manage.web.controller.content.adaptor.MaterialDataAdaptor
;
import
com.gic.haoban.manage.web.controller.content.adaptor.MaterialDataAdaptor
;
import
com.gic.haoban.manage.web.qo.content.ContentAuditMaterialDataQO
;
import
com.gic.haoban.manage.web.qo.content.ContentAuditMaterialQO
;
import
com.gic.haoban.manage.web.qo.content.ContentAuditMaterialQO
;
import
com.gic.haoban.manage.web.qo.content.ContentMaterialSaveQO
;
import
com.gic.haoban.manage.web.qo.content.ContentMaterialSaveQO
;
import
com.gic.haoban.manage.web.vo.content.creative.ContentMaterialConvsVO
;
import
com.gic.haoban.manage.web.vo.content.creative.ContentMaterialConvsVO
;
...
@@ -217,9 +218,10 @@ public class ContentCreativeController {
...
@@ -217,9 +218,10 @@ public class ContentCreativeController {
*/
*/
@ResponseBody
@ResponseBody
@RequestMapping
(
"/material-data"
)
@RequestMapping
(
"/material-data"
)
public
RestResponse
<
ContentMaterialDataVO
>
auditMaterialData
(
@RequestBody
ContentAuditMaterialQO
auditMaterialQO
)
{
public
RestResponse
<
ContentMaterialDataVO
>
auditMaterialData
(
@RequestBody
ContentAuditMaterial
Data
QO
auditMaterialQO
)
{
ContentMaterialPageQDTO
pageQDTO
=
new
ContentMaterialPageQDTO
();
ContentMaterialPageQDTO
pageQDTO
=
new
ContentMaterialPageQDTO
();
String
enterpriseId
=
auditMaterialQO
.
getEnterpriseId
();
String
enterpriseId
=
auditMaterialQO
.
getEnterpriseId
();
Integer
createFlag
=
auditMaterialQO
.
getCreateFlag
();
pageQDTO
.
setEnterpriseId
(
enterpriseId
);
pageQDTO
.
setEnterpriseId
(
enterpriseId
);
pageQDTO
.
setStoreId
(
auditMaterialQO
.
getStoreId
());
pageQDTO
.
setStoreId
(
auditMaterialQO
.
getStoreId
());
pageQDTO
.
setClerkId
(
auditMaterialQO
.
getClerkId
());
pageQDTO
.
setClerkId
(
auditMaterialQO
.
getClerkId
());
...
@@ -233,6 +235,7 @@ public class ContentCreativeController {
...
@@ -233,6 +235,7 @@ public class ContentCreativeController {
ContentMaterialDataVO
materialDataVO
=
new
ContentMaterialDataVO
();
ContentMaterialDataVO
materialDataVO
=
new
ContentMaterialDataVO
();
materialDataVO
.
setAuditCount
(
auditResponse
.
getResult
());
materialDataVO
.
setAuditCount
(
auditResponse
.
getResult
());
materialDataVO
.
setCreateCount
(
response
.
getResult
());
materialDataVO
.
setCreateCount
(
response
.
getResult
());
if
(
createFlag
==
null
||
createFlag
==
Constant
.
FLAG_FALSE
)
{
//转化数据
//转化数据
ServiceResponse
<
List
<
Long
>>
idListResponse
=
contentMaterialApiService
.
listMaterialIdBySearch
(
pageQDTO
);
ServiceResponse
<
List
<
Long
>>
idListResponse
=
contentMaterialApiService
.
listMaterialIdBySearch
(
pageQDTO
);
if
(!
idListResponse
.
isSuccess
())
{
if
(!
idListResponse
.
isSuccess
())
{
...
@@ -240,6 +243,7 @@ public class ContentCreativeController {
...
@@ -240,6 +243,7 @@ public class ContentCreativeController {
}
}
ContentMaterialConvsVO
materialConvsVO
=
materialDataAdaptor
.
queryCreativeConvsOverview
(
enterpriseId
,
idListResponse
.
getResult
());
ContentMaterialConvsVO
materialConvsVO
=
materialDataAdaptor
.
queryCreativeConvsOverview
(
enterpriseId
,
idListResponse
.
getResult
());
materialDataVO
.
setConvs
(
materialConvsVO
);
materialDataVO
.
setConvs
(
materialConvsVO
);
}
return
RestResponse
.
successResult
(
materialDataVO
);
return
RestResponse
.
successResult
(
materialDataVO
);
}
}
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/qo/content/ContentAuditMaterialDataQO.java
0 → 100644
View file @
09120a07
package
com
.
gic
.
haoban
.
manage
.
web
.
qo
.
content
;
public
class
ContentAuditMaterialDataQO
{
/**
* 企业id
*/
private
String
enterpriseId
;
/**
* 门店id
*/
private
String
storeId
;
/**
* 导购id
*/
private
String
clerkId
;
/**
* 是否仅查创建数
*/
private
Integer
createFlag
;
public
String
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
String
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
String
getStoreId
()
{
return
storeId
;
}
public
void
setStoreId
(
String
storeId
)
{
this
.
storeId
=
storeId
;
}
public
String
getClerkId
()
{
return
clerkId
;
}
public
void
setClerkId
(
String
clerkId
)
{
this
.
clerkId
=
clerkId
;
}
public
Integer
getCreateFlag
()
{
return
createFlag
;
}
public
void
setCreateFlag
(
Integer
createFlag
)
{
this
.
createFlag
=
createFlag
;
}
}
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