Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-dj-supervisor
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 76058c8e
authored
May 20, 2026
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
飞行督导:带教提交 优化
1 parent
d4f1e816
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
283 additions
and
5 deletions
rpc-dj-supervisor-api/src/main/java/cn/com/glsx/dj/supervisor/dto/SupervisorTaskDTO.java
rpc-dj-supervisor-api/src/main/java/cn/com/glsx/dj/supervisor/model/SupervisorTaskParticipant.java
rpc-dj-supervisor-api/src/main/java/cn/com/glsx/dj/supervisor/model/SupervisorTeachingDetail.java
rpc-dj-supervisor/src/main/java/cn/com/glsx/dj/supervisor/mapper/SupervisorTaskParticipantMapper.java
rpc-dj-supervisor/src/main/java/cn/com/glsx/dj/supervisor/mapper/SupervisorTeachingDetailMapper.java
rpc-dj-supervisor/src/main/java/cn/com/glsx/dj/supervisor/service/SupervisorTaskInfoService.java
rpc-dj-supervisor/src/main/java/cn/com/glsx/dj/supervisor/service/SupervisorTaskParticipantService.java
rpc-dj-supervisor/src/main/java/cn/com/glsx/dj/supervisor/service/SupervisorTeachingDetailService.java
rpc-dj-supervisor/src/main/resources/META-INF/orm/SupervisorTaskParticipantMapper.xml
rpc-dj-supervisor/src/main/resources/META-INF/orm/SupervisorTeachingDetailMapper.xml
rpc-dj-supervisor-api/src/main/java/cn/com/glsx/dj/supervisor/dto/SupervisorTaskDTO.java
View file @
76058c8
...
@@ -3,6 +3,8 @@ package cn.com.glsx.dj.supervisor.dto;
...
@@ -3,6 +3,8 @@ package cn.com.glsx.dj.supervisor.dto;
import
cn.com.glsx.dj.supervisor.model.SupervisorTaskCourse
;
import
cn.com.glsx.dj.supervisor.model.SupervisorTaskCourse
;
import
cn.com.glsx.dj.supervisor.model.SupervisorTaskImage
;
import
cn.com.glsx.dj.supervisor.model.SupervisorTaskImage
;
import
cn.com.glsx.dj.supervisor.model.SupervisorTaskMerchant
;
import
cn.com.glsx.dj.supervisor.model.SupervisorTaskMerchant
;
import
cn.com.glsx.dj.supervisor.model.SupervisorTaskParticipant
;
import
cn.com.glsx.dj.supervisor.model.SupervisorTeachingDetail
;
import
cn.com.glsx.dj.supervisor.model.SupervisorWeekTaskStaff
;
import
cn.com.glsx.dj.supervisor.model.SupervisorWeekTaskStaff
;
import
cn.com.glsx.dj.supervisor.remote.SupervisorTaskInfoRemote
;
import
cn.com.glsx.dj.supervisor.remote.SupervisorTaskInfoRemote
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
...
@@ -183,4 +185,16 @@ public class SupervisorTaskDTO implements Serializable {
...
@@ -183,4 +185,16 @@ public class SupervisorTaskDTO implements Serializable {
@ApiModelProperty
(
notes
=
"下月计划(1000字以内)"
)
@ApiModelProperty
(
notes
=
"下月计划(1000字以内)"
)
private
String
nextMonthPlan
;
private
String
nextMonthPlan
;
/**
* 带教详情
*/
@ApiModelProperty
(
notes
=
"带教详情"
)
private
SupervisorTeachingDetail
teachingDetail
;
/**
* 参与人员列表
*/
@ApiModelProperty
(
notes
=
"参与人员列表"
)
private
List
<
SupervisorTaskParticipant
>
participantList
;
}
}
rpc-dj-supervisor-api/src/main/java/cn/com/glsx/dj/supervisor/model/SupervisorTaskParticipant.java
0 → 100644
View file @
76058c8
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
model
;
import
java.io.Serializable
;
import
java.util.Date
;
import
javax.persistence.*
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.ToString
;
@ToString
@Data
@Table
(
name
=
"supervisor_task_participant"
)
public
class
SupervisorTaskParticipant
implements
Serializable
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Long
id
;
@ApiModelProperty
(
notes
=
"关联任务ID(supervisor_task_info.id)"
)
@Column
(
name
=
"task_id"
)
private
Long
taskId
;
@ApiModelProperty
(
notes
=
"参与人员手机号"
)
@Column
(
name
=
"participant_phone"
)
private
String
participantPhone
;
@ApiModelProperty
(
notes
=
"参与人员姓名"
)
@Column
(
name
=
"participant_name"
)
private
String
participantName
;
@Column
(
name
=
"created_by"
)
private
String
createdBy
;
@Column
(
name
=
"create_time"
)
private
Date
createTime
;
@Column
(
name
=
"updated_by"
)
private
String
updatedBy
;
@Column
(
name
=
"updated_date"
)
private
Date
updatedDate
;
@Column
(
name
=
"deleted_flag"
)
private
String
deletedFlag
;
}
\ No newline at end of file
\ No newline at end of file
rpc-dj-supervisor-api/src/main/java/cn/com/glsx/dj/supervisor/model/SupervisorTeachingDetail.java
0 → 100644
View file @
76058c8
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
model
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.ToString
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.io.Serializable
;
import
java.util.Date
;
import
javax.persistence.*
;
@Data
@ToString
@Table
(
name
=
"supervisor_teaching_detail"
)
public
class
SupervisorTeachingDetail
implements
Serializable
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Long
id
;
@Column
(
name
=
"task_id"
)
private
Long
taskId
;
@ApiModelProperty
(
notes
=
"带教场景编码(字典:teaching_scene)"
)
@Column
(
name
=
"teaching_scene_code"
)
private
String
teachingSceneCode
;
@ApiModelProperty
(
notes
=
"带教场景名称(线上/线下)"
)
@Column
(
name
=
"teaching_scene_name"
)
private
String
teachingSceneName
;
@ApiModelProperty
(
notes
=
"带教方式编码(字典:teaching_method)"
)
@Column
(
name
=
"teaching_method_code"
)
private
String
teachingMethodCode
;
@ApiModelProperty
(
notes
=
"带教方式名称"
)
@Column
(
name
=
"teaching_method_name"
)
private
String
teachingMethodName
;
@ApiModelProperty
(
notes
=
"带教主题编码(字典:teaching_topic)"
)
@Column
(
name
=
"teaching_topic_code"
)
private
String
teachingTopicCode
;
@ApiModelProperty
(
notes
=
"带教主题名称"
)
@Column
(
name
=
"teaching_topic_name"
)
private
String
teachingTopicName
;
@ApiModelProperty
(
notes
=
"带教时间,yyyy-MM-dd HH:mm"
,
required
=
true
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm"
,
timezone
=
"GMT+8"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm"
)
@Column
(
name
=
"teaching_time"
)
private
Date
teachingTime
;
}
rpc-dj-supervisor/src/main/java/cn/com/glsx/dj/supervisor/mapper/SupervisorTaskParticipantMapper.java
0 → 100644
View file @
76058c8
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
mapper
;
import
cn.com.glsx.dj.supervisor.model.SupervisorTaskParticipant
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.oreframework.datasource.mybatis.mapper.OreMapper
;
@Mapper
public
interface
SupervisorTaskParticipantMapper
extends
OreMapper
<
SupervisorTaskParticipant
>
{
}
\ No newline at end of file
\ No newline at end of file
rpc-dj-supervisor/src/main/java/cn/com/glsx/dj/supervisor/mapper/SupervisorTeachingDetailMapper.java
0 → 100644
View file @
76058c8
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
mapper
;
import
cn.com.glsx.dj.supervisor.model.SupervisorTeachingDetail
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.oreframework.datasource.mybatis.mapper.OreMapper
;
@Mapper
public
interface
SupervisorTeachingDetailMapper
extends
OreMapper
<
SupervisorTeachingDetail
>
{
}
rpc-dj-supervisor/src/main/java/cn/com/glsx/dj/supervisor/service/SupervisorTaskInfoService.java
View file @
76058c8
...
@@ -10,11 +10,7 @@ import cn.com.glsx.dj.supervisor.dto.*;
...
@@ -10,11 +10,7 @@ import cn.com.glsx.dj.supervisor.dto.*;
import
cn.com.glsx.dj.supervisor.enums.ReviewStatusEnum
;
import
cn.com.glsx.dj.supervisor.enums.ReviewStatusEnum
;
import
cn.com.glsx.dj.supervisor.enums.TaskStatusEnum
;
import
cn.com.glsx.dj.supervisor.enums.TaskStatusEnum
;
import
cn.com.glsx.dj.supervisor.enums.TaskTypeEnum
;
import
cn.com.glsx.dj.supervisor.enums.TaskTypeEnum
;
import
cn.com.glsx.dj.supervisor.mapper.BusinessSceneMapper
;
import
cn.com.glsx.dj.supervisor.mapper.*
;
import
cn.com.glsx.dj.supervisor.mapper.ExcellentCaseReviewMapper
;
import
cn.com.glsx.dj.supervisor.mapper.SupervisorTaskCourseMapper
;
import
cn.com.glsx.dj.supervisor.mapper.SupervisorTaskImageMapper
;
import
cn.com.glsx.dj.supervisor.mapper.SupervisorTaskInfoMapper
;
import
cn.com.glsx.dj.supervisor.model.*
;
import
cn.com.glsx.dj.supervisor.model.*
;
import
cn.com.glsx.framework.core.beans.BaseModel
;
import
cn.com.glsx.framework.core.beans.BaseModel
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
...
@@ -79,6 +75,12 @@ public class SupervisorTaskInfoService {
...
@@ -79,6 +75,12 @@ public class SupervisorTaskInfoService {
private
SupervisorTaskCourseService
supervisorTaskCourseService
;
private
SupervisorTaskCourseService
supervisorTaskCourseService
;
@Autowired
@Autowired
private
SupervisorTeachingDetailService
supervisorTeachingDetailService
;
@Autowired
private
SupervisorTaskParticipantService
supervisorTaskParticipantService
;
@Autowired
private
StaffBaseInfoRemote
staffBaseInfoRemote
;
private
StaffBaseInfoRemote
staffBaseInfoRemote
;
@Autowired
@Autowired
...
@@ -91,6 +93,15 @@ public class SupervisorTaskInfoService {
...
@@ -91,6 +93,15 @@ public class SupervisorTaskInfoService {
private
SupervisorTaskCourseMapper
supervisorTaskCourseMapper
;
private
SupervisorTaskCourseMapper
supervisorTaskCourseMapper
;
@Autowired
@Autowired
private
SupervisorTaskMerchantMapper
supervisorTaskMerchantMapper
;
@Autowired
private
SupervisorTeachingDetailMapper
supervisorTeachingDetailMapper
;
@Autowired
private
SupervisorTaskParticipantMapper
supervisorTaskParticipantMapper
;
@Autowired
private
SupervisorLearningCenterService
supervisorLearningCenterService
;
private
SupervisorLearningCenterService
supervisorLearningCenterService
;
@Autowired
@Autowired
...
@@ -555,6 +566,13 @@ public class SupervisorTaskInfoService {
...
@@ -555,6 +566,13 @@ public class SupervisorTaskInfoService {
taskInfo
.
setWeekTaskStaffList
(
weekTaskStaffList
);
taskInfo
.
setWeekTaskStaffList
(
weekTaskStaffList
);
}
}
if
(
TaskTypeEnum
.
TRAINING
.
getCode
().
equals
(
taskInfo
.
getTaskType
()))
{
if
(
TaskTypeEnum
.
TRAINING
.
getCode
().
equals
(
taskInfo
.
getTaskType
()))
{
// 查询带教详情
SupervisorTeachingDetail
teachingDetail
=
supervisorTeachingDetailService
.
selectByTaskId
(
id
);
taskInfo
.
setTeachingDetail
(
teachingDetail
);
// 查询参与人员列表
List
<
SupervisorTaskParticipant
>
participantList
=
supervisorTaskParticipantService
.
selectByTaskId
(
id
);
taskInfo
.
setParticipantList
(
participantList
);
// 查询课程列表
List
<
SupervisorTaskCourse
>
taskCourseList
=
supervisorTaskCourseService
.
selectByTaskId
(
id
);
List
<
SupervisorTaskCourse
>
taskCourseList
=
supervisorTaskCourseService
.
selectByTaskId
(
id
);
taskInfo
.
setTaskCourseList
(
taskCourseList
);
taskInfo
.
setTaskCourseList
(
taskCourseList
);
//根据员工手机号,查询北森员工信息
//根据员工手机号,查询北森员工信息
...
@@ -784,6 +802,38 @@ public class SupervisorTaskInfoService {
...
@@ -784,6 +802,38 @@ public class SupervisorTaskInfoService {
Long
taskId
=
taskInfo
.
getId
();
Long
taskId
=
taskInfo
.
getId
();
log
.
info
(
"插入带教任务成功,taskId={}"
,
taskId
);
log
.
info
(
"插入带教任务成功,taskId={}"
,
taskId
);
// 插入带教详情
if
(
request
.
getTeachingDetail
()
!=
null
)
{
SupervisorTeachingDetail
teachingDetail
=
request
.
getTeachingDetail
();
teachingDetail
.
setTaskId
(
taskId
);
supervisorTeachingDetailMapper
.
insertSelective
(
teachingDetail
);
log
.
info
(
"插入带教详情成功"
);
}
// 插入门店关联列表
if
(
CollectionUtils
.
isNotEmpty
(
request
.
getTaskMerchantList
()))
{
for
(
SupervisorTaskMerchant
merchant
:
request
.
getTaskMerchantList
())
{
merchant
.
setRelationId
(
taskId
);
merchant
.
setCreatedBy
(
request
.
getSupervisorPhone
());
merchant
.
setCreateTime
(
date
);
merchant
.
setDeletedFlag
(
BaseModel
.
DeletedFlagEnum
.
N
.
name
());
}
supervisorTaskMerchantMapper
.
insertList
(
request
.
getTaskMerchantList
());
log
.
info
(
"插入带教门店成功,merchantCount={}"
,
request
.
getTaskMerchantList
().
size
());
}
// 插入参与人员列表
if
(
CollectionUtils
.
isNotEmpty
(
request
.
getParticipantList
()))
{
for
(
SupervisorTaskParticipant
participant
:
request
.
getParticipantList
())
{
participant
.
setTaskId
(
taskId
);
participant
.
setCreatedBy
(
request
.
getSupervisorName
());
participant
.
setCreateTime
(
date
);
participant
.
setDeletedFlag
(
BaseModel
.
DeletedFlagEnum
.
N
.
name
());
}
supervisorTaskParticipantMapper
.
insertList
(
request
.
getParticipantList
());
log
.
info
(
"插入参与人员成功,participantCount={}"
,
request
.
getParticipantList
().
size
());
}
// 插入图片列表
// 插入图片列表
if
(
CollectionUtils
.
isNotEmpty
(
request
.
getTaskImageList
()))
{
if
(
CollectionUtils
.
isNotEmpty
(
request
.
getTaskImageList
()))
{
for
(
SupervisorTaskImage
image
:
request
.
getTaskImageList
())
{
for
(
SupervisorTaskImage
image
:
request
.
getTaskImageList
())
{
...
...
rpc-dj-supervisor/src/main/java/cn/com/glsx/dj/supervisor/service/SupervisorTaskParticipantService.java
0 → 100644
View file @
76058c8
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
service
;
import
cn.com.glsx.dj.supervisor.mapper.SupervisorTaskParticipantMapper
;
import
cn.com.glsx.dj.supervisor.model.SupervisorTaskParticipant
;
import
cn.com.glsx.framework.core.beans.BaseModel
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
tk.mybatis.mapper.entity.Example
;
import
java.util.List
;
@Service
@Slf4j
public
class
SupervisorTaskParticipantService
{
@Autowired
private
SupervisorTaskParticipantMapper
supervisorTaskParticipantMapper
;
/**
* 根据任务ID查询参与人员列表
*
* @param taskId
* @return
*/
public
List
<
SupervisorTaskParticipant
>
selectByTaskId
(
Long
taskId
)
{
Example
example
=
new
Example
(
SupervisorTaskParticipant
.
class
);
example
.
createCriteria
().
andEqualTo
(
"taskId"
,
taskId
).
andEqualTo
(
"deletedFlag"
,
BaseModel
.
DeletedFlagEnum
.
N
.
name
());
return
supervisorTaskParticipantMapper
.
selectByExample
(
example
);
}
}
\ No newline at end of file
\ No newline at end of file
rpc-dj-supervisor/src/main/java/cn/com/glsx/dj/supervisor/service/SupervisorTeachingDetailService.java
0 → 100644
View file @
76058c8
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
service
;
import
cn.com.glsx.dj.supervisor.mapper.SupervisorTeachingDetailMapper
;
import
cn.com.glsx.dj.supervisor.model.SupervisorTeachingDetail
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
tk.mybatis.mapper.entity.Example
;
import
java.util.List
;
@Service
@Slf4j
public
class
SupervisorTeachingDetailService
{
@Autowired
private
SupervisorTeachingDetailMapper
supervisorTeachingDetailMapper
;
/**
* 根据任务ID查询带教详情
*
* @param taskId
* @return
*/
public
SupervisorTeachingDetail
selectByTaskId
(
Long
taskId
)
{
Example
example
=
new
Example
(
SupervisorTeachingDetail
.
class
);
example
.
createCriteria
().
andEqualTo
(
"taskId"
,
taskId
);
return
supervisorTeachingDetailMapper
.
selectOneByExample
(
example
);
}
}
\ No newline at end of file
\ No newline at end of file
rpc-dj-supervisor/src/main/resources/META-INF/orm/SupervisorTaskParticipantMapper.xml
0 → 100644
View file @
76058c8
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"cn.com.glsx.dj.supervisor.mapper.SupervisorTaskParticipantMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.com.glsx.dj.supervisor.model.SupervisorTaskParticipant"
>
<id
column=
"id"
property=
"id"
jdbcType=
"BIGINT"
/>
<result
column=
"task_id"
property=
"taskId"
jdbcType=
"BIGINT"
/>
<result
column=
"participant_phone"
property=
"participantPhone"
jdbcType=
"VARCHAR"
/>
<result
column=
"participant_name"
property=
"participantName"
jdbcType=
"VARCHAR"
/>
<result
column=
"created_by"
property=
"createdBy"
jdbcType=
"VARCHAR"
/>
<result
column=
"create_time"
property=
"createTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"updated_by"
property=
"updatedBy"
jdbcType=
"VARCHAR"
/>
<result
column=
"updated_date"
property=
"updatedDate"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"deleted_flag"
property=
"deletedFlag"
jdbcType=
"CHAR"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, task_id, participant_phone, participant_name, created_by, create_time, updated_by, updated_date, deleted_flag
</sql>
</mapper>
\ No newline at end of file
\ No newline at end of file
rpc-dj-supervisor/src/main/resources/META-INF/orm/SupervisorTeachingDetailMapper.xml
0 → 100644
View file @
76058c8
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"cn.com.glsx.dj.supervisor.mapper.SupervisorTeachingDetailMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.com.glsx.dj.supervisor.model.SupervisorTeachingDetail"
>
<id
column=
"id"
property=
"id"
jdbcType=
"BIGINT"
/>
<result
column=
"task_id"
property=
"taskId"
jdbcType=
"BIGINT"
/>
<result
column=
"teaching_scene_code"
property=
"teachingSceneCode"
jdbcType=
"VARCHAR"
/>
<result
column=
"teaching_scene_name"
property=
"teachingSceneName"
jdbcType=
"VARCHAR"
/>
<result
column=
"teaching_method_code"
property=
"teachingMethodCode"
jdbcType=
"VARCHAR"
/>
<result
column=
"teaching_method_name"
property=
"teachingMethodName"
jdbcType=
"VARCHAR"
/>
<result
column=
"teaching_topic_code"
property=
"teachingTopicCode"
jdbcType=
"VARCHAR"
/>
<result
column=
"teaching_topic_name"
property=
"teachingTopicName"
jdbcType=
"VARCHAR"
/>
<result
column=
"teaching_time"
property=
"teachingTime"
jdbcType=
"TIMESTAMP"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, task_id, teaching_scene_code, teaching_scene_name, teaching_method_code, teaching_method_name, teaching_topic_code,
teaching_topic_name, teaching_time
</sql>
</mapper>
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