Merge remote-tracking branch 'hs/dev/feat/partner1.1_20230727' into dev/feat/partner1.1_20230727
This commit is contained in:
@@ -83,6 +83,7 @@ public enum ErrorCodeEnum {
|
|||||||
GET_ACCESSTOKEN_ERROR(600001, "获取小程序TOKEN错误!", null),
|
GET_ACCESSTOKEN_ERROR(600001, "获取小程序TOKEN错误!", null),
|
||||||
NEW_MOBILE_HAS_EXIST(600002,"加盟商用户信息已存在",null),
|
NEW_MOBILE_HAS_EXIST(600002,"加盟商用户信息已存在",null),
|
||||||
INSPECTION_USER_OCCUPY(600002,"当前稽核人已经配置其他战区",null),
|
INSPECTION_USER_OCCUPY(600002,"当前稽核人已经配置其他战区",null),
|
||||||
|
INSPECTION_INFO_NOT_EXIST(600005, "稽核信息不存在!", null)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
package com.cool.store.enums;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Fun Li
|
||||||
|
* @version 1.0
|
||||||
|
* @date 2023/7/19 17:55
|
||||||
|
*/
|
||||||
|
//稽核操作类型
|
||||||
|
public enum InspectionOperationTypeEnum {
|
||||||
|
|
||||||
|
PASS(0, "合格"),
|
||||||
|
NOT_PASS(1, "不合格"),
|
||||||
|
REVOCATION(2, "撤销");
|
||||||
|
|
||||||
|
private Integer code;
|
||||||
|
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
InspectionOperationTypeEnum(Integer code, String type) {
|
||||||
|
this.code = code;
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getCode() {
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
package com.cool.store.enums;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Fun Li
|
||||||
|
* @version 1.0
|
||||||
|
* @date 2023/7/19 17:22
|
||||||
|
*/
|
||||||
|
//稽核信息状态
|
||||||
|
public enum InspectionStatusEnum {
|
||||||
|
|
||||||
|
NOT_INSPECT(0, "未稽核"),
|
||||||
|
PASS(1, "合格"),
|
||||||
|
NOT_PASS(2, "不合格");
|
||||||
|
|
||||||
|
private Integer code;
|
||||||
|
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
InspectionStatusEnum(Integer code, String type) {
|
||||||
|
this.code = code;
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getCode() {
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
package com.cool.store.enums;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Fun Li
|
||||||
|
* @version 1.0
|
||||||
|
* @date 2023/7/19 17:16
|
||||||
|
*/
|
||||||
|
//稽核类型
|
||||||
|
public enum InspectionTyeEnum {
|
||||||
|
|
||||||
|
INTERVIEW_INSPECTION(0, "面试稽核");
|
||||||
|
|
||||||
|
private Integer code;
|
||||||
|
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
InspectionTyeEnum(Integer code, String type) {
|
||||||
|
this.code = code;
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getCode() {
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
package com.cool.store.mapper;
|
||||||
|
|
||||||
|
import com.cool.store.entity.HyInspection;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface HyInspectionMapper {
|
||||||
|
int deleteByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
int insert(HyInspection record);
|
||||||
|
|
||||||
|
int insertSelective(HyInspection record);
|
||||||
|
|
||||||
|
HyInspection selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
int updateByPrimaryKeySelective(HyInspection record);
|
||||||
|
|
||||||
|
int updateByPrimaryKey(HyInspection record);
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
package com.cool.store.mapper;
|
||||||
|
|
||||||
|
import com.cool.store.entity.HyInterviewInspectionLog;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface HyInterviewInspectionLogMapper {
|
||||||
|
int deleteByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
int insert(HyInterviewInspectionLog record);
|
||||||
|
|
||||||
|
int insertSelective(HyInterviewInspectionLog record);
|
||||||
|
|
||||||
|
HyInterviewInspectionLog selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
int updateByPrimaryKeySelective(HyInterviewInspectionLog record);
|
||||||
|
|
||||||
|
int updateByPrimaryKey(HyInterviewInspectionLog record);
|
||||||
|
}
|
||||||
@@ -0,0 +1,201 @@
|
|||||||
|
<?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="com.cool.store.mapper.HyInspectionMapper">
|
||||||
|
<resultMap id="BaseResultMap" type="com.cool.store.entity.HyInspection">
|
||||||
|
<constructor>
|
||||||
|
<idArg column="id" javaType="java.lang.Long" jdbcType="BIGINT" />
|
||||||
|
<arg column="interview_plan_id" javaType="java.lang.Long" jdbcType="BIGINT" />
|
||||||
|
<arg column="operator_user_id" javaType="java.lang.String" jdbcType="VARCHAR" />
|
||||||
|
<arg column="type" javaType="java.lang.Byte" jdbcType="TINYINT" />
|
||||||
|
<arg column="status" javaType="java.lang.Byte" jdbcType="TINYINT" />
|
||||||
|
<arg column="files" javaType="java.lang.String" jdbcType="VARCHAR" />
|
||||||
|
<arg column="description" javaType="java.lang.String" jdbcType="VARCHAR" />
|
||||||
|
<arg column="inspection_time" javaType="java.time.LocalDateTime" jdbcType="TIMESTAMP" />
|
||||||
|
<arg column="creator" javaType="java.lang.String" jdbcType="VARCHAR" />
|
||||||
|
<arg column="updator" javaType="java.lang.String" jdbcType="VARCHAR" />
|
||||||
|
<arg column="remark" javaType="java.lang.String" jdbcType="VARCHAR" />
|
||||||
|
<arg column="deleted" javaType="java.lang.Boolean" jdbcType="BIT" />
|
||||||
|
<arg column="create_time" javaType="java.lang.String" jdbcType="TIMESTAMP" />
|
||||||
|
<arg column="update_time" javaType="java.time.LocalDateTime" jdbcType="TIMESTAMP" />
|
||||||
|
</constructor>
|
||||||
|
</resultMap>
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id, interview_plan_id, operator_user_id, type, status, files, description, inspection_time,
|
||||||
|
creator, updator, remark, deleted, create_time, update_time
|
||||||
|
</sql>
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from hy_inspection
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||||
|
delete from hy_inspection
|
||||||
|
where id = #{id}
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" parameterType="com.cool.store.entity.HyInspection">
|
||||||
|
insert into hy_inspection (id, interview_plan_id, operator_user_id,
|
||||||
|
type, status, files,
|
||||||
|
description, inspection_time, creator,
|
||||||
|
updator, remark, deleted,
|
||||||
|
create_time, update_time)
|
||||||
|
values (#{id}, #{interviewPlanId}, #{operatorUserId,jdbcType=VARCHAR},
|
||||||
|
#{type,jdbcType=TINYINT}, #{status,jdbcType=TINYINT}, #{files,jdbcType=VARCHAR},
|
||||||
|
#{description,jdbcType=VARCHAR}, #{inspectionTime,jdbcType=TIMESTAMP}, #{creator,jdbcType=VARCHAR},
|
||||||
|
#{updator,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{deleted,jdbcType=BIT},
|
||||||
|
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
|
||||||
|
</insert>
|
||||||
|
<insert id="insertSelective" parameterType="com.cool.store.entity.HyInspection">
|
||||||
|
insert into hy_inspection
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
id,
|
||||||
|
</if>
|
||||||
|
<if test="interviewPlanId != null">
|
||||||
|
interview_plan_id,
|
||||||
|
</if>
|
||||||
|
<if test="operatorUserId != null">
|
||||||
|
operator_user_id,
|
||||||
|
</if>
|
||||||
|
<if test="type != null">
|
||||||
|
type,
|
||||||
|
</if>
|
||||||
|
<if test="status != null">
|
||||||
|
status,
|
||||||
|
</if>
|
||||||
|
<if test="files != null">
|
||||||
|
files,
|
||||||
|
</if>
|
||||||
|
<if test="description != null">
|
||||||
|
description,
|
||||||
|
</if>
|
||||||
|
<if test="inspectionTime != null">
|
||||||
|
inspection_time,
|
||||||
|
</if>
|
||||||
|
<if test="creator != null">
|
||||||
|
creator,
|
||||||
|
</if>
|
||||||
|
<if test="updator != null">
|
||||||
|
updator,
|
||||||
|
</if>
|
||||||
|
<if test="remark != null">
|
||||||
|
remark,
|
||||||
|
</if>
|
||||||
|
<if test="deleted != null">
|
||||||
|
deleted,
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time,
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
#{id},
|
||||||
|
</if>
|
||||||
|
<if test="interviewPlanId != null">
|
||||||
|
#{interviewPlanId},
|
||||||
|
</if>
|
||||||
|
<if test="operatorUserId != null">
|
||||||
|
#{operatorUserId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="type != null">
|
||||||
|
#{type,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="status != null">
|
||||||
|
#{status,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="files != null">
|
||||||
|
#{files,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="description != null">
|
||||||
|
#{description,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="inspectionTime != null">
|
||||||
|
#{inspectionTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="creator != null">
|
||||||
|
#{creator,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="updator != null">
|
||||||
|
#{updator,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="remark != null">
|
||||||
|
#{remark,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="deleted != null">
|
||||||
|
#{deleted,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
#{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
#{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.cool.store.entity.HyInspection">
|
||||||
|
update hy_inspection
|
||||||
|
<set>
|
||||||
|
<if test="interviewPlanId != null">
|
||||||
|
interview_plan_id = #{interviewPlanId},
|
||||||
|
</if>
|
||||||
|
<if test="operatorUserId != null">
|
||||||
|
operator_user_id = #{operatorUserId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="type != null">
|
||||||
|
type = #{type,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="status != null">
|
||||||
|
status = #{status,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="files != null">
|
||||||
|
files = #{files,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="description != null">
|
||||||
|
description = #{description,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="inspectionTime != null">
|
||||||
|
inspection_time = #{inspectionTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="creator != null">
|
||||||
|
creator = #{creator,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="updator != null">
|
||||||
|
updator = #{updator,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="remark != null">
|
||||||
|
remark = #{remark,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="deleted != null">
|
||||||
|
deleted = #{deleted,jdbcType=BIT},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.cool.store.entity.HyInspection">
|
||||||
|
update hy_inspection
|
||||||
|
set interview_plan_id = #{interviewPlanId},
|
||||||
|
operator_user_id = #{operatorUserId,jdbcType=VARCHAR},
|
||||||
|
type = #{type,jdbcType=TINYINT},
|
||||||
|
status = #{status,jdbcType=TINYINT},
|
||||||
|
files = #{files,jdbcType=VARCHAR},
|
||||||
|
description = #{description,jdbcType=VARCHAR},
|
||||||
|
inspection_time = #{inspectionTime,jdbcType=TIMESTAMP},
|
||||||
|
creator = #{creator,jdbcType=VARCHAR},
|
||||||
|
updator = #{updator,jdbcType=VARCHAR},
|
||||||
|
remark = #{remark,jdbcType=VARCHAR},
|
||||||
|
deleted = #{deleted,jdbcType=BIT},
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
</mapper>
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<mapper namespace="com.cool.store.mapper.HyIntendDevelopementMappingMapper">
|
<mapper namespace="com.cool.store.mapper.HyIntendDevelopementMappingMapper">
|
||||||
<resultMap id="BaseResultMap" type="com.cool.store.entity.HyIntendDevelopementMappingDO">
|
<resultMap id="BaseResultMap" type="com.cool.store.entity.HyIntendDevelopementMappingDO">
|
||||||
<id column="id" jdbcType="BIGINT" property="id" />
|
<id column="id" jdbcType="BIGINT" property="id" />
|
||||||
<result column="mapping_id" jdbcType="VARCHAR" property="mappingId" />
|
<result column="mapping_id" jdbcType="BIGINT" property="mappingId" />
|
||||||
<result column="open_area_mapping_id" jdbcType="VARCHAR" property="openAreaMappingId" />
|
<result column="open_area_mapping_id" jdbcType="VARCHAR" property="openAreaMappingId" />
|
||||||
<result column="type" jdbcType="VARCHAR" property="type" />
|
<result column="type" jdbcType="VARCHAR" property="type" />
|
||||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||||
|
|||||||
@@ -0,0 +1,155 @@
|
|||||||
|
<?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="com.cool.store.mapper.HyInterviewInspectionLogMapper">
|
||||||
|
<resultMap id="BaseResultMap" type="com.cool.store.entity.HyInterviewInspectionLog">
|
||||||
|
<constructor>
|
||||||
|
<idArg column="id" javaType="java.lang.Long" jdbcType="BIGINT" />
|
||||||
|
<arg column="operator_user_id" javaType="java.lang.String" jdbcType="VARCHAR" />
|
||||||
|
<arg column="inspection_id" javaType="java.lang.Long" jdbcType="BIGINT" />
|
||||||
|
<arg column="operation_type" javaType="java.lang.Byte" jdbcType="TINYINT" />
|
||||||
|
<arg column="description" javaType="java.lang.String" jdbcType="VARCHAR" />
|
||||||
|
<arg column="files" javaType="java.lang.String" jdbcType="VARCHAR" />
|
||||||
|
<arg column="operation_time" javaType="java.time.LocalDateTime" jdbcType="TIMESTAMP" />
|
||||||
|
<arg column="remark" javaType="java.lang.String" jdbcType="VARCHAR" />
|
||||||
|
<arg column="create_time" javaType="java.lang.String" jdbcType="TIMESTAMP" />
|
||||||
|
<arg column="update_time" javaType="java.time.LocalDateTime" jdbcType="TIMESTAMP" />
|
||||||
|
</constructor>
|
||||||
|
</resultMap>
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id, operator_user_id, inspection_id, operation_type, description, files, operation_time,
|
||||||
|
remark, create_time, update_time
|
||||||
|
</sql>
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from hy_interview_inspection_log
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</select>
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||||
|
delete from hy_interview_inspection_log
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" parameterType="com.cool.store.entity.HyInterviewInspectionLog">
|
||||||
|
insert into hy_interview_inspection_log (id, operator_user_id, inspection_id,
|
||||||
|
operation_type, description, files,
|
||||||
|
operation_time, remark, create_time,
|
||||||
|
update_time)
|
||||||
|
values (#{id,jdbcType=BIGINT}, #{operatorUserId,jdbcType=VARCHAR}, #{inspectionId,jdbcType=BIGINT},
|
||||||
|
#{operationType,jdbcType=TINYINT}, #{description,jdbcType=VARCHAR}, #{files,jdbcType=VARCHAR},
|
||||||
|
#{operationTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
#{updateTime,jdbcType=TIMESTAMP})
|
||||||
|
</insert>
|
||||||
|
<insert id="insertSelective" parameterType="com.cool.store.entity.HyInterviewInspectionLog">
|
||||||
|
insert into hy_interview_inspection_log
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
id,
|
||||||
|
</if>
|
||||||
|
<if test="operatorUserId != null">
|
||||||
|
operator_user_id,
|
||||||
|
</if>
|
||||||
|
<if test="inspectionId != null">
|
||||||
|
inspection_id,
|
||||||
|
</if>
|
||||||
|
<if test="operationType != null">
|
||||||
|
operation_type,
|
||||||
|
</if>
|
||||||
|
<if test="description != null">
|
||||||
|
description,
|
||||||
|
</if>
|
||||||
|
<if test="files != null">
|
||||||
|
files,
|
||||||
|
</if>
|
||||||
|
<if test="operationTime != null">
|
||||||
|
operation_time,
|
||||||
|
</if>
|
||||||
|
<if test="remark != null">
|
||||||
|
remark,
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time,
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
#{id,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="operatorUserId != null">
|
||||||
|
#{operatorUserId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="inspectionId != null">
|
||||||
|
#{inspectionId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="operationType != null">
|
||||||
|
#{operationType,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="description != null">
|
||||||
|
#{description,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="files != null">
|
||||||
|
#{files,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="operationTime != null">
|
||||||
|
#{operationTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="remark != null">
|
||||||
|
#{remark,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
#{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
#{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.cool.store.entity.HyInterviewInspectionLog">
|
||||||
|
update hy_interview_inspection_log
|
||||||
|
<set>
|
||||||
|
<if test="operatorUserId != null">
|
||||||
|
operator_user_id = #{operatorUserId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="inspectionId != null">
|
||||||
|
inspection_id = #{inspectionId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="operationType != null">
|
||||||
|
operation_type = #{operationType,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="description != null">
|
||||||
|
description = #{description,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="files != null">
|
||||||
|
files = #{files,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="operationTime != null">
|
||||||
|
operation_time = #{operationTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="remark != null">
|
||||||
|
remark = #{remark,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.cool.store.entity.HyInterviewInspectionLog">
|
||||||
|
update hy_interview_inspection_log
|
||||||
|
set operator_user_id = #{operatorUserId,jdbcType=VARCHAR},
|
||||||
|
inspection_id = #{inspectionId,jdbcType=BIGINT},
|
||||||
|
operation_type = #{operationType,jdbcType=TINYINT},
|
||||||
|
description = #{description,jdbcType=VARCHAR},
|
||||||
|
files = #{files,jdbcType=VARCHAR},
|
||||||
|
operation_time = #{operationTime,jdbcType=TIMESTAMP},
|
||||||
|
remark = #{remark,jdbcType=VARCHAR},
|
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||||
|
where id = #{id,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package com.cool.store.dto.inspection.interview;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Fun Li
|
||||||
|
* @version 1.0
|
||||||
|
* @date 2023/7/19 17:47
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class InspectionRevocationDTO {
|
||||||
|
|
||||||
|
@ApiModelProperty("稽核信息Id")
|
||||||
|
private Long inspectionId;
|
||||||
|
|
||||||
|
@ApiModelProperty("操作说明")
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
@ApiModelProperty("多凭证文件链接集合")
|
||||||
|
private List<String> files;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
package com.cool.store.dto.inspection.interview;
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Fun Li
|
||||||
|
* @version 1.0
|
||||||
|
* @date 2023/7/19 17:05
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class InspectionSubmissionDTO {
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "稽核信息表id", required = true)
|
||||||
|
private Long inspectionId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "是否合格,0为不合格,1为合格", required = true)
|
||||||
|
private Integer whetherPass;
|
||||||
|
|
||||||
|
@ApiModelProperty("稽核说明,仅当不合格时为必传项")
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
@ApiModelProperty("稽核多凭证文件链接")
|
||||||
|
private List<String> files;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,166 @@
|
|||||||
|
package com.cool.store.entity;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
public class HyInspection {
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private Long interviewPlanId;
|
||||||
|
|
||||||
|
private String operatorUserId;
|
||||||
|
|
||||||
|
private Integer type;
|
||||||
|
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
private String files;
|
||||||
|
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
private String inspectionTime;
|
||||||
|
|
||||||
|
private String creator;
|
||||||
|
|
||||||
|
private String updator;
|
||||||
|
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
private Boolean deleted;
|
||||||
|
|
||||||
|
private String createTime;
|
||||||
|
|
||||||
|
private String updateTime;
|
||||||
|
|
||||||
|
public HyInspection(Long id, Long interviewPlanId, String operatorUserId, Integer type, Integer status, String files, String description, String inspectionTime, String creator, String updator, String remark, Boolean deleted, String createTime, String updateTime) {
|
||||||
|
this.id = id;
|
||||||
|
this.interviewPlanId = interviewPlanId;
|
||||||
|
this.operatorUserId = operatorUserId;
|
||||||
|
this.type = type;
|
||||||
|
this.status = status;
|
||||||
|
this.files = files;
|
||||||
|
this.description = description;
|
||||||
|
this.inspectionTime = inspectionTime;
|
||||||
|
this.creator = creator;
|
||||||
|
this.updator = updator;
|
||||||
|
this.remark = remark;
|
||||||
|
this.deleted = deleted;
|
||||||
|
this.createTime = createTime;
|
||||||
|
this.updateTime = updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HyInspection() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getInterviewPlanId() {
|
||||||
|
return interviewPlanId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInterviewPlanId(Long interviewPlanId) {
|
||||||
|
this.interviewPlanId = interviewPlanId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOperatorUserId() {
|
||||||
|
return operatorUserId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOperatorUserId(String operatorUserId) {
|
||||||
|
this.operatorUserId = operatorUserId == null ? null : operatorUserId.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setType(Integer type) {
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getStatus() {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatus(Integer status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFiles() {
|
||||||
|
return files;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFiles(String files) {
|
||||||
|
this.files = files == null ? null : files.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription() {
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDescription(String description) {
|
||||||
|
this.description = description == null ? null : description.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInspectionTime() {
|
||||||
|
return inspectionTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInspectionTime(String inspectionTime) {
|
||||||
|
this.inspectionTime = inspectionTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreator() {
|
||||||
|
return creator;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreator(String creator) {
|
||||||
|
this.creator = creator == null ? null : creator.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUpdator() {
|
||||||
|
return updator;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdator(String updator) {
|
||||||
|
this.updator = updator == null ? null : updator.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRemark() {
|
||||||
|
return remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRemark(String remark) {
|
||||||
|
this.remark = remark == null ? null : remark.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getDeleted() {
|
||||||
|
return deleted;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeleted(Boolean deleted) {
|
||||||
|
this.deleted = deleted;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreateTime() {
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(String createTime) {
|
||||||
|
this.createTime = createTime == null ? null : createTime.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUpdateTime() {
|
||||||
|
return updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateTime(String updateTime) {
|
||||||
|
this.updateTime = updateTime;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -22,7 +22,7 @@ public class HyIntendDevelopementMappingDO implements Serializable {
|
|||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@ApiModelProperty("hy_intend_developement_zone_info.id")
|
@ApiModelProperty("hy_intend_developement_zone_info.id")
|
||||||
private String mappingId;
|
private Long mappingId;
|
||||||
|
|
||||||
@ApiModelProperty("hy_open_area_info.id或者区域ID")
|
@ApiModelProperty("hy_open_area_info.id或者区域ID")
|
||||||
private String openAreaMappingId;
|
private String openAreaMappingId;
|
||||||
|
|||||||
@@ -0,0 +1,120 @@
|
|||||||
|
package com.cool.store.entity;
|
||||||
|
|
||||||
|
public class HyInterviewInspectionLog {
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private String operatorUserId;
|
||||||
|
|
||||||
|
private Long inspectionId;
|
||||||
|
|
||||||
|
private Integer operationType;
|
||||||
|
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
private String files;
|
||||||
|
|
||||||
|
private String operationTime;
|
||||||
|
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
private String createTime;
|
||||||
|
|
||||||
|
private String updateTime;
|
||||||
|
|
||||||
|
public HyInterviewInspectionLog(Long id, String operatorUserId, Long inspectionId, Integer operationType, String description, String files, String operationTime, String remark, String createTime, String updateTime) {
|
||||||
|
this.id = id;
|
||||||
|
this.operatorUserId = operatorUserId;
|
||||||
|
this.inspectionId = inspectionId;
|
||||||
|
this.operationType = operationType;
|
||||||
|
this.description = description;
|
||||||
|
this.files = files;
|
||||||
|
this.operationTime = operationTime;
|
||||||
|
this.remark = remark;
|
||||||
|
this.createTime = createTime;
|
||||||
|
this.updateTime = updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HyInterviewInspectionLog() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOperatorUserId() {
|
||||||
|
return operatorUserId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOperatorUserId(String operatorUserId) {
|
||||||
|
this.operatorUserId = operatorUserId == null ? null : operatorUserId.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getInspectionId() {
|
||||||
|
return inspectionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInspectionId(Long inspectionId) {
|
||||||
|
this.inspectionId = inspectionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getOperationType() {
|
||||||
|
return operationType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOperationType(Integer operationType) {
|
||||||
|
this.operationType = operationType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription() {
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDescription(String description) {
|
||||||
|
this.description = description == null ? null : description.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFiles() {
|
||||||
|
return files;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFiles(String files) {
|
||||||
|
this.files = files == null ? null : files.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOperationTime() {
|
||||||
|
return operationTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOperationTime(String operationTime) {
|
||||||
|
this.operationTime = operationTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRemark() {
|
||||||
|
return remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRemark(String remark) {
|
||||||
|
this.remark = remark == null ? null : remark.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreateTime() {
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(String createTime) {
|
||||||
|
this.createTime = createTime == null ? null : createTime.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUpdateTime() {
|
||||||
|
return updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateTime(String updateTime) {
|
||||||
|
this.updateTime = updateTime;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
package com.cool.store.service;
|
||||||
|
|
||||||
|
import com.cool.store.dto.inspection.interview.InspectionRevocationDTO;
|
||||||
|
import com.cool.store.dto.inspection.interview.InspectionSubmissionDTO;
|
||||||
|
import com.cool.store.exception.ApiException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Fun Li
|
||||||
|
* @version 1.0
|
||||||
|
* @date 2023/7/19 16:50
|
||||||
|
*/
|
||||||
|
public interface InterviewInspectionService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 提交稽核结果
|
||||||
|
*/
|
||||||
|
void submit(InspectionSubmissionDTO dto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 撤销稽核结果
|
||||||
|
*/
|
||||||
|
void revoke(InspectionRevocationDTO dto) throws ApiException;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -563,7 +563,7 @@ public class HyPartnerLineInfoServiceImpl implements HyPartnerLineInfoService {
|
|||||||
}
|
}
|
||||||
List<String> result = new ArrayList<>();
|
List<String> result = new ArrayList<>();
|
||||||
if (hyIntendDevelopementMappingDO!=null){
|
if (hyIntendDevelopementMappingDO!=null){
|
||||||
HyIntendDevZoneInfoDO hyIntendDevZoneInfoDO = hyIntendDevZoneInfoDAO.selectById(Long.valueOf(hyIntendDevelopementMappingDO.getMappingId()));
|
HyIntendDevZoneInfoDO hyIntendDevZoneInfoDO = hyIntendDevZoneInfoDAO.selectById(hyIntendDevelopementMappingDO.getMappingId());
|
||||||
if (hyIntendDevZoneInfoDO!=null && StringUtil.isNotEmpty(hyIntendDevZoneInfoDO.getAssociatedRegionId())) {
|
if (hyIntendDevZoneInfoDO!=null && StringUtil.isNotEmpty(hyIntendDevZoneInfoDO.getAssociatedRegionId())) {
|
||||||
List<String> list = JSONObject.parseArray(hyIntendDevZoneInfoDO.getAssociatedRegionId(), String.class);
|
List<String> list = JSONObject.parseArray(hyIntendDevZoneInfoDO.getAssociatedRegionId(), String.class);
|
||||||
result.addAll(list);
|
result.addAll(list);
|
||||||
@@ -650,7 +650,7 @@ public class HyPartnerLineInfoServiceImpl implements HyPartnerLineInfoService {
|
|||||||
HyIntendDevelopementMappingDO hyIntendDevelopementMappingDO = hyIntendDevMappingDAO.selectByOpenAreaMappingId(Long.valueOf(wantShopArea),type);
|
HyIntendDevelopementMappingDO hyIntendDevelopementMappingDO = hyIntendDevMappingDAO.selectByOpenAreaMappingId(Long.valueOf(wantShopArea),type);
|
||||||
List<String> result = new ArrayList<>();
|
List<String> result = new ArrayList<>();
|
||||||
if (hyIntendDevelopementMappingDO!=null){
|
if (hyIntendDevelopementMappingDO!=null){
|
||||||
HyIntendDevZoneInfoDO hyIntendDevZoneInfoDO = hyIntendDevZoneInfoDAO.selectById(Long.valueOf(hyIntendDevelopementMappingDO.getMappingId()));
|
HyIntendDevZoneInfoDO hyIntendDevZoneInfoDO = hyIntendDevZoneInfoDAO.selectById(hyIntendDevelopementMappingDO.getMappingId());
|
||||||
if (hyIntendDevZoneInfoDO!=null && StringUtil.isNotEmpty(hyIntendDevZoneInfoDO.getAssociatedRegionId())) {
|
if (hyIntendDevZoneInfoDO!=null && StringUtil.isNotEmpty(hyIntendDevZoneInfoDO.getAssociatedRegionId())) {
|
||||||
List<String> list = JSONObject.parseArray(hyIntendDevZoneInfoDO.getAssociatedRegionId(), String.class);
|
List<String> list = JSONObject.parseArray(hyIntendDevZoneInfoDO.getAssociatedRegionId(), String.class);
|
||||||
result.addAll(list);
|
result.addAll(list);
|
||||||
@@ -658,8 +658,7 @@ public class HyPartnerLineInfoServiceImpl implements HyPartnerLineInfoService {
|
|||||||
}
|
}
|
||||||
String userId = "";
|
String userId = "";
|
||||||
List<EnterpriseUserDO> userListByRegionIds = enterpriseUserDAO.getUserListByRegionIds(result);
|
List<EnterpriseUserDO> userListByRegionIds = enterpriseUserDAO.getUserListByRegionIds(result);
|
||||||
String zoneId = hyIntendDevelopementMappingDO.getMappingId();
|
HyIntendDevZoneInfoDO hyIntendDevZoneInfoDO = hyIntendDevZoneInfoDAO.selectById(hyIntendDevelopementMappingDO.getMappingId());
|
||||||
HyIntendDevZoneInfoDO hyIntendDevZoneInfoDO = hyIntendDevZoneInfoDAO.selectById(Long.valueOf(zoneId));
|
|
||||||
if (CollectionUtils.isNotEmpty(userListByRegionIds)){
|
if (CollectionUtils.isNotEmpty(userListByRegionIds)){
|
||||||
List<String> userIdList = userListByRegionIds.stream().map(EnterpriseUserDO::getUserId).collect(Collectors.toList());
|
List<String> userIdList = userListByRegionIds.stream().map(EnterpriseUserDO::getUserId).collect(Collectors.toList());
|
||||||
int i = userIdList.indexOf(hyIntendDevZoneInfoDO.getLastAllotUserId());
|
int i = userIdList.indexOf(hyIntendDevZoneInfoDO.getLastAllotUserId());
|
||||||
|
|||||||
@@ -0,0 +1,104 @@
|
|||||||
|
package com.cool.store.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.date.DateUtil;
|
||||||
|
import com.cool.store.context.CurrentUserHolder;
|
||||||
|
import com.cool.store.dto.inspection.interview.InspectionRevocationDTO;
|
||||||
|
import com.cool.store.dto.inspection.interview.InspectionSubmissionDTO;
|
||||||
|
import com.cool.store.entity.HyInspection;
|
||||||
|
import com.cool.store.entity.HyInterviewInspectionLog;
|
||||||
|
import com.cool.store.enums.ErrorCodeEnum;
|
||||||
|
import com.cool.store.enums.InspectionOperationTypeEnum;
|
||||||
|
import com.cool.store.enums.InspectionStatusEnum;
|
||||||
|
import com.cool.store.enums.InspectionTyeEnum;
|
||||||
|
import com.cool.store.exception.ApiException;
|
||||||
|
import com.cool.store.mapper.HyInspectionMapper;
|
||||||
|
import com.cool.store.mapper.HyInterviewInspectionLogMapper;
|
||||||
|
import com.cool.store.service.InterviewInspectionService;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Fun Li
|
||||||
|
* @version 1.0
|
||||||
|
* @date 2023/7/19 16:50
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class InterviewInspectionServiceImpl implements InterviewInspectionService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private HyInspectionMapper inspectionMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private HyInterviewInspectionLogMapper interviewInspectionLogMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void submit(InspectionSubmissionDTO dto) {
|
||||||
|
HyInspection hyInspection = new HyInspection();
|
||||||
|
//稽核结果和说明及文件等
|
||||||
|
hyInspection.setId(dto.getInspectionId());
|
||||||
|
if (dto.getWhetherPass().equals(0)) {
|
||||||
|
hyInspection.setStatus(InspectionStatusEnum.NOT_PASS.getCode());
|
||||||
|
} else if (dto.getWhetherPass().equals(1)) {
|
||||||
|
hyInspection.setStatus(InspectionStatusEnum.PASS.getCode());
|
||||||
|
}
|
||||||
|
hyInspection.setDescription(dto.getDescription());
|
||||||
|
String filesStr = spliceFiles(dto.getFiles());
|
||||||
|
hyInspection.setFiles(filesStr);
|
||||||
|
//稽核人,稽核时间
|
||||||
|
hyInspection.setOperatorUserId(CurrentUserHolder.getUserId());
|
||||||
|
hyInspection.setUpdator(CurrentUserHolder.getUserId());
|
||||||
|
hyInspection.setInspectionTime(DateUtil.now());
|
||||||
|
inspectionMapper.updateByPrimaryKeySelective(hyInspection);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void revoke(InspectionRevocationDTO dto) throws ApiException {
|
||||||
|
//2.1 查询之前的一次操作
|
||||||
|
HyInspection hyInspection = inspectionMapper.selectByPrimaryKey(dto.getInspectionId());
|
||||||
|
if (Objects.isNull(hyInspection)) {
|
||||||
|
throw new ApiException(ErrorCodeEnum.INSPECTION_INFO_NOT_EXIST);
|
||||||
|
}
|
||||||
|
//1. 撤销操作记录写入数据库面试稽核操作记录表
|
||||||
|
HyInterviewInspectionLog inspectionLog = new HyInterviewInspectionLog();
|
||||||
|
inspectionLog.setOperatorUserId(CurrentUserHolder.getUserId());
|
||||||
|
inspectionLog.setInspectionId(dto.getInspectionId());
|
||||||
|
inspectionLog.setOperationType(InspectionOperationTypeEnum.REVOCATION.getCode());
|
||||||
|
inspectionLog.setDescription(dto.getDescription());
|
||||||
|
String filesStr = spliceFiles(dto.getFiles());
|
||||||
|
inspectionLog.setOperationTime(DateUtil.now());
|
||||||
|
inspectionLog.setFiles(filesStr);
|
||||||
|
interviewInspectionLogMapper.updateByPrimaryKeySelective(inspectionLog);
|
||||||
|
//2. 撤销操作之前的一次操作写入面试稽核操作记录表
|
||||||
|
inspectionLog.setOperatorUserId(hyInspection.getOperatorUserId());
|
||||||
|
inspectionLog.setInspectionId(hyInspection.getId());
|
||||||
|
if (hyInspection.getStatus().equals(1)) {
|
||||||
|
inspectionLog.setOperationType(InspectionOperationTypeEnum.PASS.getCode());
|
||||||
|
} else if (hyInspection.getStatus().equals(2)) {
|
||||||
|
inspectionLog.setOperationType(InspectionOperationTypeEnum.NOT_PASS.getCode());
|
||||||
|
}
|
||||||
|
inspectionLog.setDescription(hyInspection.getDescription());
|
||||||
|
inspectionLog.setFiles(hyInspection.getFiles());
|
||||||
|
inspectionLog.setOperationTime(DateUtil.now());
|
||||||
|
//3. 撤销操作之前的一次操作稽核信息状态修改为未稽核,并且将数据状态(其他字段)也恢复到未稽核时的状态
|
||||||
|
hyInspection.setOperatorUserId(null);
|
||||||
|
hyInspection.setStatus(InspectionStatusEnum.NOT_INSPECT.getCode());
|
||||||
|
hyInspection.setFiles(null);
|
||||||
|
hyInspection.setDescription(null);
|
||||||
|
hyInspection.setInspectionTime(null);
|
||||||
|
hyInspection.setUpdator(null);
|
||||||
|
inspectionMapper.updateByPrimaryKey(hyInspection);
|
||||||
|
}
|
||||||
|
|
||||||
|
private String spliceFiles(List<String> files) {
|
||||||
|
if (files == null || files.size() == 0) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return files.stream().map(String::valueOf).collect(Collectors.joining(","));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -147,7 +147,7 @@ public class InterviewServiceImpl implements InterviewService {
|
|||||||
return vo;
|
return vo;
|
||||||
}
|
}
|
||||||
//查询开发主管
|
//查询开发主管
|
||||||
EnterpriseUserDO development = enterpriseUserService.getDevelopmentByZoneId(Long.parseLong(hyIntendDevelopementMappingDO.getMappingId()));
|
EnterpriseUserDO development = enterpriseUserService.getDevelopmentByZoneId(hyIntendDevelopementMappingDO.getMappingId());
|
||||||
vo.setDevelopmentDirector(development);
|
vo.setDevelopmentDirector(development);
|
||||||
}
|
}
|
||||||
return vo;
|
return vo;
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ public class ZoneServiceImpl implements ZoneService {
|
|||||||
HyIntendDevelopementMappingDO hyIntendDevelopementMappingDO = new HyIntendDevelopementMappingDO();
|
HyIntendDevelopementMappingDO hyIntendDevelopementMappingDO = new HyIntendDevelopementMappingDO();
|
||||||
hyIntendDevelopementMappingDO.setType(intentAreaSettingRequest.getType());
|
hyIntendDevelopementMappingDO.setType(intentAreaSettingRequest.getType());
|
||||||
hyIntendDevelopementMappingDO.setOpenAreaMappingId(String.valueOf(x));
|
hyIntendDevelopementMappingDO.setOpenAreaMappingId(String.valueOf(x));
|
||||||
hyIntendDevelopementMappingDO.setMappingId(String.valueOf(hyIntendDevZoneInfoDO.getId()));
|
hyIntendDevelopementMappingDO.setMappingId(hyIntendDevZoneInfoDO.getId());
|
||||||
list.add(hyIntendDevelopementMappingDO);
|
list.add(hyIntendDevelopementMappingDO);
|
||||||
});
|
});
|
||||||
hyIntendDevMappingDAO.batchInsert(list);
|
hyIntendDevMappingDAO.batchInsert(list);
|
||||||
@@ -100,7 +100,7 @@ public class ZoneServiceImpl implements ZoneService {
|
|||||||
HyIntendDevelopementMappingDO hyIntendDevelopementMappingDO = new HyIntendDevelopementMappingDO();
|
HyIntendDevelopementMappingDO hyIntendDevelopementMappingDO = new HyIntendDevelopementMappingDO();
|
||||||
hyIntendDevelopementMappingDO.setType(intentAreaSettingRequest.getType());
|
hyIntendDevelopementMappingDO.setType(intentAreaSettingRequest.getType());
|
||||||
hyIntendDevelopementMappingDO.setOpenAreaMappingId(String.valueOf(x));
|
hyIntendDevelopementMappingDO.setOpenAreaMappingId(String.valueOf(x));
|
||||||
hyIntendDevelopementMappingDO.setMappingId(String.valueOf(hyIntendDevZoneInfoDO.getId()));
|
hyIntendDevelopementMappingDO.setMappingId((hyIntendDevZoneInfoDO.getId()));
|
||||||
list.add(hyIntendDevelopementMappingDO);
|
list.add(hyIntendDevelopementMappingDO);
|
||||||
});
|
});
|
||||||
hyIntendDevMappingDAO.batchInsert(list);
|
hyIntendDevMappingDAO.batchInsert(list);
|
||||||
|
|||||||
@@ -0,0 +1,43 @@
|
|||||||
|
package com.cool.store.controller;
|
||||||
|
|
||||||
|
import com.cool.store.dto.inspection.interview.InspectionRevocationDTO;
|
||||||
|
import com.cool.store.dto.inspection.interview.InspectionSubmissionDTO;
|
||||||
|
import com.cool.store.exception.ApiException;
|
||||||
|
import com.cool.store.response.ResponseResult;
|
||||||
|
import com.cool.store.service.InterviewInspectionService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Fun Li
|
||||||
|
* @version 1.0
|
||||||
|
* @date 2023/7/19 16:48
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/inspection/interview")
|
||||||
|
@Api(tags = "面试稽核")
|
||||||
|
public class InterviewInspectionController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private InterviewInspectionService interviewInspectionService;
|
||||||
|
|
||||||
|
@PostMapping("/submission")
|
||||||
|
@ApiOperation("提交稽核结果")
|
||||||
|
public ResponseResult interviewInspectionSubmit(@RequestBody InspectionSubmissionDTO dto) {
|
||||||
|
interviewInspectionService.submit(dto);
|
||||||
|
return ResponseResult.success();
|
||||||
|
}
|
||||||
|
|
||||||
|
@PostMapping("/revocation")
|
||||||
|
@ApiOperation("撤销稽核结果")
|
||||||
|
public ResponseResult interviewInspectionRevoke(@RequestBody InspectionRevocationDTO dto) throws ApiException {
|
||||||
|
interviewInspectionService.revoke(dto);
|
||||||
|
return ResponseResult.success();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user