Merge remote-tracking branch 'origin/cc_20230520_partner' into cc_20230520_partner
This commit is contained in:
@@ -102,7 +102,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.icepdf.os</groupId>
|
<groupId>org.icepdf.os</groupId>
|
||||||
<artifactId>icepdf-core</artifactId>
|
<artifactId>icepdf-core</artifactId>
|
||||||
<version>6.1.2</version>
|
<version>6.2.2</version>
|
||||||
<exclusions>
|
<exclusions>
|
||||||
<exclusion>
|
<exclusion>
|
||||||
<groupId>javax.media</groupId>
|
<groupId>javax.media</groupId>
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ public class PDFUtils {
|
|||||||
document.dispose();
|
document.dispose();
|
||||||
return outputStream;
|
return outputStream;
|
||||||
}
|
}
|
||||||
} catch (PDFException | IOException | PDFSecurityException e) {
|
} catch (PDFException | IOException | InterruptedException | PDFSecurityException e) {
|
||||||
log.error("PDF转图片异常, e{}", e.getMessage());
|
log.error("PDF转图片异常, e{}", e.getMessage());
|
||||||
} finally {
|
} finally {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -41,9 +41,9 @@ public interface HyContentInfoMapper {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* B 端使用的动态查询
|
* C 端使用的动态查询
|
||||||
*/
|
*/
|
||||||
List<HyContentInfoVO> queryContentListForB(ContentQueryListDto dto);
|
List<HyContentInfoVO> queryContentListForC(ContentQueryListDto dto);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据contentId查询动态详情
|
* 根据contentId查询动态详情
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id, content_title, subject, content_type, cover, content, status, deleted, create_time, update_time,
|
id, content_title, `subject`, content_type, cover, content, `status`, deleted, create_time, update_time,
|
||||||
create_user_id, update_user_id
|
create_user_id, update_user_id
|
||||||
</sql>
|
</sql>
|
||||||
<sql id="Blob_Column_List">
|
<sql id="Blob_Column_List">
|
||||||
@@ -165,6 +165,7 @@
|
|||||||
<if test="endTime != null and endTime != ''">
|
<if test="endTime != null and endTime != ''">
|
||||||
and update_time <= #{endTime}
|
and update_time <= #{endTime}
|
||||||
</if>
|
</if>
|
||||||
|
order by update_time desc
|
||||||
</select>
|
</select>
|
||||||
<select id="getUpdateUserName" resultType="string">
|
<select id="getUpdateUserName" resultType="string">
|
||||||
select name
|
select name
|
||||||
@@ -179,12 +180,12 @@
|
|||||||
and user_id = #{updateUserId}
|
and user_id = #{updateUserId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- B 端使用的动态查询 -->
|
<!-- C 端使用的动态查询 -->
|
||||||
<select id="queryContentListForB" resultType="com.cool.store.vo.HyContentInfoVO">
|
<select id="queryContentListForC" resultType="com.cool.store.vo.HyContentInfoVO">
|
||||||
select <include refid="Base_Column_List"></include>
|
select <include refid="Base_Column_List"></include>
|
||||||
from hy_content_info
|
from hy_content_info
|
||||||
where deleted = 0
|
where deleted = 0
|
||||||
and status = 1
|
and status = 0
|
||||||
<if test="contentTitle != null and contentTitle != ''">
|
<if test="contentTitle != null and contentTitle != ''">
|
||||||
and content_title like concat('%', #{contentTitle}, '%')
|
and content_title like concat('%', #{contentTitle}, '%')
|
||||||
</if>
|
</if>
|
||||||
@@ -200,6 +201,7 @@
|
|||||||
<if test="endTime != null and endTime != ''">
|
<if test="endTime != null and endTime != ''">
|
||||||
and update_time <= #{endTime}
|
and update_time <= #{endTime}
|
||||||
</if>
|
</if>
|
||||||
|
order by update_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 查询动态详情 -->
|
<!-- 查询动态详情 -->
|
||||||
|
|||||||
@@ -357,13 +357,13 @@
|
|||||||
and hpui.mobile like concat('%',#{record.partnerMobile},'%')
|
and hpui.mobile like concat('%',#{record.partnerMobile},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="record.roomId !=null and record.roomId!=''">
|
<if test="record.roomId !=null and record.roomId!=''">
|
||||||
and hpip.room_id = #{record.roomId}
|
and hpip.room_id like concat('%', #{record.roomId}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="record.interviewerName !=null and record.interviewerName!=''">
|
<if test="record.interviewerName !=null and record.interviewerName!=''">
|
||||||
and hpui.username like concat('%',#{record.interviewerName},'%')
|
and eu.name like concat('%',#{record.interviewerName},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="record.interviewerMobile !=null and record.interviewerMobile!=''">
|
<if test="record.interviewerMobile !=null and record.interviewerMobile!=''">
|
||||||
and hpui.mobile like concat('%',#{record.interviewerMobile},'%')
|
and eu.mobile like concat('%',#{record.interviewerMobile},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="record.roomStatus !=null">
|
<if test="record.roomStatus !=null">
|
||||||
and hpip.room_status = #{record.roomStatus}
|
and hpip.room_status = #{record.roomStatus}
|
||||||
|
|||||||
@@ -7,6 +7,6 @@ import lombok.Data;
|
|||||||
public class ContentQueryTitlesDto {
|
public class ContentQueryTitlesDto {
|
||||||
|
|
||||||
@ApiModelProperty("用户输入标题")
|
@ApiModelProperty("用户输入标题")
|
||||||
private String tittle;
|
private String title;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,18 +63,18 @@ public class JobHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@XxlJob("updateAbsentInterview")
|
// @XxlJob("updateAbsentInterview")
|
||||||
public void updateAbsentInterview(){
|
// public void updateAbsentInterview(){
|
||||||
try {
|
// try {
|
||||||
log.info("面试缺席定时任务开始");
|
// log.info("面试缺席定时任务开始");
|
||||||
hyPartnerInterviewPlanService.updateAbsentInterview();
|
// hyPartnerInterviewPlanService.updateAbsentInterview();
|
||||||
log.info("面试缺席定时任务结束");
|
// log.info("面试缺席定时任务结束");
|
||||||
XxlJobHelper.handleSuccess();
|
// XxlJobHelper.handleSuccess();
|
||||||
}catch (Exception e){
|
// }catch (Exception e){
|
||||||
log.error("面试缺席定时任务异常",e);
|
// log.error("面试缺席定时任务异常",e);
|
||||||
XxlJobHelper.log("面试缺席定时任务异常"+e.getMessage());
|
// XxlJobHelper.log("面试缺席定时任务异常"+e.getMessage());
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
@XxlJob("approvalReminder")
|
@XxlJob("approvalReminder")
|
||||||
public void approvalReminder(){
|
public void approvalReminder(){
|
||||||
|
|||||||
@@ -35,6 +35,11 @@ public interface ContentService {
|
|||||||
*/
|
*/
|
||||||
List<HyContentInfoVO> queryContentList(ContentQueryListDto dto);
|
List<HyContentInfoVO> queryContentList(ContentQueryListDto dto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询动态列表 C 端用
|
||||||
|
*/
|
||||||
|
List<HyContentInfoVO> queryContentListToC(ContentQueryListDto dto);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询动态详情
|
* 查询动态详情
|
||||||
* @param contentId
|
* @param contentId
|
||||||
|
|||||||
@@ -75,7 +75,15 @@ public class ContentServiceImpl implements ContentService {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<HyContentInfoVO> queryContentList(ContentQueryListDto dto) {
|
public List<HyContentInfoVO> queryContentList(ContentQueryListDto dto) {
|
||||||
return contentInfoMapper.queryContentListForB(dto);
|
return contentInfoMapper.queryContentList(dto);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询动态列表 C 端用
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<HyContentInfoVO> queryContentListToC(ContentQueryListDto dto) {
|
||||||
|
return contentInfoMapper.queryContentListForC(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ public class FlowServiceImpl implements FlowService {
|
|||||||
String jobNumber = investmentManager.getJobnumber();
|
String jobNumber = investmentManager.getJobnumber();
|
||||||
String mobile = investmentManager.getMobile();
|
String mobile = investmentManager.getMobile();
|
||||||
DingdingUserDO dingdingUserDO = dingdingUserMapper.selectDingDingUserByMobile(mobile);
|
DingdingUserDO dingdingUserDO = dingdingUserMapper.selectDingDingUserByMobile(mobile);
|
||||||
if (Objects.isNull(dingdingUserDO) || Objects.isNull(dingdingUserDO.getUserid())) {
|
if (Objects.isNull(dingdingUserDO) || StringUtils.isEmpty(dingdingUserDO.getUserid())) {
|
||||||
throw new ServiceException(ErrorCodeEnum.DINGDING_USER_NOT_EXIST);
|
throw new ServiceException(ErrorCodeEnum.DINGDING_USER_NOT_EXIST);
|
||||||
}
|
}
|
||||||
rpcRequest.setDingUserId(dingdingUserDO.getUserid());
|
rpcRequest.setDingUserId(dingdingUserDO.getUserid());
|
||||||
@@ -158,7 +158,7 @@ public class FlowServiceImpl implements FlowService {
|
|||||||
if (!Objects.isNull(developmentDirector)) {
|
if (!Objects.isNull(developmentDirector)) {
|
||||||
String mobile = developmentDirector.getMobile();
|
String mobile = developmentDirector.getMobile();
|
||||||
DingdingUserDO dingdingUserDO = dingdingUserMapper.selectDingDingUserByMobile(mobile);
|
DingdingUserDO dingdingUserDO = dingdingUserMapper.selectDingDingUserByMobile(mobile);
|
||||||
if (Objects.isNull(dingdingUserDO) || Objects.isNull(dingdingUserDO.getUserid())) {
|
if (Objects.isNull(dingdingUserDO) || StringUtils.isEmpty(dingdingUserDO.getUserid())) {
|
||||||
throw new ServiceException(ErrorCodeEnum.DINGDING_USER_NOT_EXIST);
|
throw new ServiceException(ErrorCodeEnum.DINGDING_USER_NOT_EXIST);
|
||||||
}
|
}
|
||||||
rpcRequest.getData().setUserSiteDevDingUserId(dingdingUserDO.getUserid());
|
rpcRequest.getData().setUserSiteDevDingUserId(dingdingUserDO.getUserid());
|
||||||
@@ -217,7 +217,6 @@ public class FlowServiceImpl implements FlowService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional
|
|
||||||
public void qualificationCallback(QualificationCallbackReq request) {
|
public void qualificationCallback(QualificationCallbackReq request) {
|
||||||
log.info("MDM800审批成功回调,request{}", JSONObject.toJSONString(request));
|
log.info("MDM800审批成功回调,request{}", JSONObject.toJSONString(request));
|
||||||
//1. 信息是否完整
|
//1. 信息是否完整
|
||||||
@@ -252,6 +251,7 @@ public class FlowServiceImpl implements FlowService {
|
|||||||
// TODO pass_reason 暂无
|
// TODO pass_reason 暂无
|
||||||
Date passDate = new Date(request.getModifiedTime());
|
Date passDate = new Date(request.getModifiedTime());
|
||||||
//3. 生成通过函并修改数据库相关信息
|
//3. 生成通过函并修改数据库相关信息
|
||||||
|
//TODO 问题:如果因为 pdf 生成失败或者其他原因导致异常,但是由于 MDM 只是做回调,不对回调是否成功负责,会导致流程信息缺失
|
||||||
genPassLetterAndUpdateDB(partnerName, verifyCity, passDate, interviewId);
|
genPassLetterAndUpdateDB(partnerName, verifyCity, passDate, interviewId);
|
||||||
// TODO 4. 修改流程状态到下一阶段 4 分配选址开发经理
|
// TODO 4. 修改流程状态到下一阶段 4 分配选址开发经理
|
||||||
//审核未通过
|
//审核未通过
|
||||||
|
|||||||
@@ -179,11 +179,14 @@ public class HyPartnerInterviewPlanServiceImpl implements HyPartnerInterviewPlan
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
List<Long> lineIds = overTimeReserveLineList.stream().map(o -> o.getId()).collect(Collectors.toList());
|
List<Long> lineIds = overTimeReserveLineList.stream().map(o -> o.getId()).collect(Collectors.toList());
|
||||||
List<HyPartnerInterviewDO> interviewBaseInfoList = hyPartnerInterviewMapper.getInterviewBaseInfoListByLineIds(lineIds);
|
for (Long lineId : lineIds) {
|
||||||
if(CollectionUtils.isEmpty(interviewBaseInfoList)){
|
CloseFollowRequest closeFollowRequest = new CloseFollowRequest();
|
||||||
return;
|
closeFollowRequest.setRejectPublicReason("超时未预约");
|
||||||
|
closeFollowRequest.setRejectRealReason("超时未预约");
|
||||||
|
closeFollowRequest.setLineId(lineId);
|
||||||
|
closeFollowRequest.setType("overtime_interview");
|
||||||
|
hyPartnerLineInfoService.closeOrPassFollow(null,closeFollowRequest);
|
||||||
}
|
}
|
||||||
handleOverTimeInterview(interviewBaseInfoList,"超时未预约");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -192,7 +195,7 @@ public class HyPartnerInterviewPlanServiceImpl implements HyPartnerInterviewPlan
|
|||||||
//更新会议开始时间为5分钟之内的房间状态为开启,会议状态变为已开始
|
//更新会议开始时间为5分钟之内的房间状态为开启,会议状态变为已开始
|
||||||
Date startTime = new Date();
|
Date startTime = new Date();
|
||||||
|
|
||||||
List<HyPartnerLineInfoDO> waitForOpenInterviewLineList = hyPartnerLineInfoMapper.getWaitForOpenInterviewLineList(startTime, DateUtil.offsetMinute(startTime, 5));
|
List<HyPartnerLineInfoDO> waitForOpenInterviewLineList = hyPartnerLineInfoMapper.getWaitForOpenInterviewLineList(DateUtil.offsetDay(startTime,-2), DateUtil.offsetMinute(startTime, 5));
|
||||||
if(CollectionUtils.isEmpty(waitForOpenInterviewLineList)){
|
if(CollectionUtils.isEmpty(waitForOpenInterviewLineList)){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -248,6 +251,7 @@ public class HyPartnerInterviewPlanServiceImpl implements HyPartnerInterviewPlan
|
|||||||
for (Long lineId : lineIds) {
|
for (Long lineId : lineIds) {
|
||||||
CloseFollowRequest closeFollowRequest = new CloseFollowRequest();
|
CloseFollowRequest closeFollowRequest = new CloseFollowRequest();
|
||||||
closeFollowRequest.setRejectPublicReason(rejectPublicReason);
|
closeFollowRequest.setRejectPublicReason(rejectPublicReason);
|
||||||
|
closeFollowRequest.setRejectRealReason(rejectPublicReason);
|
||||||
closeFollowRequest.setLineId(lineId);
|
closeFollowRequest.setLineId(lineId);
|
||||||
closeFollowRequest.setType("overtime_interview");
|
closeFollowRequest.setType("overtime_interview");
|
||||||
hyPartnerLineInfoService.closeOrPassFollow(null,closeFollowRequest);
|
hyPartnerLineInfoService.closeOrPassFollow(null,closeFollowRequest);
|
||||||
|
|||||||
@@ -258,6 +258,7 @@ public class InterviewServiceImpl implements InterviewService {
|
|||||||
|
|
||||||
record.setId(Long.valueOf(request.getInterviewPlanId()));
|
record.setId(Long.valueOf(request.getInterviewPlanId()));
|
||||||
record.setStartTime(Convert.toDate(request.getNewStartBookingTime()));
|
record.setStartTime(Convert.toDate(request.getNewStartBookingTime()));
|
||||||
|
record.setInterviewDate(Convert.toDate(request.getNewStartBookingTime()));
|
||||||
record.setEndTime(Convert.toDate(request.getNewEndBookingTime()));
|
record.setEndTime(Convert.toDate(request.getNewEndBookingTime()));
|
||||||
record.setUpdateTime(new Date());
|
record.setUpdateTime(new Date());
|
||||||
hyPartnerInterviewPlanMapper.updateByPrimaryKeySelective(record);
|
hyPartnerInterviewPlanMapper.updateByPrimaryKeySelective(record);
|
||||||
|
|||||||
@@ -187,6 +187,7 @@ public class PartnerInterviewServiceImpl implements PartnerInterviewService {
|
|||||||
HyPartnerInterviewPlanDO record = new HyPartnerInterviewPlanDO();
|
HyPartnerInterviewPlanDO record = new HyPartnerInterviewPlanDO();
|
||||||
record.setId(Long.valueOf(request.getInterviewPlanId()));
|
record.setId(Long.valueOf(request.getInterviewPlanId()));
|
||||||
record.setStartTime(Convert.toDate(request.getNewStartBookingTime()));
|
record.setStartTime(Convert.toDate(request.getNewStartBookingTime()));
|
||||||
|
record.setInterviewDate(Convert.toDate(request.getNewStartBookingTime()));
|
||||||
record.setEndTime(Convert.toDate(request.getNewEndBookingTime()));
|
record.setEndTime(Convert.toDate(request.getNewEndBookingTime()));
|
||||||
record.setUpdateTime(new Date());
|
record.setUpdateTime(new Date());
|
||||||
interviewPlanMapper.updateByPrimaryKeySelective(record);
|
interviewPlanMapper.updateByPrimaryKeySelective(record);
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ public class ContentController {
|
|||||||
@PostMapping("/queryTitles")
|
@PostMapping("/queryTitles")
|
||||||
@ApiOperation("搜索标题是否重复")
|
@ApiOperation("搜索标题是否重复")
|
||||||
public ResponseResult<Boolean> queryTitles(@RequestBody ContentQueryTitlesDto title) {
|
public ResponseResult<Boolean> queryTitles(@RequestBody ContentQueryTitlesDto title) {
|
||||||
return ResponseResult.success(contentService.queryTitles(title.getTittle()));
|
return ResponseResult.success(contentService.queryTitles(title.getTitle()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ public class ContentController {
|
|||||||
@ApiOperation("查询动态列表")
|
@ApiOperation("查询动态列表")
|
||||||
public ResponseResult<PageInfo<HyContentInfoVO>> queryContentList(@RequestBody ContentQueryListDto dto) {
|
public ResponseResult<PageInfo<HyContentInfoVO>> queryContentList(@RequestBody ContentQueryListDto dto) {
|
||||||
PageHelper.startPage(dto.getPageNum(), dto.getPageSize());
|
PageHelper.startPage(dto.getPageNum(), dto.getPageSize());
|
||||||
List<HyContentInfoVO> list = contentService.queryContentList(dto);
|
List<HyContentInfoVO> list = contentService.queryContentListToC(dto);
|
||||||
PageInfo<HyContentInfoVO> page = new PageInfo<>(list);
|
PageInfo<HyContentInfoVO> page = new PageInfo<>(list);
|
||||||
return ResponseResult.success(page);
|
return ResponseResult.success(page);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user