|
@@ -9,14 +9,12 @@ import com.citu.module.menduner.system.controller.admin.job.vo.JobAdvertisedPage
|
|
|
import com.citu.module.menduner.system.controller.admin.job.vo.JobAdvertisedSaveReqVO;
|
|
|
import com.citu.module.menduner.system.controller.app.contact.AppEnterpriseUserContactRespVO;
|
|
|
import com.citu.module.menduner.system.controller.app.enterprise.vo.AppEnterpriseSimpleRespVO;
|
|
|
-import com.citu.module.menduner.system.controller.app.job.vo.AppEnterpriseJobHomeRespVO;
|
|
|
-import com.citu.module.menduner.system.controller.app.job.vo.AppJobAdvertisedDetailRespVO;
|
|
|
-import com.citu.module.menduner.system.controller.app.job.vo.AppJobHomeRespVO;
|
|
|
-import com.citu.module.menduner.system.controller.app.job.vo.AppJobSimpleRespVO;
|
|
|
+import com.citu.module.menduner.system.controller.app.job.vo.*;
|
|
|
import com.citu.module.menduner.system.dal.dataobject.job.JobAdvertisedDO;
|
|
|
import com.citu.module.menduner.system.dal.mysql.job.JobAdvertisedMapper;
|
|
|
import com.citu.module.menduner.system.enums.MendunerStatusEnum;
|
|
|
import com.citu.module.menduner.system.service.visits.MdeVisitsService;
|
|
|
+import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
@@ -41,10 +39,6 @@ public class JobAdvertisedServiceImpl implements JobAdvertisedService {
|
|
|
@Resource
|
|
|
private JobAdvertisedMapper jobAdvertisedMapper;
|
|
|
|
|
|
-
|
|
|
- @Resource
|
|
|
- private MdeVisitsService visitsService;
|
|
|
-
|
|
|
@Override
|
|
|
public Long createJobAdvertised(JobAdvertisedSaveReqVO createReqVO) {
|
|
|
// 插入
|
|
@@ -87,17 +81,17 @@ public class JobAdvertisedServiceImpl implements JobAdvertisedService {
|
|
|
return jobAdvertisedMapper.selectPage(pageReqVO);
|
|
|
}
|
|
|
|
|
|
- public PageResult<AppJobHomeRespVO> generate() {
|
|
|
- PageResult<AppJobHomeRespVO> result = new PageResult<>();
|
|
|
- List<AppJobHomeRespVO> list = new ArrayList<>();
|
|
|
+ public PageResult<AppJobAdvertisedRespVO> generate() {
|
|
|
+ PageResult<AppJobAdvertisedRespVO> result = new PageResult<>();
|
|
|
+ List<AppJobAdvertisedRespVO> list = new ArrayList<>();
|
|
|
|
|
|
- AppJobHomeRespVO respVO1 = new AppJobHomeRespVO();
|
|
|
+ AppJobAdvertisedRespVO respVO1 = new AppJobAdvertisedRespVO();
|
|
|
respVO1.setId(1L);
|
|
|
respVO1.setAreaId(110000L);
|
|
|
respVO1.setPositionId(1L);
|
|
|
respVO1.setPayFrom(BigDecimal.valueOf(5));
|
|
|
respVO1.setPayTo(BigDecimal.valueOf(12));
|
|
|
- respVO1.setPayUnit(0);
|
|
|
+ respVO1.setPayUnit(2);
|
|
|
respVO1.setName("项目经理");
|
|
|
respVO1.setExpType(0);
|
|
|
respVO1.setEduType(0);
|
|
@@ -106,10 +100,10 @@ public class JobAdvertisedServiceImpl implements JobAdvertisedService {
|
|
|
respVO1.setAnotherName("门墩儿科技");
|
|
|
respVO1.setIndustryId(1L);
|
|
|
respVO1.setScale(0);
|
|
|
- respVO1.setLogo_url("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
+ respVO1.setLogoUrl("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
list.add(respVO1);
|
|
|
|
|
|
- AppJobHomeRespVO respVO2 = new AppJobHomeRespVO();
|
|
|
+ AppJobAdvertisedRespVO respVO2 = new AppJobAdvertisedRespVO();
|
|
|
respVO2.setId(2L);
|
|
|
respVO2.setAreaId(440100L);
|
|
|
respVO2.setPositionId(2L);
|
|
@@ -124,17 +118,17 @@ public class JobAdvertisedServiceImpl implements JobAdvertisedService {
|
|
|
respVO2.setAnotherName("门墩儿科技");
|
|
|
respVO2.setIndustryId(2L);
|
|
|
respVO2.setScale(1);
|
|
|
- respVO2.setLogo_url("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
+ respVO2.setLogoUrl("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
list.add(respVO2);
|
|
|
|
|
|
|
|
|
- AppJobHomeRespVO respVO3 = new AppJobHomeRespVO();
|
|
|
+ AppJobAdvertisedRespVO respVO3 = new AppJobAdvertisedRespVO();
|
|
|
respVO3.setId(3L);
|
|
|
respVO3.setAreaId(440300L);
|
|
|
respVO3.setPositionId(3L);
|
|
|
respVO3.setPayFrom(BigDecimal.valueOf(18));
|
|
|
respVO3.setPayTo(BigDecimal.valueOf(22));
|
|
|
- respVO3.setPayUnit(0);
|
|
|
+ respVO3.setPayUnit(3);
|
|
|
respVO3.setName("网管");
|
|
|
respVO3.setExpType(2);
|
|
|
respVO3.setEduType(2);
|
|
@@ -143,10 +137,10 @@ public class JobAdvertisedServiceImpl implements JobAdvertisedService {
|
|
|
respVO3.setAnotherName("门墩儿科技");
|
|
|
respVO3.setIndustryId(3L);
|
|
|
respVO3.setScale(2);
|
|
|
- respVO3.setLogo_url("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
+ respVO3.setLogoUrl("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
list.add(respVO3);
|
|
|
|
|
|
- AppJobHomeRespVO respVO4 = new AppJobHomeRespVO();
|
|
|
+ AppJobAdvertisedRespVO respVO4 = new AppJobAdvertisedRespVO();
|
|
|
respVO4.setId(4L);
|
|
|
respVO4.setAreaId(440600L);
|
|
|
respVO4.setPositionId(4L);
|
|
@@ -161,10 +155,10 @@ public class JobAdvertisedServiceImpl implements JobAdvertisedService {
|
|
|
respVO4.setAnotherName("门墩儿科技");
|
|
|
respVO4.setIndustryId(4L);
|
|
|
respVO4.setScale(3);
|
|
|
- respVO4.setLogo_url("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
+ respVO4.setLogoUrl("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
list.add(respVO4);
|
|
|
|
|
|
- AppJobHomeRespVO respVO5 = new AppJobHomeRespVO();
|
|
|
+ AppJobAdvertisedRespVO respVO5 = new AppJobAdvertisedRespVO();
|
|
|
respVO5.setId(5L);
|
|
|
respVO5.setAreaId(441200L);
|
|
|
respVO5.setPositionId(5L);
|
|
@@ -179,16 +173,16 @@ public class JobAdvertisedServiceImpl implements JobAdvertisedService {
|
|
|
respVO5.setAnotherName("门墩儿科技");
|
|
|
respVO5.setIndustryId(5L);
|
|
|
respVO5.setScale(4);
|
|
|
- respVO5.setLogo_url("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
+ respVO5.setLogoUrl("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
list.add(respVO5);
|
|
|
|
|
|
- AppJobHomeRespVO respVO6 = new AppJobHomeRespVO();
|
|
|
+ AppJobAdvertisedRespVO respVO6 = new AppJobAdvertisedRespVO();
|
|
|
respVO6.setId(6L);
|
|
|
respVO6.setAreaId(440800L);
|
|
|
respVO6.setPositionId(6L);
|
|
|
respVO6.setPayFrom(BigDecimal.valueOf(100));
|
|
|
respVO6.setPayTo(BigDecimal.valueOf(200));
|
|
|
- respVO6.setPayUnit(0);
|
|
|
+ respVO6.setPayUnit(3);
|
|
|
respVO6.setName("软件开发工程师");
|
|
|
respVO6.setExpType(5);
|
|
|
respVO6.setEduType(5);
|
|
@@ -197,11 +191,11 @@ public class JobAdvertisedServiceImpl implements JobAdvertisedService {
|
|
|
respVO6.setAnotherName("门墩儿科技");
|
|
|
respVO6.setIndustryId(6L);
|
|
|
respVO6.setScale(5);
|
|
|
- respVO6.setLogo_url("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
+ respVO6.setLogoUrl("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
list.add(respVO6);
|
|
|
|
|
|
|
|
|
- AppJobHomeRespVO respVO7 = new AppJobHomeRespVO();
|
|
|
+ AppJobAdvertisedRespVO respVO7 = new AppJobAdvertisedRespVO();
|
|
|
respVO7.setId(7L);
|
|
|
respVO7.setAreaId(441900L);
|
|
|
respVO7.setPositionId(7L);
|
|
@@ -216,11 +210,11 @@ public class JobAdvertisedServiceImpl implements JobAdvertisedService {
|
|
|
respVO7.setAnotherName("门墩儿科技");
|
|
|
respVO7.setIndustryId(6L);
|
|
|
respVO7.setScale(5);
|
|
|
- respVO7.setLogo_url("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
+ respVO7.setLogoUrl("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
list.add(respVO7);
|
|
|
|
|
|
|
|
|
- AppJobHomeRespVO respVO8 = new AppJobHomeRespVO();
|
|
|
+ AppJobAdvertisedRespVO respVO8 = new AppJobAdvertisedRespVO();
|
|
|
respVO8.setId(8L);
|
|
|
respVO8.setAreaId(441700L);
|
|
|
respVO8.setPositionId(8L);
|
|
@@ -235,10 +229,10 @@ public class JobAdvertisedServiceImpl implements JobAdvertisedService {
|
|
|
respVO8.setAnotherName("门墩儿科技");
|
|
|
respVO8.setIndustryId(8L);
|
|
|
respVO8.setScale(5);
|
|
|
- respVO8.setLogo_url("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
+ respVO8.setLogoUrl("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
list.add(respVO8);
|
|
|
|
|
|
- AppJobHomeRespVO respVO9 = new AppJobHomeRespVO();
|
|
|
+ AppJobAdvertisedRespVO respVO9 = new AppJobAdvertisedRespVO();
|
|
|
respVO9.setId(9L);
|
|
|
respVO9.setAreaId(445300L);
|
|
|
respVO9.setPositionId(9L);
|
|
@@ -253,7 +247,7 @@ public class JobAdvertisedServiceImpl implements JobAdvertisedService {
|
|
|
respVO9.setAnotherName("门墩儿科技");
|
|
|
respVO9.setIndustryId(9L);
|
|
|
respVO9.setScale(5);
|
|
|
- respVO8.setLogo_url("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
+ respVO8.setLogoUrl("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
list.add(respVO9);
|
|
|
|
|
|
result.setList(list);
|
|
@@ -263,17 +257,17 @@ public class JobAdvertisedServiceImpl implements JobAdvertisedService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public PageResult<AppJobHomeRespVO> getRecommendedJobPage(PageParam pageParam) {
|
|
|
+ public PageResult<AppJobAdvertisedRespVO> getRecommendedJobPage(PageParam pageParam) {
|
|
|
return generate();
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public PageResult<AppJobHomeRespVO> getLatestJobPage(PageParam pageParam) {
|
|
|
+ public PageResult<AppJobAdvertisedRespVO> getLatestJobPage(PageParam pageParam) {
|
|
|
return generate();
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public PageResult<AppJobHomeRespVO> getUrgentJobPage(PageParam pageParam) {
|
|
|
+ public PageResult<AppJobAdvertisedRespVO> getUrgentJobPage(PageParam pageParam) {
|
|
|
return generate();
|
|
|
}
|
|
|
|
|
@@ -288,35 +282,35 @@ public class JobAdvertisedServiceImpl implements JobAdvertisedService {
|
|
|
respVO1.setIndustryId(1L);
|
|
|
respVO1.setScale(0);
|
|
|
respVO1.setFinancingStatus(0);
|
|
|
- respVO1.setLogo_url("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
- List<AppJobSimpleRespVO> list1 = new ArrayList<>();
|
|
|
- AppJobSimpleRespVO job1 = new AppJobHomeRespVO();
|
|
|
+ respVO1.setLogoUrl("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
+ List<AppJobAdvertisedSimpleRespVO> list1 = new ArrayList<>();
|
|
|
+ AppJobAdvertisedSimpleRespVO job1 = new AppJobAdvertisedRespVO();
|
|
|
job1.setId(1L);
|
|
|
job1.setAreaId(110000L);
|
|
|
job1.setPositionId(1L);
|
|
|
- job1.setPayFrom(BigDecimal.valueOf(5));
|
|
|
- job1.setPayTo(BigDecimal.valueOf(12));
|
|
|
- job1.setPayUnit(0);
|
|
|
+ job1.setPayFrom(BigDecimal.valueOf(5000));
|
|
|
+ job1.setPayTo(BigDecimal.valueOf(12000));
|
|
|
+ job1.setPayUnit(1);
|
|
|
job1.setName("项目经理");
|
|
|
job1.setExpType(0);
|
|
|
job1.setEduType(0);
|
|
|
job1.setTagList(ListUtil.of("无经验要求", "金融产品", "不限", "不接受居家办公", "教育培训", "互联网金融"));
|
|
|
list1.add(job1);
|
|
|
|
|
|
- AppJobSimpleRespVO job2 = new AppJobHomeRespVO();
|
|
|
+ AppJobAdvertisedSimpleRespVO job2 = new AppJobAdvertisedRespVO();
|
|
|
job2.setId(2L);
|
|
|
job2.setAreaId(440100L);
|
|
|
job2.setPositionId(2L);
|
|
|
- job2.setPayFrom(BigDecimal.valueOf(18));
|
|
|
- job2.setPayTo(BigDecimal.valueOf(22));
|
|
|
- job2.setPayUnit(1);
|
|
|
+ job2.setPayFrom(BigDecimal.valueOf(900));
|
|
|
+ job2.setPayTo(BigDecimal.valueOf(2200));
|
|
|
+ job2.setPayUnit(2);
|
|
|
job2.setName("车间主任");
|
|
|
job2.setExpType(1);
|
|
|
job2.setEduType(1);
|
|
|
job2.setTagList(ListUtil.of("无经验要求", "金融产品", "不限", "不接受居家办公", "教育培训", "互联网金融"));
|
|
|
list1.add(job1);
|
|
|
|
|
|
- AppJobSimpleRespVO job3 = new AppJobHomeRespVO();
|
|
|
+ AppJobAdvertisedSimpleRespVO job3 = new AppJobAdvertisedRespVO();
|
|
|
job3.setId(8L);
|
|
|
job3.setAreaId(441700L);
|
|
|
job3.setPositionId(8L);
|
|
@@ -339,22 +333,22 @@ public class JobAdvertisedServiceImpl implements JobAdvertisedService {
|
|
|
respVO2.setIndustryId(33L);
|
|
|
respVO2.setScale(0);
|
|
|
respVO2.setFinancingStatus(6);
|
|
|
- respVO2.setLogo_url("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
- List<AppJobSimpleRespVO> list2 = new ArrayList<>();
|
|
|
- AppJobSimpleRespVO job4 = new AppJobHomeRespVO();
|
|
|
+ respVO2.setLogoUrl("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
+ List<AppJobAdvertisedSimpleRespVO> list2 = new ArrayList<>();
|
|
|
+ AppJobAdvertisedSimpleRespVO job4 = new AppJobAdvertisedRespVO();
|
|
|
job4.setId(1L);
|
|
|
job4.setAreaId(110000L);
|
|
|
job4.setPositionId(1L);
|
|
|
job4.setPayFrom(BigDecimal.valueOf(5));
|
|
|
job4.setPayTo(BigDecimal.valueOf(12));
|
|
|
- job4.setPayUnit(0);
|
|
|
+ job4.setPayUnit(2);
|
|
|
job4.setName("项目经理");
|
|
|
job4.setExpType(0);
|
|
|
job4.setEduType(0);
|
|
|
job4.setTagList(new ArrayList<>());
|
|
|
list2.add(job4);
|
|
|
|
|
|
- AppJobSimpleRespVO job5 = new AppJobHomeRespVO();
|
|
|
+ AppJobAdvertisedSimpleRespVO job5 = new AppJobAdvertisedRespVO();
|
|
|
job5.setId(2L);
|
|
|
job5.setAreaId(440100L);
|
|
|
job5.setPositionId(2L);
|
|
@@ -388,7 +382,7 @@ public class JobAdvertisedServiceImpl implements JobAdvertisedService {
|
|
|
respVO.setPositionId(1L);
|
|
|
respVO.setPayFrom(BigDecimal.valueOf(5));
|
|
|
respVO.setPayTo(BigDecimal.valueOf(12));
|
|
|
- respVO.setPayUnit(0);
|
|
|
+ respVO.setPayUnit(2);
|
|
|
respVO.setName("项目经理");
|
|
|
respVO.setExpType(0);
|
|
|
respVO.setEduType(0);
|
|
@@ -426,9 +420,10 @@ public class JobAdvertisedServiceImpl implements JobAdvertisedService {
|
|
|
enterpriseSimpleRespVO.setIndustryId(1L);
|
|
|
enterpriseSimpleRespVO.setScale(0);
|
|
|
enterpriseSimpleRespVO.setFinancingStatus(0);
|
|
|
- enterpriseSimpleRespVO.setLogo_url("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
+ enterpriseSimpleRespVO.setLogoUrl("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
|
|
|
respVO.setEnterprise(enterpriseSimpleRespVO);
|
|
|
+ respVO.setJobAdvertisedNum(9);
|
|
|
|
|
|
AppEnterpriseUserContactRespVO contactRespVO = new AppEnterpriseUserContactRespVO();
|
|
|
contactRespVO.setAvatar("https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fsafe-img.xhscdn.com%2Fbw1%2F5bbef4cc-6268-46d9-87b3-3aa7d2168aad%3FimageView2%2F2%2Fw%2F1080%2Fformat%2Fjpg&refer=http%3A%2F%2Fsafe-img.xhscdn.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1718339519&t=6ff0d47abd90d209ca81b671e898deb8");
|
|
@@ -443,4 +438,57 @@ public class JobAdvertisedServiceImpl implements JobAdvertisedService {
|
|
|
|
|
|
return respVO;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public PageResult<AppJobAdvertisedRespVO> getAcquaintedJobAdvertised(AppJobAdvertisedPageReqVO pageReqVO) {
|
|
|
+ return generate();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public PageResult<AppJobAdvertisedSearchRespVO> getAcquaintedJobAdvertised(AppJobAdvertisedSearchPageReqVO reqVO) {
|
|
|
+
|
|
|
+ PageResult<AppJobAdvertisedSearchRespVO> result =new PageResult<>();
|
|
|
+ List<AppJobAdvertisedSearchRespVO> list =new ArrayList<>();
|
|
|
+ AppJobAdvertisedSearchRespVO respVO =new AppJobAdvertisedSearchRespVO();
|
|
|
+
|
|
|
+ AppJobAdvertisedSimpleRespVO job=new AppJobAdvertisedRespVO();
|
|
|
+ job.setId(1L);
|
|
|
+ job.setAreaId(110000L);
|
|
|
+ job.setPositionId(1L);
|
|
|
+ job.setPayFrom(BigDecimal.valueOf(5000));
|
|
|
+ job.setPayTo(BigDecimal.valueOf(12000));
|
|
|
+ job.setPayUnit(1);
|
|
|
+ job.setName("项目经理");
|
|
|
+ job.setExpType(0);
|
|
|
+ job.setEduType(0);
|
|
|
+ job.setTagList(ListUtil.of("无经验要求", "金融产品", "不限", "不接受居家办公", "教育培训", "互联网金融"));
|
|
|
+ respVO.setJob(job);
|
|
|
+
|
|
|
+ AppEnterpriseSimpleRespVO enterprise =new AppEnterpriseSimpleRespVO();
|
|
|
+ enterprise.setId(1L);
|
|
|
+ enterprise.setName("广州门墩儿科技有限公司");
|
|
|
+ enterprise.setAnotherName("门墩儿科技");
|
|
|
+ enterprise.setIndustryId(1L);
|
|
|
+ enterprise.setScale(0);
|
|
|
+ enterprise.setFinancingStatus(0);
|
|
|
+ enterprise.setLogoUrl("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
+
|
|
|
+ respVO.setEnterprise(enterprise);
|
|
|
+
|
|
|
+ AppEnterpriseUserContactRespVO contact =new AppEnterpriseUserContactRespVO();
|
|
|
+ contact.setAvatar("https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fsafe-img.xhscdn.com%2Fbw1%2F5bbef4cc-6268-46d9-87b3-3aa7d2168aad%3FimageView2%2F2%2Fw%2F1080%2Fformat%2Fjpg&refer=http%3A%2F%2Fsafe-img.xhscdn.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1718339519&t=6ff0d47abd90d209ca81b671e898deb8");
|
|
|
+ contact.setUserId(1L);
|
|
|
+ contact.setEnterpriseId(1L);
|
|
|
+ contact.setPostCode("HR");
|
|
|
+ contact.setPostNameCn("人事经理");
|
|
|
+ contact.setPostNameEn("uman resources");
|
|
|
+ contact.setName("肖女士");
|
|
|
+ respVO.setContact(contact);
|
|
|
+
|
|
|
+
|
|
|
+ list.add(respVO);
|
|
|
+ result.setList(list);
|
|
|
+ result.setTotal(1L);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
}
|