Merge branch 'dev/feat/partner1.1_20230727' into hxd/feat/interviewSelect
# Conflicts: # coolstore-partner-dao/src/main/java/com/cool/store/mapper/HyInterviewInspectionLogMapper.java # coolstore-partner-service/src/main/java/com/cool/store/service/impl/InterviewInspectionServiceImpl.java
This commit is contained in:
@@ -120,5 +120,10 @@ public class CommonConstants {
|
|||||||
public static final String ALLOCATION = "allocation";
|
public static final String ALLOCATION = "allocation";
|
||||||
|
|
||||||
public static final String TRANSFER = "transfer";
|
public static final String TRANSFER = "transfer";
|
||||||
|
|
||||||
|
// 短信模版-意向申请审批通过
|
||||||
|
public static final String SMS_TEMPLATE_CODE_INTENT = "SMS_461990823";
|
||||||
|
// 短信模版-资质审核通过
|
||||||
|
public static final String SMS_TEMPLATE_CODE_VERIFY = "SMS_461980876";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,7 +83,8 @@ 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)
|
INSPECTION_INFO_NOT_EXIST(600005, "稽核信息不存在!", null),
|
||||||
|
OPEN_AREA_NULL(600006,"归属地区不能为空",null),
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
package com.cool.store.enums;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: young.yu
|
||||||
|
* @Date: 2023-07-19 16:49
|
||||||
|
* @Description:
|
||||||
|
*/
|
||||||
|
public enum FeiShuNoticeMsgEnum {
|
||||||
|
|
||||||
|
//分配招商经理
|
||||||
|
ALLOCATION_INVESTMENT_MANAGER("分配招商经理", "有新的线索 于 {0} 分配给您,线索信息{1}手机号{2},请及时跟进"),
|
||||||
|
//转让招商经理
|
||||||
|
TRANS_INVESTMENT_MANAGER("转让招商经理", "有新的线索 于 {0} 转让给您,线索信息{1}手机号{2},请及时跟进"),
|
||||||
|
//意向申请通知
|
||||||
|
INTENTION_APPLY("加盟意向申请", "您有一个【加盟意向申请】待审核,申请人{0}手机号{1}于 {2} 提交加盟意向申请,请及时处理");
|
||||||
|
|
||||||
|
private String title;
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
FeiShuNoticeMsgEnum(String title, String content) {
|
||||||
|
this.title = title;
|
||||||
|
this.content = content;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTitle() {
|
||||||
|
return title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTitle(String title) {
|
||||||
|
this.title = title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getContent() {
|
||||||
|
return content;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setContent(String content) {
|
||||||
|
this.content = content;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -116,4 +116,17 @@ public class HyOpenAreaInfoDAO {
|
|||||||
public List<HyOpenAreaInfoDO> getAllOpenArea(){
|
public List<HyOpenAreaInfoDO> getAllOpenArea(){
|
||||||
return hyOpenAreaInfoMapper.getAllOpenArea();
|
return hyOpenAreaInfoMapper.getAllOpenArea();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 过滤叶子节点
|
||||||
|
* @param openAreaIds
|
||||||
|
* @return 叶子节点id
|
||||||
|
*/
|
||||||
|
public List<Long> filterLeafNode(List<Long> openAreaIds){
|
||||||
|
if(CollectionUtils.isEmpty(openAreaIds)){
|
||||||
|
return Lists.newArrayList();
|
||||||
|
}
|
||||||
|
return hyOpenAreaInfoMapper.filterLeafNode(openAreaIds);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package com.cool.store.mapper;
|
package com.cool.store.mapper;
|
||||||
|
|
||||||
import com.cool.store.entity.HyInspection;
|
import com.cool.store.entity.HyInspectionDO;
|
||||||
import com.cool.store.request.GetInterviewInspectionListReq;
|
import com.cool.store.request.GetInterviewInspectionListReq;
|
||||||
import com.cool.store.request.GetInterviewInspectionResultListReq;
|
import com.cool.store.request.GetInterviewInspectionResultListReq;
|
||||||
import com.cool.store.vo.interview.InterviewInspectionHistoryInfo;
|
import com.cool.store.vo.interview.InterviewInspectionHistoryInfo;
|
||||||
@@ -16,15 +16,15 @@ import java.util.List;
|
|||||||
public interface HyInspectionMapper {
|
public interface HyInspectionMapper {
|
||||||
int deleteByPrimaryKey(Long id);
|
int deleteByPrimaryKey(Long id);
|
||||||
|
|
||||||
int insert(HyInspection record);
|
int insert(HyInspectionDO record);
|
||||||
|
|
||||||
int insertSelective(HyInspection record);
|
int insertSelective(HyInspectionDO record);
|
||||||
|
|
||||||
HyInspection selectByPrimaryKey(Long id);
|
HyInspectionDO selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
int updateByPrimaryKeySelective(HyInspection record);
|
int updateByPrimaryKeySelective(HyInspectionDO record);
|
||||||
|
|
||||||
int updateByPrimaryKey(HyInspection record);
|
int updateByPrimaryKey(HyInspectionDO record);
|
||||||
|
|
||||||
List<InterviewInspectionVO> interviewInspectionGetList(GetInterviewInspectionListReq request);
|
List<InterviewInspectionVO> interviewInspectionGetList(GetInterviewInspectionListReq request);
|
||||||
|
|
||||||
|
|||||||
@@ -57,5 +57,5 @@ public interface HyInspectionSettingMapper {
|
|||||||
* @param inspectionUserId
|
* @param inspectionUserId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<HyInspectionSettingDO> getHyInspectionSettingByUserId(String inspectionUserId, Long excludeInspectionSettingId);
|
List<HyInspectionSettingDO> getHyInspectionSettingByUserId(@Param("inspectionUserId") String inspectionUserId, @Param("excludeInspectionSettingId") Long excludeInspectionSettingId);
|
||||||
}
|
}
|
||||||
@@ -2,6 +2,7 @@ package com.cool.store.mapper;
|
|||||||
|
|
||||||
import com.cool.store.entity.HyInterviewInspectionLog;
|
import com.cool.store.entity.HyInterviewInspectionLog;
|
||||||
import com.cool.store.vo.interview.InterviewInspectionHistoryInfo;
|
import com.cool.store.vo.interview.InterviewInspectionHistoryInfo;
|
||||||
|
import com.cool.store.entity.HyInterviewInspectionLogDO;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
@@ -11,15 +12,16 @@ import java.util.List;
|
|||||||
public interface HyInterviewInspectionLogMapper {
|
public interface HyInterviewInspectionLogMapper {
|
||||||
int deleteByPrimaryKey(Long id);
|
int deleteByPrimaryKey(Long id);
|
||||||
|
|
||||||
int insert(HyInterviewInspectionLog record);
|
int insert(HyInterviewInspectionLogDO record);
|
||||||
|
|
||||||
int insertSelective(HyInterviewInspectionLog record);
|
int insertSelective(HyInterviewInspectionLogDO record);
|
||||||
|
|
||||||
HyInterviewInspectionLog selectByPrimaryKey(Long id);
|
HyInterviewInspectionLogDO selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
int updateByPrimaryKeySelective(HyInterviewInspectionLog record);
|
int updateByPrimaryKeySelective(HyInterviewInspectionLogDO record);
|
||||||
|
|
||||||
int updateByPrimaryKey(HyInterviewInspectionLog record);
|
int updateByPrimaryKey(HyInterviewInspectionLog record);
|
||||||
|
|
||||||
List<InterviewInspectionHistoryInfo> interviewInspectionGetHistoryDetail(@Param("inspectionId") Long id);
|
List<InterviewInspectionHistoryInfo> interviewInspectionGetHistoryDetail(@Param("inspectionId") Long id);
|
||||||
|
int updateByPrimaryKey(HyInterviewInspectionLogDO record);
|
||||||
}
|
}
|
||||||
@@ -111,5 +111,11 @@ public interface HyOpenAreaInfoMapper {
|
|||||||
*/
|
*/
|
||||||
List<HyOpenAreaInfoDO> getAllOpenArea();
|
List<HyOpenAreaInfoDO> getAllOpenArea();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 过滤叶子节点
|
||||||
|
* @param openAreaIds
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<Long> filterLeafNode(@Param("openAreaIds") List<Long> openAreaIds);
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1,22 +1,22 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!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">
|
<mapper namespace="com.cool.store.mapper.HyInspectionMapper">
|
||||||
<resultMap id="BaseResultMap" type="com.cool.store.entity.HyInspection">
|
<resultMap id="BaseResultMap" type="com.cool.store.entity.HyInspectionDO">
|
||||||
<constructor>
|
<constructor>
|
||||||
<idArg column="id" javaType="java.lang.Long" jdbcType="BIGINT" />
|
<idArg column="id" javaType="java.lang.Long" />
|
||||||
<arg column="interview_plan_id" javaType="java.lang.Long" jdbcType="BIGINT" />
|
<arg column="interview_plan_id" javaType="java.lang.Long" />
|
||||||
<arg column="operator_user_id" javaType="java.lang.String" jdbcType="VARCHAR" />
|
<arg column="operator_user_id" javaType="java.lang.String" />
|
||||||
<arg column="type" javaType="java.lang.Integer" jdbcType="TINYINT" />
|
<arg column="type" javaType="java.lang.Integer" />
|
||||||
<arg column="status" javaType="java.lang.Integer" jdbcType="TINYINT" />
|
<arg column="status" javaType="java.lang.Integer" />
|
||||||
<arg column="files" javaType="java.lang.String" jdbcType="VARCHAR" />
|
<arg column="files" javaType="java.lang.String" />
|
||||||
<arg column="description" javaType="java.lang.String" jdbcType="VARCHAR" />
|
<arg column="description" javaType="java.lang.String" />
|
||||||
<arg column="inspection_time" javaType="java.lang.String" jdbcType="TIMESTAMP" />
|
<arg column="inspection_time" javaType="java.lang.String" />
|
||||||
<arg column="creator" javaType="java.lang.String" jdbcType="VARCHAR" />
|
<arg column="creator" javaType="java.lang.String" />
|
||||||
<arg column="updator" javaType="java.lang.String" jdbcType="VARCHAR" />
|
<arg column="updator" javaType="java.lang.String" />
|
||||||
<arg column="remark" javaType="java.lang.String" jdbcType="VARCHAR" />
|
<arg column="remark" javaType="java.lang.String" />
|
||||||
<arg column="deleted" javaType="java.lang.Boolean" jdbcType="BIT" />
|
<arg column="deleted" javaType="java.lang.Boolean" />
|
||||||
<arg column="create_time" javaType="java.lang.String" jdbcType="TIMESTAMP" />
|
<arg column="create_time" javaType="java.lang.String" />
|
||||||
<arg column="update_time" javaType="java.lang.String" jdbcType="TIMESTAMP" />
|
<arg column="update_time" javaType="java.lang.String" />
|
||||||
</constructor>
|
</constructor>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
@@ -148,19 +148,19 @@
|
|||||||
delete from hy_inspection
|
delete from hy_inspection
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</delete>
|
</delete>
|
||||||
<insert id="insert" parameterType="com.cool.store.entity.HyInspection">
|
<insert id="insert" parameterType="com.cool.store.entity.HyInspectionDO">
|
||||||
insert into hy_inspection (id, interview_plan_id, operator_user_id,
|
insert into hy_inspection (id, interview_plan_id, operator_user_id,
|
||||||
type, status, files,
|
type, status, files,
|
||||||
description, inspection_time, creator,
|
description, inspection_time, creator,
|
||||||
updator, remark, deleted,
|
updator, remark, deleted,
|
||||||
create_time, update_time)
|
create_time, update_time)
|
||||||
values (#{id}, #{interviewPlanId}, #{operatorUserId,jdbcType=VARCHAR},
|
values (#{id}, #{interviewPlanId}, #{operatorUserId},
|
||||||
#{type,jdbcType=TINYINT}, #{status,jdbcType=TINYINT}, #{files,jdbcType=VARCHAR},
|
#{type}, #{status}, #{files},
|
||||||
#{description,jdbcType=VARCHAR}, #{inspectionTime,jdbcType=TIMESTAMP}, #{creator,jdbcType=VARCHAR},
|
#{description}, #{inspectionTime}, #{creator},
|
||||||
#{updator,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{deleted,jdbcType=BIT},
|
#{updator}, #{remark}, #{deleted},
|
||||||
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
|
#{createTime}, #{updateTime})
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertSelective" parameterType="com.cool.store.entity.HyInspection">
|
<insert id="insertSelective" parameterType="com.cool.store.entity.HyInspectionDO">
|
||||||
insert into hy_inspection
|
insert into hy_inspection
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">
|
<if test="id != null">
|
||||||
@@ -214,103 +214,103 @@
|
|||||||
#{interviewPlanId},
|
#{interviewPlanId},
|
||||||
</if>
|
</if>
|
||||||
<if test="operatorUserId != null">
|
<if test="operatorUserId != null">
|
||||||
#{operatorUserId,jdbcType=VARCHAR},
|
#{operatorUserId},
|
||||||
</if>
|
</if>
|
||||||
<if test="type != null">
|
<if test="type != null">
|
||||||
#{type,jdbcType=TINYINT},
|
#{type},
|
||||||
</if>
|
</if>
|
||||||
<if test="status != null">
|
<if test="status != null">
|
||||||
#{status,jdbcType=TINYINT},
|
#{status},
|
||||||
</if>
|
</if>
|
||||||
<if test="files != null">
|
<if test="files != null">
|
||||||
#{files,jdbcType=VARCHAR},
|
#{files},
|
||||||
</if>
|
</if>
|
||||||
<if test="description != null">
|
<if test="description != null">
|
||||||
#{description,jdbcType=VARCHAR},
|
#{description},
|
||||||
</if>
|
</if>
|
||||||
<if test="inspectionTime != null">
|
<if test="inspectionTime != null">
|
||||||
#{inspectionTime,jdbcType=TIMESTAMP},
|
#{inspectionTime},
|
||||||
</if>
|
</if>
|
||||||
<if test="creator != null">
|
<if test="creator != null">
|
||||||
#{creator,jdbcType=VARCHAR},
|
#{creator},
|
||||||
</if>
|
</if>
|
||||||
<if test="updator != null">
|
<if test="updator != null">
|
||||||
#{updator,jdbcType=VARCHAR},
|
#{updator},
|
||||||
</if>
|
</if>
|
||||||
<if test="remark != null">
|
<if test="remark != null">
|
||||||
#{remark,jdbcType=VARCHAR},
|
#{remark},
|
||||||
</if>
|
</if>
|
||||||
<if test="deleted != null">
|
<if test="deleted != null">
|
||||||
#{deleted,jdbcType=BIT},
|
#{deleted},
|
||||||
</if>
|
</if>
|
||||||
<if test="createTime != null">
|
<if test="createTime != null">
|
||||||
#{createTime,jdbcType=TIMESTAMP},
|
#{createTime},
|
||||||
</if>
|
</if>
|
||||||
<if test="updateTime != null">
|
<if test="updateTime != null">
|
||||||
#{updateTime,jdbcType=TIMESTAMP},
|
#{updateTime},
|
||||||
</if>
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
<update id="updateByPrimaryKeySelective" parameterType="com.cool.store.entity.HyInspection">
|
<update id="updateByPrimaryKeySelective" parameterType="com.cool.store.entity.HyInspectionDO">
|
||||||
update hy_inspection
|
update hy_inspection
|
||||||
<set>
|
<set>
|
||||||
<if test="interviewPlanId != null">
|
<if test="interviewPlanId != null">
|
||||||
interview_plan_id = #{interviewPlanId},
|
interview_plan_id = #{interviewPlanId},
|
||||||
</if>
|
</if>
|
||||||
<if test="operatorUserId != null">
|
<if test="operatorUserId != null">
|
||||||
operator_user_id = #{operatorUserId,jdbcType=VARCHAR},
|
operator_user_id = #{operatorUserId},
|
||||||
</if>
|
</if>
|
||||||
<if test="type != null">
|
<if test="type != null">
|
||||||
type = #{type,jdbcType=TINYINT},
|
type = #{type},
|
||||||
</if>
|
</if>
|
||||||
<if test="status != null">
|
<if test="status != null">
|
||||||
status = #{status,jdbcType=TINYINT},
|
status = #{status},
|
||||||
</if>
|
</if>
|
||||||
<if test="files != null">
|
<if test="files != null">
|
||||||
files = #{files,jdbcType=VARCHAR},
|
files = #{files},
|
||||||
</if>
|
</if>
|
||||||
<if test="description != null">
|
<if test="description != null">
|
||||||
description = #{description,jdbcType=VARCHAR},
|
description = #{description},
|
||||||
</if>
|
</if>
|
||||||
<if test="inspectionTime != null">
|
<if test="inspectionTime != null">
|
||||||
inspection_time = #{inspectionTime,jdbcType=TIMESTAMP},
|
inspection_time = #{inspectionTime},
|
||||||
</if>
|
</if>
|
||||||
<if test="creator != null">
|
<if test="creator != null">
|
||||||
creator = #{creator,jdbcType=VARCHAR},
|
creator = #{creator},
|
||||||
</if>
|
</if>
|
||||||
<if test="updator != null">
|
<if test="updator != null">
|
||||||
updator = #{updator,jdbcType=VARCHAR},
|
updator = #{updator},
|
||||||
</if>
|
</if>
|
||||||
<if test="remark != null">
|
<if test="remark != null">
|
||||||
remark = #{remark,jdbcType=VARCHAR},
|
remark = #{remark},
|
||||||
</if>
|
</if>
|
||||||
<if test="deleted != null">
|
<if test="deleted != null">
|
||||||
deleted = #{deleted,jdbcType=BIT},
|
deleted = #{deleted},
|
||||||
</if>
|
</if>
|
||||||
<if test="createTime != null">
|
<if test="createTime != null">
|
||||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
create_time = #{createTime},
|
||||||
</if>
|
</if>
|
||||||
<if test="updateTime != null">
|
<if test="updateTime != null">
|
||||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
update_time = #{updateTime},
|
||||||
</if>
|
</if>
|
||||||
</set>
|
</set>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
<update id="updateByPrimaryKey" parameterType="com.cool.store.entity.HyInspection">
|
<update id="updateByPrimaryKey" parameterType="com.cool.store.entity.HyInspectionDO">
|
||||||
update hy_inspection
|
update hy_inspection
|
||||||
set interview_plan_id = #{interviewPlanId},
|
set interview_plan_id = #{interviewPlanId},
|
||||||
operator_user_id = #{operatorUserId,jdbcType=VARCHAR},
|
operator_user_id = #{operatorUserId},
|
||||||
type = #{type,jdbcType=TINYINT},
|
type = #{type},
|
||||||
status = #{status,jdbcType=TINYINT},
|
status = #{status},
|
||||||
files = #{files,jdbcType=VARCHAR},
|
files = #{files},
|
||||||
description = #{description,jdbcType=VARCHAR},
|
description = #{description},
|
||||||
inspection_time = #{inspectionTime,jdbcType=TIMESTAMP},
|
inspection_time = #{inspectionTime},
|
||||||
creator = #{creator,jdbcType=VARCHAR},
|
creator = #{creator},
|
||||||
updator = #{updator,jdbcType=VARCHAR},
|
updator = #{updator},
|
||||||
remark = #{remark,jdbcType=VARCHAR},
|
remark = #{remark},
|
||||||
deleted = #{deleted,jdbcType=BIT},
|
deleted = #{deleted},
|
||||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
create_time = #{createTime},
|
||||||
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
update_time = #{updateTime}
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
from
|
from
|
||||||
hy_inspection_setting
|
hy_inspection_setting
|
||||||
where
|
where
|
||||||
deleted = '0' and inspection_user_id = #{excludeInspectionSettingId}
|
deleted = '0' and inspection_user_id = #{inspectionUserId}
|
||||||
<if test="excludeInspectionSettingId != null">
|
<if test="excludeInspectionSettingId != null">
|
||||||
and id != #{excludeInspectionSettingId}
|
and id != #{excludeInspectionSettingId}
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
@@ -115,7 +115,7 @@
|
|||||||
where
|
where
|
||||||
open_area_mapping_id in <foreach collection="openAreaMappingIds" separator="," open="(" close=")" item="openAreaMappingId" >#{openAreaMappingId}</foreach>
|
open_area_mapping_id in <foreach collection="openAreaMappingIds" separator="," open="(" close=")" item="openAreaMappingId" >#{openAreaMappingId}</foreach>
|
||||||
<if test="excludeInspectionSettingId != null">
|
<if test="excludeInspectionSettingId != null">
|
||||||
and inspection_setting_id != #{inspectionSettingId}
|
and inspection_setting_id != #{excludeInspectionSettingId}
|
||||||
</if>
|
</if>
|
||||||
</update>
|
</update>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -1,18 +1,18 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!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">
|
<mapper namespace="com.cool.store.mapper.HyInterviewInspectionLogMapper">
|
||||||
<resultMap id="BaseResultMap" type="com.cool.store.entity.HyInterviewInspectionLog">
|
<resultMap id="BaseResultMap" type="com.cool.store.entity.HyInterviewInspectionLogDO">
|
||||||
<constructor>
|
<constructor>
|
||||||
<idArg column="id" javaType="java.lang.Long" jdbcType="BIGINT" />
|
<idArg column="id" javaType="java.lang.Long" />
|
||||||
<arg column="operator_user_id" javaType="java.lang.String" jdbcType="VARCHAR" />
|
<arg column="operator_user_id" javaType="java.lang.String" />
|
||||||
<arg column="inspection_id" javaType="java.lang.Long" jdbcType="BIGINT" />
|
<arg column="inspection_id" javaType="java.lang.Long" />
|
||||||
<arg column="operation_type" javaType="java.lang.Byte" jdbcType="TINYINT" />
|
<arg column="operation_type" javaType="java.lang.Byte" />
|
||||||
<arg column="description" javaType="java.lang.String" jdbcType="VARCHAR" />
|
<arg column="description" javaType="java.lang.String" />
|
||||||
<arg column="files" javaType="java.lang.String" jdbcType="VARCHAR" />
|
<arg column="files" javaType="java.lang.String" />
|
||||||
<arg column="operation_time" javaType="java.lang.String" jdbcType="TIMESTAMP" />
|
<arg column="operation_time" javaType="java.lang.String" />
|
||||||
<arg column="remark" javaType="java.lang.String" jdbcType="VARCHAR" />
|
<arg column="remark" javaType="java.lang.String" />
|
||||||
<arg column="create_time" javaType="java.lang.String" jdbcType="TIMESTAMP" />
|
<arg column="create_time" javaType="java.lang.String" />
|
||||||
<arg column="update_time" javaType="java.lang.String" jdbcType="TIMESTAMP" />
|
<arg column="update_time" javaType="java.lang.String" />
|
||||||
</constructor>
|
</constructor>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
select
|
select
|
||||||
<include refid="Base_Column_List" />
|
<include refid="Base_Column_List" />
|
||||||
from hy_interview_inspection_log
|
from hy_interview_inspection_log
|
||||||
where id = #{id,jdbcType=BIGINT}
|
where id = #{id}
|
||||||
</select>
|
</select>
|
||||||
<select id="interviewInspectionGetHistoryDetail" resultType="com.cool.store.vo.interview.InterviewInspectionHistoryInfo">
|
<select id="interviewInspectionGetHistoryDetail" resultType="com.cool.store.vo.interview.InterviewInspectionHistoryInfo">
|
||||||
SELECT a.id, b.`name` as auditorName, b.mobile as auditorMobile,operation_time as inspectionTime, operation_type as operationType ,description,files as filesStr
|
SELECT a.id, b.`name` as auditorName, b.mobile as auditorMobile,operation_time as inspectionTime, operation_type as operationType ,description,files as filesStr
|
||||||
@@ -31,19 +31,19 @@
|
|||||||
</select>
|
</select>
|
||||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||||
delete from hy_interview_inspection_log
|
delete from hy_interview_inspection_log
|
||||||
where id = #{id,jdbcType=BIGINT}
|
where id = #{id}
|
||||||
</delete>
|
</delete>
|
||||||
<insert id="insert" parameterType="com.cool.store.entity.HyInterviewInspectionLog">
|
<insert id="insert" parameterType="com.cool.store.entity.HyInterviewInspectionLogDO">
|
||||||
insert into hy_interview_inspection_log (id, operator_user_id, inspection_id,
|
insert into hy_interview_inspection_log (id, operator_user_id, inspection_id,
|
||||||
operation_type, description, files,
|
operation_type, description, files,
|
||||||
operation_time, remark, create_time,
|
operation_time, remark, create_time,
|
||||||
update_time)
|
update_time)
|
||||||
values (#{id,jdbcType=BIGINT}, #{operatorUserId,jdbcType=VARCHAR}, #{inspectionId,jdbcType=BIGINT},
|
values (#{id}, #{operatorUserId}, #{inspectionId},
|
||||||
#{operationType,jdbcType=TINYINT}, #{description,jdbcType=VARCHAR}, #{files,jdbcType=VARCHAR},
|
#{operationType}, #{description}, #{files},
|
||||||
#{operationTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
#{operationTime}, #{remark}, #{createTime},
|
||||||
#{updateTime,jdbcType=TIMESTAMP})
|
#{updateTime})
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertSelective" parameterType="com.cool.store.entity.HyInterviewInspectionLog">
|
<insert id="insertSelective" parameterType="com.cool.store.entity.HyInterviewInspectionLogDO">
|
||||||
insert into hy_interview_inspection_log
|
insert into hy_interview_inspection_log
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">
|
<if test="id != null">
|
||||||
@@ -79,81 +79,81 @@
|
|||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">
|
<if test="id != null">
|
||||||
#{id,jdbcType=BIGINT},
|
#{id},
|
||||||
</if>
|
</if>
|
||||||
<if test="operatorUserId != null">
|
<if test="operatorUserId != null">
|
||||||
#{operatorUserId,jdbcType=VARCHAR},
|
#{operatorUserId},
|
||||||
</if>
|
</if>
|
||||||
<if test="inspectionId != null">
|
<if test="inspectionId != null">
|
||||||
#{inspectionId,jdbcType=BIGINT},
|
#{inspectionId},
|
||||||
</if>
|
</if>
|
||||||
<if test="operationType != null">
|
<if test="operationType != null">
|
||||||
#{operationType,jdbcType=TINYINT},
|
#{operationType},
|
||||||
</if>
|
</if>
|
||||||
<if test="description != null">
|
<if test="description != null">
|
||||||
#{description,jdbcType=VARCHAR},
|
#{description},
|
||||||
</if>
|
</if>
|
||||||
<if test="files != null">
|
<if test="files != null">
|
||||||
#{files,jdbcType=VARCHAR},
|
#{files},
|
||||||
</if>
|
</if>
|
||||||
<if test="operationTime != null">
|
<if test="operationTime != null">
|
||||||
#{operationTime,jdbcType=TIMESTAMP},
|
#{operationTime},
|
||||||
</if>
|
</if>
|
||||||
<if test="remark != null">
|
<if test="remark != null">
|
||||||
#{remark,jdbcType=VARCHAR},
|
#{remark},
|
||||||
</if>
|
</if>
|
||||||
<if test="createTime != null">
|
<if test="createTime != null">
|
||||||
#{createTime,jdbcType=TIMESTAMP},
|
#{createTime},
|
||||||
</if>
|
</if>
|
||||||
<if test="updateTime != null">
|
<if test="updateTime != null">
|
||||||
#{updateTime,jdbcType=TIMESTAMP},
|
#{updateTime},
|
||||||
</if>
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
<update id="updateByPrimaryKeySelective" parameterType="com.cool.store.entity.HyInterviewInspectionLog">
|
<update id="updateByPrimaryKeySelective" parameterType="com.cool.store.entity.HyInterviewInspectionLogDO">
|
||||||
update hy_interview_inspection_log
|
update hy_interview_inspection_log
|
||||||
<set>
|
<set>
|
||||||
<if test="operatorUserId != null">
|
<if test="operatorUserId != null">
|
||||||
operator_user_id = #{operatorUserId,jdbcType=VARCHAR},
|
operator_user_id = #{operatorUserId},
|
||||||
</if>
|
</if>
|
||||||
<if test="inspectionId != null">
|
<if test="inspectionId != null">
|
||||||
inspection_id = #{inspectionId,jdbcType=BIGINT},
|
inspection_id = #{inspectionId},
|
||||||
</if>
|
</if>
|
||||||
<if test="operationType != null">
|
<if test="operationType != null">
|
||||||
operation_type = #{operationType,jdbcType=TINYINT},
|
operation_type = #{operationType},
|
||||||
</if>
|
</if>
|
||||||
<if test="description != null">
|
<if test="description != null">
|
||||||
description = #{description,jdbcType=VARCHAR},
|
description = #{description},
|
||||||
</if>
|
</if>
|
||||||
<if test="files != null">
|
<if test="files != null">
|
||||||
files = #{files,jdbcType=VARCHAR},
|
files = #{files},
|
||||||
</if>
|
</if>
|
||||||
<if test="operationTime != null">
|
<if test="operationTime != null">
|
||||||
operation_time = #{operationTime,jdbcType=TIMESTAMP},
|
operation_time = #{operationTime},
|
||||||
</if>
|
</if>
|
||||||
<if test="remark != null">
|
<if test="remark != null">
|
||||||
remark = #{remark,jdbcType=VARCHAR},
|
remark = #{remark},
|
||||||
</if>
|
</if>
|
||||||
<if test="createTime != null">
|
<if test="createTime != null">
|
||||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
create_time = #{createTime},
|
||||||
</if>
|
</if>
|
||||||
<if test="updateTime != null">
|
<if test="updateTime != null">
|
||||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
update_time = #{updateTime},
|
||||||
</if>
|
</if>
|
||||||
</set>
|
</set>
|
||||||
where id = #{id,jdbcType=BIGINT}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
<update id="updateByPrimaryKey" parameterType="com.cool.store.entity.HyInterviewInspectionLog">
|
<update id="updateByPrimaryKey" parameterType="com.cool.store.entity.HyInterviewInspectionLogDO">
|
||||||
update hy_interview_inspection_log
|
update hy_interview_inspection_log
|
||||||
set operator_user_id = #{operatorUserId,jdbcType=VARCHAR},
|
set operator_user_id = #{operatorUserId},
|
||||||
inspection_id = #{inspectionId,jdbcType=BIGINT},
|
inspection_id = #{inspectionId},
|
||||||
operation_type = #{operationType,jdbcType=TINYINT},
|
operation_type = #{operationType},
|
||||||
description = #{description,jdbcType=VARCHAR},
|
description = #{description},
|
||||||
files = #{files,jdbcType=VARCHAR},
|
files = #{files},
|
||||||
operation_time = #{operationTime,jdbcType=TIMESTAMP},
|
operation_time = #{operationTime},
|
||||||
remark = #{remark,jdbcType=VARCHAR},
|
remark = #{remark},
|
||||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
create_time = #{createTime},
|
||||||
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
update_time = #{updateTime}
|
||||||
where id = #{id,jdbcType=BIGINT}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -285,4 +285,13 @@
|
|||||||
select <include refid="Base_Column_List"/> from hy_open_area_info
|
select <include refid="Base_Column_List"/> from hy_open_area_info
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="filterLeafNode" resultType="long">
|
||||||
|
select
|
||||||
|
id
|
||||||
|
from
|
||||||
|
hy_open_area_info
|
||||||
|
where
|
||||||
|
deleted = '0' and province_city_flag = '0' and id in <foreach collection="openAreaIds" item="openAreaId" separator="," open="(" close=")">#{openAreaId}</foreach>
|
||||||
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -1,164 +0,0 @@
|
|||||||
package com.cool.store.entity;
|
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
package com.cool.store.entity;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class HyInspectionDO {
|
||||||
|
|
||||||
|
@ApiModelProperty("id")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@ApiModelProperty("面试计划Id")
|
||||||
|
private Long interviewPlanId;
|
||||||
|
|
||||||
|
@ApiModelProperty("稽核人user_id")
|
||||||
|
private String operatorUserId;
|
||||||
|
|
||||||
|
@ApiModelProperty("稽核类型,0面试稽核,后续可能有其他稽核")
|
||||||
|
private Integer type;
|
||||||
|
|
||||||
|
@ApiModelProperty("稽核状态(0为未稽核,1为合格,2为不合格)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
@ApiModelProperty("多个凭证文件(以英文逗号分隔)")
|
||||||
|
private String files;
|
||||||
|
|
||||||
|
@ApiModelProperty("稽核说明")
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
@ApiModelProperty("稽核时间")
|
||||||
|
private String inspectionTime;
|
||||||
|
|
||||||
|
@ApiModelProperty("enterprise_user.user_id,创建人")
|
||||||
|
private String creator;
|
||||||
|
|
||||||
|
@ApiModelProperty("enterprise_user.user_id,修改人")
|
||||||
|
private String updator;
|
||||||
|
|
||||||
|
@ApiModelProperty("备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
@ApiModelProperty("是否删除(0表示未删除,1表示删除)")
|
||||||
|
private Boolean deleted;
|
||||||
|
|
||||||
|
@ApiModelProperty("创建时间")
|
||||||
|
private String createTime;
|
||||||
|
|
||||||
|
@ApiModelProperty("修改时间")
|
||||||
|
private String updateTime;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,120 +0,0 @@
|
|||||||
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,44 @@
|
|||||||
|
package com.cool.store.entity;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class HyInterviewInspectionLogDO {
|
||||||
|
|
||||||
|
@ApiModelProperty("id")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@ApiModelProperty("enterprise_user.user_id,操作人用户id")
|
||||||
|
private String operatorUserId;
|
||||||
|
|
||||||
|
@ApiModelProperty("稽核信息表id(hy_inspection.id)")
|
||||||
|
private Long inspectionId;
|
||||||
|
|
||||||
|
@ApiModelProperty("操作类型(0为合格,1为不合格,2为撤销)")
|
||||||
|
private Integer operationType;
|
||||||
|
|
||||||
|
@ApiModelProperty("操作说明")
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
@ApiModelProperty("多个凭证文件,以英文逗号分隔")
|
||||||
|
private String files;
|
||||||
|
|
||||||
|
@ApiModelProperty("操作时间")
|
||||||
|
private String operationTime;
|
||||||
|
|
||||||
|
@ApiModelProperty("备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
@ApiModelProperty("创建时间")
|
||||||
|
private String createTime;
|
||||||
|
|
||||||
|
@ApiModelProperty("修改时间")
|
||||||
|
private String updateTime;
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package com.cool.store.request;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: young.yu
|
||||||
|
* @Date: 2023-06-21 11:17
|
||||||
|
* @Description:
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class IntentSmsReq {
|
||||||
|
private String deadLine;
|
||||||
|
}
|
||||||
@@ -37,7 +37,7 @@ public class InspectionSettingPageVO {
|
|||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
@ApiModelProperty("更新人名称")
|
@ApiModelProperty("更新人名称")
|
||||||
private String updateUsername;
|
private String updateUserName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dto转vo
|
* dto转vo
|
||||||
@@ -57,7 +57,7 @@ public class InspectionSettingPageVO {
|
|||||||
result.setInspectionUserId(inspectionSetting.getInspectionUserId());
|
result.setInspectionUserId(inspectionSetting.getInspectionUserId());
|
||||||
result.setInspectionUserName(userNameMap.get(inspectionSetting.getInspectionUserId()));
|
result.setInspectionUserName(userNameMap.get(inspectionSetting.getInspectionUserId()));
|
||||||
result.setUpdateTime(inspectionSetting.getUpdateTime());
|
result.setUpdateTime(inspectionSetting.getUpdateTime());
|
||||||
result.setUpdateUsername(userNameMap.get(inspectionSetting.getUpdateUserId()));
|
result.setUpdateUserName(userNameMap.get(inspectionSetting.getUpdateUserId()));
|
||||||
resultList.add(result);
|
resultList.add(result);
|
||||||
}
|
}
|
||||||
return resultList;
|
return resultList;
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ public class InterviewVO {
|
|||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
@ApiModelProperty(value = "面试过程信息视频URL数组", required = true)
|
@ApiModelProperty(value = "面试过程信息视频URL数组", required = true)
|
||||||
private List<String> vedioList;
|
private List<String> videoList;
|
||||||
|
|
||||||
@ApiModelProperty(value = "面试过程信息未解析String", required = false)
|
@ApiModelProperty(value = "面试过程信息未解析String", required = false)
|
||||||
private String processInfo;
|
private String processInfo;
|
||||||
|
|||||||
@@ -5,16 +5,19 @@ import cn.hutool.core.date.DateUtil;
|
|||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.alibaba.fastjson.TypeReference;
|
import com.alibaba.fastjson.TypeReference;
|
||||||
|
import com.cool.store.constants.CommonConstants;
|
||||||
import com.cool.store.context.CurrentUserHolder;
|
import com.cool.store.context.CurrentUserHolder;
|
||||||
import com.cool.store.context.LoginUserInfo;
|
import com.cool.store.context.LoginUserInfo;
|
||||||
import com.cool.store.dao.EnterpriseUserDAO;
|
import com.cool.store.dao.EnterpriseUserDAO;
|
||||||
import com.cool.store.dao.HyInterviewDAO;
|
import com.cool.store.dao.HyInterviewDAO;
|
||||||
|
import com.cool.store.dao.HyPartnerBaseInfoDAO;
|
||||||
import com.cool.store.dto.log.CreateQualifyVerifyDTO;
|
import com.cool.store.dto.log.CreateQualifyVerifyDTO;
|
||||||
import com.cool.store.dto.log.LogBasicDTO;
|
import com.cool.store.dto.log.LogBasicDTO;
|
||||||
import com.cool.store.dto.mdm.AccessTokenDTO;
|
import com.cool.store.dto.mdm.AccessTokenDTO;
|
||||||
import com.cool.store.dto.response.MDMResultDTO;
|
import com.cool.store.dto.response.MDMResultDTO;
|
||||||
import com.cool.store.entity.*;
|
import com.cool.store.entity.*;
|
||||||
import com.cool.store.enums.ErrorCodeEnum;
|
import com.cool.store.enums.ErrorCodeEnum;
|
||||||
|
import com.cool.store.enums.InspectionTyeEnum;
|
||||||
import com.cool.store.enums.OperateTypeEnum;
|
import com.cool.store.enums.OperateTypeEnum;
|
||||||
import com.cool.store.enums.WorkflowStatusEnum;
|
import com.cool.store.enums.WorkflowStatusEnum;
|
||||||
import com.cool.store.exception.ApiException;
|
import com.cool.store.exception.ApiException;
|
||||||
@@ -27,6 +30,7 @@ import com.cool.store.request.data.flow.SkrRelshipProve;
|
|||||||
import com.cool.store.service.FlowService;
|
import com.cool.store.service.FlowService;
|
||||||
import com.cool.store.service.HyPartnerLineInfoService;
|
import com.cool.store.service.HyPartnerLineInfoService;
|
||||||
import com.cool.store.service.LogService;
|
import com.cool.store.service.LogService;
|
||||||
|
import com.cool.store.service.SmsService;
|
||||||
import com.cool.store.utils.*;
|
import com.cool.store.utils.*;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
@@ -91,6 +95,11 @@ public class FlowServiceImpl implements FlowService {
|
|||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private HyPartnerLineInfoService hyPartnerLineInfoService;
|
private HyPartnerLineInfoService hyPartnerLineInfoService;
|
||||||
|
@Autowired
|
||||||
|
private SmsService smsService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private HyPartnerBaseInfoDAO hyPartnerBaseInfoDAO;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private HyInspectionMapper inspectionMapper;
|
private HyInspectionMapper inspectionMapper;
|
||||||
@@ -262,9 +271,14 @@ public class FlowServiceImpl implements FlowService {
|
|||||||
//TODO 问题:如果因为 pdf 生成失败或者其他原因导致异常,但是由于 MDM 只是做回调,不对回调是否成功负责,会导致流程信息缺失
|
//TODO 问题:如果因为 pdf 生成失败或者其他原因导致异常,但是由于 MDM 只是做回调,不对回调是否成功负责,会导致流程信息缺失
|
||||||
genPassLetterAndUpdateDB(partnerName, verifyCity, passDate, interviewId);
|
genPassLetterAndUpdateDB(partnerName, verifyCity, passDate, interviewId);
|
||||||
//4. 向面试稽核表中新增一条信息
|
//4. 向面试稽核表中新增一条信息
|
||||||
HyInspection hyInspection = new HyInspection();
|
HyInspectionDO hyInspectionDO = new HyInspectionDO();
|
||||||
hyInspection.setInterviewPlanId(Long.parseLong(interviewPlanId));
|
hyInspectionDO.setInterviewPlanId(Long.parseLong(interviewPlanId));
|
||||||
inspectionMapper.insertSelective(hyInspection);
|
hyInspectionDO.setCreateTime(DateUtil.formatDateTime(passDate));
|
||||||
|
hyInspectionDO.setType(InspectionTyeEnum.INTERVIEW_INSPECTION.getCode());
|
||||||
|
inspectionMapper.insertSelective(hyInspectionDO);
|
||||||
|
//发送加盟商资质审核通过短信
|
||||||
|
HyPartnerBaseInfoDO hyPartnerBaseInfoDO = hyPartnerBaseInfoDAO.getByPartnerLineId(partnerLineId);
|
||||||
|
smsService.sendSms(null, CommonConstants.SMS_TEMPLATE_CODE_VERIFY, hyPartnerBaseInfoDO.getMobile());
|
||||||
//记录日志
|
//记录日志
|
||||||
LogBasicDTO log = LogBasicDTO.builder().operateTime(DateUtil.format(new Date(), CoolDateUtils.DATE_FORMAT_SEC))
|
LogBasicDTO log = LogBasicDTO.builder().operateTime(DateUtil.format(new Date(), CoolDateUtils.DATE_FORMAT_SEC))
|
||||||
.build();
|
.build();
|
||||||
|
|||||||
@@ -8,15 +8,11 @@ import com.cool.store.constants.RedisConstant;
|
|||||||
import com.cool.store.context.LoginUserInfo;
|
import com.cool.store.context.LoginUserInfo;
|
||||||
import com.cool.store.context.PartnerUserHolder;
|
import com.cool.store.context.PartnerUserHolder;
|
||||||
import com.cool.store.dao.*;
|
import com.cool.store.dao.*;
|
||||||
import com.cool.store.dto.log.AddTagsDTO;
|
|
||||||
import com.cool.store.dto.log.LineLogInfo;
|
import com.cool.store.dto.log.LineLogInfo;
|
||||||
import com.cool.store.dto.log.UserInfoUpdateDTO;
|
import com.cool.store.dto.log.UserInfoUpdateDTO;
|
||||||
import com.cool.store.dto.log.WantInfoUpdateDTO;
|
import com.cool.store.dto.log.WantInfoUpdateDTO;
|
||||||
import com.cool.store.dto.partner.PartnerIntentApplyInfoDTO;
|
import com.cool.store.dto.partner.PartnerIntentApplyInfoDTO;
|
||||||
import com.cool.store.entity.HyOpenAreaInfoDO;
|
import com.cool.store.entity.*;
|
||||||
import com.cool.store.entity.HyPartnerIntentInfoDO;
|
|
||||||
import com.cool.store.entity.HyPartnerLineInfoDO;
|
|
||||||
import com.cool.store.entity.HyPartnerUserInfoDO;
|
|
||||||
import com.cool.store.enums.*;
|
import com.cool.store.enums.*;
|
||||||
import com.cool.store.exception.ServiceException;
|
import com.cool.store.exception.ServiceException;
|
||||||
import com.cool.store.request.BaseUserInfoRequest;
|
import com.cool.store.request.BaseUserInfoRequest;
|
||||||
@@ -78,6 +74,9 @@ public class HyPartnerIntentInfoServiceImpl implements HyPartnerIntentInfoServic
|
|||||||
@Autowired
|
@Autowired
|
||||||
private LogService logService;
|
private LogService logService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private NoticeService noticeService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PageInfo<PartnerIntentApplyInfoVO> getPartnerIntentApplyList(String userId, String type, Integer pageSize, Integer pageNumber) {
|
public PageInfo<PartnerIntentApplyInfoVO> getPartnerIntentApplyList(String userId, String type, Integer pageSize, Integer pageNumber) {
|
||||||
PartnerIntentApplyInfoVO partnerIntentApplyInfoVO = new PartnerIntentApplyInfoVO();
|
PartnerIntentApplyInfoVO partnerIntentApplyInfoVO = new PartnerIntentApplyInfoVO();
|
||||||
@@ -181,6 +180,7 @@ public class HyPartnerIntentInfoServiceImpl implements HyPartnerIntentInfoServic
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Integer submitPartnerIntentInfo(PartnerIntentInfoRequest request) {
|
public Integer submitPartnerIntentInfo(PartnerIntentInfoRequest request) {
|
||||||
|
boolean isUpdateIntentInfo = true;
|
||||||
log.info("HyPartnerClerkServiceImpl#submitPartnerIntentInfo request:{}", JSONObject.toJSONString(request));
|
log.info("HyPartnerClerkServiceImpl#submitPartnerIntentInfo request:{}", JSONObject.toJSONString(request));
|
||||||
if (StringUtil.isBlank(request.getPartnerId()) || Objects.isNull(request.getPartnerLineId())){
|
if (StringUtil.isBlank(request.getPartnerId()) || Objects.isNull(request.getPartnerLineId())){
|
||||||
throw new ServiceException(ErrorCodeEnum.PARAMS_REQUIRED);
|
throw new ServiceException(ErrorCodeEnum.PARAMS_REQUIRED);
|
||||||
@@ -196,6 +196,7 @@ public class HyPartnerIntentInfoServiceImpl implements HyPartnerIntentInfoServic
|
|||||||
OperateTypeEnum operateTypeEnum = OperateTypeEnum.INTENT_INFO_UPDATE;
|
OperateTypeEnum operateTypeEnum = OperateTypeEnum.INTENT_INFO_UPDATE;
|
||||||
HyPartnerIntentInfoDO intentInfoDO = hyPartnerIntentInfoDAO.getByPartnerIdAndLineId(request.getPartnerId(), request.getPartnerLineId());
|
HyPartnerIntentInfoDO intentInfoDO = hyPartnerIntentInfoDAO.getByPartnerIdAndLineId(request.getPartnerId(), request.getPartnerLineId());
|
||||||
if(intentInfoDO == null){
|
if(intentInfoDO == null){
|
||||||
|
isUpdateIntentInfo = false;
|
||||||
intentInfoDO = new HyPartnerIntentInfoDO();
|
intentInfoDO = new HyPartnerIntentInfoDO();
|
||||||
fillIntentInfo(intentInfoDO, request);
|
fillIntentInfo(intentInfoDO, request);
|
||||||
hyPartnerIntentInfoDAO.insertSelective(intentInfoDO);
|
hyPartnerIntentInfoDAO.insertSelective(intentInfoDO);
|
||||||
@@ -220,11 +221,19 @@ public class HyPartnerIntentInfoServiceImpl implements HyPartnerIntentInfoServic
|
|||||||
if (LineStatusEnum.PUBLIC_SEAS.getCode().equals(hyPartnerLineInfoDO.getLineStatus())){
|
if (LineStatusEnum.PUBLIC_SEAS.getCode().equals(hyPartnerLineInfoDO.getLineStatus())){
|
||||||
Boolean flag = hyPartnerLineInfoService.assignFollowUser(request.getPartnerId(), request.getWantShopArea(), request.getAcceptAdjustType());
|
Boolean flag = hyPartnerLineInfoService.assignFollowUser(request.getPartnerId(), request.getWantShopArea(), request.getAcceptAdjustType());
|
||||||
hyPartnerLineInfoDO.setLineStatus(flag ? LineStatusEnum.PRIVATE_SEAS.getCode() : LineStatusEnum.PUBLIC_SEAS.getCode());
|
hyPartnerLineInfoDO.setLineStatus(flag ? LineStatusEnum.PRIVATE_SEAS.getCode() : LineStatusEnum.PUBLIC_SEAS.getCode());
|
||||||
|
List<String> userIdList = new ArrayList<>();
|
||||||
if (flag){
|
if (flag){
|
||||||
String investmentManager = hyPartnerLineInfoService.getAssignFollowUser(request.getPartnerId(), "intent");
|
String investmentManager = hyPartnerLineInfoService.getAssignFollowUser(request.getPartnerId(), "intent");
|
||||||
hyPartnerLineInfoDO.setInvestmentManager(investmentManager);
|
hyPartnerLineInfoDO.setInvestmentManager(investmentManager);
|
||||||
|
userIdList.add(investmentManager);
|
||||||
}
|
}
|
||||||
hyPartnerLineInfoDAO.updateByPrimaryKeySelective(hyPartnerLineInfoDO);
|
hyPartnerLineInfoDAO.updateByPrimaryKeySelective(hyPartnerLineInfoDO);
|
||||||
|
if(!isUpdateIntentInfo){
|
||||||
|
noticeService.sendFeiShuNotice(FeiShuNoticeMsgEnum.INTENTION_APPLY,userIdList,hyPartnerUserInfoDO.getUsername(),hyPartnerUserInfoDO.getMobile(),DateUtil.formatDateTime(new Date()));
|
||||||
|
}
|
||||||
|
if(flag){//分配招商经理成功才发送分配招商经理的飞书工作通知
|
||||||
|
noticeService.sendFeiShuNotice(FeiShuNoticeMsgEnum.ALLOCATION_INVESTMENT_MANAGER,userIdList,DateUtil.formatDateTime(new Date()),hyPartnerUserInfoDO.getUsername(),hyPartnerUserInfoDO.getMobile());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//记录日志
|
//记录日志
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package com.cool.store.service.impl;
|
|||||||
|
|
||||||
import cn.hutool.core.bean.BeanUtil;
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
import cn.hutool.core.date.DateUtil;
|
import cn.hutool.core.date.DateUtil;
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.cool.store.constants.CommonConstants;
|
import com.cool.store.constants.CommonConstants;
|
||||||
import com.cool.store.constants.RedisConstant;
|
import com.cool.store.constants.RedisConstant;
|
||||||
@@ -26,12 +27,11 @@ import com.github.pagehelper.PageInfo;
|
|||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.collections4.CollectionUtils;
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.commons.logging.Log;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.sql.Array;
|
|
||||||
import java.text.MessageFormat;
|
import java.text.MessageFormat;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
@@ -78,6 +78,11 @@ public class HyPartnerLineInfoServiceImpl implements HyPartnerLineInfoService {
|
|||||||
@Resource
|
@Resource
|
||||||
HyPhoneLocationService hyPhoneLocationService;
|
HyPhoneLocationService hyPhoneLocationService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private NoticeService noticeService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private SmsService smsService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public StageCountVO selectStagePendingCount(String userId) {
|
public StageCountVO selectStagePendingCount(String userId) {
|
||||||
@@ -161,6 +166,9 @@ public class HyPartnerLineInfoServiceImpl implements HyPartnerLineInfoService {
|
|||||||
&& WorkflowStatusEnum.INTERVIEW_2.getCode().equals(hyPartnerLineInfoDO.getWorkflowStatus())){
|
&& WorkflowStatusEnum.INTERVIEW_2.getCode().equals(hyPartnerLineInfoDO.getWorkflowStatus())){
|
||||||
workFlowService.transferInvestmentManager(WorkflowStageEnum.getWorkflowStageByCode(hyPartnerLineInfoDO.getWorkflowStage()),request);
|
workFlowService.transferInvestmentManager(WorkflowStageEnum.getWorkflowStageByCode(hyPartnerLineInfoDO.getWorkflowStage()),request);
|
||||||
}
|
}
|
||||||
|
//发送飞书工作通知
|
||||||
|
HyPartnerBaseInfoDO hyPartnerBaseInfoDO = hyPartnerBaseInfoDAO.getByPartnerLineId(request.getLineId());
|
||||||
|
noticeService.sendFeiShuNotice(FeiShuNoticeMsgEnum.TRANS_INVESTMENT_MANAGER,userIdList,DateUtil.formatDateTime(new Date()),hyPartnerBaseInfoDO.getUsername(),hyPartnerBaseInfoDO.getMobile());
|
||||||
|
|
||||||
//添加日志
|
//添加日志
|
||||||
LineLogInfo lineLogInfo = new LineLogInfo(hyPartnerLineInfoDO.getPartnerId(), hyPartnerLineInfoDO.getId(), user.getUserId(),
|
LineLogInfo lineLogInfo = new LineLogInfo(hyPartnerLineInfoDO.getPartnerId(), hyPartnerLineInfoDO.getId(), user.getUserId(),
|
||||||
@@ -215,9 +223,15 @@ public class HyPartnerLineInfoServiceImpl implements HyPartnerLineInfoService {
|
|||||||
List<HyPartnerLineInfoDO> otherLineList = partnerLineInfoList.stream().filter(x -> x.getCloseTime() == null).collect(Collectors.toList());
|
List<HyPartnerLineInfoDO> otherLineList = partnerLineInfoList.stream().filter(x -> x.getCloseTime() == null).collect(Collectors.toList());
|
||||||
List<Long> otherLineIdList = otherLineList.stream().map(HyPartnerLineInfoDO::getId).collect(Collectors.toList());
|
List<Long> otherLineIdList = otherLineList.stream().map(HyPartnerLineInfoDO::getId).collect(Collectors.toList());
|
||||||
hyPartnerLineInfoDAO.updateInvestmentManager(user.getUserId(), otherLineIdList);
|
hyPartnerLineInfoDAO.updateInvestmentManager(user.getUserId(), otherLineIdList);
|
||||||
|
|
||||||
//添加日志
|
//添加日志
|
||||||
partnerLineInfoList.forEach(x->{
|
partnerLineInfoList.forEach(x->{
|
||||||
|
//给招商经理发送飞书工作通知
|
||||||
|
List<String> userIdList = new ArrayList<>();
|
||||||
|
userIdList.add(user.getUserId());
|
||||||
|
HyPartnerBaseInfoDO hyPartnerBaseInfoDO = hyPartnerBaseInfoDAO.getByPartnerLineId(x.getId());
|
||||||
|
|
||||||
|
noticeService.sendFeiShuNotice(FeiShuNoticeMsgEnum.ALLOCATION_INVESTMENT_MANAGER,userIdList,DateUtil.formatDateTime(new Date()),hyPartnerBaseInfoDO.getUsername(),hyPartnerBaseInfoDO.getMobile());
|
||||||
|
|
||||||
LineLogInfo lineLogInfo = new LineLogInfo(x.getPartnerId(), x.getId(), user.getUserId(),
|
LineLogInfo lineLogInfo = new LineLogInfo(x.getPartnerId(), x.getId(), user.getUserId(),
|
||||||
user.getName(), OperateTypeEnum.ALLOCATION_INVESTMENT_MANAGER,
|
user.getName(), OperateTypeEnum.ALLOCATION_INVESTMENT_MANAGER,
|
||||||
WorkflowStageEnum.getWorkflowStageByCode(x.getWorkflowStage()),
|
WorkflowStageEnum.getWorkflowStageByCode(x.getWorkflowStage()),
|
||||||
@@ -362,6 +376,9 @@ public class HyPartnerLineInfoServiceImpl implements HyPartnerLineInfoService {
|
|||||||
hy.setCertifyFile(JSONObject.toJSONString(closeFollowRequest.getCertifyFile()));
|
hy.setCertifyFile(JSONObject.toJSONString(closeFollowRequest.getCertifyFile()));
|
||||||
}
|
}
|
||||||
hyPartnerBaseInfoDAO.updateByPrimaryKeySelective(hy);
|
hyPartnerBaseInfoDAO.updateByPrimaryKeySelective(hy);
|
||||||
|
IntentSmsReq intentSmsReq = new IntentSmsReq();
|
||||||
|
intentSmsReq.setDeadLine(DateUtil.formatDateTime(hyPartnerLineInfoDO.getDeadline()));
|
||||||
|
smsService.sendSms(JSON.toJSONString(intentSmsReq),CommonConstants.SMS_TEMPLATE_CODE_INTENT, hy.getMobile());
|
||||||
}
|
}
|
||||||
|
|
||||||
//拒绝
|
//拒绝
|
||||||
@@ -710,6 +727,13 @@ public class HyPartnerLineInfoServiceImpl implements HyPartnerLineInfoService {
|
|||||||
hyPartnerLineInfoDAO.updateByPrimaryKeySelective(hyPartnerLineInfoDO);
|
hyPartnerLineInfoDAO.updateByPrimaryKeySelective(hyPartnerLineInfoDO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//发送飞书工作通知
|
||||||
|
if(flag){
|
||||||
|
List<String> userIdList = new ArrayList<>();
|
||||||
|
userIdList.add(investmentManager);
|
||||||
|
HyPartnerUserInfoDO hyPartnerUserInfoDO = hyPartnerUserInfoDAO.selectByPartnerId(partnerId);
|
||||||
|
noticeService.sendFeiShuNotice(FeiShuNoticeMsgEnum.ALLOCATION_INVESTMENT_MANAGER,userIdList,DateUtil.formatDateTime(new Date()),hyPartnerUserInfoDO.getUsername(),hyPartnerUserInfoDO.getMobile());
|
||||||
|
}
|
||||||
return hyPartnerLineInfoDO;
|
return hyPartnerLineInfoDO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -79,13 +79,18 @@ public class InspectionSettingServiceImpl implements InspectionSettingService {
|
|||||||
if(CollectionUtils.isNotEmpty(inspectionUserSetting)){
|
if(CollectionUtils.isNotEmpty(inspectionUserSetting)){
|
||||||
throw new ServiceException(ErrorCodeEnum.INSPECTION_USER_OCCUPY);
|
throw new ServiceException(ErrorCodeEnum.INSPECTION_USER_OCCUPY);
|
||||||
}
|
}
|
||||||
|
List<Long> openAreaMappingIds = hyOpenAreaInfoDAO.filterLeafNode(param.getOpenAreaMappingIds());
|
||||||
|
if(CollectionUtils.isEmpty(openAreaMappingIds)){
|
||||||
|
throw new ServiceException(ErrorCodeEnum.OPEN_AREA_NULL);
|
||||||
|
}
|
||||||
HyInspectionSettingDO inspectionSetting = new HyInspectionSettingDO();
|
HyInspectionSettingDO inspectionSetting = new HyInspectionSettingDO();
|
||||||
inspectionSetting.setInspectionUserId(param.getInspectionUserId());
|
inspectionSetting.setInspectionUserId(param.getInspectionUserId());
|
||||||
inspectionSetting.setZoneName(param.getZoneName());
|
inspectionSetting.setZoneName(param.getZoneName());
|
||||||
inspectionSetting.setCreateUserId(userId);
|
inspectionSetting.setCreateUserId(userId);
|
||||||
inspectionSetting.setCreateTime(new Date());
|
inspectionSetting.setCreateTime(new Date());
|
||||||
|
inspectionSetting.setUpdateUserId(userId);
|
||||||
|
inspectionSetting.setUpdateTime(new Date());
|
||||||
Long inspectionSettingId = hyInspectionSettingDAO.addInspectionSetting(inspectionSetting);
|
Long inspectionSettingId = hyInspectionSettingDAO.addInspectionSetting(inspectionSetting);
|
||||||
List<Long> openAreaMappingIds = param.getOpenAreaMappingIds();
|
|
||||||
hyInspectionSettingMappingDAO.addInspectionSettingMapping(inspectionSettingId, openAreaMappingIds);
|
hyInspectionSettingMappingDAO.addInspectionSettingMapping(inspectionSettingId, openAreaMappingIds);
|
||||||
return inspectionSettingId;
|
return inspectionSettingId;
|
||||||
}
|
}
|
||||||
@@ -97,6 +102,10 @@ public class InspectionSettingServiceImpl implements InspectionSettingService {
|
|||||||
if(CollectionUtils.isNotEmpty(inspectionUserSetting)){
|
if(CollectionUtils.isNotEmpty(inspectionUserSetting)){
|
||||||
throw new ServiceException(ErrorCodeEnum.INSPECTION_USER_OCCUPY);
|
throw new ServiceException(ErrorCodeEnum.INSPECTION_USER_OCCUPY);
|
||||||
}
|
}
|
||||||
|
List<Long> openAreaMappingIds = hyOpenAreaInfoDAO.filterLeafNode(param.getOpenAreaMappingIds());
|
||||||
|
if(CollectionUtils.isEmpty(openAreaMappingIds)){
|
||||||
|
throw new ServiceException(ErrorCodeEnum.OPEN_AREA_NULL);
|
||||||
|
}
|
||||||
HyInspectionSettingDO inspectionSetting = new HyInspectionSettingDO();
|
HyInspectionSettingDO inspectionSetting = new HyInspectionSettingDO();
|
||||||
inspectionSetting.setId(param.getInspectionSettingId());
|
inspectionSetting.setId(param.getInspectionSettingId());
|
||||||
inspectionSetting.setInspectionUserId(param.getInspectionUserId());
|
inspectionSetting.setInspectionUserId(param.getInspectionUserId());
|
||||||
@@ -104,7 +113,6 @@ public class InspectionSettingServiceImpl implements InspectionSettingService {
|
|||||||
inspectionSetting.setUpdateUserId(userId);
|
inspectionSetting.setUpdateUserId(userId);
|
||||||
inspectionSetting.setUpdateTime(new Date());
|
inspectionSetting.setUpdateTime(new Date());
|
||||||
hyInspectionSettingDAO.updateInspectionSetting(inspectionSetting);
|
hyInspectionSettingDAO.updateInspectionSetting(inspectionSetting);
|
||||||
List<Long> openAreaMappingIds = param.getOpenAreaMappingIds();
|
|
||||||
return hyInspectionSettingMappingDAO.updateInspectionSettingMapping(param.getInspectionSettingId(), openAreaMappingIds);
|
return hyInspectionSettingMappingDAO.updateInspectionSettingMapping(param.getInspectionSettingId(), openAreaMappingIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ import com.cool.store.entity.HyInspection;
|
|||||||
import com.cool.store.entity.HyInterviewInspectionLog;
|
import com.cool.store.entity.HyInterviewInspectionLog;
|
||||||
import com.cool.store.entity.MDMAreaDO;
|
import com.cool.store.entity.MDMAreaDO;
|
||||||
import com.cool.store.entity.SysMenuDO;
|
import com.cool.store.entity.SysMenuDO;
|
||||||
|
import com.cool.store.entity.HyInspectionDO;
|
||||||
|
import com.cool.store.entity.HyInterviewInspectionLogDO;
|
||||||
import com.cool.store.enums.ErrorCodeEnum;
|
import com.cool.store.enums.ErrorCodeEnum;
|
||||||
import com.cool.store.enums.InspectionOperationTypeEnum;
|
import com.cool.store.enums.InspectionOperationTypeEnum;
|
||||||
import com.cool.store.enums.InspectionStatusEnum;
|
import com.cool.store.enums.InspectionStatusEnum;
|
||||||
@@ -53,39 +55,39 @@ public class InterviewInspectionServiceImpl implements InterviewInspectionServic
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void submit(InspectionSubmissionDTO dto) throws ApiException {
|
public void submit(InspectionSubmissionDTO dto) throws ApiException {
|
||||||
HyInspection rawInspection = inspectionMapper.selectByPrimaryKey(dto.getInspectionId());
|
HyInspectionDO rawInspection = inspectionMapper.selectByPrimaryKey(dto.getInspectionId());
|
||||||
if (Objects.isNull(rawInspection)) {
|
if (Objects.isNull(rawInspection)) {
|
||||||
throw new ApiException(ErrorCodeEnum.INSPECTION_INFO_NOT_EXIST);
|
throw new ApiException(ErrorCodeEnum.INSPECTION_INFO_NOT_EXIST);
|
||||||
}
|
}
|
||||||
HyInspection hyInspection = new HyInspection();
|
HyInspectionDO hyInspectionDO = new HyInspectionDO();
|
||||||
//稽核结果和说明及文件等
|
//稽核结果和说明及文件等
|
||||||
hyInspection.setId(dto.getInspectionId());
|
hyInspectionDO.setId(dto.getInspectionId());
|
||||||
if (dto.getWhetherPass().equals(0)) {
|
if (dto.getWhetherPass().equals(0)) {
|
||||||
hyInspection.setStatus(InspectionStatusEnum.NOT_PASS.getCode());
|
hyInspectionDO.setStatus(InspectionStatusEnum.NOT_PASS.getCode());
|
||||||
} else if (dto.getWhetherPass().equals(1)) {
|
} else if (dto.getWhetherPass().equals(1)) {
|
||||||
hyInspection.setStatus(InspectionStatusEnum.PASS.getCode());
|
hyInspectionDO.setStatus(InspectionStatusEnum.PASS.getCode());
|
||||||
}
|
}
|
||||||
hyInspection.setDescription(dto.getDescription());
|
hyInspectionDO.setDescription(dto.getDescription());
|
||||||
String filesStr = spliceFiles(dto.getFiles());
|
String filesStr = spliceFiles(dto.getFiles());
|
||||||
hyInspection.setFiles(filesStr);
|
hyInspectionDO.setFiles(filesStr);
|
||||||
//稽核人,稽核时间,创建人
|
//稽核人,稽核时间,创建人
|
||||||
hyInspection.setOperatorUserId(CurrentUserHolder.getUserId());
|
hyInspectionDO.setOperatorUserId(CurrentUserHolder.getUserId());
|
||||||
hyInspection.setUpdator(CurrentUserHolder.getUserId());
|
hyInspectionDO.setUpdator(CurrentUserHolder.getUserId());
|
||||||
hyInspection.setInspectionTime(DateUtil.now());
|
hyInspectionDO.setInspectionTime(DateUtil.now());
|
||||||
hyInspection.setCreator(rawInspection.getCreator() == null ? CurrentUserHolder.getUserId() : rawInspection.getCreator());
|
hyInspectionDO.setCreator(rawInspection.getCreator() == null ? CurrentUserHolder.getUserId() : rawInspection.getCreator());
|
||||||
inspectionMapper.updateByPrimaryKeySelective(hyInspection);
|
inspectionMapper.updateByPrimaryKeySelective(hyInspectionDO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional
|
@Transactional
|
||||||
public void revoke(InspectionRevocationDTO dto) throws ApiException {
|
public void revoke(InspectionRevocationDTO dto) throws ApiException {
|
||||||
//2.1 查询之前的一次操作
|
//2.1 查询之前的一次操作
|
||||||
HyInspection hyInspection = inspectionMapper.selectByPrimaryKey(dto.getInspectionId());
|
HyInspectionDO hyInspectionDO = inspectionMapper.selectByPrimaryKey(dto.getInspectionId());
|
||||||
if (Objects.isNull(hyInspection)) {
|
if (Objects.isNull(hyInspectionDO)) {
|
||||||
throw new ApiException(ErrorCodeEnum.INSPECTION_INFO_NOT_EXIST);
|
throw new ApiException(ErrorCodeEnum.INSPECTION_INFO_NOT_EXIST);
|
||||||
}
|
}
|
||||||
//1. 撤销操作记录写入数据库面试稽核操作记录表
|
//1. 撤销操作记录写入数据库面试稽核操作记录表
|
||||||
HyInterviewInspectionLog inspectionLog = new HyInterviewInspectionLog();
|
HyInterviewInspectionLogDO inspectionLog = new HyInterviewInspectionLogDO();
|
||||||
inspectionLog.setOperatorUserId(CurrentUserHolder.getUserId());
|
inspectionLog.setOperatorUserId(CurrentUserHolder.getUserId());
|
||||||
inspectionLog.setInspectionId(dto.getInspectionId());
|
inspectionLog.setInspectionId(dto.getInspectionId());
|
||||||
inspectionLog.setOperationType(InspectionOperationTypeEnum.REVOCATION.getCode());
|
inspectionLog.setOperationType(InspectionOperationTypeEnum.REVOCATION.getCode());
|
||||||
@@ -95,25 +97,25 @@ public class InterviewInspectionServiceImpl implements InterviewInspectionServic
|
|||||||
inspectionLog.setFiles(filesStr);
|
inspectionLog.setFiles(filesStr);
|
||||||
interviewInspectionLogMapper.insertSelective(inspectionLog);
|
interviewInspectionLogMapper.insertSelective(inspectionLog);
|
||||||
//2. 撤销操作之前的一次操作写入面试稽核操作记录表
|
//2. 撤销操作之前的一次操作写入面试稽核操作记录表
|
||||||
inspectionLog.setOperatorUserId(hyInspection.getOperatorUserId());
|
inspectionLog.setOperatorUserId(hyInspectionDO.getOperatorUserId());
|
||||||
inspectionLog.setInspectionId(hyInspection.getId());
|
inspectionLog.setInspectionId(hyInspectionDO.getId());
|
||||||
if (hyInspection.getStatus().equals(1)) {
|
if (hyInspectionDO.getStatus().equals(1)) {
|
||||||
inspectionLog.setOperationType(InspectionOperationTypeEnum.PASS.getCode());
|
inspectionLog.setOperationType(InspectionOperationTypeEnum.PASS.getCode());
|
||||||
} else if (hyInspection.getStatus().equals(2)) {
|
} else if (hyInspectionDO.getStatus().equals(2)) {
|
||||||
inspectionLog.setOperationType(InspectionOperationTypeEnum.NOT_PASS.getCode());
|
inspectionLog.setOperationType(InspectionOperationTypeEnum.NOT_PASS.getCode());
|
||||||
}
|
}
|
||||||
inspectionLog.setDescription(hyInspection.getDescription());
|
inspectionLog.setDescription(hyInspectionDO.getDescription());
|
||||||
inspectionLog.setFiles(hyInspection.getFiles());
|
inspectionLog.setFiles(hyInspectionDO.getFiles());
|
||||||
inspectionLog.setOperationTime(hyInspection.getInspectionTime());
|
inspectionLog.setOperationTime(hyInspectionDO.getInspectionTime());
|
||||||
interviewInspectionLogMapper.insertSelective(inspectionLog);
|
interviewInspectionLogMapper.insertSelective(inspectionLog);
|
||||||
//3. 撤销操作之前的一次操作稽核信息状态修改为未稽核,并且将数据状态(其他字段)也恢复到未稽核时的状态
|
//3. 撤销操作之前的一次操作稽核信息状态修改为未稽核,并且将数据状态(其他字段)也恢复到未稽核时的状态
|
||||||
hyInspection.setOperatorUserId(null);
|
hyInspectionDO.setOperatorUserId(null);
|
||||||
hyInspection.setStatus(InspectionStatusEnum.NOT_INSPECT.getCode());
|
hyInspectionDO.setStatus(InspectionStatusEnum.NOT_INSPECT.getCode());
|
||||||
hyInspection.setFiles(null);
|
hyInspectionDO.setFiles(null);
|
||||||
hyInspection.setDescription(null);
|
hyInspectionDO.setDescription(null);
|
||||||
hyInspection.setInspectionTime(null);
|
hyInspectionDO.setInspectionTime(null);
|
||||||
hyInspection.setUpdator(null);
|
hyInspectionDO.setUpdator(null);
|
||||||
inspectionMapper.updateByPrimaryKey(hyInspection);
|
inspectionMapper.updateByPrimaryKey(hyInspectionDO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ public class InterviewServiceImpl implements InterviewService {
|
|||||||
//将 processInfo 解析为 List
|
//将 processInfo 解析为 List
|
||||||
if (!StringUtils.isEmpty(vo.getProcessInfo())) {
|
if (!StringUtils.isEmpty(vo.getProcessInfo())) {
|
||||||
List<String> split = Arrays.asList(vo.getProcessInfo().split(","));
|
List<String> split = Arrays.asList(vo.getProcessInfo().split(","));
|
||||||
vo.setVedioList(split);
|
vo.setVideoList(split);
|
||||||
vo.setProcessInfo("");
|
vo.setProcessInfo("");
|
||||||
}
|
}
|
||||||
//查询面试官和记录人信息(面试官必须有)
|
//查询面试官和记录人信息(面试官必须有)
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
package com.cool.store.service.impl;
|
||||||
|
|
||||||
|
import com.cool.store.dto.message.SendCardMessageDTO;
|
||||||
|
import com.cool.store.enums.FeiShuNoticeMsgEnum;
|
||||||
|
import com.cool.store.enums.MessageTypeEnum;
|
||||||
|
import com.cool.store.http.ISVHttpRequest;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.text.MessageFormat;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: young.yu
|
||||||
|
* @Date: 2023-07-19 17:06
|
||||||
|
* @Description:
|
||||||
|
*/
|
||||||
|
@Slf4j
|
||||||
|
@Service
|
||||||
|
public class NoticeService {
|
||||||
|
@Value("${feishu.notice.link.url:null}")
|
||||||
|
private String linkUrl;
|
||||||
|
@Autowired
|
||||||
|
private ISVHttpRequest isvHttpRequest;
|
||||||
|
public void sendFeiShuNotice(FeiShuNoticeMsgEnum feiShuNoticeMsgEnum, List<String> userIds,Object... objects) {
|
||||||
|
try{
|
||||||
|
SendCardMessageDTO sendCardMessageDTO = new SendCardMessageDTO();
|
||||||
|
sendCardMessageDTO.setUserIds(userIds);
|
||||||
|
sendCardMessageDTO.setMessageType(MessageTypeEnum.SCHEDULE_REMINDER);
|
||||||
|
sendCardMessageDTO.setMessageUrl(linkUrl);
|
||||||
|
sendCardMessageDTO.setTitle(feiShuNoticeMsgEnum.getTitle());
|
||||||
|
sendCardMessageDTO.setContent(MessageFormat.format(feiShuNoticeMsgEnum.getContent(),objects));
|
||||||
|
isvHttpRequest.sendFeiShuCardMessage(sendCardMessageDTO);
|
||||||
|
}catch (Exception e){
|
||||||
|
log.info("发送飞书通知失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -48,6 +48,8 @@ public class ZoneServiceImpl implements ZoneService {
|
|||||||
EnterpriseUserDAO enterpriseUserDAO;
|
EnterpriseUserDAO enterpriseUserDAO;
|
||||||
@Resource
|
@Resource
|
||||||
RegionDAO regionDAO;
|
RegionDAO regionDAO;
|
||||||
|
@Resource
|
||||||
|
HyOpenAreaInfoDAO hyOpenAreaInfoDAO;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -67,8 +69,9 @@ public class ZoneServiceImpl implements ZoneService {
|
|||||||
//添加战区映射的意向区域
|
//添加战区映射的意向区域
|
||||||
hyIntendDevMappingDAO.deleteByOpenAreaIds(intentAreaSettingRequest.getOpenAreaIdList(),hyIntendDevZoneInfoDO.getType());
|
hyIntendDevMappingDAO.deleteByOpenAreaIds(intentAreaSettingRequest.getOpenAreaIdList(),hyIntendDevZoneInfoDO.getType());
|
||||||
List<Long> openAreaIdList = intentAreaSettingRequest.getOpenAreaIdList();
|
List<Long> openAreaIdList = intentAreaSettingRequest.getOpenAreaIdList();
|
||||||
|
List<Long> openAreaIdFilterList = hyOpenAreaInfoDAO.filterLeafNode(openAreaIdList);
|
||||||
List<HyIntendDevelopementMappingDO> list = new ArrayList<>();
|
List<HyIntendDevelopementMappingDO> list = new ArrayList<>();
|
||||||
openAreaIdList.stream().forEach(x->{
|
openAreaIdFilterList.stream().forEach(x->{
|
||||||
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));
|
||||||
@@ -95,8 +98,9 @@ public class ZoneServiceImpl implements ZoneService {
|
|||||||
hyIntendDevMappingDAO.deleteByMappingIds(Arrays.asList(intentAreaSettingRequest.getId())
|
hyIntendDevMappingDAO.deleteByMappingIds(Arrays.asList(intentAreaSettingRequest.getId())
|
||||||
,intentAreaSettingRequest.getType());
|
,intentAreaSettingRequest.getType());
|
||||||
List<Long> openAreaIdList = intentAreaSettingRequest.getOpenAreaIdList();
|
List<Long> openAreaIdList = intentAreaSettingRequest.getOpenAreaIdList();
|
||||||
|
List<Long> openAreaIdFilterList = hyOpenAreaInfoDAO.filterLeafNode(openAreaIdList);
|
||||||
List<HyIntendDevelopementMappingDO> list = new ArrayList<>();
|
List<HyIntendDevelopementMappingDO> list = new ArrayList<>();
|
||||||
openAreaIdList.stream().forEach(x->{
|
openAreaIdFilterList.stream().forEach(x->{
|
||||||
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));
|
||||||
@@ -206,7 +210,8 @@ public class ZoneServiceImpl implements ZoneService {
|
|||||||
//查询已经绑定战区的 意向区域
|
//查询已经绑定战区的 意向区域
|
||||||
List<ZoneCheckDTO> list = hyIntendDevMappingDAO.selectByOpenAreaMappingIdList(intentAreaSettingRequest.getOpenAreaIdList(),intentAreaSettingRequest.getType(),intentAreaSettingRequest.getId());
|
List<ZoneCheckDTO> list = hyIntendDevMappingDAO.selectByOpenAreaMappingIdList(intentAreaSettingRequest.getOpenAreaIdList(),intentAreaSettingRequest.getType(),intentAreaSettingRequest.getId());
|
||||||
List<Long> openAreaIdList = list.stream().map(ZoneCheckDTO::getOpenAreaMappingId).collect(Collectors.toList());
|
List<Long> openAreaIdList = list.stream().map(ZoneCheckDTO::getOpenAreaMappingId).collect(Collectors.toList());
|
||||||
List<HyOpenAreaInfoDO> hyOpenAreaInfoDOList = openAreaInfoDAO.selectByIds(openAreaIdList);
|
List<Long> openAreaIdFilterList = hyOpenAreaInfoDAO.filterLeafNode(openAreaIdList);
|
||||||
|
List<HyOpenAreaInfoDO> hyOpenAreaInfoDOList = openAreaInfoDAO.selectByIds(openAreaIdFilterList);
|
||||||
Map<Long, String> areaNameMap = hyOpenAreaInfoDOList.stream().collect(Collectors.toMap(HyOpenAreaInfoDO::getId, HyOpenAreaInfoDO::getAreaName));
|
Map<Long, String> areaNameMap = hyOpenAreaInfoDOList.stream().collect(Collectors.toMap(HyOpenAreaInfoDO::getId, HyOpenAreaInfoDO::getAreaName));
|
||||||
List<ZoneCheckVO> result = new ArrayList<>();
|
List<ZoneCheckVO> result = new ArrayList<>();
|
||||||
list.forEach(x->{
|
list.forEach(x->{
|
||||||
|
|||||||
Reference in New Issue
Block a user