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
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
haoban3.0
haoban-manage3.0
Commits
1260761f
Commit
1260761f
authored
Sep 21, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/xgh/导购任务' into 'developer'
导购任务 See merge request
!2150
parents
fab3db6a
47aabed0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
ClerkTaskController.java
.../manage/web/controller/clerktask/ClerkTaskController.java
+6
-5
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/clerktask/ClerkTaskController.java
View file @
1260761f
...
...
@@ -14,7 +14,6 @@ import com.gic.marketing.pro.api.qdto.clerktask.ClerkRankQDTO;
import
com.gic.marketing.pro.api.qdto.clerktask.ClerkTaskContentPageQDTO
;
import
com.gic.marketing.pro.api.qdto.clerktask.ClerkTaskPageQDTO
;
import
com.gic.marketing.pro.api.service.clerktask.ClerkTaskApiService
;
import
com.gic.web.common.utils.SessionContextUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
...
...
@@ -49,7 +48,7 @@ public class ClerkTaskController {
qdto
.
setEnterpriseId
(
enterpriseId
);
qdto
.
setPageNum
(
1
);
qdto
.
setPageSize
(
1
);
ServiceResponse
<
Page
<
ClerkTaskPlanDTO
>>
resp
=
this
.
clerkTaskApiService
.
p
age
(
qdto
)
;
ServiceResponse
<
Page
<
ClerkTaskPlanDTO
>>
resp
=
this
.
clerkTaskApiService
.
hbP
age
(
qdto
)
;
if
(
null
!=
resp
.
getResult
())
{
return
RestResponse
.
successResult
(
resp
.
getResult
().
getTotalCount
())
;
}
...
...
@@ -64,7 +63,7 @@ public class ClerkTaskController {
@ResponseBody
public
RestResponse
<
Page
<
ClerkTaskListVO
>>
taskList
(
@RequestBody
ClerkTaskListQO
qo
)
{
ClerkTaskPageQDTO
qdto
=
EntityUtil
.
changeEntityByJSON
(
ClerkTaskPageQDTO
.
class
,
qo
)
;
ServiceResponse
<
Page
<
ClerkTaskPlanDTO
>>
resp
=
this
.
clerkTaskApiService
.
p
age
(
qdto
)
;
ServiceResponse
<
Page
<
ClerkTaskPlanDTO
>>
resp
=
this
.
clerkTaskApiService
.
hbP
age
(
qdto
)
;
Page
<
ClerkTaskPlanDTO
>
page
=
resp
.
getResult
();
Page
<
ClerkTaskListVO
>
retPage
=
PageHelperUtils
.
changePageToCurrentPage
(
page
,
ClerkTaskListVO
.
class
);
if
(
CollectionUtils
.
isNotEmpty
(
retPage
.
getResult
()))
{
...
...
@@ -136,8 +135,9 @@ public class ClerkTaskController {
*/
@RequestMapping
(
"save-content"
)
@ResponseBody
public
RestResponse
<
String
>
saveContent
(
@RequestBody
SaveContentQO
qo
)
{
public
RestResponse
<
String
>
saveContent
(
String
enterpriseId
,
@RequestBody
SaveContentQO
qo
)
{
ClerkTaskContentLogDTO
dto
=
EntityUtil
.
changeEntityByJSON
(
ClerkTaskContentLogDTO
.
class
,
qo
)
;
dto
.
setEnterpriseId
(
enterpriseId
);
ServiceResponse
<
Long
>
resp
=
this
.
clerkTaskApiService
.
saveContent
(
dto
)
;
return
RestResponse
.
successResult
(
resp
.
getResult
()+
""
)
;
}
...
...
@@ -147,8 +147,9 @@ public class ClerkTaskController {
*/
@RequestMapping
(
"update-content"
)
@ResponseBody
public
RestResponse
<
String
>
updateContent
(
@RequestBody
SaveContentQO
qo
)
{
public
RestResponse
<
String
>
updateContent
(
String
enterpriseId
,
@RequestBody
SaveContentQO
qo
)
{
ClerkTaskContentLogDTO
dto
=
EntityUtil
.
changeEntityByJSON
(
ClerkTaskContentLogDTO
.
class
,
qo
)
;
dto
.
setEnterpriseId
(
enterpriseId
);
ServiceResponse
<
Long
>
resp
=
this
.
clerkTaskApiService
.
saveContent
(
dto
)
;
return
RestResponse
.
successResult
(
resp
.
getResult
()+
""
)
;
}
...
...
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