diff --git a/coolstore-partner-dao/src/main/java/com/cool/store/dao/ContentDAO.java b/coolstore-partner-dao/src/main/java/com/cool/store/dao/ContentDAO.java new file mode 100644 index 000000000..4dd47cf76 --- /dev/null +++ b/coolstore-partner-dao/src/main/java/com/cool/store/dao/ContentDAO.java @@ -0,0 +1,46 @@ +package com.cool.store.dao; + +import cn.hutool.core.bean.BeanUtil; +import com.cool.store.dto.content.ContentAddDto; +import com.cool.store.dto.content.ContentQueryListDto; +import com.cool.store.dto.content.ContentUpdateDto; +import com.cool.store.entity.HyContentInfoDO; +import com.cool.store.mapper.HyContentInfoMapper; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import java.util.List; + +@Repository +@Deprecated +public class ContentDAO { + + @Autowired + private HyContentInfoMapper contentInfoMapper; + + public String addContentInfo(ContentAddDto dto) { + HyContentInfoDO hyContentInfoDO = new HyContentInfoDO(); + BeanUtil.copyProperties(dto, hyContentInfoDO); + hyContentInfoDO.setUpdateUserId(dto.getCreateUserId()); + return Integer.toString(contentInfoMapper.insertSelective(hyContentInfoDO)); + } + + public void deleteContent(String contentId) { + contentInfoMapper.deleteSelective(contentId); + } + + public void updateContent(ContentUpdateDto dto) { + HyContentInfoDO hyContentInfoDO = new HyContentInfoDO(); + BeanUtil.copyProperties(dto, hyContentInfoDO); + hyContentInfoDO.setId(Long.parseLong(dto.getContentId())); + contentInfoMapper.updateByPrimaryKeySelective(hyContentInfoDO); + } + + public List queryContentList(ContentQueryListDto dto) { + return contentInfoMapper.queryContentList(dto); + } + + public HyContentInfoDO queryContentInfo(String contentId) { + return contentInfoMapper.queryContentInfo(contentId); + } +} diff --git a/coolstore-partner-dao/src/main/java/com/cool/store/mapper/HyContentInfoMapper.java b/coolstore-partner-dao/src/main/java/com/cool/store/mapper/HyContentInfoMapper.java index dd6033691..97486acbc 100644 --- a/coolstore-partner-dao/src/main/java/com/cool/store/mapper/HyContentInfoMapper.java +++ b/coolstore-partner-dao/src/main/java/com/cool/store/mapper/HyContentInfoMapper.java @@ -1,8 +1,11 @@ package com.cool.store.mapper; +import com.cool.store.dto.content.ContentQueryListDto; import com.cool.store.entity.HyContentInfoDO; import org.apache.ibatis.annotations.Param; +import java.util.List; + /** * @author zhangchenbiao * @date 2023-05-29 03:50 @@ -22,4 +25,22 @@ public interface HyContentInfoMapper { * dateTime:2023-05-29 03:50 */ int updateByPrimaryKeySelective(@Param("record") HyContentInfoDO record); + + /** + * 删除方法 + * @param contentId + */ + void deleteSelective(@Param("contentId") String contentId); + + /** + * 分页查询动态列表 + * 根据传入参数匹配 + */ + List queryContentList(ContentQueryListDto dto); + + /** + * 根据contentId查询动态详情 + */ + HyContentInfoDO queryContentInfo(@Param("contentId") String contentId); + } \ No newline at end of file diff --git a/coolstore-partner-dao/src/main/java/com/cool/store/mapper/HyPartnerInterviewMapper.java b/coolstore-partner-dao/src/main/java/com/cool/store/mapper/HyPartnerInterviewMapper.java index 9fdddcda5..af6ade214 100644 --- a/coolstore-partner-dao/src/main/java/com/cool/store/mapper/HyPartnerInterviewMapper.java +++ b/coolstore-partner-dao/src/main/java/com/cool/store/mapper/HyPartnerInterviewMapper.java @@ -1,25 +1,34 @@ package com.cool.store.mapper; import com.cool.store.entity.HyPartnerInterviewDO; +import com.cool.store.vo.PartnerInterviewInfoVO; import org.apache.ibatis.annotations.Param; /** * @author zhangchenbiao - * @date 2023-05-29 03:52 + * @date 2023-06-09 05:51 */ public interface HyPartnerInterviewMapper { /** * * 默认插入方法,只会给有值的字段赋值 * 会对传进来的字段做判空处理,如果字段为空,则使用数据库默认字段或者null - * dateTime:2023-05-29 03:52 + * dateTime:2023-06-09 05:51 */ - int insertSelective(@Param("record") HyPartnerInterviewDO record); + int insertSelective(HyPartnerInterviewDO record); /** * * 默认更新方法,根据主键更新,不会把null值更新到数据库,避免覆盖之前有值的 - * dateTime:2023-05-29 03:52 + * dateTime:2023-06-09 05:51 */ - int updateByPrimaryKeySelective(@Param("record") HyPartnerInterviewDO record); + int updateByPrimaryKeySelective(HyPartnerInterviewDO record); + + /** + * 根据加盟商id查询面试信息 + * @param partnerId + * @return + */ + PartnerInterviewInfoVO queryByPartnerId(@Param("partnerId") String partnerId); + } \ No newline at end of file diff --git a/coolstore-partner-dao/src/main/resources/mapper/HyContentInfoMapper.xml b/coolstore-partner-dao/src/main/resources/mapper/HyContentInfoMapper.xml index 71fa3c625..a2b208381 100644 --- a/coolstore-partner-dao/src/main/resources/mapper/HyContentInfoMapper.xml +++ b/coolstore-partner-dao/src/main/resources/mapper/HyContentInfoMapper.xml @@ -100,40 +100,69 @@ update hy_content_info - + content_title = #{record.contentTitle}, - + subject = #{record.subject}, - + content_type = #{record.contentType}, - + cover = #{record.cover}, - + status = #{record.status}, - + deleted = #{record.deleted}, - + create_time = #{record.createTime}, - + update_time = #{record.updateTime}, - + create_user_id = #{record.createUserId}, - + update_user_id = #{record.updateUserId}, - + content = #{record.content}, where id = #{record.id} + + update hy_content_info + + deleted = 1 + + where id = #{contentId} + + + + + \ No newline at end of file diff --git a/coolstore-partner-dao/src/main/resources/mapper/HyPartnerInterviewMapper.xml b/coolstore-partner-dao/src/main/resources/mapper/HyPartnerInterviewMapper.xml index ada661bab..c8229ffec 100644 --- a/coolstore-partner-dao/src/main/resources/mapper/HyPartnerInterviewMapper.xml +++ b/coolstore-partner-dao/src/main/resources/mapper/HyPartnerInterviewMapper.xml @@ -5,7 +5,7 @@ - + @@ -21,185 +21,244 @@ + + + + + + + + + + + + - id, status, partner_line_id, interview_arrangement_id, partner_id, deadline, interviewer, - recorder, process_info, record_time, summary, auth_code, pass_file_url, expiry_date, - latest_log_message, pass_reason, certify_file, create_time, update_time + id, status, partner_line_id, interview_plan_id, partner_id, deadline, interviewer, + recorder, process_info, record_time, summary, auth_code, pass_file_url, expiry_date, + latest_log_message, pass_reason, certify_file, create_time, update_time, approve_time, + partner_enter_time, interviewer_enter_time insert into hy_partner_interview - + status, - + partner_line_id, - - interview_arrangement_id, + + interview_plan_id, - + partner_id, - + deadline, - + interviewer, - + recorder, - + process_info, - + record_time, - + summary, - + auth_code, - + pass_file_url, - + expiry_date, - + latest_log_message, - + pass_reason, - + certify_file, - + create_time, - + update_time, + + approve_time, + + + partner_enter_time, + + + interviewer_enter_time, + - - #{record.status}, + + #{status}, - - #{record.partnerLineId}, + + #{partnerLineId}, - - #{record.interviewArrangementId}, + + #{interviewPlanId}, - - #{record.partnerId}, + + #{partnerId}, - - #{record.deadline}, + + #{deadline}, - - #{record.interviewer}, + + #{interviewer}, - - #{record.recorder}, + + #{recorder}, - - #{record.processInfo}, + + #{processInfo}, - - #{record.recordTime}, + + #{recordTime}, - - #{record.summary}, + + #{summary}, - - #{record.authCode}, + + #{authCode}, - - #{record.passFileUrl}, + + #{passFileUrl}, - - #{record.expiryDate}, + + #{expiryDate}, - - #{record.latestLogMessage}, + + #{latestLogMessage}, - - #{record.passReason}, + + #{passReason}, - - #{record.certifyFile}, + + #{certifyFile}, - - #{record.createTime}, + + #{createTime}, - - #{record.updateTime}, + + #{updateTime}, + + + #{approveTime}, + + + #{partnerEnterTime}, + + + #{interviewerEnterTime}, update hy_partner_interview - - status = #{record.status}, + + status = #{status}, - - partner_line_id = #{record.partnerLineId}, + + partner_line_id = #{partnerLineId}, - - interview_arrangement_id = #{record.interviewArrangementId}, + + interview_plan_id = #{interviewPlanId}, - - partner_id = #{record.partnerId}, + + partner_id = #{partnerId}, - - deadline = #{record.deadline}, + + deadline = #{deadline}, - - interviewer = #{record.interviewer}, + + interviewer = #{interviewer}, - - recorder = #{record.recorder}, + + recorder = #{recorder}, - - process_info = #{record.processInfo}, + + process_info = #{processInfo}, - - record_time = #{record.recordTime}, + + record_time = #{recordTime}, - - summary = #{record.summary}, + + summary = #{summary}, - - auth_code = #{record.authCode}, + + auth_code = #{authCode}, - - pass_file_url = #{record.passFileUrl}, + + pass_file_url = #{passFileUrl}, - - expiry_date = #{record.expiryDate}, + + expiry_date = #{expiryDate}, - - latest_log_message = #{record.latestLogMessage}, + + latest_log_message = #{latestLogMessage}, - - pass_reason = #{record.passReason}, + + pass_reason = #{passReason}, - - certify_file = #{record.certifyFile}, + + certify_file = #{certifyFile}, - - create_time = #{record.createTime}, + + create_time = #{createTime}, - - update_time = #{record.updateTime}, + + update_time = #{updateTime}, + + + approve_time = #{approveTime}, + + + partner_enter_time = #{partnerEnterTime}, + + + interviewer_enter_time = #{interviewerEnterTime}, - where id = #{record.id} + where id = #{id} + + + + + \ No newline at end of file diff --git a/coolstore-partner-model/src/main/java/com/cool/store/dto/content/ContentAddDto.java b/coolstore-partner-model/src/main/java/com/cool/store/dto/content/ContentAddDto.java new file mode 100644 index 000000000..e130c0606 --- /dev/null +++ b/coolstore-partner-model/src/main/java/com/cool/store/dto/content/ContentAddDto.java @@ -0,0 +1,30 @@ +package com.cool.store.dto.content; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +@Data +public class ContentAddDto { + + @ApiModelProperty(value = "标题", required = true) + private String contentTitle; + + @ApiModelProperty(value = "状态,0.启用1.禁用", required = true) + private String status; + + @ApiModelProperty(value = "栏目code", required = true) + private String subject; + + @ApiModelProperty(value = "类型", required = true) + private String contentType; + + @ApiModelProperty(value = "封面地址", required = true) + private String cover; + + @ApiModelProperty(value = "内容(文字信息或视频地址)", required = true) + private String content; + + @ApiModelProperty(value = "创建用户id", required = true) + private String createUserId; + +} diff --git a/coolstore-partner-model/src/main/java/com/cool/store/dto/content/ContentQueryListDto.java b/coolstore-partner-model/src/main/java/com/cool/store/dto/content/ContentQueryListDto.java new file mode 100644 index 000000000..9ac3cd8ea --- /dev/null +++ b/coolstore-partner-model/src/main/java/com/cool/store/dto/content/ContentQueryListDto.java @@ -0,0 +1,21 @@ +package com.cool.store.dto.content; + +import com.cool.store.common.PageBasicInfo; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +@EqualsAndHashCode(callSuper = true) +@Data +public class ContentQueryListDto extends PageBasicInfo { + + @ApiModelProperty("标题") + private String contentTitle; + + @ApiModelProperty("栏目Code") + private String subject; + + @ApiModelProperty("类型,默认选中全部时不传值") + private String contentType; + +} diff --git a/coolstore-partner-model/src/main/java/com/cool/store/dto/content/ContentUpdateDto.java b/coolstore-partner-model/src/main/java/com/cool/store/dto/content/ContentUpdateDto.java new file mode 100644 index 000000000..d95330fbf --- /dev/null +++ b/coolstore-partner-model/src/main/java/com/cool/store/dto/content/ContentUpdateDto.java @@ -0,0 +1,33 @@ +package com.cool.store.dto.content; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +@Data +public class ContentUpdateDto { + + @ApiModelProperty(value = "动态id", required = true) + private String contentId; + + @ApiModelProperty("标题") + private String contentTitle; + + @ApiModelProperty("状态,0.启用1.禁用") + private String status; + + @ApiModelProperty("栏目code") + private String subject; + + @ApiModelProperty("类型") + private String contentType; + + @ApiModelProperty("封面地址") + private String cover; + + @ApiModelProperty("内容(文字信息或视频地址)") + private String content; + + @ApiModelProperty(value = "更新用户id", required = true) + private String updateUserId; + +} diff --git a/coolstore-partner-model/src/main/java/com/cool/store/entity/HyPartnerInterviewDO.java b/coolstore-partner-model/src/main/java/com/cool/store/entity/HyPartnerInterviewDO.java index 12efe3d0b..2a13043ad 100644 --- a/coolstore-partner-model/src/main/java/com/cool/store/entity/HyPartnerInterviewDO.java +++ b/coolstore-partner-model/src/main/java/com/cool/store/entity/HyPartnerInterviewDO.java @@ -11,7 +11,7 @@ import lombok.NoArgsConstructor; /** * * @author zhangchenbiao - * @date 2023-05-29 03:52 + * @date 2023-06-09 05:51 */ @Data @Builder @@ -27,8 +27,8 @@ public class HyPartnerInterviewDO implements Serializable { @ApiModelProperty("hy_partner_line_info.id") private Long partnerLineId; - @ApiModelProperty("hy_partner_interview_arrangement.id") - private Long interviewArrangementId; + @ApiModelProperty("hy_partner_interview_plan.id") + private Long interviewPlanId; @ApiModelProperty("hy_partner_user_info.partner_id") private String partnerId; @@ -74,4 +74,13 @@ public class HyPartnerInterviewDO implements Serializable { @ApiModelProperty("更新时间") private Date updateTime; + + @ApiModelProperty("审批发起时间") + private Date approveTime; + + @ApiModelProperty("加盟商进入面试时间") + private Date partnerEnterTime; + + @ApiModelProperty("面试官进入面试时间") + private Date interviewerEnterTime; } \ No newline at end of file diff --git a/coolstore-partner-model/src/main/java/com/cool/store/vo/PartnerInterviewInfoVO.java b/coolstore-partner-model/src/main/java/com/cool/store/vo/PartnerInterviewInfoVO.java index 77eb11cee..50ec23725 100644 --- a/coolstore-partner-model/src/main/java/com/cool/store/vo/PartnerInterviewInfoVO.java +++ b/coolstore-partner-model/src/main/java/com/cool/store/vo/PartnerInterviewInfoVO.java @@ -4,8 +4,6 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; -import java.util.Date; - /** * @Author suzhuhong * @Date 2023/5/30 20:28 @@ -15,48 +13,31 @@ import java.util.Date; @ApiModel public class PartnerInterviewInfoVO { - - @ApiModelProperty("") - private Long id; - - @ApiModelProperty("加盟商用户名称") - private String partnerUserName; + @ApiModelProperty("会议id") + private String interviewId; @ApiModelProperty("预约状态 0 待预约;1待面试;2已开始;3待审核;4审批中;5审批通过;6拒绝") private Integer status; - @ApiModelProperty("hy_partner_line_info.id") - private Long partnerLineId; + @ApiModelProperty("会议开始时间") + private String startTime; - @ApiModelProperty("hy_partner_interview_arrangement.id") - private Long interviewArrangementId; + @ApiModelProperty("会议结束时间") + private String endTime; + + @ApiModelProperty("房间号") + private String roomId; @ApiModelProperty("加盟商用户ID") private String partnerId; - @ApiModelProperty("截止时间") - private Date deadline; - - @ApiModelProperty("审批发起时间") - private Date approveTime; - - @ApiModelProperty("意向合同号") - private String authCode; - - @ApiModelProperty("面试开始时间") - private Date startTime; + @ApiModelProperty("加盟商用户名称") + private String partnerName; @ApiModelProperty("面试官ID") - private String interviewer; + private String interviewerId; @ApiModelProperty("面试官名称") private String interviewerName; - @ApiModelProperty("预约时间") - private Date createTime; - - @ApiModelProperty("房间号") - private String roomId; - @ApiModelProperty("过程信息") - private String processInfo; } diff --git a/coolstore-partner-service/src/main/java/com/cool/store/service/ContentService.java b/coolstore-partner-service/src/main/java/com/cool/store/service/ContentService.java new file mode 100644 index 000000000..30959d3af --- /dev/null +++ b/coolstore-partner-service/src/main/java/com/cool/store/service/ContentService.java @@ -0,0 +1,43 @@ +package com.cool.store.service; + +import com.cool.store.dto.content.ContentAddDto; +import com.cool.store.dto.content.ContentQueryListDto; +import com.cool.store.dto.content.ContentUpdateDto; +import com.cool.store.entity.HyContentInfoDO; + +import java.util.List; + +public interface ContentService { + + /** + * + * @param dto + * @return contentId 新增动态id + */ + String addNews(ContentAddDto dto); + + /** + * 删除动态 + * @param contentId + */ + void deleteContent(String contentId); + + /** + * 更新动态信息 + * @param dto + */ + void updateContent(ContentUpdateDto dto); + + /** + * 查询动态列表 + */ + List queryContentList(ContentQueryListDto dto); + + /** + * 查询动态详情 + * @param contentId + * @return + */ + HyContentInfoDO queryContentInfo(String contentId); + +} diff --git a/coolstore-partner-service/src/main/java/com/cool/store/service/PartnerInterviewService.java b/coolstore-partner-service/src/main/java/com/cool/store/service/PartnerInterviewService.java new file mode 100644 index 000000000..2642ea009 --- /dev/null +++ b/coolstore-partner-service/src/main/java/com/cool/store/service/PartnerInterviewService.java @@ -0,0 +1,14 @@ +package com.cool.store.service; + +import com.cool.store.vo.PartnerInterviewInfoVO; + +public interface PartnerInterviewService { + + /** + * 加盟商查询面试信息 + * @param partnerId + * @return + */ + PartnerInterviewInfoVO queryByPartnerId(String partnerId); + +} diff --git a/coolstore-partner-service/src/main/java/com/cool/store/service/impl/ContentServiceImpl.java b/coolstore-partner-service/src/main/java/com/cool/store/service/impl/ContentServiceImpl.java new file mode 100644 index 000000000..6babfd2e8 --- /dev/null +++ b/coolstore-partner-service/src/main/java/com/cool/store/service/impl/ContentServiceImpl.java @@ -0,0 +1,77 @@ +package com.cool.store.service.impl; + +import cn.hutool.core.bean.BeanUtil; +import com.cool.store.dao.ContentDAO; +import com.cool.store.dto.content.ContentAddDto; +import com.cool.store.dto.content.ContentQueryListDto; +import com.cool.store.dto.content.ContentUpdateDto; +import com.cool.store.entity.HyContentInfoDO; +import com.cool.store.mapper.HyContentInfoMapper; +import com.cool.store.service.ContentService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +@Service +public class ContentServiceImpl implements ContentService { + + @Autowired + private ContentDAO contentDAO; + + @Autowired + private HyContentInfoMapper contentInfoMapper; + + /** + * + * @param dto + * @return contentId 新增动态id + */ + @Override + public String addNews(ContentAddDto dto) { + HyContentInfoDO hyContentInfoDO = new HyContentInfoDO(); + BeanUtil.copyProperties(dto, hyContentInfoDO); + hyContentInfoDO.setUpdateUserId(dto.getCreateUserId()); + return Integer.toString(contentInfoMapper.insertSelective(hyContentInfoDO)); + } + + /** + * 删除动态 + * @param contentId + */ + @Override + public void deleteContent(String contentId) { + contentInfoMapper.deleteSelective(contentId); + } + + /** + * 更新动态信息 + * @param dto + */ + @Override + public void updateContent(ContentUpdateDto dto) { + HyContentInfoDO hyContentInfoDO = new HyContentInfoDO(); + BeanUtil.copyProperties(dto, hyContentInfoDO); + hyContentInfoDO.setId(Long.parseLong(dto.getContentId())); + contentInfoMapper.updateByPrimaryKeySelective(hyContentInfoDO); + } + + /** + * 查询动态列表 + */ + @Override + public List queryContentList(ContentQueryListDto dto) { + return contentInfoMapper.queryContentList(dto); + } + + /** + * 查询动态详情 + * @param contentId + * @return + */ + @Override + public HyContentInfoDO queryContentInfo(String contentId) { + return contentInfoMapper.queryContentInfo(contentId); + } + +} diff --git a/coolstore-partner-service/src/main/java/com/cool/store/service/impl/PartnerInterviewServiceImpl.java b/coolstore-partner-service/src/main/java/com/cool/store/service/impl/PartnerInterviewServiceImpl.java new file mode 100644 index 000000000..0da11cb76 --- /dev/null +++ b/coolstore-partner-service/src/main/java/com/cool/store/service/impl/PartnerInterviewServiceImpl.java @@ -0,0 +1,25 @@ +package com.cool.store.service.impl; + +import com.cool.store.mapper.HyPartnerInterviewMapper; +import com.cool.store.service.PartnerInterviewService; +import com.cool.store.vo.PartnerInterviewInfoVO; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +@Service +public class PartnerInterviewServiceImpl implements PartnerInterviewService { + + @Autowired + private HyPartnerInterviewMapper interviewMapper; + + /** + * 加盟商查询面试信息 + * @param partnerId + * @return + */ + @Override + public PartnerInterviewInfoVO queryByPartnerId(String partnerId) { + return interviewMapper.queryByPartnerId(partnerId); + } + +} diff --git a/coolstore-partner-webb/src/main/java/com/cool/store/controller/ContentController.java b/coolstore-partner-webb/src/main/java/com/cool/store/controller/ContentController.java new file mode 100644 index 000000000..164f1f48c --- /dev/null +++ b/coolstore-partner-webb/src/main/java/com/cool/store/controller/ContentController.java @@ -0,0 +1,59 @@ +package com.cool.store.controller; + +import com.cool.store.dto.content.ContentAddDto; +import com.cool.store.dto.content.ContentQueryListDto; +import com.cool.store.dto.content.ContentUpdateDto; +import com.cool.store.entity.HyContentInfoDO; +import com.cool.store.response.ResponseResult; +import com.cool.store.service.ContentService; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import io.swagger.annotations.ApiOperation; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +@RestController +@RequestMapping("news") +@Slf4j +public class ContentController { + + @Autowired + private ContentService contentService; + + @PostMapping("/add") + @ApiOperation("新增动态") + public ResponseResult addContent(@RequestBody ContentAddDto dto) { + return ResponseResult.success(contentService.addNews(dto)); + } + + @PostMapping("/delete") + @ApiOperation("删除动态") + public void deleteContent(@RequestParam(value = "contentId") String contentId) { + contentService.deleteContent(contentId); + } + + @PostMapping("/modify") + @ApiOperation("修改动态") + public void updateContent(@RequestBody ContentUpdateDto dto) { + contentService.updateContent(dto); + } + + @PostMapping("/queryContentList") + @ApiOperation("查询动态列表") + public ResponseResult> queryContentList(@RequestBody ContentQueryListDto dto) { + PageHelper.startPage(dto.getPageNum(), dto.getPageSize()); + List list = contentService.queryContentList(dto); + PageInfo page = new PageInfo<>(list); + return ResponseResult.success(page); + } + + @PostMapping("/detail") + @ApiOperation("动态详情") + public ResponseResult queryContentInfo(@RequestParam String contentId) { + return ResponseResult.success(contentService.queryContentInfo(contentId)); + } + +} diff --git a/coolstore-partner-webc/src/main/java/com/cool/store/controller/InterviewController.java b/coolstore-partner-webc/src/main/java/com/cool/store/controller/InterviewController.java new file mode 100644 index 000000000..643af29ca --- /dev/null +++ b/coolstore-partner-webc/src/main/java/com/cool/store/controller/InterviewController.java @@ -0,0 +1,28 @@ +package com.cool.store.controller; + +import com.cool.store.response.ResponseResult; +import com.cool.store.service.PartnerInterviewService; +import com.cool.store.vo.PartnerInterviewInfoVO; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +@Api(tags = "加盟商资格面试") +@RestController +@RequestMapping("interview") +public class InterviewController { + + @Autowired + private PartnerInterviewService interviewService; + + @PostMapping("/queryByPartnerId") + @ApiOperation("根据用户id查询面试信息") + public ResponseResult queryByPartnerId(@RequestParam String partnerId) { + return ResponseResult.success(interviewService.queryByPartnerId(partnerId)); + } + +}