Commit 4286f767 by 范富荣

新增督导任务模块基础类

1 parent d54b26de
Showing 20 changed files with 615 additions and 10 deletions
package cn.com.glsx.dj.supervisor.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 复盘状态,0-未复盘,1-已复盘
*/
@Getter
@AllArgsConstructor
public enum ReviewStatusEnum {
/**
* 未复盘
*/
PENDING(0, "待完成"),
/**
* 已复盘
*/
COMPLETED(1, "已复盘");
private Integer code;
private String name;
}
package cn.com.glsx.dj.supervisor.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 任务状态 0-待完成 1-进行中,2-已完成
*/
@Getter
@AllArgsConstructor
public enum TaskStatusEnum {
/**
* 待完成
*/
PENDING(0, "待完成"),
/**
* 进行中
*/
IN_PROGRESS(1, "进行中"),
/**
* 已完成
*/
COMPLETED(2, "已完成");
private Integer code;
private String name;
}
package cn.com.glsx.dj.supervisor.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 日报类型 0-日报 1-周报,2-月报, 3-录音
*/
@Getter
@AllArgsConstructor
public enum TaskTypeEnum {
/** 日报 */
DAILY_REPORT(0, "日报"),
/** 周报 */
WEEKLY_REPORT(1, "周报"),
/** 月报 */
MONTHLY_REPORT(2, "月报"),
/** 录音 */
AUDIO_RECORDING(3, "录音");
private Integer code;
private String name;
}
package cn.com.glsx.dj.supervisor.model;
import cn.com.glsx.dj.supervisor.enums.ReviewStatusEnum;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
@ToString
@Data
@Table(name = "supervisor_audio_review_info")
public class SupervisorAudioReviewInfo implements Serializable {
/**
* 主键ID(自增)
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
/**
* 关联接待记录id(reception_customer_info.id)
*/
@Column(name = "reception_id")
private Long receptionId;
/**
* 关联任务id(supervisor_task_info.id)
*/
@Column(name = "relation_id")
private Long relationId;
/**
* 复盘状态,0-未复盘,1-已复盘
* @see ReviewStatusEnum
*/
@Column(name = "review_status")
private Integer reviewStatus;
/**
* 复盘内容
*/
@Column(name = "review_context")
private String reviewContext;
/**
* 复盘标签,多个用逗号分割
*/
@Column(name = "review_target")
private String reviewTarget;
/**
* 创建人姓名
*/
@Column(name = "created_by")
private String createdBy;
/**
* 创建时间
*/
@Column(name = "create_time")
private Date createTime;
/**
* 更新人账户名称
*/
@Column(name = "updated_by")
private String updatedBy;
/**
* 更新时间
*/
@Column(name = "updated_date")
private Date updatedDate;
/**
* 删除标识(D:已删除;N:未删除)
*/
@Column(name = "deleted_flag")
private String deletedFlag;
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.dj.supervisor.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import lombok.Data;
import lombok.ToString;
@ToString
@Data
@Table(name = "supervisor_task_image")
public class SupervisorTaskImage implements Serializable {
/**
* 主键ID(自增)
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
/**
* 关联任务ID(supervisor_task_info.id)
*/
@Column(name = "relation_id")
private Long relationId;
/**
* 图片地址(OSS/本地路径)
*/
@Column(name = "image_url")
private String imageUrl;
/**
* 创建人姓名
*/
@Column(name = "created_by")
private String createdBy;
/**
* 创建时间
*/
@Column(name = "create_time")
private Date createTime;
/**
* 更新人账户名称
*/
@Column(name = "updated_by")
private String updatedBy;
/**
* 更新时间
*/
@Column(name = "updated_date")
private Date updatedDate;
/**
* 删除标识(D:已删除;N:未删除)
*/
@Column(name = "deleted_flag")
private String deletedFlag;
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.dj.supervisor.model;
import cn.com.glsx.dj.supervisor.enums.TaskStatusEnum;
import cn.com.glsx.dj.supervisor.enums.TaskTypeEnum;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
@Data
@ToString
@Table(name = "supervisor_task_info")
public class SupervisorTaskInfo implements Serializable {
/**
* 主键ID(自增)
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
/**
* 日报类型 0-日报 1-周报,2-月报, 3-录音
@see TaskTypeEnum
*/
@Column(name = "task_type")
private Integer taskType;
/**
* 任务状态 0-待完成 1-进行中,2-已完成
* @see TaskStatusEnum
*/
@Column(name = "task_status")
private Integer taskStatus;
/**
* 在岗标识 0-在岗 1-调休(日报)
*/
@Column(name = "on_duty_flag")
private Integer onDutyFlag;
/**
* 门店ID(关联门店表)
*/
@Column(name = "merchant_id")
private Long merchantId;
/**
* 门店名称(冗余字段)
*/
@Column(name = "merchant_name")
private String merchantName;
/**
* 开始日期,yyyy-MM-dd
*/
@Column(name = "start_date")
private String startDate;
/**
* 结束日期,yyyy-MM-dd
*/
@Column(name = "end_date")
private String endDate;
/**
* 督导手机号
*/
@Column(name = "supervisor_phone")
private String supervisorPhone;
/**
* 督导姓名
*/
@Column(name = "supervisor_name")
private String supervisorName;
/**
* 创建人姓名
*/
@Column(name = "created_by")
private String createdBy;
/**
* 创建时间
*/
@Column(name = "create_time")
private Date createTime;
/**
* 更新人账户名称
*/
@Column(name = "updated_by")
private String updatedBy;
/**
* 更新人手机号
*/
@Column(name = "updated_phone")
private String updatedPhone;
/**
* 更新时间
*/
@Column(name = "updated_date")
private Date updatedDate;
/**
* 删除标识(D:已删除;N:未删除)
*/
@Column(name = "deleted_flag")
private String deletedFlag;
/**
* 督导记录(富文本内容)
*/
@Column(name = "task_context")
private String taskContext;
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.dj.supervisor.model;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
@Data
@ToString
@Table(name = "supervisor_week_task_staff")
public class SupervisorWeekTaskStaff implements Serializable {
/**
* 主键ID(自增)
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
/**
* 关联任务ID(supervisor_task_info.id)
*/
@Column(name = "relation_id")
private Long relationId;
/**
* 员工手机号
*/
@Column(name = "staff_phone")
private String staffPhone;
/**
* 员工姓名
*/
@Column(name = "staff_name")
private String staffName;
/**
* 创建人姓名
*/
@Column(name = "created_by")
private String createdBy;
/**
* 创建时间
*/
@Column(name = "create_time")
private Date createTime;
/**
* 更新人账户名称
*/
@Column(name = "updated_by")
private String updatedBy;
/**
* 更新时间
*/
@Column(name = "updated_date")
private Date updatedDate;
/**
* 删除标识(D:已删除;N:未删除)
*/
@Column(name = "deleted_flag")
private String deletedFlag;
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.dj.supervisor.remote;
import cn.com.glsx.framework.core.annotation.ApiService;
@ApiService(value = "督导任务", owner = "fanfr")
public interface SupervisorTaskInfoRemote {
}
...@@ -21,12 +21,6 @@ ...@@ -21,12 +21,6 @@
<dependency> <dependency>
<groupId>com.squareup.okhttp3</groupId> <groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId> <artifactId>okhttp</artifactId>
<version>4.9.3</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>3.14.8</version> <version>3.14.8</version>
</dependency> </dependency>
......
package cn.com.glsx.dj.supervisor.mapper;
import cn.com.glsx.dj.supervisor.model.SupervisorAudioReviewInfo;
import org.apache.ibatis.annotations.Mapper;
import org.oreframework.datasource.mybatis.mapper.OreMapper;
@Mapper
public interface SupervisorAudioReviewInfoMapper extends OreMapper<SupervisorAudioReviewInfo> {
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.dj.supervisor.mapper;
import cn.com.glsx.dj.supervisor.model.SupervisorTaskImage;
import org.apache.ibatis.annotations.Mapper;
import org.oreframework.datasource.mybatis.mapper.OreMapper;
@Mapper
public interface SupervisorTaskImageMapper extends OreMapper<SupervisorTaskImage> {
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.dj.supervisor.mapper;
import cn.com.glsx.dj.supervisor.model.SupervisorTaskInfo;
import org.apache.ibatis.annotations.Mapper;
import org.oreframework.datasource.mybatis.mapper.OreMapper;
@Mapper
public interface SupervisorTaskInfoMapper extends OreMapper<SupervisorTaskInfo> {
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.dj.supervisor.mapper;
import cn.com.glsx.dj.supervisor.model.SupervisorWeekTaskStaff;
import org.apache.ibatis.annotations.Mapper;
import org.oreframework.datasource.mybatis.mapper.OreMapper;
@Mapper
public interface SupervisorWeekTaskStaffMapper extends OreMapper<SupervisorWeekTaskStaff> {
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.dj.supervisor.remote;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
@Slf4j
@DubboService(retries = 0, timeout = 30000)
public class SupervisorTaskInfoRemoteImpl implements SupervisorTaskInfoRemote {
}
package cn.com.glsx.dj.supervisor.service;
import cn.com.glsx.dj.supervisor.mapper.SupervisorTaskInfoMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
@Slf4j
public class SupervisorTaskInfoService {
@Autowired
private SupervisorTaskInfoMapper supervisorTaskInfoMapper;
}
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="cn.com.glsx.dj.supervisor.mapper.SupervisorAudioReviewInfoMapper" >
<resultMap id="BaseResultMap" type="cn.com.glsx.dj.supervisor.model.SupervisorAudioReviewInfo" >
<!--
WARNING - @mbg.generated
-->
<id column="id" property="id" jdbcType="BIGINT" />
<result column="reception_id" property="receptionId" jdbcType="BIGINT" />
<result column="relation_id" property="relationId" jdbcType="BIGINT" />
<result column="review_status" property="reviewStatus" jdbcType="INTEGER" />
<result column="review_context" property="reviewContext" jdbcType="VARCHAR" />
<result column="review_target" property="reviewTarget" jdbcType="VARCHAR" />
<result column="created_by" property="createdBy" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
<result column="updated_by" property="updatedBy" jdbcType="VARCHAR" />
<result column="updated_date" property="updatedDate" jdbcType="TIMESTAMP" />
<result column="deleted_flag" property="deletedFlag" jdbcType="CHAR" />
</resultMap>
<sql id="Base_Column_List" >
<!--
WARNING - @mbg.generated
-->
id, reception_id, relation_id, review_status, review_context, review_target, created_by,
create_time, updated_by, updated_date, deleted_flag
</sql>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="cn.com.glsx.dj.supervisor.mapper.SupervisorTaskImageMapper" >
<resultMap id="BaseResultMap" type="cn.com.glsx.dj.supervisor.model.SupervisorTaskImage" >
<!--
WARNING - @mbg.generated
-->
<id column="id" property="id" jdbcType="BIGINT" />
<result column="relation_id" property="relationId" jdbcType="BIGINT" />
<result column="image_url" property="imageUrl" jdbcType="VARCHAR" />
<result column="created_by" property="createdBy" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
<result column="updated_by" property="updatedBy" jdbcType="VARCHAR" />
<result column="updated_date" property="updatedDate" jdbcType="TIMESTAMP" />
<result column="deleted_flag" property="deletedFlag" jdbcType="CHAR" />
</resultMap>
<sql id="Base_Column_List" >
<!--
WARNING - @mbg.generated
-->
id, relation_id, image_url, created_by, create_time, updated_by, updated_date, deleted_flag
</sql>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="cn.com.glsx.dj.supervisor.mapper.SupervisorTaskInfoMapper" >
<resultMap id="BaseResultMap" type="cn.com.glsx.dj.supervisor.model.SupervisorTaskInfo" >
<!--
WARNING - @mbg.generated
-->
<id column="id" property="id" jdbcType="BIGINT" />
<result column="task_type" property="taskType" jdbcType="BIT" />
<result column="task_status" property="taskStatus" jdbcType="BIT" />
<result column="on_duty_flag" property="onDutyFlag" jdbcType="BIT" />
<result column="merchant_id" property="merchantId" jdbcType="BIGINT" />
<result column="merchant_name" property="merchantName" jdbcType="VARCHAR" />
<result column="start_date" property="startDate" jdbcType="VARCHAR" />
<result column="end_date" property="endDate" jdbcType="VARCHAR" />
<result column="supervisor_phone" property="supervisorPhone" jdbcType="VARCHAR" />
<result column="supervisor_name" property="supervisorName" jdbcType="VARCHAR" />
<result column="created_by" property="createdBy" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
<result column="updated_by" property="updatedBy" jdbcType="VARCHAR" />
<result column="updated_phone" property="updatedPhone" jdbcType="VARCHAR" />
<result column="updated_date" property="updatedDate" jdbcType="TIMESTAMP" />
<result column="deleted_flag" property="deletedFlag" jdbcType="CHAR" />
</resultMap>
<resultMap id="ResultMapWithBLOBs" type="cn.com.glsx.dj.supervisor.model.SupervisorTaskInfo" extends="BaseResultMap" >
<!--
WARNING - @mbg.generated
-->
<result column="task_context" property="taskContext" jdbcType="LONGVARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
<!--
WARNING - @mbg.generated
-->
id, task_type, task_status, on_duty_flag, merchant_id, merchant_name, start_date,
end_date, supervisor_phone, supervisor_name, created_by, create_time, updated_by,
updated_phone, updated_date, deleted_flag
</sql>
<sql id="Blob_Column_List" >
<!--
WARNING - @mbg.generated
-->
task_context
</sql>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="cn.com.glsx.dj.supervisor.mapper.SupervisorWeekTaskStaffMapper" >
<resultMap id="BaseResultMap" type="cn.com.glsx.dj.supervisor.model.SupervisorWeekTaskStaff" >
<!--
WARNING - @mbg.generated
-->
<id column="id" property="id" jdbcType="BIGINT" />
<result column="relation_id" property="relationId" jdbcType="BIGINT" />
<result column="staff_phone" property="staffPhone" jdbcType="VARCHAR" />
<result column="staff_name" property="staffName" jdbcType="VARCHAR" />
<result column="created_by" property="createdBy" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
<result column="updated_by" property="updatedBy" jdbcType="VARCHAR" />
<result column="updated_date" property="updatedDate" jdbcType="TIMESTAMP" />
<result column="deleted_flag" property="deletedFlag" jdbcType="CHAR" />
</resultMap>
<sql id="Base_Column_List" >
<!--
WARNING - @mbg.generated
-->
id, relation_id, staff_phone, staff_name, created_by, create_time, updated_by, updated_date,
deleted_flag
</sql>
</mapper>
\ No newline at end of file \ No newline at end of file
...@@ -15,22 +15,28 @@ ...@@ -15,22 +15,28 @@
<javaTypeResolver> <javaTypeResolver>
<property name="forceBigDecimals" value="false" /> <property name="forceBigDecimals" value="false" />
</javaTypeResolver> </javaTypeResolver>
<javaModelGenerator targetPackage="cn.com.glsx.dj.riskmanage.model.sem" targetProject="../rpc-dj-riskmanage-api/src/main/java"> <javaModelGenerator targetPackage="cn.com.glsx.dj.supervisor.model" targetProject="../rpc-dj-supervisor-api/src/main/java">
<property name="enableSubPackages" value="true" /> <property name="enableSubPackages" value="true" />
<property name="trimStrings" value="true" /> <property name="trimStrings" value="true" />
</javaModelGenerator> </javaModelGenerator>
<sqlMapGenerator targetPackage="META-INF/orm" targetProject="src/main/resources"> <sqlMapGenerator targetPackage="META-INF/orm" targetProject="src/main/resources">
<property name="enableSubPackages" value="false" /> <property name="enableSubPackages" value="false" />
</sqlMapGenerator> </sqlMapGenerator>
<javaClientGenerator targetPackage="cn.com.glsx.dj.riskmanage.mapper.sem" targetProject="MAVEN" type="XMLMAPPER"> <javaClientGenerator targetPackage="cn.com.glsx.dj.supervisor.mapper" targetProject="MAVEN" type="XMLMAPPER">
<property name="enableSubPackages" value="true" /> <property name="enableSubPackages" value="true" />
</javaClientGenerator> </javaClientGenerator>
<!-- 可配置多个 --> <!-- 可配置多个 -->
<table tableName="sem_kpi_metrics" domainObjectName="SemKpiMetrics" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false"> <table tableName="supervisor_task_info" domainObjectName="SupervisorTaskInfo" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
<generatedKey column="id" sqlStatement="MySql" identity="true"/> <generatedKey column="id" sqlStatement="MySql" identity="true"/>
</table> </table>
<table tableName="sem_user_kpi_metric" domainObjectName="SemUserKpiMetric" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false"> <table tableName="supervisor_task_image" domainObjectName="SupervisorTaskImage" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
<generatedKey column="id" sqlStatement="MySql" identity="true"/> <generatedKey column="id" sqlStatement="MySql" identity="true"/>
</table> </table>
<table tableName="supervisor_week_task_staff" domainObjectName="SupervisorWeekTaskStaff" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
<generatedKey column="id" sqlStatement="MySql" identity="true"/>
</table>
<table tableName="supervisor_audio_review_info" domainObjectName="SupervisorAudioReviewInfo" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
<generatedKey column="id" sqlStatement="MySql" identity="true"/>
</table>
</context> </context>
</generatorConfiguration> </generatorConfiguration>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!