Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rop-dj-supervisor-mini
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7edbaca9
authored
Mar 10, 2026
by
范富荣
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加报表任务提交接口
1 parent
8961ba86
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
99 additions
and
0 deletions
src/main/java/cn/com/glsx/dj/supervisor/controller/SupervisorTaskInfoController.java
src/main/java/cn/com/glsx/dj/supervisor/request/SupervisorTaskSubmitRequest.java
src/main/java/cn/com/glsx/dj/supervisor/controller/SupervisorTaskInfoController.java
View file @
7edbaca
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
controller
;
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
controller
;
import
cn.com.glsx.dj.supervisor.dto.SupervisorTaskDTO
;
import
cn.com.glsx.dj.supervisor.remote.SupervisorTaskInfoRemote
;
import
cn.com.glsx.dj.supervisor.remote.SupervisorTaskInfoRemote
;
import
cn.com.glsx.dj.supervisor.request.SupervisorTaskSubmitRequest
;
import
cn.com.glsx.dj.supervisor.util.CommonUtil
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
com.rop.annotation.NeedInSessionType
;
import
com.rop.annotation.NeedInSessionType
;
import
com.rop.annotation.ServiceMethod
;
import
com.rop.annotation.ServiceMethodBean
;
import
com.rop.annotation.ServiceMethodBean
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -16,4 +23,44 @@ public class SupervisorTaskInfoController {
...
@@ -16,4 +23,44 @@ public class SupervisorTaskInfoController {
@Autowired
@Autowired
private
SupervisorTaskInfoRemote
supervisorTaskInfoRemote
;
private
SupervisorTaskInfoRemote
supervisorTaskInfoRemote
;
@ServiceMethod
(
method
=
"dj.api.supervisor.mini.submitDayTask"
,
needInSession
=
NeedInSessionType
.
YES
)
@ApiOperation
(
"提交督导日报任务"
)
public
RopResponse
<
Boolean
>
submitDayTask
(
SupervisorTaskSubmitRequest
request
)
{
SupervisorTaskDTO
taskDTO
=
CommonUtil
.
convertRequest
(
SupervisorTaskDTO
.
class
);
RpcResponse
<
Boolean
>
response
=
supervisorTaskInfoRemote
.
submitDayTask
(
taskDTO
);
if
(
response
.
hasError
())
{
return
RopResponse
.
error
(
response
.
getError
(),
response
.
getMessage
());
}
else
{
return
RopResponse
.
success
(
response
.
getResult
());
}
}
@ServiceMethod
(
method
=
"dj.api.supervisor.mini.submitWeekTask"
,
needInSession
=
NeedInSessionType
.
YES
)
@ApiOperation
(
"提交督导周报任务"
)
public
RopResponse
<
Boolean
>
submitWeekTask
(
SupervisorTaskSubmitRequest
request
)
{
SupervisorTaskDTO
taskDTO
=
CommonUtil
.
convertRequest
(
SupervisorTaskDTO
.
class
);
RpcResponse
<
Boolean
>
response
=
supervisorTaskInfoRemote
.
submitWeekTask
(
taskDTO
);
if
(
response
.
hasError
())
{
return
RopResponse
.
error
(
response
.
getError
(),
response
.
getMessage
());
}
else
{
return
RopResponse
.
success
(
response
.
getResult
());
}
}
/**
* 提交督导月报任务
*/
@ServiceMethod
(
method
=
"dj.api.supervisor.mini.submitMonthTask"
,
needInSession
=
NeedInSessionType
.
YES
)
@ApiOperation
(
"提交督导月报任务"
)
public
RopResponse
<
Boolean
>
submitMonthTask
(
SupervisorTaskSubmitRequest
request
)
{
SupervisorTaskDTO
taskDTO
=
CommonUtil
.
convertRequest
(
SupervisorTaskDTO
.
class
);
RpcResponse
<
Boolean
>
response
=
supervisorTaskInfoRemote
.
submitMonthTask
(
taskDTO
);
if
(
response
.
hasError
())
{
return
RopResponse
.
error
(
response
.
getError
(),
response
.
getMessage
());
}
else
{
return
RopResponse
.
success
(
response
.
getResult
());
}
}
}
}
src/main/java/cn/com/glsx/dj/supervisor/request/SupervisorTaskSubmitRequest.java
0 → 100644
View file @
7edbaca
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
request
;
import
cn.com.glsx.dj.supervisor.model.SupervisorTaskImage
;
import
cn.com.glsx.dj.supervisor.model.SupervisorWeekTaskStaff
;
import
cn.com.glsx.dj.supervisor.remote.SupervisorTaskInfoRemote
;
import
com.rop.AbstractRopRequest
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotEmpty
;
import
javax.validation.constraints.NotNull
;
import
java.util.Date
;
import
java.util.List
;
@Data
public
class
SupervisorTaskSubmitRequest
extends
AbstractRopRequest
{
/**
* 主键ID
*/
@ApiModelProperty
(
notes
=
"主键ID"
,
required
=
true
)
private
Long
id
;
@ApiModelProperty
(
notes
=
"日报类型 0-日报 1-周报,2-月报, 3-录音"
,
required
=
true
)
private
Integer
taskType
;
@ApiModelProperty
(
notes
=
"在岗标识 0-在岗 1-调休(日报)"
)
private
Integer
onDutyFlag
;
@ApiModelProperty
(
notes
=
"门店ID"
)
private
Integer
merchantId
;
@ApiModelProperty
(
notes
=
"门店名称"
)
private
String
merchantName
;
/**
* 督导记录(富文本内容)
*/
@ApiModelProperty
(
notes
=
"督导记录"
,
required
=
true
)
private
String
taskContext
;
/**
* 周任务人员列表
*/
@ApiModelProperty
(
notes
=
"周任务人员列表"
)
private
List
<
SupervisorWeekTaskStaff
>
weekTaskStaffList
;
@ApiModelProperty
(
notes
=
"照片图片列表"
)
private
List
<
SupervisorTaskImage
>
taskImageList
;
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment