Commit 0f8dfe0e by 范富荣

Merge remote-tracking branch 'origin/main' into main

# Conflicts:
#	rpc-dj-supervisor/src/main/java/cn/com/glsx/dj/supervisor/service/SupervisorTaskInfoService.java
2 parents c2bd4f0a a580c52c
Showing 23 changed files with 1093 additions and 27 deletions
package cn.com.glsx.dj.supervisor.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* 新增专项任务请求DTO
*/
@Data
@ToString
public class CreateSpecialTaskDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 门店ID
*/
@NotNull(message = "门店ID不能为空")
@ApiModelProperty(notes = "门店ID", required = true)
private Integer merchantId;
/**
* 门店名称(冗余字段)
*/
@NotEmpty(message = "门店名称不能为空")
@ApiModelProperty(notes = "门店名称", required = true)
private String merchantName;
/**
* 任务描述
*/
@ApiModelProperty(notes = "任务描述")
private String taskDesc;
/**
* 督导手机号
*/
@NotEmpty(message = "督导手机号不能为空")
@ApiModelProperty(notes = "督导手机号", required = true)
private String supervisorPhone;
/**
* 督导姓名
*/
@NotEmpty(message = "督导姓名不能为空")
@ApiModelProperty(notes = "督导姓名", required = true)
private String supervisorName;
/**
* 创建人姓名
*/
@NotEmpty(message = "创建人不能为空")
@ApiModelProperty(notes = "创建人姓名", required = true)
private String createdBy;
}
package cn.com.glsx.dj.supervisor.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* 督导管理详情页查询参数
*
* @author xiehx
* @date 2026-03-12
*/
@Data
public class SupervisorDetailQueryDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 督导手机号(必传,用于定位督导)
*/
@ApiModelProperty(notes = "督导手机号(必传)")
private String supervisorPhone;
/**
* 业务类型:1.延保 2.轻改 3.权益,不传或传null表示全场景
*/
@ApiModelProperty(notes = "业务类型:1.延保 2.轻改 3.权益,不传表示全场景")
private Integer bizType;
/**
* 查询开始日期,格式 yyyy-MM-dd
*/
@ApiModelProperty(notes = "查询开始日期,格式 yyyy-MM-dd")
private String startDate;
/**
* 查询结束日期,格式 yyyy-MM-dd
*/
@ApiModelProperty(notes = "查询结束日期,格式 yyyy-MM-dd")
private String endDate;
}
package cn.com.glsx.dj.supervisor.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* 督导管理详情页 - 驻店销售明细行 DTO
* <p>
* 用于详情页驻店销售列表,包含:姓名、归属业务、产值、转化率、客单价
* </p>
*
* @author xiehx
* @date 2026-03-12
*/
@Data
public class SupervisorDetailStaffDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 驻店销售姓名
*/
@ApiModelProperty(notes = "驻店销售姓名")
private String staffName;
/**
* 驻店销售手机号
*/
@ApiModelProperty(notes = "驻店销售手机号")
private String staffPhone;
/**
* 归属业务(数据来源:D后台-人员管理-驻店管理-所属业务,多个业务用逗号拼接)
*/
@ApiModelProperty(notes = "归属业务,多个用逗号拼接,如:延保,轻改,权益")
private String bizNames;
/**
* 产值,单位元,保留2位小数
*/
@ApiModelProperty(notes = "产值,单位元,保留2位小数")
private BigDecimal outputValue;
/**
* 转化率,单位%,保留2位小数
*/
@ApiModelProperty(notes = "转化率,单位%,保留2位小数")
private BigDecimal conversionRate;
/**
* 客单价,单位元,保留2位小数
*/
@ApiModelProperty(notes = "客单价,单位元,保留2位小数")
private BigDecimal avgOrderValue;
}
package cn.com.glsx.dj.supervisor.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* 督导管理详情页 - 汇总数据 DTO
* <p>
* 包含:团队人员数、产值、转化率、客单价
* </p>
*
* @author xiehx
* @date 2026-03-12
*/
@Data
public class SupervisorDetailSummaryDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 团队人员数(当前督导管理的驻店销售人员总数)
*/
@ApiModelProperty(notes = "团队人员数(当前督导管理的驻店销售人员总数)")
private Integer teamStaffCount;
/**
* 产值,单位元,保留2位小数
*/
@ApiModelProperty(notes = "产值,单位元,保留2位小数")
private BigDecimal outputValue;
/**
* 转化率,单位%,保留2位小数
*/
@ApiModelProperty(notes = "转化率,单位%,保留2位小数")
private BigDecimal conversionRate;
/**
* 客单价,单位元,保留2位小数
*/
@ApiModelProperty(notes = "客单价,单位元,保留2位小数")
private BigDecimal avgOrderValue;
}
package cn.com.glsx.dj.supervisor.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* 督导管理分页列表-数据对象
*
* @author xiehx
* @date 2026-03-12
*/
@Data
public class SupervisorPageDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 督导姓名
*/
@ApiModelProperty(notes = "督导姓名")
private String name;
/**
* 督导手机号
*/
@ApiModelProperty(notes = "督导手机号")
private String phone;
/**
* 入职日期
*/
@ApiModelProperty(notes = "入职日期")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date entryDate;
/**
* 团队人员总数(督导负责门店下的员工总数)
*/
@ApiModelProperty(notes = "团队人员总数")
private Integer teamStaffCount;
/**
* 管理门店总数(该督导负责的门店去重后的数量)
*/
@ApiModelProperty(notes = "管理门店总数")
private Integer managedStoreCount;
/**
* 产值(单位:万,保留一位小数)
*/
@ApiModelProperty(notes = "产值(单位:万,保留一位小数)")
private BigDecimal outputValue;
}
package cn.com.glsx.dj.supervisor.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* 督导管理分页查询-条件对象
*
* @author xiehx
* @date 2026-03-12
*/
@Data
public class SupervisorPageQueryDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 督导姓名(模糊匹配)
*/
@ApiModelProperty(notes = "督导姓名(模糊匹配)")
private String name;
/**
* 督导手机号(精确匹配)
*/
@ApiModelProperty(notes = "督导手机号")
private String phone;
}
......@@ -120,4 +120,38 @@ public interface SupervisorTaskInfoRemote {
@ApiParams({@ApiParam(name = "request", notes = "不需要参数,传null即可", dataType = ApiParam.DataTypeEnum.OBJECT, required = false)})
@ApiResponse("汇总数据")
RpcResponse<SupervisorManageSummaryDTO> getManageSummary();
/**
* 分页查询督导列表(含团队人数、管理门店、产值)
*/
@ApiMethod("分页查询督导列表")
@ApiParams({@ApiParam(name = "request", notes = "查询参数(督导姓名、手机号、分页)", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("督导分页列表")
RpcResponse<RpcPagination<SupervisorPageDTO>> pageSupervisors(RpcPagination<SupervisorPageQueryDTO> request);
/**
* 督导管理详情页 - 核心指标汇总
* 返回:团队人员数、产值、转化率、客单价
*/
@ApiMethod("督导管理详情页汇总")
@ApiParams({@ApiParam(name = "request", notes = "查询参数(督导手机号、业务类型、起止日期)", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("核心指标汇总")
RpcResponse<SupervisorDetailSummaryDTO> getDetailSummary(SupervisorDetailQueryDTO request);
/**
* 督导管理详情页 - 驻店销售明细分页列表
* 每行:驻店销售、归属业务、产值、转化率、客单价
*/
@ApiMethod("督导管理详情页驻店销售分页列表")
@ApiParams({@ApiParam(name = "request", notes = "查询参数(督导手机号、业务类型、起止日期、分页)", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("驻店销售明细分页列表")
RpcResponse<RpcPagination<SupervisorDetailStaffDTO>> pageDetailStaff(RpcPagination<SupervisorDetailQueryDTO> request);
/**
* 新增专项任务
*/
@ApiMethod("新增专项任务")
@ApiParams({@ApiParam(name = "request", notes = "专项任务信息(门店ID、门店名称、任务描述、督导手机号、督导姓名、创建人)", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("新增结果(任务ID)")
RpcResponse<Long> createSpecialTask(CreateSpecialTaskDTO request);
}
\ No newline at end of file
......@@ -13,6 +13,11 @@
<dependencies>
<dependency>
<groupId>cn.com.glsx</groupId>
<artifactId>rpc-omni-ai-api</artifactId>
<version>1.0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.8.38</version>
......@@ -20,7 +25,7 @@
<dependency>
<groupId>cn.com.glsx.merchants</groupId>
<artifactId>platform-merchants-api</artifactId>
<version>5.6.1-SNAPSHOT</version>
<version>5.7.0-SNAPSHOT</version>
</dependency>
<dependency>
......@@ -54,11 +59,6 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<dependency>
<groupId>cn.com.glsx.merchants</groupId>
<artifactId>platform-merchants-api</artifactId>
<version>5.6.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
......
package cn.com.glsx.dj.supervisor.config;
import cn.com.glsk.omni.ai.remote.AgiRemote;
import cn.com.glsx.dj.peanalysis.remote.BusinessSceneAnalysisRemote;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class LLMDubboConfig extends DubboConfig {
@Bean
public AgiRemote agiRemote() {
return factory.builder(AgiRemote.class).check(false).timeout(120000).build();
}
}
package cn.com.glsx.dj.supervisor.dto;
import lombok.Data;
/**
* Mapper 内部用 DTO - 飞行督导与门店关联关系
*
* @author system
* @date 2026-03-17
*/
@Data
public class SupervisorDirectorConfigDTO {
/**
* 门店商户号
*/
private Integer merchantId;
/**
* 负责人类型
*/
private Integer directorType;
/**
* 负责人(督导)ID
*/
private String directorUserId;
/**
* 负责人(督导)姓名
*/
private String directorName;
/**
* 负责人(督导)手机号
*/
private String directorPhone;
}
package cn.com.glsx.dj.supervisor.dto;
import lombok.Data;
/**
* Mapper 内部用 DTO - 门店与驻店销售关联关系
*
* @author system
* @date 2026-03-17
*/
@Data
public class SupervisorStaffAccountDTO {
/**
* 员工 UUID
*/
private String staffUuid;
/**
* 驻店员工手机号
*/
private String staffPhone;
/**
* 归属门店商户号
*/
private Integer merchantId;
/**
* 归属门店商户名称
*/
private String merchantName;
/**
* 归属园区店商户号
*/
private Integer yqMerchantId;
/**
* 归属园区店商户名称
*/
private String yqMerchantName;
}
package cn.com.glsx.dj.supervisor.dto;
import lombok.Data;
/**
* Mapper 内部用 DTO - 督导管理门店数量
*
* @author xiehx
* @date 2026-03-12
*/
@Data
public class SupervisorStoreCountDTO {
/**
* 督导手机号
*/
private String directorPhone;
/**
* 管理门店数
*/
private Integer storeCount;
}
package cn.com.glsx.dj.supervisor.dto;
import lombok.Data;
/**
* @Title:
* @Description:
* @Author xiehx
* @Date 2026/3/14
**/
@Data
public class SupervisorStoreManagerDTO {
/**
* 督导手机号
*/
private String supervisorPhone;
/**
* 驻店销售UUID列表
*/
private String storeManagerUuid;
}
package cn.com.glsx.dj.supervisor.job;
import cn.com.glsk.omni.ai.dto.LLMResponse;
import cn.com.glsk.omni.ai.remote.AgiRemote;
import cn.com.glsx.dj.supervisor.model.SupervisorAiAnalysisRecord;
import cn.com.glsx.dj.supervisor.service.SupervisorAiAnalysisRecordService;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import com.dangdang.ddframe.job.api.ShardingContext;
import com.dangdang.ddframe.job.api.simple.SimpleJob;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils;
import org.oreframework.boot.autoconfigure.elasticjob.annotation.ElasticJobConf;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 督导 AI 分析结果轮询定时任务
* 每 10 秒执行一次,查询状态为"生成中"的 AI 分析记录,
* 调用 AgiRemote.queryLLMResult() 获取大模型结果并更新记录状态。
*/
@Slf4j
@Service
@ElasticJobConf(name = "SupervisorAiAnalysisQueryJob", cron = "*/10 * * * * ?", description = "督导AI分析结果轮询任务", overwrite = false)
public class SupervisorAiAnalysisQueryJob implements SimpleJob {
/** AI 任务状态:生成中 */
private static final int AI_TASK_STATUS_PENDING = 0;
/** AI 任务状态:成功 */
private static final int AI_TASK_STATUS_SUCCESS = 1;
/** AI 任务状态:失败 */
private static final int AI_TASK_STATUS_FAIL = 2;
@Autowired
private SupervisorAiAnalysisRecordService supervisorAiAnalysisRecordService;
@Autowired
private AgiRemote agiRemote;
@Override
public void execute(ShardingContext shardingContext) {
log.info("督导 AI 分析结果轮询任务开始执行");
try {
// 查询所有生成中的 AI 分析记录
List<SupervisorAiAnalysisRecord> pendingList = supervisorAiAnalysisRecordService.listPendingRecords();
if (CollectionUtils.isEmpty(pendingList)) {
log.info("暂无生成中的 AI 分析记录,本次轮询结束");
return;
}
log.info("查询到 {} 条生成中的 AI 分析记录,开始轮询结果", pendingList.size());
for (SupervisorAiAnalysisRecord record : pendingList) {
queryAndUpdateRecord(record);
}
} catch (Exception e) {
log.error("督导 AI 分析结果轮询任务执行异常", e);
}
log.info("督导 AI 分析结果轮询任务执行结束");
}
/**
* 查询单条记录的 AI 生成结果并更新数据库
*
* @param record 待查询的 AI 分析记录
*/
private void queryAndUpdateRecord(SupervisorAiAnalysisRecord record) {
Long recordId = record.getId();
String aiTaskId = record.getAiTaskId();
try {
log.info("开始查询 AI 分析结果,recordId={},aiTaskId={}", recordId, aiTaskId);
RpcResponse<LLMResponse> rpcResponse = agiRemote.queryLLMResult(aiTaskId);
if (rpcResponse == null || !rpcResponse.isSuccess()) {
String errorMsg = rpcResponse != null ? rpcResponse.getMessage() : "响应为空";
log.warn("查询 AI 分析结果失败,recordId={},aiTaskId={},error={}", recordId, aiTaskId, errorMsg);
return;
}
LLMResponse llmResponse = rpcResponse.getResult();
if (llmResponse == null) {
log.warn("AI 分析结果为空,recordId={},aiTaskId={}", recordId, aiTaskId);
return;
}
if (!llmResponse.isTaskFinished()) {
// 任务尚未完成,等待下次轮询
log.info("AI 分析任务尚未完成,继续等待,recordId={},aiTaskId={}", recordId, aiTaskId);
return;
}
if (!llmResponse.isSuccess()) {
// 任务完成但失败
log.warn("AI 分析任务执行失败,recordId={},aiTaskId={},error={}", recordId, aiTaskId, llmResponse.getError());
supervisorAiAnalysisRecordService.updateAiTaskResult(recordId, AI_TASK_STATUS_FAIL, llmResponse.getError());
return;
}
// 任务成功,更新结果
String result = llmResponse.getMessage();
log.info("AI 分析任务成功,recordId={},aiTaskId={},resultLength={}", recordId, aiTaskId, result != null ? result.length() : 0);
supervisorAiAnalysisRecordService.updateAiTaskResult(recordId, AI_TASK_STATUS_SUCCESS, result);
} catch (Exception e) {
log.error("查询并更新 AI 分析结果异常,recordId={},aiTaskId={}", recordId, aiTaskId, e);
}
}
}
......@@ -4,6 +4,8 @@ import cn.com.glsx.dj.supervisor.model.SupervisorAiAnalysisRecord;
import org.apache.ibatis.annotations.Mapper;
import org.oreframework.datasource.mybatis.mapper.OreMapper;
import java.util.List;
@Mapper
public interface SupervisorAiAnalysisRecordMapper extends OreMapper<SupervisorAiAnalysisRecord> {
......@@ -14,4 +16,11 @@ public interface SupervisorAiAnalysisRecordMapper extends OreMapper<SupervisorAi
* @return AI 分析记录
*/
SupervisorAiAnalysisRecord selectByCondition(SupervisorAiAnalysisRecord record);
/**
* 查询所有生成中(ai_task_status=0)的 AI 分析记录列表
*
* @return 生成中的记录列表
*/
List<SupervisorAiAnalysisRecord> selectPendingRecords();
}
package cn.com.glsx.dj.supervisor.mapper;
import cn.com.glsx.dj.supervisor.dto.MapperQueryEmployeeTrainingInfoDTO;
import cn.com.glsx.dj.supervisor.dto.SupervisorTaskDTO;
import cn.com.glsx.dj.supervisor.dto.SupervisorTaskQueryDTO;
import cn.com.glsx.dj.supervisor.dto.TrainingListDTO;
import cn.com.glsx.dj.supervisor.dto.*;
import cn.com.glsx.dj.supervisor.model.SupervisorTaskInfo;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
......@@ -54,10 +51,44 @@ public interface SupervisorTaskInfoMapper extends OreMapper<SupervisorTaskInfo>
List<Integer> queryMerchantBySupervisorPhone(@Param("phoneList") List<String> phoneList);
/**
* 按督导手机号分组,统计各督导管理的门店数量
* key=director_phone, value=COUNT(DISTINCT merchant_id)
*
* @param phoneList 督导手机号列表
* @return key为手机号,value为门店数
*/
@MapKey("directorPhone")
Map<String, SupervisorStoreCountDTO> queryStoreCountGroupByPhone(@Param("phoneList") List<String> phoneList);
/**
* 查询给定门店列表下的全部驻店人员uuid列表
*
* @param merchantIdList
* @return
*/
List<String> queryStoreManagerUuidByMerchantId(@Param("merchantIdList") List<Integer> merchantIdList);
/**
* 通过督导手机号查询驻店人员uuid列表
*
* @param phoneList
* @return
*/
List<SupervisorStoreManagerDTO> queryStoreMangerUuidListBySupervisorPhone(@Param("phoneList") List<String> phoneList);
/**
* 通过飞行督导手机号查询与门店的关联关系列表
*
* @param supervisorPhoneList 飞行督导手机号
* @return 门店关联关系列表
*/
List<SupervisorDirectorConfigDTO> queryDirectorConfigBySupervisorPhone(@Param("supervisorPhoneList") List<String> supervisorPhoneList);
/**
* 通过门店商户号列表查询门店与驻店销售的关联关系列表
*
* @param merchantIdList 门店商户号列表
* @return 驻店销售关联关系列表
*/
List<SupervisorStaffAccountDTO> queryStaffAccountByMerchantIdList(@Param("merchantIdList") List<Integer> merchantIdList);
}
\ No newline at end of file
......@@ -3,7 +3,12 @@ package cn.com.glsx.dj.supervisor.remote;
import cn.com.glsx.dj.supervisor.dto.*;
import cn.com.glsx.dj.supervisor.dto.AudioReceptionDTO;
import cn.com.glsx.dj.supervisor.dto.AudioSummaryDTO;
import cn.com.glsx.dj.supervisor.dto.SupervisorDetailQueryDTO;
import cn.com.glsx.dj.supervisor.dto.SupervisorDetailStaffDTO;
import cn.com.glsx.dj.supervisor.dto.SupervisorDetailSummaryDTO;
import cn.com.glsx.dj.supervisor.dto.SupervisorManageSummaryDTO;
import cn.com.glsx.dj.supervisor.dto.SupervisorPageDTO;
import cn.com.glsx.dj.supervisor.dto.SupervisorPageQueryDTO;
import cn.com.glsx.dj.supervisor.dto.SupervisorTaskDTO;
import cn.com.glsx.dj.supervisor.dto.SupervisorTaskQueryDTO;
import cn.com.glsx.dj.supervisor.model.SupervisorAudioReviewInfo;
......@@ -214,4 +219,68 @@ public class SupervisorTaskInfoRemoteImpl implements SupervisorTaskInfoRemote {
return RpcResponse.error(DefaultErrorEnum.SERVER_ERROR, e.getMessage());
}
}
@Override
public RpcResponse<RpcPagination<SupervisorPageDTO>> pageSupervisors(RpcPagination<SupervisorPageQueryDTO> request) {
try {
log.info("分页查询督导列表 - 开始查询");
RpcPagination<SupervisorPageDTO> result = supervisorTaskInfoService.pageSupervisors(request);
log.info("分页查询督导列表 - 查询成功,total={}", result.getTotal());
return RpcResponse.success(result);
} catch (RpcServiceException e) {
log.error("cn.com.glsx.dj.supervisor.remote.SupervisorTaskInfoRemoteImpl.pageSupervisors error {}", e);
return RpcResponse.error(e.getError(), e.getMessage());
} catch (Exception e) {
log.error("cn.com.glsx.dj.supervisor.remote.SupervisorTaskInfoRemoteImpl.pageSupervisors system error {}", e);
return RpcResponse.error(DefaultErrorEnum.SERVER_ERROR, e.getMessage());
}
}
@Override
public RpcResponse<SupervisorDetailSummaryDTO> getDetailSummary(SupervisorDetailQueryDTO request) {
try {
log.info("督导管理详情页汇总 - 开始查询,request={}", request);
SupervisorDetailSummaryDTO result = supervisorTaskInfoService.getDetailSummary(request);
log.info("督导管理详情页汇总 - 查询成功");
return RpcResponse.success(result);
} catch (RpcServiceException e) {
log.error("cn.com.glsx.dj.supervisor.remote.SupervisorTaskInfoRemoteImpl.getDetailSummary error {}", e);
return RpcResponse.error(e.getError(), e.getMessage());
} catch (Exception e) {
log.error("cn.com.glsx.dj.supervisor.remote.SupervisorTaskInfoRemoteImpl.getDetailSummary system error {}", e);
return RpcResponse.error(DefaultErrorEnum.SERVER_ERROR, e.getMessage());
}
}
@Override
public RpcResponse<RpcPagination<SupervisorDetailStaffDTO>> pageDetailStaff(RpcPagination<SupervisorDetailQueryDTO> request) {
try {
log.info("督导管理详情页驻店销售分页 - 开始查询");
RpcPagination<SupervisorDetailStaffDTO> result = supervisorTaskInfoService.pageDetailStaff(request);
log.info("督导管理详情页驻店销售分页 - 查询成功,total={}", result.getTotal());
return RpcResponse.success(result);
} catch (RpcServiceException e) {
log.error("cn.com.glsx.dj.supervisor.remote.SupervisorTaskInfoRemoteImpl.pageDetailStaff error {}", e);
return RpcResponse.error(e.getError(), e.getMessage());
} catch (Exception e) {
log.error("cn.com.glsx.dj.supervisor.remote.SupervisorTaskInfoRemoteImpl.pageDetailStaff system error {}", e);
return RpcResponse.error(DefaultErrorEnum.SERVER_ERROR, e.getMessage());
}
}
@Override
public RpcResponse<Long> createSpecialTask(CreateSpecialTaskDTO request) {
try {
log.info("新增专项任务 - 开始,request={}", request);
Long taskId = supervisorTaskInfoService.createSpecialTask(request);
log.info("新增专项任务 - 成功,taskId={}", taskId);
return RpcResponse.success(taskId);
} catch (RpcServiceException e) {
log.error("cn.com.glsx.dj.supervisor.remote.SupervisorTaskInfoRemoteImpl.createSpecialTask error {}", e);
return RpcResponse.error(e.getError(), e.getMessage());
} catch (Exception e) {
log.error("cn.com.glsx.dj.supervisor.remote.SupervisorTaskInfoRemoteImpl.createSpecialTask system error {}", e);
return RpcResponse.error(DefaultErrorEnum.SERVER_ERROR, e.getMessage());
}
}
}
......@@ -2,12 +2,14 @@ package cn.com.glsx.dj.supervisor.service;
import cn.com.glsx.dj.supervisor.mapper.SupervisorAiAnalysisRecordMapper;
import cn.com.glsx.dj.supervisor.model.SupervisorAiAnalysisRecord;
import cn.com.glsx.framework.core.beans.BaseModel;
import cn.hutool.core.date.DateUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Collections;
import java.util.Date;
import java.util.List;
/**
* 督导 AI 分析记录 Service 实现类
*
......@@ -31,4 +33,40 @@ public class SupervisorAiAnalysisRecordService {
throw new RuntimeException("查询失败:" + e.getMessage(), e);
}
}
/**
* 查询所有生成中(ai_task_status=0)的 AI 分析记录列表
*
* @return 生成中的记录列表
*/
public List<SupervisorAiAnalysisRecord> listPendingRecords() {
try {
List<SupervisorAiAnalysisRecord> list = supervisorAiAnalysisRecordMapper.selectPendingRecords();
return list != null ? list : Collections.emptyList();
} catch (Exception e) {
log.error("查询生成中的 AI 分析记录列表异常", e);
return Collections.emptyList();
}
}
/**
* 更新 AI 任务状态和生成结果
*
* @param id 记录 ID
* @param aiTaskStatus AI 任务状态(1-成功、2-失败)
* @param aiGenerateResult AI 生成结果(失败时可为 null)
*/
public void updateAiTaskResult(Long id, Integer aiTaskStatus, String aiGenerateResult) {
try {
SupervisorAiAnalysisRecord update = new SupervisorAiAnalysisRecord();
update.setId(id);
update.setAiTaskStatus(aiTaskStatus);
update.setAiGenerateResult(aiGenerateResult);
update.setUpdatedBy("system");
update.setUpdatedTime(new Date());
supervisorAiAnalysisRecordMapper.updateByPrimaryKeySelective(update);
} catch (Exception e) {
log.error("更新 AI 任务状态异常,id={}", id, e);
}
}
}
......@@ -124,7 +124,7 @@ public class SupervisorDashboardService {
* @param dashboardQueryReq 请求参数
* @return 指标数据
*/
private List<EmployeeRanking> getDashboardMetrics(DashboardQueryReq dashboardQueryReq) {
public List<EmployeeRanking> getDashboardMetrics(DashboardQueryReq dashboardQueryReq) {
// 1.获取 BI 指标数据
DataBizQueryParamsDTO params = new DataBizQueryParamsDTO();
......
......@@ -27,6 +27,8 @@ import cn.com.glsx.merchants.model.request.MerchantStaffRequest;
import cn.com.glsx.merchants.model.response.MerchantStaffResponse;
import cn.com.glsx.merchants.remote.MerchantStaffRemote;
import cn.com.glsx.merchants.remote.MerchantUserRemote;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.date.DateUtil;
import com.alibaba.fastjson.JSON;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
......@@ -41,6 +43,7 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import java.math.BigDecimal;
import java.util.*;
import java.util.stream.Collectors;
......@@ -84,6 +87,9 @@ public class SupervisorTaskInfoService {
@Autowired
private SupervisorLearningCenterService supervisorLearningCenterService;
@Autowired
private SupervisorDashboardService supervisorDashboardService;
@DubboReference(version = "2.0.0", check = false, timeout = 5000)
private MerchantUserRemote merchantUserRemote;
......@@ -167,38 +173,63 @@ public class SupervisorTaskInfoService {
.filter(phone -> phone != null && !phone.isEmpty())
.distinct()
.collect(Collectors.toList());
summary.setTotalCount(getEffectiveSupervisors(phoneList));
// 3. 查询 director_config 表,统计所有督导负责的门店(director_type=6,平台中飞行督导)
List<Integer> merchantIdList = supervisorTaskInfoMapper.queryMerchantBySupervisorPhone(phoneList);
summary.setManagedStoreCount(merchantIdList.size());
// TODO 对接接口,查询统计本月内总产值
List<String> staffUuidList = supervisorTaskInfoMapper.queryStoreManagerUuidByMerchantId(merchantIdList);
// DateUtil.beginOfMonth(new Date())
phoneList = getEffectiveSupervisors(phoneList);
summary.setTotalCount(phoneList.size());
summary.setMonthlyOutput(java.math.BigDecimal.ZERO);
// 3. 查询 director_config 表,统计所有督导负责的门店(director_type=6,平台中飞行督导)
List<SupervisorDirectorConfigDTO> supervisorDirectorConfigDTOS = supervisorTaskInfoMapper.queryDirectorConfigBySupervisorPhone(phoneList);
List<Integer> merchantIdList = supervisorDirectorConfigDTOS.stream()
.map(SupervisorDirectorConfigDTO::getMerchantId)
.distinct()
.collect(Collectors.toList());
summary.setManagedStoreCount(merchantIdList.size());
// 查询统计本月内总产值
BigDecimal monthlyOutput = getMerchantListMonthlyOutput(merchantIdList);
summary.setMonthlyOutput(monthlyOutput);
return summary;
}
/**
* 查询门店列表本月内总产值
*
* @param merchantIdList 门店ID列表
* @return 本月内总产值
*/
private BigDecimal getMerchantListMonthlyOutput(List<Integer> merchantIdList) {
DashboardQueryReq req = new DashboardQueryReq();
req.setDateType(0);
req.setStartDate(DateUtil.beginOfMonth(new Date()).toDateStr());
req.setEndDate(DateUtil.endOfMonth(new Date()).toDateStr());
req.setMerchantIds(merchantIdList);
List<EmployeeRanking> rawEmployeeData = supervisorDashboardService.getDashboardMetrics(req);
BigDecimal monthlyOutput = rawEmployeeData.stream()
.map(EmployeeRanking::getPersonalOutput)
.reduce(BigDecimal.ZERO, BigDecimal::add);
return monthlyOutput;
}
/**
* 查询在职督导总人数
* @return
*/
public int getEffectiveSupervisors(List<String> phoneList) {
public List<String> getEffectiveSupervisors(List<String> phoneList) {
// 1. 查询全部督导列表
int onlineCount = 0;
List<String> onlinePhoneList = new ArrayList<>();
// 2. 批量查询北森信息,统计在职人数
if (!phoneList.isEmpty()) {
List<BeiSenEmployeeListResonseDTO> beisenList = supervisorLearningCenterService.listEmployeeInfoByStaffPhone(phoneList);
if (beisenList != null) {
onlineCount = (int) beisenList.stream()
onlinePhoneList = beisenList.stream()
.filter(emp -> Integer.valueOf(1).equals(emp.getZzStatus())) // 注意这里的值跟数据库中的是反的
.count();
// 获取在职督导手机号列表
.map(BeiSenEmployeeListResonseDTO::getMobilePhone)
.collect(Collectors.toList());
}
}
return onlineCount;
return onlinePhoneList;
}
public List<MerchantStaffResponse> listAllEffectiveSupervisors() {
......@@ -249,6 +280,134 @@ public class SupervisorTaskInfoService {
}
/**
* 分页查询账户中心所有在职飞行督导人员
* 在职:北森在职状态
* @return
*/
public RpcPagination<MerchantStaffResponse> scrmOnJobSupervisorsPage(RpcPagination<MerchantStaffRequest> pagination) {
//查询督导人员列表
MerchantStaffRequest staffRequest = pagination.getCondition();
staffRequest.setMerchantNo(env.getProperty("glsk_merchant_id", Integer.class, 44205577));
staffRequest.setRoleName(env.getProperty("glsk_supervisor_role_name", String.class, "飞行督导"));
staffRequest.setDelFlag((byte) 0);
// 过滤被删除被禁用的员工
RpcResponse<RpcPagination<MerchantStaffResponse>> response = merchantStaffRemote.findOnJobMerchantStaffPageRemote(pagination);
if (response.hasResult()) {
return response.getResult();
} else {
log.error("分页查询督导人员列表失败,merchantNo={}, roleName={}, message={}", staffRequest.getMerchantNo(), staffRequest.getRoleName(), response.getMessage());
throw new RpcServiceException(DefaultErrorEnum.RPC_ERROR, response.getMessage());
}
}
/**
* 分页查询督导列表(含入职日期、管理门店数、团队人员总数、产值)
*
* @param pagination 分页查询条件(督导姓名、手机号、分页参数)
* @return 分页结果
*/
public RpcPagination<SupervisorPageDTO> pageSupervisors(RpcPagination<SupervisorPageQueryDTO> pagination) {
// 1. 将查询条件转为 MerchantStaffRequest 分页查询督导列表
SupervisorPageQueryDTO condition = pagination.getCondition();
MerchantStaffRequest staffRequest = new MerchantStaffRequest();
if (condition != null) {
staffRequest.setStaffName(condition.getName());
staffRequest.setStaffPhone(condition.getPhone());
}
RpcPagination<MerchantStaffRequest> staffPagination = new RpcPagination<>();
staffPagination.setPageNum(pagination.getPageNum());
staffPagination.setPageSize(pagination.getPageSize());
staffPagination.setCondition(staffRequest);
RpcPagination<MerchantStaffResponse> staffPage = scrmOnJobSupervisorsPage(staffPagination);
List<MerchantStaffResponse> staffList = staffPage.getList();
// 构建空结果页
RpcPagination<SupervisorPageDTO> result = new RpcPagination<>();
result.setPageNum(staffPage.getPageNum());
result.setPageSize(staffPage.getPageSize());
result.setTotal(staffPage.getTotal());
result.setPages(staffPage.getPages());
if (CollectionUtils.isEmpty(staffList)) {
result.setList(new ArrayList<>());
return result;
}
// 2. 提取手机号列表
List<String> phoneList = staffList.stream()
.map(MerchantStaffResponse::getStaffPhone)
.filter(phone -> phone != null && !phone.isEmpty())
.distinct()
.collect(Collectors.toList());
// 3. 批量查询北森信息,获取入职日期(以手机号为 key 建立 Map)
Map<String, BeiSenEmployeeListResonseDTO> beisenMap = new HashMap<>();
if (!phoneList.isEmpty()) {
try {
List<BeiSenEmployeeListResonseDTO> beisenList = supervisorLearningCenterService.listEmployeeInfoByStaffPhone(phoneList);
if (beisenList != null) {
for (BeiSenEmployeeListResonseDTO dto : beisenList) {
if (dto.getMobilePhone() != null) {
beisenMap.put(dto.getMobilePhone(), dto);
}
}
}
} catch (Exception e) {
log.error("查询北森信息失败", e);
}
}
// 4. 批量查询每个督导管理的门店数(GROUP BY director_phone)
List<SupervisorDirectorConfigDTO> supervisorDirectorConfigDTOS = supervisorTaskInfoMapper.queryDirectorConfigBySupervisorPhone(phoneList);
// supervisorDirectorConfigDTOS 按手机号分组
Map<String, List<SupervisorDirectorConfigDTO>> directorConfigMap = supervisorDirectorConfigDTOS.stream()
.collect(Collectors.groupingBy(SupervisorDirectorConfigDTO::getDirectorPhone));
List<SupervisorStoreManagerDTO> supervisorStoreManagerDTOList = supervisorTaskInfoMapper.queryStoreMangerUuidListBySupervisorPhone(phoneList);
Map<String, List<String>> supervisorMap = new HashMap<>();
if (supervisorStoreManagerDTOList != null) {
supervisorMap = supervisorStoreManagerDTOList.stream()
.collect(Collectors.groupingBy(SupervisorStoreManagerDTO::getSupervisorPhone, Collectors.mapping(SupervisorStoreManagerDTO::getStoreManagerUuid, Collectors.toList())));
}
// 5. 组装结果
List<SupervisorPageDTO> pageList = new ArrayList<>();
for (MerchantStaffResponse staff : staffList) {
SupervisorPageDTO dto = new SupervisorPageDTO();
dto.setName(staff.getStaffName());
dto.setPhone(staff.getStaffPhone());
// 入职日期(来自北森)
BeiSenEmployeeListResonseDTO beisenDto = beisenMap.get(staff.getStaffPhone());
if (beisenDto != null) {
dto.setEntryDate(beisenDto.getEntryDate());
}
// 管理门店数 产值
List<SupervisorDirectorConfigDTO> directorConfigList = directorConfigMap.get(staff.getStaffPhone());
if (CollectionUtil.isNotEmpty(directorConfigList)) {
dto.setManagedStoreCount(directorConfigList.size());
dto.setOutputValue(getMerchantListMonthlyOutput(directorConfigList.stream().map(SupervisorDirectorConfigDTO::getMerchantId).collect(Collectors.toList())));
} else {
dto.setManagedStoreCount(0);
dto.setOutputValue(java.math.BigDecimal.ZERO);
}
// 团队人员总数(暂不实现,返回0)
List<String> storeManagerUuidList = supervisorMap.get(staff.getStaffPhone());
dto.setTeamStaffCount(storeManagerUuidList != null ? storeManagerUuidList.size() : 0);
pageList.add(dto);
}
result.setList(pageList);
return result;
}
/**
* 提交日任务
* @param request
* @return
......@@ -374,7 +533,7 @@ public class SupervisorTaskInfoService {
.filter(phone -> phone != null && !phone.isEmpty())
.distinct()
.collect(Collectors.toList());
res.setTotalCount(getEffectiveSupervisors(phoneList));
res.setTotalCount(getEffectiveSupervisors(phoneList).size());
}
//根据条件,调用分页查询任务 接口,根据返回的数据,去重计算提交任务人数,提交任务数
List<SupervisorTaskDTO> taskList = supervisorTaskInfoMapper.listTask(request);
......@@ -567,4 +726,78 @@ public class SupervisorTaskInfoService {
}
}
/**
* 督导管理详情页 - 核心指标汇总
* <p>包含:团队人员数、产值、转化率、客单价</p>
* <p>TODO: 业务取值逻辑待对接,暂时占位返回</p>
*
* @param request 查询参数(督导手机号、业务类型、起止日期)
* @return 汇总指标
*/
public SupervisorDetailSummaryDTO getDetailSummary(SupervisorDetailQueryDTO request) {
// TODO: 对接业务系统获取团队人员数、产值、转化率、客单价
log.info("督导管理详情页汇总 - 占位实现,request={}", request);
SupervisorDetailSummaryDTO summary = new SupervisorDetailSummaryDTO();
summary.setTeamStaffCount(0);
summary.setOutputValue(java.math.BigDecimal.ZERO);
summary.setConversionRate(java.math.BigDecimal.ZERO);
summary.setAvgOrderValue(java.math.BigDecimal.ZERO);
//
return summary;
}
/**
* 督导管理详情页 - 驻店销售明细分页列表
* <p>TODO: 业务取值逻辑待对接,暂时占位返回</p>
*
* @param pagination 分页查询参数(督导手机号、业务类型、起止日期、分页)
* @return 驻店销售明细分页列表
*/
public RpcPagination<SupervisorDetailStaffDTO> pageDetailStaff(RpcPagination<SupervisorDetailQueryDTO> pagination) {
// TODO: 对接业务系统获取驻店销售明细列表
log.info("督导管理详情页驻店销售分页列表 - 占位实现,pagination={}", pagination);
RpcPagination<SupervisorDetailStaffDTO> result = new RpcPagination<>();
result.setPageNum(pagination.getPageNum());
result.setPageSize(pagination.getPageSize());
result.setTotal(0L);
result.setPages(0);
result.setList(new java.util.ArrayList<>());
return result;
}
/**
* 新增专项任务
* <p>仅保存任务类型为专项(task_type=4)的记录</p>
*
* @param request 专项任务信息
* @return 新增任务的ID
*/
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public Long createSpecialTask(CreateSpecialTaskDTO request) {
log.info("新增专项任务 - 开始,request={}", request);
SupervisorTaskInfo taskInfo = new SupervisorTaskInfo();
taskInfo.setTaskType(TaskTypeEnum.SPECIAL_RECORDING.getCode()); // 4-专项
taskInfo.setTaskStatus(TaskStatusEnum.PENDING.getCode()); // 直接设为待处理
taskInfo.setMerchantId(request.getMerchantId());
taskInfo.setMerchantName(request.getMerchantName());
taskInfo.setTaskDesc(request.getTaskDesc());
taskInfo.setSupervisorPhone(request.getSupervisorPhone());
taskInfo.setSupervisorName(request.getSupervisorName());
taskInfo.setCreatedBy(request.getCreatedBy());
taskInfo.setCreateTime(new Date());
taskInfo.setDeletedFlag(BaseModel.DeletedFlagEnum.N.name());
int count = supervisorTaskInfoMapper.insertSelective(taskInfo);
if (count <= 0) {
log.error("新增专项任务失败");
throw new RpcServiceException(DefaultErrorEnum.DATABASE_ERROR, "新增专项任务失败");
}
log.info("新增专项任务成功,taskId={}", taskInfo.getId());
return taskInfo.getId();
}
}
......@@ -67,4 +67,15 @@
</if>
</where>
</select>
<select id="selectPendingRecords" resultMap="ResultMapWithBLOBs">
SELECT
<include refid="Base_Column_List"/>,
<include refid="Blob_Column_List"/>
FROM supervisor_ai_analysis_record
WHERE deleted_flag = 'N'
AND ai_task_status = 0
AND ai_task_id IS NOT NULL
ORDER BY created_time ASC
</select>
</mapper>
......@@ -53,6 +53,11 @@
</collection>
</resultMap>
<resultMap id="supervisorStoreManagerDTOMap" type="cn.com.glsx.dj.supervisor.dto.SupervisorStoreManagerDTO">
<result column="supervisorPhone" property="supervisorPhone"/>
<result column="storeManagerUuid" property="storeManagerUuid"/>
</resultMap>
<sql id="Base_Column_List" >
<!--
WARNING - @mbg.generated
......@@ -201,6 +206,19 @@
#{i}
</foreach>
</select>
<select id="queryStoreCountGroupByPhone" resultType="cn.com.glsx.dj.supervisor.dto.SupervisorStoreCountDTO">
SELECT director_phone AS directorPhone,
COUNT(DISTINCT merchant_id) AS storeCount
FROM dj_car_life_shop_merchant_director_config
WHERE deleted_flag = 'N'
AND director_type = 6
AND director_phone IN
<foreach collection="phoneList" open="(" item="i" close=")" separator=",">
#{i}
</foreach>
GROUP BY director_phone
</select>
<select id="queryStoreManagerUuidByMerchantId" resultType="java.lang.String">
SELECT DISTINCT staff_uuid
FROM dj_car_life_staff_account_record
......@@ -212,5 +230,60 @@
#{i}
</foreach>
</select>
<select id="queryStoreMangerUuidListBySupervisorPhone" resultMap="supervisorStoreManagerDTOMap">
SELECT distinct
d.director_phone AS supervisorPhone,
s.staff_uuid AS storeManagerUuid
FROM dj_car_life_shop_merchant_director_config d
INNER JOIN dj_car_life_staff_account_record s ON d.merchant_id = s.merchant_id AND s.deleted_flag = 'N'
WHERE d.director_type = 6
AND d.deleted_flag = 'N'
AND s.job_type = 11
AND s.created_source = 6
AND d.director_phone in
<foreach collection="phoneList" open="(" item="i" close=")" separator=",">
#{i}
</foreach>
</select>
<resultMap id="supervisorDirectorConfigDTOMap" type="cn.com.glsx.dj.supervisor.dto.SupervisorDirectorConfigDTO">
<result column="merchant_id" property="merchantId"/>
<result column="director_type" property="directorType"/>
<result column="director_user_id" property="directorUserId"/>
<result column="director_name" property="directorName"/>
<result column="director_phone" property="directorPhone"/>
</resultMap>
<resultMap id="supervisorStaffAccountDTOMap" type="cn.com.glsx.dj.supervisor.dto.SupervisorStaffAccountDTO">
<result column="staff_uuid" property="staffUuid"/>
<result column="staff_phone" property="staffPhone"/>
<result column="merchant_id" property="merchantId"/>
<result column="merchant_name" property="merchantName"/>
<result column="yq_merchant_id" property="yqMerchantId"/>
<result column="yq_merchant_name" property="yqMerchantName"/>
</resultMap>
<select id="queryDirectorConfigBySupervisorPhone" resultMap="supervisorDirectorConfigDTOMap">
SELECT merchant_id, director_type, director_user_id, director_name, director_phone
FROM dj_car_life_shop_merchant_director_config
WHERE deleted_flag = 'N'
AND director_type = 6
AND director_phone in
<foreach collection="supervisorPhoneList" open="(" item="i" close=")" separator=",">
#{i}
</foreach>
</select>
<select id="queryStaffAccountByMerchantIdList" resultMap="supervisorStaffAccountDTOMap">
SELECT staff_uuid, staff_phone, merchant_id, merchant_name, yq_merchant_id, yq_merchant_name
FROM dj_car_life_staff_account_record
WHERE deleted_flag = 'N'
AND job_type = 11
AND created_source = 6
AND merchant_id IN
<foreach collection="merchantIdList" open="(" item="i" close=")" separator=",">
#{i}
</foreach>
</select>
</mapper>
\ No newline at end of file
......@@ -4,10 +4,12 @@ import cn.com.glsx.dj.supervisor.dto.SupervisorManageSummaryDTO;
import cn.com.glsx.dj.supervisor.dto.SupervisorTaskDTO;
import cn.com.glsx.dj.supervisor.dto.SupervisorTaskQueryDTO;
import cn.com.glsx.dj.supervisor.dto.SupervisorTaskSummaryDTO;
import cn.com.glsx.dj.supervisor.dto.*;
import cn.com.glsx.dj.supervisor.model.SupervisorTaskCourse;
import cn.com.glsx.dj.supervisor.model.SupervisorTaskImage;
import cn.com.glsx.dj.supervisor.model.SupervisorWeekTaskStaff;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import com.alibaba.fastjson.JSON;
import com.github.pagehelper.Page;
import org.junit.Test;
......@@ -196,4 +198,25 @@ public class SupervisorTaskInfoServiceTest extends BaseServiceTest {
SupervisorTaskSummaryDTO summary = supervisorTaskInfoService.getTaskSummary(queryDTO);
System.out.println(JSON.toJSONString(summary));
}
@Test
public void testPageSupervisors() {
RpcPagination<SupervisorPageQueryDTO> pagination = new RpcPagination<>();
pagination.setPageNum(1);
pagination.setPageSize(10);
RpcPagination<SupervisorPageDTO> paged = supervisorTaskInfoService.pageSupervisors(pagination);
System.out.println(JSON.toJSONString(paged));
}
@Test
public void testCreateSpecialTask() {
CreateSpecialTaskDTO request = new CreateSpecialTaskDTO();
request.setMerchantId(43423334);
request.setMerchantName("萨达梵蒂冈");
request.setSupervisorPhone("13603070903");
request.setSupervisorName("谢海旭");
request.setCreatedBy("admin");
request.setTaskDesc("督导记录sdhnasuihfasifnasfnassjasidjkioasdasfn");
Long id = supervisorTaskInfoService.createSpecialTask(request);
}
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!