Commit 1f739b5b by 杨卫

feat:周报提交历史接口适配

1 parent d2396024
Showing 41 changed files with 1904 additions and 19 deletions
package cn.com.glsx.dj.mindworkplate.consts;
/**
* 公共常量
* @author yangwei
* @version 1.0
* @since 2026/01/10 15:31
*/
public interface CommonConstants {
/** 已变更 */
String CHINESE_CHANGED = "已变更";
}
package cn.com.glsx.dj.mindworkplate.consts;
/**
* 日期格式化
* @author yangwei
* @version 1.0
* @since 2026/01/10 16:02
*/
public interface DatePatternConstants {
/** yyyy/MM/dd */
String YYYY_MM_DD_SLASH = "yyyy/MM/dd";
}
package cn.com.glsx.dj.mindworkplate.consts;
/**
* 符号常量接口
* @author yangwei
* @since 2026/1/10 14:09
*/
public interface SymbolConstants {
String SLASH = "/";
String COLON = ":";
String COMMA = ",";
String SEMICOLON = ";";
/** \n */
String NEW_LINE = "\n";
/**【 */
String CHINESE_BRACKET_LEFT = "【";
/** 】 */
String CHINESE_BRACKET_RIGHT = "】";
/** : */
String CHINESE_COLON = ":";
/** 无 */
String NONE = "无";
}
......@@ -61,6 +61,11 @@ public class DigitalManagementStaffRecordDTO extends DigitalManagementStaffRecor
@JsonIgnore
private Map<String, String> templateExtendField;
/**
* 是否保存
*/
private Boolean save;
public void appendTypes(DigitalManagementStaffRecordItemDTO item){
if (CollectionUtils.isEmpty(types)) {
types = new ArrayList<>();
......
package cn.com.glsx.dj.mindworkplate.dto.digitalmanagement;
import lombok.Data;
import java.util.List;
/**
* 人员喜报填写前端组件配置实体
* @author yangwei
* @version 1.0
* @since 2026/01/10 14:14
*/
@Data
public class FormComponentConfig {
/**
* 控件类型
*/
private String type;
/**
* 宽度设置
*/
private String width;
/**
* 添加HTML类型(textarea)
*/
private String addHtml;
/**
* 排序类型
*/
private String sortable;
/**
* 是否显示标签下划线
*/
private Boolean isLabelNoLine;
/**
* 是否不设置单元格高度
*/
private Boolean noCellHeight;
/**
* 验证规则集合
*/
private List<Rule> rule;
/**
* 输入限制配置
*/
private InputLimit inputLimit;
/**
* 验证规则实体类
* @author yangwei
* @since 2026/1/10 14:15
*/
@Data
public static class Rule {
private Boolean required;
private String message;
}
/**
* 输入限制实体类
* @author yangwei
* @since 2026/1/10 14:15
*/
@Data
public static class InputLimit {
private Integer maxlength;
}
}
package cn.com.glsx.dj.mindworkplate.dto.digitalmanagement;
import cn.com.glsx.dj.mindworkplate.model.digitalmanagement.DigitalManagementTemplate;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List;
/**
* 模版配置内容
* @author yangwei
* @version 1.0
* @since 2026/01/09 17:55
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class ManagementTemplateContentDTO extends DigitalManagementTemplate {
private static final long serialVersionUID = 4431121600542401549L;
/**
* 模板内容
*/
private List<ManagementTemplateItemDTO> templateItemList;
}
package cn.com.glsx.dj.mindworkplate.dto.digitalmanagement;
import cn.com.glsx.dj.mindworkplate.model.digitalmanagement.DigitalManagementTemplateItem;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List;
/**
* 模版配置内容,默认只有两级
* @author yangwei
* @version 1.0
* @since 2026/01/10 11:15
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class ManagementTemplateItemDTO extends DigitalManagementTemplateItem {
private static final long serialVersionUID = -1177892234642266947L;
/**
* 子项
*/
private List<DigitalManagementTemplateItem> childList;
}
package cn.com.glsx.dj.mindworkplate.dto.digitalmanagement;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;
/**
* 获取员工月报填写记录
* @author yangwei
* @version 1.0
* @since 2026/01/08 17:57
*/
@Data
public class MonthlyReportRecordReqDTO implements Serializable {
private static final long serialVersionUID = -1366491639688272784L;
/**
* 年
*/
private String year;
/**
* 月份
*/
private String month;
/**
* 开始日期
*/
private LocalDate startDate;
/**
* 结束日期
*/
@NotNull(message = "结束日期不能为空")
private LocalDate endDate;
}
......@@ -6,6 +6,8 @@ import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Map;
......@@ -16,15 +18,18 @@ import java.util.Map;
public class SaveStaffRecordRequestDTO implements Serializable {
@ApiModelProperty(notes = "账号ID")
@NotBlank(message = "账号ID不能为空")
private String uuid;
@ApiModelProperty(name="loginRole", notes = "登录角色 1-超管 2-商户管理员 3-区域督导 4-驻店人员 5-广联销售 6-飞行督导 7-技师")
private Integer loginRole;
@ApiModelProperty(notes = "模板编号")
@NotBlank(message = "模板编号不能为空")
private String templateCode;
@ApiModelProperty(notes = "表单")
@NotEmpty(message = "表单不能为空")
private Map<String, String> form;
public SaveStaffRecordRequestDTO(Integer loginRole, String uuid, Map<String, String> form) {
......@@ -32,4 +37,9 @@ public class SaveStaffRecordRequestDTO implements Serializable {
this.uuid = uuid;
this.loginRole = loginRole;
}
/**
* 是否保存
*/
private Boolean save;
}
\ No newline at end of file
package cn.com.glsx.dj.mindworkplate.dto.digitalmanagement;
import cn.com.glsx.dj.mindworkplate.model.digitalmanagement.DigitalManagementStaffRecord;
import cn.com.glsx.dj.mindworkplate.model.digitalmanagement.DigitalManagementStaffRecordItem;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.util.List;
/**
* 员工喜报记录
* @author yangwei
* @version 1.0
* @since 2026/01/09 18:16
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class StaffGoodNewsRecordDTO extends DigitalManagementStaffRecord {
private static final long serialVersionUID = 8709022404031690840L;
/**
* 员工名称
*/
private String name;
/**
* 手机号
*/
private String phone;
/**
* 喜报记录项
*/
private List<DigitalManagementStaffRecordItem> recordItemList;
/**
* 模板内容
*/
private ManagementTemplateContentDTO template;
/**
* 是否保存
*/
private Boolean save;
}
package cn.com.glsx.dj.mindworkplate.dto.digitalmanagement;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
/**
* 获取员工喜报模版请求对象
* @author yangwei
* @version 1.0
* @since 2026/01/08 19:11
*/
@Data
public class StaffGoodNewsTemplateReqDTO implements Serializable {
private static final long serialVersionUID = 8296747587815169072L;
/**
* 场景类型:0-会员权益/升级,1-精品升级
*/
private Integer sceneType;
/**
* 报告类型:1-日报,2-周报,3-月报
*/
private Integer reportType;
/**
* 员工编号,如果不传入取当前登录用户
*/
@NotBlank(message = "员工编号不能为空")
private String uuid;
}
package cn.com.glsx.dj.mindworkplate.dto.digitalmanagement;
import lombok.Data;
import java.io.Serializable;
/**
* 喜报模版响应数据对象
* @author yangwei
* @version 1.0
* @since 2026/01/08 17:57
*/
@Data
public class StaffGoodNewsTemplateRespDTO implements Serializable {
private static final long serialVersionUID = -2081857723317276564L;
/**
* 报告类型:1-日报,2-周报,3-月报
*/
private Integer reportType;
/**
* 模板类型
*/
private String type;
/**
* 模板类型名称
*/
private String typeName;
/**
* 模版唯一编号
*/
private String code;
/**
* 模板名称
*/
private String name;
/**
* id
*/
private Integer id;
}
package cn.com.glsx.dj.mindworkplate.dto.digitalmanagement;
import lombok.Builder;
import lombok.Data;
import java.io.Serializable;
/**
* 获取员工月报填写记录
* @author yangwei
* @version 1.0
* @since 2026/01/08 17:57
*/
@Data
@Builder
public class StaffMonthlyReportRecordDTO implements Serializable {
private static final long serialVersionUID = 6519524672282618603L;
/**
* 年
*/
private String year;
/**
* 周唯一标识
*/
private String month;
/**
* 能够提交,true 即可以提交,false 即不可以提交
*/
private Boolean beAbleSubmit;
/**
* 是否提交
*/
private Boolean hasSubmit;
}
package cn.com.glsx.dj.mindworkplate.dto.digitalmanagement;
import lombok.Data;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;
/**
* 获取员工周报填写记录
* @author yangwei
* @version 1.0
* @since 2026/01/08 20:16
*/
@Data
public class StaffMonthlyReportRecordWrapper implements Serializable {
private static final long serialVersionUID = 7496738397096982231L;
/**
* 用户uuid
*/
@NotBlank(message = "用户uuid不能为空")
private String uuid;
/**
* 模版唯一编号
*/
@NotBlank(message = "模版唯一编号不能为空")
private String code;
/**
* 当月周信息
*/
@NotEmpty(message = "月份信息不能为空")
private List<@Valid MonthlyReportRecordReqDTO> monthlyReportRecordReqList;
}
package cn.com.glsx.dj.mindworkplate.dto.digitalmanagement;
import lombok.Data;
/**
* @author yangwei
* @version 1.0
* @since 2026/01/08 20:43
*/
@Data
public class StaffRecordDTO {
/**
* 主键
*/
private Integer id;
/**
* 用户uuid
*/
private String staffUuid;
/**
* 模板编码
*/
private String templateCode;
/**
* 提交时间
*/
private String submitDate;
}
package cn.com.glsx.dj.mindworkplate.dto.digitalmanagement;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import java.io.Serializable;
/**
* 获取周信息响应对象
* @author yangwei
* @version 1.0
* @since 2026/01/08 17:57
*/
@Data
@ApiModel("获取员工周报填写记录")
public class StaffWeeklyReportRecordDTO implements Serializable {
private static final long serialVersionUID = 6519524672282618603L;
/**
* 周唯一标识
*/
private String weekCode;
/**
* 能够提交,true 即可以提交,false 即不可以提交
*/
private Boolean beAbleSubmit;
/**
* 是否提交
*/
private Boolean hasSubmit;
}
package cn.com.glsx.dj.mindworkplate.dto.digitalmanagement;
import lombok.Data;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;
/**
* 获取员工周报填写记录
* @author yangwei
* @version 1.0
* @since 2026/01/08 20:16
*/
@Data
public class StaffWeeklyReportRecordWrapper implements Serializable {
private static final long serialVersionUID = 7496738397096982231L;
/**
* 用户uuid
*/
@NotBlank(message = "用户uuid不能为空")
private String uuid;
/**
* 模版唯一编号
*/
@NotBlank(message = "模版唯一编号不能为空")
private String code;
/**
* 当月周信息
*/
@NotEmpty(message = "当月周信息不能为空")
private List<@Valid WeeklyReportRecordReqDTO> weeklyReportRecordReqList;
}
package cn.com.glsx.dj.mindworkplate.dto.digitalmanagement;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDate;
/**
* 周开始结束日期
* @author yangwei
* @version 1.0
* @since 2026/01/10 15:49
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WeekRange {
private LocalDate startDate;
private LocalDate endDate;
}
package cn.com.glsx.dj.mindworkplate.dto.digitalmanagement;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;
/**
* 获取员工周报填写记录
* @author yangwei
* @version 1.0
* @since 2026/01/08 17:57
*/
@Data
public class WeeklyReportRecordReqDTO implements Serializable {
private static final long serialVersionUID = -1366491639688272784L;
/**
* 年份
*/
private String year;
/**
* 月份
*/
private String month;
/**
* 周唯一标识
*/
@NotBlank(message = "周唯一标识不能为空")
private String weekCode;
/**
* 周序号(从1开始)
*/
private Integer weekNumber;
/**
* 周开始日期
*/
private LocalDate startDate;
private String startDateStr;
/**
* 周结束日期
*/
private LocalDate endDate;
@NotBlank(message = "周结束日期不能为空")
private String endDateStr;
/**
* 是否跨月
*/
@NotNull(message = "是否跨月不能为空")
private Boolean crossMonth;
}
package cn.com.glsx.dj.mindworkplate.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 喜报模版代码
*
* @author yangwei
* @version 1.0
* @since 2026/01/09 15:46
*/
@Getter
@AllArgsConstructor
public enum GoodNewsTemplateCodeEnum {
/**
* 2.3延保区域日报模版
*/
DELAY_TEMPLATE_CODE_2_3("uuid-temp-001", "2.3延保区域日报模版"),
/**
* 1.1轻改区域日报模版
*/
LIGHT_CHANGE_TEMPLATE_CODE_1_1("qinggai-temp-001", "1.1轻改区域日报模版"),
/**
* 2.1权益区域日报模版
*/
REGIONAL_TEMPLATE_CODE_2_1("uuid-temp-011", "1.1权益区域日报模版"),
/**
* 2.1区域经理周报模版
*/
REGIONAL_MANAGER_TEMPLATE_CODE_WEEKLY_2_1("uuid-temp-012", "2.1区域经理周报模版"),
/**
* 1.1区域经理周报模版
*/
REGIONAL_MANAGER_TEMPLATE_CODE_WEEKLY_1_1("uuid-temp-013", "1.1区域经理周报模版"),
/**
* 2.3区域经理周报模版
*/
REGIONAL_MANAGER_TEMPLATE_CODE_WEEKLY_2_3("uuid-temp-014", "2.3区域经理周报模版"),
/**
* 2.1运营主管周报模版
*/
REGIONAL_MANAGER_TEMPLATE_CODE_WEEKLY_15_2_1("uuid-temp-015", "2.1运营主管周报模版"),
/**
* 1.1运营主管周报模版
*/
REGIONAL_MANAGER_TEMPLATE_CODE_WEEKLY_16_1_1("uuid-temp-016", "1.1运营主管周报模版"),
/**
* 2.3运营主管周报模版
*/
REGIONAL_MANAGER_TEMPLATE_CODE_WEEKLY_17_2_3("uuid-temp-017", "2.3区域经理周报模版"),
/**
* 1.1区域经理月报模版
*/
REGIONAL_MANAGER_TEMPLATE_CODE_MONTHLY_18_1_1("uuid-temp-018", "1.1区域经理月报模版"),
/**
* 2.1区域经理月报模版
*/
REGIONAL_MANAGER_TEMPLATE_CODE_MONTHLY_19_2_1("uuid-temp-019", "2.1区域经理月报模版"),
/**
* 2.3区域经理月报模版
*/
REGIONAL_MANAGER_TEMPLATE_CODE_MONTHLY_20_2_3("uuid-temp-020", "2.3区域经理月报模版"),
/**
* 2.1运营主管月报模版
*/
REGIONAL_MANAGER_TEMPLATE_CODE_MONTHLY__21_2_1("uuid-temp-021", "2.1运营主管月报模版"),
/**
* 1.1运营主管月报模版
*/
REGIONAL_MANAGER_TEMPLATE_CODE_MONTHLY__22_1_1("uuid-temp-022", "1.1运营主管月报模版"),
/**
* 2.3运营主管月报模版
*/
REGIONAL_MANAGER_TEMPLATE_CODE_MONTHLY_23_2_3("uuid-temp-023", "2.3运营主管月报模版");
private final String code;
private final String name;
}
package cn.com.glsx.dj.mindworkplate.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 喜报模版类型枚举, 报告类型:1-日报,2-周报,3-月报
* @author yangwei
* @version 1.0
* @since 2026/01/09 16:05
*/
@Getter
@AllArgsConstructor
public enum GoodNewsTemplateReportTypeEnum {
DAY("1", "日报"),
WEEK("2", "周报"),
MONTH("3", "月报");
private final String code;
private final String name;
}
package cn.com.glsx.dj.mindworkplate.enums;
import cn.com.glsx.framework.core.enums.ErrorEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.HashMap;
import java.util.Map;
/**
* mindworkplate服务错误码枚举
* @author yangwei
* @version 1.0
* @since 2026/01/09 14:48
*/
@Getter
@AllArgsConstructor
public enum MindWorkplateServiceErrorEnum implements ErrorEnum {
COMMON_ERROR("10086", "{}"),
DATA_NOT_FULL_ERROR("10001000", "数据不完整!");
private final String value;
private final String displayName;
static final Map<String, CommonErrorEnum> ENUM_MAP = new HashMap<String, CommonErrorEnum>();
static{
for(CommonErrorEnum code:CommonErrorEnum.values()){
ENUM_MAP.put(code.getValue(), code);
}
}
public static CommonErrorEnum getEnum(String value){
return ENUM_MAP.get(value);
}
}
......@@ -4,9 +4,9 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
@Table(name = "digital_management_template")
@Data
......@@ -82,4 +82,31 @@ public class DigitalManagementTemplate implements Serializable {
@Column(name = "extend_field")
@ApiModelProperty(notes = "额外字段")
private String extendField;
/**
* 场景类型:0-会员权益/升级,1-精品升级
*/
@Column(name = "scene_type")
private String sceneType;
/**
* 业务类型:1-延保,2-权益
*/
@Column(name = "business_type")
private Integer businessType;
/**
* 报告类型:1-日报,2-周报,3-月报
*/
@Column(name = "report_type")
private Integer reportType;
/**
* 角色类型:1-区域经理(区域运营),2-运营主管(驻店人员)
*/
@Column(name = "role_type")
private String roleType;
}
\ No newline at end of file
package cn.com.glsx.dj.mindworkplate.remote;
import cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.*;
import cn.com.glsx.framework.core.annotation.ApiMethod;
import cn.com.glsx.framework.core.annotation.ApiParam;
import cn.com.glsx.framework.core.annotation.ApiResponse;
import cn.com.glsx.framework.core.annotation.ApiService;
import cn.com.glsx.dj.mindworkplate.request.digitalmanagement.SubmittedDateRequestDTO;
import cn.com.glsx.framework.core.annotation.*;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
......@@ -13,7 +9,6 @@ import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import java.util.Map;
/**
* @Description 数字化管理-员工日报服务
......@@ -90,4 +85,18 @@ public interface DigitalManagementRecordRemote {
@ApiMethod("查询所有员工")
RpcResponse<RpcPagination<DigitalManagementStaffResponseDTO>> pageStaffInfo(RpcPagination<DigitalManagementStaffRequestDTO> req);
@ApiMethod("查询员工周报提交")
@ApiParam(name = "request", notes = "条件", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("查询员工周报提交")
RpcResponse<List<StaffWeeklyReportRecordDTO>> findStaffWeeklyReportSubmit(StaffWeeklyReportRecordWrapper request);
@ApiMethod("查询员工月报提交")
@ApiParam(name = "request", notes = "条件", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("查询员工月报提交")
RpcResponse<List<StaffMonthlyReportRecordDTO>> findStaffMonthlyReportSubmit(StaffMonthlyReportRecordWrapper request);
@ApiMethod("获取员工喜报模版")
@ApiParam(name = "request", notes = "条件", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("获取员工喜报模版")
RpcResponse<List<StaffGoodNewsTemplateRespDTO>> findStaffGoodNewsTemplate(StaffGoodNewsTemplateReqDTO request);
}
......@@ -51,7 +51,7 @@
<dependency>
<groupId>cn.com.glsx.dj</groupId>
<artifactId>rpc-dj-smartcarlife-api</artifactId>
<version>5.5.1-SNAPSHOT</version>
<version>5.5.3-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>cn.com.glsx.dj</groupId>
......
package cn.com.glsx.dj.mindworkplate.component;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;
/**
* @author yangwei
* @version 1.0
* @since 2026/01/09 15:15
*/
@Component
public class SpringContextHolder implements ApplicationContextAware {
private static ApplicationContext applicationContext;
@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
SpringContextHolder.applicationContext = applicationContext;
}
public static <T> T getBean(Class<T> clazz) {
return applicationContext.getBean(clazz);
}
public static Object getBean(String name) {
return applicationContext.getBean(name);
}
}
package cn.com.glsx.dj.mindworkplate.enums;
import cn.com.glsx.dj.smartcarlife.enums.ActionReportTypeEnum;
import cn.com.glsx.framework.core.exception.RpcServiceException;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 喜报模版映射群配置
* @author yangwei
* @version 1.0
* @since 2026/01/10 10:45
*/
@Getter
@AllArgsConstructor
public enum GoodNewsTempMapGroupConfigEnum {
/**
* 2.3延保区域日报模版
*/
DAILY_2_3(GoodNewsTemplateCodeEnum.DELAY_TEMPLATE_CODE_2_3, ActionReportTypeEnum.REGIONAL_OPERATIONS_DAILY),
/**
* 1.1轻改区域日报模版
*/
DAILY_1_1(GoodNewsTemplateCodeEnum.LIGHT_CHANGE_TEMPLATE_CODE_1_1, ActionReportTypeEnum.LIGHT_REGIONAL_OPERATIONS_DAILY),
/**
* 2.1权益区域日报模版
*/
DAILY_2_1(GoodNewsTemplateCodeEnum.REGIONAL_TEMPLATE_CODE_2_1, ActionReportTypeEnum.EQUITY_REGIONAL_OPERATIONS_DAILY_4_2_1),
/**
* 2.1区域经理周报模版
*/
WEEKLY_2_1(GoodNewsTemplateCodeEnum.REGIONAL_MANAGER_TEMPLATE_CODE_WEEKLY_2_1, ActionReportTypeEnum.EQUITY_REGIONAL_MANAGER_WEEKLY_REPORT_4_2_1),
/**
* 1.1区域经理周报模版
*/
WEEKLY_1_1(GoodNewsTemplateCodeEnum.REGIONAL_MANAGER_TEMPLATE_CODE_WEEKLY_1_1, ActionReportTypeEnum.REGIONAL_MANAGER_WEEKLY_REPORT_4_1_1),
/**
* 2.3区域经理周报模版
*/
WEEKLY_2_3(GoodNewsTemplateCodeEnum.REGIONAL_MANAGER_TEMPLATE_CODE_WEEKLY_2_3, ActionReportTypeEnum.EQUITY_REGIONAL_MANAGER_WEEKLY_REPORT_4_2_3),
/**
* 2.1运营主管周报模版
*/
WEEKLY_2_1_OPERATION_SUPERVISOR(GoodNewsTemplateCodeEnum.REGIONAL_MANAGER_TEMPLATE_CODE_WEEKLY_15_2_1, ActionReportTypeEnum.EQUITY_OPERATION_MANAGER_WEEKLY_REPORT_4_2_1),
/**
* 1.1运营主管周报模版
*/
WEEKLY_1_1_OPERATION_SUPERVISOR(GoodNewsTemplateCodeEnum.REGIONAL_MANAGER_TEMPLATE_CODE_WEEKLY_16_1_1, ActionReportTypeEnum.OPERATION_MANAGER_WEEKLY_REPORT_4_1_1),
/**
* 2.3运营主管周报模版
*/
WEEKLY_2_3_OPERATION_SUPERVISOR(GoodNewsTemplateCodeEnum.REGIONAL_MANAGER_TEMPLATE_CODE_WEEKLY_17_2_3, ActionReportTypeEnum.EQUITY_OPERATION_MANAGER_WEEKLY_REPORT_4_2_3),
/**
* 1.1区域经理月报模版
*/
MONTHLY_1_1(GoodNewsTemplateCodeEnum.REGIONAL_MANAGER_TEMPLATE_CODE_MONTHLY_18_1_1, ActionReportTypeEnum.REGIONAL_MANAGER_MONTHLY_REPORT_4_1_1),
/**
* 2.1区域经理月报模版
*/
MONTHLY_2_1(GoodNewsTemplateCodeEnum.REGIONAL_MANAGER_TEMPLATE_CODE_MONTHLY_19_2_1, ActionReportTypeEnum.EQUITY_REGIONAL_MANAGER_MONTHLY_REPORT_4_2_1),
/**
* 2.3区域经理月报模版
*/
MONTHLY_2_3(GoodNewsTemplateCodeEnum.REGIONAL_MANAGER_TEMPLATE_CODE_MONTHLY_20_2_3, ActionReportTypeEnum.EQUITY_REGIONAL_MANAGER_MONTHLY_REPORT_4_2_3),
/**
* 2.1运营主管月报模版
*/
MONTHLY_2_1_OPERATION_SUPERVISOR(GoodNewsTemplateCodeEnum.REGIONAL_MANAGER_TEMPLATE_CODE_MONTHLY__21_2_1, ActionReportTypeEnum.EQUITY_OPERATION_MANAGER_MONTHLY_REPORT_4_2_1),
/**
* 1.1运营主管月报模版
*/
MONTHLY_1_1_OPERATION_SUPERVISOR(GoodNewsTemplateCodeEnum.REGIONAL_MANAGER_TEMPLATE_CODE_MONTHLY__22_1_1, ActionReportTypeEnum.OPERATION_MANAGER_MONTHLY_REPORT_4_1_1),
/**
* 2.3运营主管月报模版
*/
MONTHLY_2_3_OPERATION_SUPERVISOR(GoodNewsTemplateCodeEnum.REGIONAL_MANAGER_TEMPLATE_CODE_MONTHLY_23_2_3, ActionReportTypeEnum.EQUITY_OPERATION_MANAGER_MONTHLY_REPORT_4_2_3),
;
private final GoodNewsTemplateCodeEnum templateCodeEnum;
private final ActionReportTypeEnum reportTypeEnum;
/**
* 根据模板编号获取对应的报告类型
* @author yangwei
* @since 2026/1/10 11:00
* @param templateCode 模板编号
* @return cn.com.glsx.dj.smartcarlife.enums.ActionReportTypeEnum
*/
public static ActionReportTypeEnum getReportTypeEnumByTemplateCode(String templateCode) {
for (GoodNewsTempMapGroupConfigEnum value : values()) {
if (value.getTemplateCodeEnum().getCode().equals(templateCode)) {
return value.getReportTypeEnum();
}
}
throw new RpcServiceException(MindWorkplateServiceErrorEnum.COMMON_ERROR, "不支持的模板类型: " + templateCode);
}
}
......@@ -64,4 +64,29 @@ public interface DigitalManagementStaffRecordMapper extends OreMapper<DigitalMan
int getMonthlyIsTrainingOrganizedCount(String uuid);
List<DigitalManagementStaffResponseDTO> selectStaffInfo(DigitalManagementStaffRequestDTO condition);
/**
* 查找指定用户 {@code uuid} 对应模版 {@code code} 所在天 {@code dates} 喜报记录
* @author yangwei
* @since 2026/1/9 11:10
* @param uuid 用户,不能为空
* @param code 模版代码
* @param dates 日期列表
* @return java.util.List<cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.StaffRecordDTO>
*/
List<StaffRecordDTO> findReportByUuidAndDate(@Param("uuid") String uuid,
@Param("code") String code,
@Param("dates") List<String> dates);
/**
* <pre>
* 获取员工喜报模版(最新的模版配置)
* - 最新定义,生效日期 effective_date 最新,生效日期一样,id最大即为最新
* </pre>
* @author yangwei
* @since 2026/1/9 11:09
* @param request 请求对象
* @return java.util.List<cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.StaffGoodNewsTemplateRespDTO>
*/
List<StaffGoodNewsTemplateRespDTO> findStaffGoodNewsTemplate(StaffGoodNewsTemplateReqDTO request);
}
\ No newline at end of file
......@@ -4,6 +4,8 @@ import cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.*;
import cn.com.glsx.dj.mindworkplate.request.digitalmanagement.SubmittedDateRequestDTO;
import cn.com.glsx.dj.mindworkplate.service.digitalmanagement.DigitalManagementStaffRecordService;
import cn.com.glsx.dj.mindworkplate.service.digitalmanagement.DigitalManagementTemplateService;
import cn.com.glsx.dj.mindworkplate.service.digitalmanagement.goodnewssave.ReportSaveFactory;
import cn.com.glsx.dj.mindworkplate.service.digitalmanagement.goodnewssave.ReportSaveStrategy;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.framework.core.exception.RpcServiceException;
......@@ -12,10 +14,10 @@ import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.task.TaskExecutor;
import javax.annotation.Resource;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import java.util.Map;
/**
* @Description 数字化管理-员工日报服务
......@@ -36,6 +38,9 @@ public class DigitalManagementRecordRemoteImpl implements DigitalManagementRecor
@Autowired
private TaskExecutor taskExecutor;
@Resource
private ReportSaveFactory reportSaveFactory;
@Override
public RpcResponse<List<DigitalManagementTemplateDTO>> typeList(DigitalManagementTemplateDTO dto){
try {
......@@ -160,9 +165,11 @@ public class DigitalManagementRecordRemoteImpl implements DigitalManagementRecor
@Override
public RpcResponse<Integer> save(SaveStaffRecordRequestDTO dto) {
try {
Integer recordId = staffRecordService.save(dto);
taskExecutor.execute(() -> staffRecordService.sendQwRobotMessage(recordId));
return RpcResponse.success(recordId);
// Integer recordId = staffRecordService.save(dto);
// taskExecutor.execute(() -> staffRecordService.sendQwRobotMessage(recordId));
ReportSaveStrategy strategy = reportSaveFactory.getStrategy(dto.getTemplateCode());
return RpcResponse.success(strategy.save(dto));
} catch (RpcServiceException e) {
log.error(e.getMessage(), e);
return RpcResponse.error(e.getError(), e.getMessage());
......@@ -185,4 +192,57 @@ public class DigitalManagementRecordRemoteImpl implements DigitalManagementRecor
}
}
/**
* 查询员工周报提交
* @author yangwei
* @since 2026/1/8 20:14
* @param request 请求对象
* @return cn.com.glsx.framework.core.beans.rpc.RpcResponse<java.util.List<cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.StaffWeeklyReportRecordDTO>>
*/
@Override
public RpcResponse<List<StaffWeeklyReportRecordDTO>> findStaffWeeklyReportSubmit(StaffWeeklyReportRecordWrapper request) {
try {
return RpcResponse.success(staffRecordService.findStaffWeeklyReportSubmit(request));
} catch (RpcServiceException e) {
log.error("查询员工周报提交接口调用异常!", e);
return RpcResponse.error(e);
} catch (Exception e) {
log.error("查询员工周报提交接口调用异常!", e);
return RpcResponse.error(e);
}
}
@Override
public RpcResponse<List<StaffMonthlyReportRecordDTO>> findStaffMonthlyReportSubmit(StaffMonthlyReportRecordWrapper request) {
try {
return RpcResponse.success(staffRecordService.findStaffMonthlyReportSubmit(request));
} catch (RpcServiceException e) {
log.error("查询员工月报提交接口调用异常!", e);
return RpcResponse.error(e);
} catch (Exception e) {
log.error("查询员工月报提交接口调用异常!", e);
return RpcResponse.error(e);
}
}
/**
* 获取员工喜报模版
* @author yangwei
* @since 2026/1/9 10:24
* @param request 请求对象
* @return cn.com.glsx.framework.core.beans.rpc.RpcResponse<java.util.List<cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.StaffGoodNewsTemplateRespDTO>>
*/
@Override
public RpcResponse<List<StaffGoodNewsTemplateRespDTO>> findStaffGoodNewsTemplate(StaffGoodNewsTemplateReqDTO request) {
try {
return RpcResponse.success(staffRecordService.findStaffGoodNewsTemplate(request));
} catch (RpcServiceException e) {
log.error("获取员工喜报模版接口调用异常!", e);
return RpcResponse.error(e);
} catch (Exception e) {
log.error("获取员工喜报模版接口调用异常!", e);
return RpcResponse.error(e);
}
}
}
package cn.com.glsx.dj.mindworkplate.service.digitalmanagement;
import cn.com.glsx.dj.mindworkplate.consts.CommonConstants;
import cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.*;
import cn.com.glsx.dj.mindworkplate.mapper.digitalmanagement.DigitalManagementStaffRecordItemMapper;
import cn.com.glsx.dj.mindworkplate.mapper.digitalmanagement.DigitalManagementStaffRecordMapper;
......@@ -7,6 +8,7 @@ import cn.com.glsx.dj.mindworkplate.mapper.digitalmanagement.DigitalManagementTe
import cn.com.glsx.dj.mindworkplate.mapper.digitalmanagement.DigitalManagementTemplateMapper;
import cn.com.glsx.dj.mindworkplate.model.digitalmanagement.*;
import cn.com.glsx.dj.mindworkplate.request.digitalmanagement.SubmittedDateRequestDTO;
import cn.com.glsx.dj.mindworkplate.util.validation.BeanValidationUtils;
import cn.com.glsx.dj.smartcarlife.dto.worktoolpush.RecordRequestDTO;
import cn.com.glsx.dj.smartcarlife.dto.worktoolpush.StaffRecordRequestDTO;
import cn.com.glsx.dj.smartcarlife.enums.ActionReportTypeEnum;
......@@ -15,7 +17,6 @@ import cn.com.glsx.dj.smartcarlife.remote.ReportPushRecordRemote;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.framework.core.enums.DefaultErrorEnum;
import cn.com.glsx.framework.core.exception.RpcServiceException;
import cn.com.glsx.framework.core.util.DateUtils;
import cn.com.glsx.framework.core.util.RpcAssert;
import cn.com.glsx.merchants.model.response.MerchantStaffResponse;
......@@ -23,6 +24,8 @@ import cn.com.glsx.merchants.remote.MerchantStaffRemote;
import cn.com.glsx.scrm.equity.enums.DeleteFlagEnum;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.BooleanUtil;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSON;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
......@@ -31,7 +34,6 @@ import com.google.common.collect.Maps;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.oreframework.distribute.lock.annotation.GlsxDistributeLockable;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
......@@ -39,7 +41,6 @@ import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.client.RestClientException;
import org.springframework.web.client.RestTemplate;
import tk.mybatis.mapper.entity.Example;
......@@ -340,8 +341,8 @@ public class DigitalManagementStaffRecordService {
return convertTemplateToRecord(template, record);
}
@GlsxDistributeLockable(name = "'DigitalManagementStaffRecordService_save_' + #uuid", time = 30, timeoutException = RpcServiceException.class)
@Transactional
// @GlsxDistributeLockable(name = "'DigitalManagementStaffRecordService_save_' + #uuid", time = 30, timeoutException = RpcServiceException.class)
// @Transactional
public Integer save(SaveStaffRecordRequestDTO dto) {
Map<String, String> form = dto.getForm();
Integer loginRole = dto.getLoginRole();
......@@ -351,7 +352,7 @@ public class DigitalManagementStaffRecordService {
templateCode = templateService.getDefaultTemplateCode();
}
Date reportDate = DateUtils.parseDate(form.get(RECORD_ITEM_KEY_REPORT_DATE));
Date reportDate = Optional.ofNullable(form.get(RECORD_ITEM_KEY_REPORT_DATE)).map(DateUtils::parseDate).orElse(null);
Date today = reportDate == null ? new Date() : reportDate;
// 查圈人模板
......@@ -423,9 +424,11 @@ public class DigitalManagementStaffRecordService {
recordItems.forEach(item -> item.setRecordId(staffRecordId));
staffRecordItemMapper.insertList(recordItems);
dto.setSave(true);
}else {
staffRecordMapper.updateByPrimaryKey(staffRecord);
recordItems.forEach(item -> staffRecordItemMapper.updateByPrimaryKey(item));
dto.setSave(false);
}
return staffRecord.getId();
}
......@@ -661,7 +664,12 @@ public class DigitalManagementStaffRecordService {
StringBuilder contentBuilder = new StringBuilder();
DigitalManagementTemplateDTO templateDTO = recordDTO.getTemplateDTO();
String templateTypeName = templateDTO.getTypeName();
contentBuilder.append(templateTypeName).append("(").append(userName).append(" ").append(DateUtils.formatDate(recordDTO.getCreatedDate(), "yyyy/MM/dd")).append("): ").append("\n");
contentBuilder.append(templateTypeName).append("(").append(userName).append(" ").append(DateUtils.formatDate(recordDTO.getCreatedDate(), "yyyy/MM/dd")).append(")");
// 修改时间不为空且不为创建时间,默认本次是修改
if (!BooleanUtil.isTrue(recordDTO.getSave())) {
contentBuilder.append(CommonConstants.CHINESE_CHANGED);
}
contentBuilder.append(":\n");
AtomicBoolean dayOffStatus = new AtomicBoolean(false);
// 是否属于包含“当日休假”的模板,需要将字段上提
......@@ -834,4 +842,82 @@ public class DigitalManagementStaffRecordService {
staffRecordMapper.selectStaffInfo(req.getCondition());
return res;
}
/**
* 查询员工周报提交记录
* @author yangwei
* @since 2026/1/8 20:15
* @param request 请求对象
* @return java.util.List<cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.StaffWeeklyReportRecordDTO>
*/
public List<StaffWeeklyReportRecordDTO> findStaffWeeklyReportSubmit(StaffWeeklyReportRecordWrapper request) {
BeanValidationUtils.validateAndThrow(request);
List<WeeklyReportRecordReqDTO> weeklyReportRecordReqList = request.getWeeklyReportRecordReqList();
// 查询员工周报提交记录
List<String> dates = weeklyReportRecordReqList.stream()
.map(WeeklyReportRecordReqDTO::getEndDateStr).collect(Collectors.toList());
List<StaffRecordDTO> staffRecords = staffRecordMapper.findReportByUuidAndDate(request.getUuid(), request.getCode(), dates);
List<String> submitDate = staffRecords.stream().map(StaffRecordDTO::getSubmitDate).collect(Collectors.toList());
// 构建返回结果
return weeklyReportRecordReqList.stream()
.map(el -> {
StaffWeeklyReportRecordDTO staffWeeklyReportRecordDTO = new StaffWeeklyReportRecordDTO();
staffWeeklyReportRecordDTO.setWeekCode(el.getWeekCode());
staffWeeklyReportRecordDTO.setHasSubmit(submitDate.contains(el.getEndDateStr()));
// 如果是当前周的周日,便可以提交
String currSunday = cn.com.glsx.dj.mindworkplate.util.DateUtils.formatLocalDate(cn.com.glsx.dj.mindworkplate.util.DateUtils.getCurrentSunday(), cn.com.glsx.dj.mindworkplate.util.DateUtils.PATTERN_YYYYMMDD);
staffWeeklyReportRecordDTO.setBeAbleSubmit(currSunday.equals(el.getEndDateStr()));
return staffWeeklyReportRecordDTO;
})
.collect(Collectors.toList());
}
/**
* 获取员工月报提交记录
* @author yangwei
* @since 2026/1/8 20:15
* @param request 获取员工月报提交记录请求对象
* @return java.util.List<cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.StaffMonthlyReportRecordDTO>
*/
public List<StaffMonthlyReportRecordDTO> findStaffMonthlyReportSubmit(StaffMonthlyReportRecordWrapper request) {
BeanValidationUtils.validateAndThrow(request);
List<MonthlyReportRecordReqDTO> monthlyReportRecordReqList = request.getMonthlyReportRecordReqList();
List<String> dates = monthlyReportRecordReqList.stream()
.map(el -> cn.com.glsx.dj.mindworkplate.util.DateUtils.formatLocalDate(el.getEndDate(), DateUtils.DEFAULT_DATE_FORMAT5))
.collect(Collectors.toList());
List<StaffRecordDTO> staffRecords = staffRecordMapper.findReportByUuidAndDate(request.getUuid(), request.getCode(), dates);
List<String> submitDate = staffRecords.stream()
.filter(el -> StrUtil.isNotBlank(el.getSubmitDate()) && el.getSubmitDate().length() >= 6)
.map((el -> el.getSubmitDate().substring(0, 6))).collect(Collectors.toList());
return monthlyReportRecordReqList.stream()
.map(el -> StaffMonthlyReportRecordDTO
.builder()
.year(el.getYear())
.month(el.getMonth())
.hasSubmit(submitDate.contains(cn.com.glsx.dj.mindworkplate.util.DateUtils.formatLocalDate(el.getEndDate(), DateUtils.DEFAULT_DATE_FORMAT5)))
// 如果是当前月的最后一天,便可以提交
.beAbleSubmit(cn.com.glsx.dj.mindworkplate.util.DateUtils.getCurrentMonthLastDay().isEqual(el.getEndDate()))
.build())
.collect(Collectors.toList());
}
/**
* 获取员工喜报模版
* @author yangwei
* @since 2026/1/9 10:54
* @param request 请求参数
* @return java.util.List<cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.StaffGoodNewsTemplateRespDTO>
*/
public List<StaffGoodNewsTemplateRespDTO> findStaffGoodNewsTemplate(StaffGoodNewsTemplateReqDTO request) {
BeanValidationUtils.validateAndThrow(request);
// 最新生效的模版
return staffRecordMapper.findStaffGoodNewsTemplate(request);
}
}
package cn.com.glsx.dj.mindworkplate.service.digitalmanagement.goodnewssave;
import cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.DigitalManagementStaffRecordDTO;
import cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.SaveStaffRecordRequestDTO;
import cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.StaffGoodNewsRecordDTO;
import cn.com.glsx.dj.mindworkplate.enums.GoodNewsTemplateCodeEnum;
import cn.com.glsx.dj.mindworkplate.enums.MindWorkplateServiceErrorEnum;
import cn.com.glsx.dj.mindworkplate.service.digitalmanagement.DigitalManagementStaffRecordService;
import cn.com.glsx.framework.core.exception.RpcServiceException;
import cn.hutool.core.util.StrUtil;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
/**
* 日报保存
* @author yangwei
* @version 1.0
* @since 2026/01/09 16:42
*/
@Component
public class DailyReportSaveStrategy extends BaseReportSaveStrategy {
private static final List<String> DAILY_TEMPLATES = Arrays.asList(
GoodNewsTemplateCodeEnum.DELAY_TEMPLATE_CODE_2_3.getCode(),
GoodNewsTemplateCodeEnum.LIGHT_CHANGE_TEMPLATE_CODE_1_1.getCode(),
GoodNewsTemplateCodeEnum.REGIONAL_TEMPLATE_CODE_2_1.getCode()
);
@Resource
private DigitalManagementStaffRecordService staffRecordService;
@Override
public boolean supports(String templateCode) {
return DAILY_TEMPLATES.contains(templateCode);
}
/**
* 日报持久化使用历史代码
* @author yangwei
* @since 2026/1/9 16:48
* @param request 请求对象
* @return java.lang.Integer
*/
@Override
public Integer persistence(SaveStaffRecordRequestDTO request) {
return staffRecordService.save(request);
}
@Override
protected String contentHeadBuilder(StaffGoodNewsRecordDTO staffGoodNewsRecordDTO) {
// 日报沿用历史代码,头部直接沿用
return StrUtil.EMPTY;
}
@Override
public String contentBuilder(StaffGoodNewsRecordDTO staffGoodNewsRecordDTO) {
// 日报提醒群推消息构建逻辑
DigitalManagementStaffRecordDTO staffRecordDTO = staffRecordService.getDigitalManagementStaffRecordDTO(staffGoodNewsRecordDTO);
staffRecordDTO.setSave(staffGoodNewsRecordDTO.getSave());
StringBuilder recordContent = Optional.ofNullable(staffRecordService.getRecordContent(staffGoodNewsRecordDTO.getName(), staffRecordDTO))
.orElseThrow(() -> new RpcServiceException(MindWorkplateServiceErrorEnum.COMMON_ERROR, String.format("构建日报推送内容失败,recordId:%s", staffGoodNewsRecordDTO.getId())));
return recordContent.toString();
}
}
package cn.com.glsx.dj.mindworkplate.service.digitalmanagement.goodnewssave;
import cn.com.glsx.dj.mindworkplate.consts.CommonConstants;
import cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.SaveStaffRecordRequestDTO;
import cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.StaffGoodNewsRecordDTO;
import cn.com.glsx.dj.mindworkplate.enums.GoodNewsTemplateCodeEnum;
import cn.hutool.core.util.BooleanUtil;
import cn.hutool.core.util.StrUtil;
import org.springframework.stereotype.Component;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
/**
* 运营主管(驻店人员)喜报保存
* @author yangwei
* @version 1.0
* @since 2026/01/09 16:10
*/
@Component
public class OperationExecutiveWeeklyReportSaveStrategy extends BaseReportSaveStrategy {
private static final List<String> OPERATION_EXECUTIVE_WEEKLY_TEMPLATES = Arrays.asList(
GoodNewsTemplateCodeEnum.REGIONAL_MANAGER_TEMPLATE_CODE_WEEKLY_15_2_1.getCode(),
GoodNewsTemplateCodeEnum.REGIONAL_MANAGER_TEMPLATE_CODE_WEEKLY_16_1_1.getCode(),
GoodNewsTemplateCodeEnum.REGIONAL_MANAGER_TEMPLATE_CODE_WEEKLY_17_2_3.getCode()
);
@Override
public boolean supports(String templateCode) {
return OPERATION_EXECUTIVE_WEEKLY_TEMPLATES.contains(templateCode);
}
@Override
public ValidationResult validate(SaveStaffRecordRequestDTO request) {
return super.validate(request);
}
@Override
protected String contentHeadBuilder(StaffGoodNewsRecordDTO staffGoodNewsRecordDTO) {
Date createdDate = staffGoodNewsRecordDTO.getCreatedDate();
return StrUtil.format(CONTENT_HEAD_TEMPLATE,
staffGoodNewsRecordDTO.getTemplate().getName(),
staffGoodNewsRecordDTO.getName(),
RegionalManagerWeeklyReportSaveStrategy.getWeeklyRange(createdDate),
BooleanUtil.isTrue(staffGoodNewsRecordDTO.getSave()) ? StrUtil.EMPTY : CommonConstants.CHINESE_CHANGED);
}
}
package cn.com.glsx.dj.mindworkplate.service.digitalmanagement.goodnewssave;
import cn.com.glsx.dj.mindworkplate.consts.CommonConstants;
import cn.com.glsx.dj.mindworkplate.consts.DatePatternConstants;
import cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.SaveStaffRecordRequestDTO;
import cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.StaffGoodNewsRecordDTO;
import cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.WeekRange;
import cn.com.glsx.dj.mindworkplate.enums.GoodNewsTemplateCodeEnum;
import cn.com.glsx.framework.core.util.DateUtils;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.BooleanUtil;
import cn.hutool.core.util.StrUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
/**
* 区域经理(区域运营)周报保存策略
* @author yangwei
* @version 1.0
* @since 2026/01/09 15:42
*/
@Slf4j
@Component
public class RegionalManagerWeeklyReportSaveStrategy extends BaseReportSaveStrategy {
private static final List<String> REGIONAL_MANAGER_WEEKLY_TEMPLATES = Arrays.asList(
GoodNewsTemplateCodeEnum.REGIONAL_MANAGER_TEMPLATE_CODE_WEEKLY_1_1.getCode(),
GoodNewsTemplateCodeEnum.REGIONAL_MANAGER_TEMPLATE_CODE_WEEKLY_2_1.getCode(),
GoodNewsTemplateCodeEnum.REGIONAL_MANAGER_TEMPLATE_CODE_WEEKLY_2_3.getCode()
);
@Override
public boolean supports(String templateCode) {
return REGIONAL_MANAGER_WEEKLY_TEMPLATES.contains(templateCode);
}
@Override
public ValidationResult validate(SaveStaffRecordRequestDTO request) {
return super.validate(request);
}
/**
* 周报需要获取填写周报的区间
* @author yangwei
* @since 2026/1/10 15:42
* @param staffGoodNewsRecordDTO 请求参数
* @return java.lang.String
*/
@Override
protected String contentHeadBuilder(StaffGoodNewsRecordDTO staffGoodNewsRecordDTO) {
Date createdDate = staffGoodNewsRecordDTO.getCreatedDate();
return StrUtil.format(CONTENT_HEAD_TEMPLATE,
staffGoodNewsRecordDTO.getTemplate().getName(),
staffGoodNewsRecordDTO.getName(),
getWeeklyRange(createdDate),
BooleanUtil.isTrue(staffGoodNewsRecordDTO.getSave()) ? StrUtil.EMPTY : CommonConstants.CHINESE_CHANGED);
}
/**
* 获取周报填写的区间
* @author yangwei
* @since 2026/1/10 15:42
* @param createdDate 创建时间
* @return java.lang.String
*/
public static String getWeeklyRange(Date createdDate) {
String format = DateUtil.format(createdDate, DateUtils.DEFAULT_DATE_FORMAT5);
WeekRange weekRange = cn.com.glsx.dj.mindworkplate.util.DateUtils.getWeekRange(format, DateUtils.DEFAULT_DATE_FORMAT5);
return cn.com.glsx.dj.mindworkplate.util.DateUtils.formatLocalDate(weekRange.getStartDate(), DatePatternConstants.YYYY_MM_DD_SLASH)
+ " - " + cn.com.glsx.dj.mindworkplate.util.DateUtils.formatLocalDate(weekRange.getEndDate(), DatePatternConstants.YYYY_MM_DD_SLASH);
}
}
package cn.com.glsx.dj.mindworkplate.service.digitalmanagement.goodnewssave;
import cn.com.glsx.dj.mindworkplate.enums.MindWorkplateServiceErrorEnum;
import cn.com.glsx.framework.core.exception.RpcServiceException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* 喜报保存工厂
* @author yangwei
* @version 1.0
* @since 2026/01/09 15:57
*/
@Component
public class ReportSaveFactory {
/** 策略列表 */
private final List<ReportSaveStrategy> strategies;
@Autowired
public ReportSaveFactory(List<ReportSaveStrategy> strategies) {
this.strategies = strategies;
}
public ReportSaveStrategy getStrategy(String templateCode) {
return strategies.stream()
.filter(strategy -> strategy.supports(templateCode))
.findFirst()
.orElseThrow(() -> new RpcServiceException(MindWorkplateServiceErrorEnum.COMMON_ERROR, "不支持的模板类型: " + templateCode));
}
}
\ No newline at end of file
package cn.com.glsx.dj.mindworkplate.service.digitalmanagement.goodnewssave;
import cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.ManagementTemplateContentDTO;
import cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.SaveStaffRecordRequestDTO;
import cn.com.glsx.dj.smartcarlife.dto.worktoolpush.RecordRequestDTO;
import cn.com.glsx.dj.smartcarlife.dto.worktoolpush.StaffRecordRequestDTO;
/**
* 喜报保存策略
* @author yangwei
* @version 1.0
* @since 2026/01/09 14:32
*/
public interface ReportSaveStrategy {
/**
* 判断是否支持该模板
* @author yangwei
* @since 2026/1/9 15:38
* @param templateCode 模版代码
* @return boolean
*/
boolean supports(String templateCode);
/**
* 保存报告并推送消息
* @author yangwei
* @since 2026/1/9 15:37
* @param request 请求对象
* @return java.lang.Integer 保存之后的用户喜报id
*/
Integer save(SaveStaffRecordRequestDTO request);
/**
* 验证报告数据
* @author yangwei
* @since 2026/1/9 15:37
* @param request 请求对象
* @return cn.com.glsx.dj.mindworkplate.service.digitalmanagement.goodnewssave.ValidationResult
*/
ValidationResult validate(SaveStaffRecordRequestDTO request);
/**
* 获取模板配置
* @author yangwei
* @since 2026/1/9 15:37
* @param templateCode 模版代码
* @return cn.com.glsx.dj.mindworkplate.model.digitalmanagement.DigitalManagementTemplate
*/
ManagementTemplateContentDTO getTemplateItems(String templateCode);
/**
* 喜报后续处理
* @author yangwei
* @since 2026/1/9 17:18
* @param staffRecordId 喜报记录ID
* @param request 请求参数
*/
void postProcess(Integer staffRecordId, SaveStaffRecordRequestDTO request);
/**
* 企微群推送
* @author yangwei
* @since 2026/1/10 10:21
* @param staffRecordId 喜报记录ID
* @param pushRequest 按照模版推送
* @param staffRecordRequest 按照员工推送
*/
void enterpriseWeChatGroupPush(Integer staffRecordId, RecordRequestDTO pushRequest, StaffRecordRequestDTO staffRecordRequest);
}
package cn.com.glsx.dj.mindworkplate.service.digitalmanagement.goodnewssave;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.util.HashMap;
import java.util.Map;
/**
* @author yangwei
* @version 1.0
* @since 2026/01/09 14:35
*/
@Data
@AllArgsConstructor
public class ValidationResult {
private boolean valid;
private String message;
private Map<String, String> errors;
public static ValidationResult success() {
return new ValidationResult(true, "验证通过", null);
}
public static ValidationResult error(String message) {
return new ValidationResult(false, message, new HashMap<>());
}
public static ValidationResult error(String message, Map<String, String> errors) {
return new ValidationResult(false, message, errors);
}
}
\ No newline at end of file
package cn.com.glsx.dj.mindworkplate.util;
import cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.WeekRange;
import cn.com.glsx.dj.mindworkplate.enums.MindWorkplateServiceErrorEnum;
import cn.com.glsx.framework.core.exception.RpcServiceException;
import java.time.DayOfWeek;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.time.temporal.TemporalAdjusters;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* @author yangwei
* @version 1.0
* @since 2026/01/08 20:50
*/
public class DateUtils {
// 支持的各种日期格式
public static final String PATTERN_YYYYMMDD = "yyyyMMdd";
public static final String PATTERN_YYYY_MM_DD = "yyyy-MM-dd";
public static final String PATTERN_YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";
public static final String PATTERN_YYYY年MM月DD日 = "yyyy年MM月dd日";
// 线程安全的日期格式化器缓存
private static final Map<String, DateTimeFormatter> FORMATTER_CACHE = new ConcurrentHashMap<>();
/***
* 格式化日期
* @author yangwei
* @since 2026/1/8 20:52
* @param localDate 日期
* @param format 格式化
* @return java.lang.String
*/
public static String formatLocalDate(LocalDate localDate, String format) {
if (localDate == null || format == null) {
return null;
}
DateTimeFormatter dtf = DateTimeFormatter.ofPattern(format);
return dtf.format(localDate);
}
/**
* <pre>
* 获取当前周的周日
* 如果今天是周日,返回今天
* 如果今天是其他日期,返回本周的周日
* </pre>
* @author yangwei
* @since 2026/1/8 21:04
* @return java.time.LocalDate
*/
public static LocalDate getCurrentSunday() {
LocalDate today = LocalDate.now();
return getSundayOfWeek(today);
}
/**
* 获取当前月份的最后一天
* @author yangwei
* @since 2026/1/8 21:46
* @return java.time.LocalDate
*/
public static LocalDate getCurrentMonthLastDay() {
LocalDate today = LocalDate.now();
return getLastDayOfMonth(today);
}
/**
* 获取指定日期所在周的周日
* @author yangwei
* @since 2026/1/8 21:04
* @param date 日期
* @return java.time.LocalDate
*/
public static LocalDate getSundayOfWeek(LocalDate date) {
if (date == null) {
date = LocalDate.now();
}
return date.with(TemporalAdjusters.nextOrSame(DayOfWeek.SUNDAY));
}
/**
* 获取指定月份的最后一天
* @author yangwei
* @since 2026/1/8 21:46
* @param date 指定日期
* @return java.time.LocalDate 月份最后一天
*/
public static LocalDate getLastDayOfMonth(LocalDate date) {
return date.with(TemporalAdjusters.lastDayOfMonth());
}
/**
* 获取日期格式化器
*/
private static DateTimeFormatter getFormatter(String pattern) {
return FORMATTER_CACHE.computeIfAbsent(pattern, DateTimeFormatter::ofPattern);
}
/**
* 解析字符串日期
*/
public static LocalDate parseDate(String dateStr, String pattern) {
try {
DateTimeFormatter formatter = getFormatter(pattern);
return LocalDate.parse(dateStr, formatter);
} catch (Exception e) {
throw new RpcServiceException(MindWorkplateServiceErrorEnum.COMMON_ERROR, "日期格式错误: " + dateStr + ",期望格式: " + pattern, e);
}
}
/**
* 获取指定日期所在周的范围
* @param dateStr 日期字符串
* @param inputPattern 输入日期格式
* @return cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.WeekRange
*/
public static WeekRange getWeekRange(String dateStr, String inputPattern) {
LocalDate date = parseDate(dateStr, inputPattern);
return getWeekRange(date);
}
/**
* 获取指定日期所在周的范围(周一至周日)
* @author yangwei
* @since 2026/1/10 15:53
* @param date 日期
* @return cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.WeekRange
*/
public static WeekRange getWeekRange(LocalDate date) {
LocalDate monday = date.with(TemporalAdjusters.previousOrSame(DayOfWeek.MONDAY));
LocalDate sunday = date.with(TemporalAdjusters.nextOrSame(DayOfWeek.SUNDAY));
return new WeekRange(monday, sunday);
}
}
......@@ -326,4 +326,63 @@
order by si.register_time, si.created_date desc
</select>
<select id="findReportByUuidAndDate"
resultType="cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.StaffRecordDTO">
select id, staff_uuid staffUuid, template_code templateCode, DATE_FORMAT(created_date, '%Y%m%d') as submitDate
from digital_management_staff_record
<where>
deleted_flag = 'N'
and template_code = #{code}
<if test="dates != null and dates.size() > 0">
and DATE_FORMAT(created_date, '%Y%m%d') in
<foreach collection="dates" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</if>
and staff_uuid = #{uuid}
</where>
</select>
<select id="findStaffGoodNewsTemplate"
resultType="cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.StaffGoodNewsTemplateRespDTO">
SELECT
t3.code ,
t3.name ,
t3.`type`,
t3.type_name as typeName,
t3.scene_type sceneType,
t3.business_type businessType,
t3.report_type reportType,
t3.id
FROM (
SELECT t1.*
FROM digital_management_template_staff_ref t1
where
NOT EXISTS (
SELECT 1
FROM digital_management_template_staff_ref t2
WHERE t2.template_code = t1.template_code
AND t2.deleted_flag = 'N'
AND (
t2.effective_date > t1.effective_date
OR (t2.effective_date = t1.effective_date AND t2.id > t1.id)
)
)
AND t1.deleted_flag = 'N'
) AS latest_templates
join digital_management_template t3 on latest_templates.template_code = t3.code and t3.deleted_flag = 'N'
<where>
<if test="uuid != null and uuid != ''">
and FIND_IN_SET(#{uuid}, staff_uuid_list) > 0
</if>
<if test="sceneType != null">
and t3.scene_type = #{sceneType}
</if>
<if test="reportType != null">
and t3.report_type = #{reportType}
</if>
</where>
ORDER BY t3.report_type, t3.code
</select>
</mapper>
\ No newline at end of file
......@@ -17,6 +17,9 @@
<result column="deleted_flag" property="deletedFlag" jdbcType="CHAR" />
<result column="display_summary" property="displaySummary" jdbcType="INTEGER" />
<result column="extend_field" property="extendField" jdbcType="VARCHAR" />
<result column="scene_type" property="sceneType" jdbcType="INTEGER" />
<result column="business_type" property="businessType" jdbcType="INTEGER" />
<result column="report_type" property="reportType" jdbcType="INTEGER" />
</resultMap>
<resultMap id="SimpleDTOResult" type="cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.DigitalManagementTemplateDTO" extends="BaseResultMap" />
<resultMap id="DTOResult" type="cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.DigitalManagementTemplateDTO" extends="BaseResultMap">
......@@ -29,7 +32,7 @@
WARNING - @mbg.generated
-->
id, code, name, type, type_name, created_by, created_date, updated_by, updated_date,
deleted_flag,extend_field, display_summary
deleted_flag,extend_field, display_summary ,scene_type ,business_type ,report_type
</sql>
<select id="findAllType" resultMap="SimpleDTOResult">
......
package cn.com.glsx.dj.mindworkplate.remote;
import cn.com.glsx.dj.mindworkplate.constant.DigitalManagementConstants;
import cn.com.glsx.dj.mindworkplate.dto.digitalmanagement.SaveStaffRecordRequestDTO;
import cn.com.glsx.dj.mindworkplate.service.BaseServiceTest;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.HashMap;
import java.util.Map;
/**
* @author yangwei
* @version 1.0
* @since 2026/01/10 16:36
*/
public class DigitalManagementRecordRemoteImplTest extends BaseServiceTest {
@Autowired
private DigitalManagementRecordRemote digitalManagementRecordRemote;
@Test
public void testSave() throws InterruptedException {
String uuid = "68766685445611ecb088000c29c0b837";
int loginRole = DigitalManagementConstants.LOGIN_ROLE_FLIGHT_SUPERVISION;
Map<String, String> form = new HashMap<>();
// form.put("key", "value");
// uuid-temp-001
// form.put("managedStoreCount", "32");
// form.put("equityStoreAverageCartValue", "99999");
// form.put("equityStorePenetrationAverage", "100");
// form.put("warrantyStoreAverageCartValue", "323");
// form.put("warrantyStorePenetrationAverage", "31");
// form.put("boutiqueStoreAverageCartValue", "31");
// form.put("boutiqueStorePenetrationAverage", "100");
// form.put("isTrainingOrganized", "是");
// form.put("trainingTitle", "321313");
// form.put("attendingStaff", "ttt,张桂芬,八戒");
// form.put("trainingMode", "线上培训");
// form.put("tencentMeetingRecordingLink", "321213213");
// form.put("trainingPhotos", "http://qcimg01.glsx.com.cn/group1/M00/08/F6/wKgD3meE3xuABFu4AAGYwZrRrPU631.png");
// form.put("todayInterview", "32");
// form.put("interviewPassed", "32");
// form.put("thisMonthOnboarding", "32");
// form.put("thisMonthPendingRecruits", "43");
// form.put("todayReception", "43");
// form.put("todayTransactions", "43");
// form.put("todaySummary", "dsadshadsjadjksajdkla");
// form.put("tomorrowPlan", "dadsadsadsad");
// form.put("dayOffStatus", "否");
// form.put("reportDate", "2025-04-08");
// uuid-temp-012
// form = temp012();
// SaveStaffRecordRequestDTO saveStaffRecordRequestDTO = new SaveStaffRecordRequestDTO(loginRole, uuid, form);
// saveStaffRecordRequestDTO.setTemplateCode("uuid-temp-012");
// System.out.println(digitalManagementRecordRemote.save(saveStaffRecordRequestDTO));
// Map<String, String> form2 = new HashMap<>(temp013());
// SaveStaffRecordRequestDTO saveStaffRecordRequestDTO2 = new SaveStaffRecordRequestDTO(loginRole, uuid, form2);
// saveStaffRecordRequestDTO2.setTemplateCode("uuid-temp-013");
// System.out.println(digitalManagementRecordRemote.save(saveStaffRecordRequestDTO2));
// Map<String, String> form1 = new HashMap<>(temp014());
// SaveStaffRecordRequestDTO saveStaffRecordRequestDTO3 = new SaveStaffRecordRequestDTO(loginRole, uuid, form1);
// saveStaffRecordRequestDTO3.setTemplateCode("uuid-temp-014");
// System.out.println(digitalManagementRecordRemote.save(saveStaffRecordRequestDTO3));
form = temp015();
SaveStaffRecordRequestDTO saveStaffRecordRequestDTO = new SaveStaffRecordRequestDTO(loginRole, uuid, form);
saveStaffRecordRequestDTO.setTemplateCode("uuid-temp-015");
System.out.println(digitalManagementRecordRemote.save(saveStaffRecordRequestDTO));
Map<String, String> form2 = new HashMap<>(temp016());
SaveStaffRecordRequestDTO saveStaffRecordRequestDTO2 = new SaveStaffRecordRequestDTO(loginRole, uuid, form2);
saveStaffRecordRequestDTO2.setTemplateCode("uuid-temp-016");
System.out.println(digitalManagementRecordRemote.save(saveStaffRecordRequestDTO2));
Map<String, String> form1 = new HashMap<>(temp017());
SaveStaffRecordRequestDTO saveStaffRecordRequestDTO3 = new SaveStaffRecordRequestDTO(loginRole, uuid, form1);
saveStaffRecordRequestDTO3.setTemplateCode("uuid-temp-017");
System.out.println(digitalManagementRecordRemote.save(saveStaffRecordRequestDTO3));
Thread.sleep(1000 * 60 * 60);
}
/**
* 区域经理数据
* @author yangwei
* @since 2026/1/11 16:33
* @return java.util.Map<java.lang.String,java.lang.String>
*/
public Map<String, String> temp012() {
Map<String, String> form = new HashMap<>();
form.put("weeklyStartedStores012", "1");
form.put("weeklyLostStores012", "4");
form.put("weeklyNewStoreRevenue012", "534.32");
form.put("monthlyStoreOutputTarget012", "500000");
form.put("monthlyStoreCumulativeAchievement012", "5000");
form.put("monthlyTimeProgress012", "56.78");
form.put("monthlyOutputAchievementRate012", "76.45");
form.put("monthlyAchievementGap012", "11.23");
form.put("weeklyNewHires012", "6");
form.put("weeklyDepartures012", "7");
form.put("weeklyPendingRecruitment012", "132");
form.put("workSummaryContent012", "我是区域总结总结总结");
return form;
}
public Map<String, String> temp013() {
Map<String, String> form = new HashMap<>();
form.put("weeklyStartedStores013", "1");
form.put("weeklyLostStores013", "4");
form.put("weeklyNewStoreRevenue013", "534.32");
form.put("monthlyStoreOutputTarget013", "500000");
form.put("monthlyStoreCumulativeAchievement013", "5000");
form.put("monthlyTimeProgress013", "56.78");
form.put("monthlyOutputAchievementRate013", "76.45");
form.put("monthlyAchievementGap013", "11.23");
form.put("weeklyNewHires013", "6");
form.put("weeklyDepartures013", "7");
form.put("weeklyPendingRecruitment013", "132");
form.put("workSummaryContent013", "我是区域总结总结总结013013013013013013");
return form;
}
public Map<String, String> temp014() {
Map<String, String> form = new HashMap<>();
form.put("weeklyStartedStores014", "1");
form.put("weeklyLostStores014", "4");
form.put("weeklyNewStoreRevenue014", "534.32");
form.put("monthlyStoreOutputTarget014", "500000");
form.put("monthlyStoreCumulativeAchievement014", "5000");
form.put("monthlyTimeProgress014", "56.78");
form.put("monthlyOutputAchievementRate014", "76.45");
form.put("monthlyAchievementGap014", "11.23");
form.put("weeklyNewHires014", "6");
form.put("weeklyDepartures014", "7");
form.put("weeklyPendingRecruitment014", "132");
form.put("workSummaryContent014", "我是区域总结总结总结013013013013013013");
return form;
}
public Map<String, String> temp015() {
Map<String, String> form = new HashMap<>();
form.put("weeklyStoreLocation015", "明明长岭4s店");
form.put("weeklyCarDelivery015", "4");
form.put("weeklyCustomerContact015", "32");
form.put("weeklyTransaction015", "2");
form.put("weeklyOutput015", "50321.5");
form.put("monthlyCustomerTalk015", "78");
form.put("monthlyTransaction015", "6");
form.put("monthlyOutput015", "90321.5");
form.put("workSummaryContent015", "我是运营主管总结总结总结异步异步异步015015015015015015");
return form;
}
public Map<String, String> temp016() {
Map<String, String> form = new HashMap<>();
form.put("weeklyStoreLocation016", "明明长岭4s店");
form.put("weeklyCarDelivery016", "4");
form.put("weeklyCustomerContact016", "32");
form.put("weeklyTransaction016", "21");
form.put("weeklyOutput016", "50321.5");
form.put("monthlyCustomerTalk016", "78");
form.put("monthlyTransaction016", "61");
form.put("monthlyOutput016", "90321.52");
form.put("workSummaryContent016", "一步一步一步我是运营主管总结总结总结016016016016016016016016测试修改");
return form;
}
public Map<String, String> temp017() {
Map<String, String> form = new HashMap<>();
form.put("weeklyStoreLocation017", "明明长岭4s店_update");
form.put("weeklyCarDelivery017", "4");
form.put("weeklyCustomerContact017", "32");
form.put("weeklyTransaction017", "2");
form.put("weeklyOutput017", "50321.5");
form.put("monthlyCustomerTalk017", "78");
form.put("monthlyTransaction017", "6");
form.put("monthlyOutput017", "90321.5");
form.put("workSummaryContent017", "一步一步走到哪最高的赵高,测试修改");
return form;
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!