|
@@ -9,11 +9,16 @@ import com.citu.module.menduner.system.controller.admin.job.vo.JobAdvertisedSave
|
|
|
import com.citu.module.menduner.system.controller.app.job.vo.AppJobHomeRespVO;
|
|
|
import com.citu.module.menduner.system.dal.dataobject.job.JobAdvertisedDO;
|
|
|
import com.citu.module.menduner.system.dal.mysql.job.JobAdvertisedMapper;
|
|
|
+import org.apache.poi.hpsf.Decimal;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
+import java.math.BigDecimal;
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
import static com.citu.framework.common.exception.util.ServiceExceptionUtil.exception;
|
|
|
import static com.citu.module.menduner.system.enums.ErrorCodeConstants.MDE_JOB_ADVERTISED_NOT_EXISTS;
|
|
|
|
|
@@ -71,19 +76,193 @@ public class JobAdvertisedServiceImpl implements JobAdvertisedService {
|
|
|
return jobAdvertisedMapper.selectPage(pageReqVO);
|
|
|
}
|
|
|
|
|
|
+ public PageResult<AppJobHomeRespVO> generate() {
|
|
|
+ PageResult<AppJobHomeRespVO> result=new PageResult<>();
|
|
|
+ List<AppJobHomeRespVO> list=new ArrayList<>();
|
|
|
+
|
|
|
+ AppJobHomeRespVO respVO1 =new AppJobHomeRespVO();
|
|
|
+ respVO1.setId(1L);
|
|
|
+ respVO1.setAreaId(110000L);
|
|
|
+ respVO1.setPositionId(1L);
|
|
|
+ respVO1.setPayFrom(BigDecimal.valueOf(5));
|
|
|
+ respVO1.setPayTo(BigDecimal.valueOf(12));
|
|
|
+ respVO1.setPayUnit(0);
|
|
|
+ respVO1.setName("项目经理");
|
|
|
+ respVO1.setExpType(0);
|
|
|
+ respVO1.setEduType(0);
|
|
|
+ respVO1.setTagList("[]");
|
|
|
+ respVO1.setEnterpriseId(1L);
|
|
|
+ respVO1.setAnotherName("门墩儿科技");
|
|
|
+ respVO1.setIndustryId(1L);
|
|
|
+ respVO1.setScale(0);
|
|
|
+ respVO1.setLogo_url("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
+ list.add(respVO1);
|
|
|
+
|
|
|
+ AppJobHomeRespVO respVO2 =new AppJobHomeRespVO();
|
|
|
+ respVO2.setId(2L);
|
|
|
+ respVO2.setAreaId(440100L);
|
|
|
+ respVO2.setPositionId(2L);
|
|
|
+ respVO2.setPayFrom(BigDecimal.valueOf(18));
|
|
|
+ respVO2.setPayTo(BigDecimal.valueOf(22));
|
|
|
+ respVO2.setPayUnit(1);
|
|
|
+ respVO2.setName("车间主任");
|
|
|
+ respVO2.setExpType(1);
|
|
|
+ respVO2.setEduType(1);
|
|
|
+ respVO2.setTagList("[]");
|
|
|
+ respVO2.setEnterpriseId(1L);
|
|
|
+ respVO2.setAnotherName("门墩儿科技");
|
|
|
+ respVO2.setIndustryId(2L);
|
|
|
+ respVO2.setScale(1);
|
|
|
+ respVO2.setLogo_url("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
+ list.add(respVO2);
|
|
|
+
|
|
|
+
|
|
|
+ AppJobHomeRespVO respVO3 =new AppJobHomeRespVO();
|
|
|
+ respVO3.setId(3L);
|
|
|
+ respVO3.setAreaId(440300L);
|
|
|
+ respVO3.setPositionId(3L);
|
|
|
+ respVO3.setPayFrom(BigDecimal.valueOf(18));
|
|
|
+ respVO3.setPayTo(BigDecimal.valueOf(22));
|
|
|
+ respVO3.setPayUnit(0);
|
|
|
+ respVO3.setName("网管");
|
|
|
+ respVO3.setExpType(2);
|
|
|
+ respVO3.setEduType(2);
|
|
|
+ respVO3.setTagList("[]");
|
|
|
+ respVO3.setEnterpriseId(1L);
|
|
|
+ respVO3.setAnotherName("门墩儿科技");
|
|
|
+ respVO3.setIndustryId(3L);
|
|
|
+ respVO3.setScale(2);
|
|
|
+ respVO3.setLogo_url("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
+ list.add(respVO3);
|
|
|
+
|
|
|
+ AppJobHomeRespVO respVO4 =new AppJobHomeRespVO();
|
|
|
+ respVO4.setId(4L);
|
|
|
+ respVO4.setAreaId(440600L);
|
|
|
+ respVO4.setPositionId(4L);
|
|
|
+ respVO4.setPayFrom(BigDecimal.valueOf(2));
|
|
|
+ respVO4.setPayTo(BigDecimal.valueOf(3));
|
|
|
+ respVO4.setPayUnit(0);
|
|
|
+ respVO4.setName("前台");
|
|
|
+ respVO4.setExpType(3);
|
|
|
+ respVO4.setEduType(3);
|
|
|
+ respVO4.setTagList("[]");
|
|
|
+ respVO4.setEnterpriseId(1L);
|
|
|
+ respVO4.setAnotherName("门墩儿科技");
|
|
|
+ respVO4.setIndustryId(4L);
|
|
|
+ respVO4.setScale(3);
|
|
|
+ respVO4.setLogo_url("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
+ list.add(respVO4);
|
|
|
+
|
|
|
+ AppJobHomeRespVO respVO5 =new AppJobHomeRespVO();
|
|
|
+ respVO5.setId(5L);
|
|
|
+ respVO5.setAreaId(441200L);
|
|
|
+ respVO5.setPositionId(5L);
|
|
|
+ respVO5.setPayFrom(BigDecimal.valueOf(20));
|
|
|
+ respVO5.setPayTo(BigDecimal.valueOf(30));
|
|
|
+ respVO5.setPayUnit(1);
|
|
|
+ respVO5.setName("保姆");
|
|
|
+ respVO5.setExpType(4);
|
|
|
+ respVO5.setEduType(4);
|
|
|
+ respVO5.setTagList("[]");
|
|
|
+ respVO5.setEnterpriseId(1L);
|
|
|
+ respVO5.setAnotherName("门墩儿科技");
|
|
|
+ respVO5.setIndustryId(5L);
|
|
|
+ respVO5.setScale(4);
|
|
|
+ respVO5.setLogo_url("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
+ list.add(respVO5);
|
|
|
+
|
|
|
+ AppJobHomeRespVO respVO6 =new AppJobHomeRespVO();
|
|
|
+ respVO6.setId(6L);
|
|
|
+ respVO6.setAreaId(440800L);
|
|
|
+ respVO6.setPositionId(6L);
|
|
|
+ respVO6.setPayFrom(BigDecimal.valueOf(100));
|
|
|
+ respVO6.setPayTo(BigDecimal.valueOf(200));
|
|
|
+ respVO6.setPayUnit(0);
|
|
|
+ respVO6.setName("软件开发工程师");
|
|
|
+ respVO6.setExpType(5);
|
|
|
+ respVO6.setEduType(5);
|
|
|
+ respVO6.setTagList("[]");
|
|
|
+ respVO6.setEnterpriseId(1L);
|
|
|
+ respVO6.setAnotherName("门墩儿科技");
|
|
|
+ respVO6.setIndustryId(6L);
|
|
|
+ respVO6.setScale(5);
|
|
|
+ respVO6.setLogo_url("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
+ list.add(respVO6);
|
|
|
+
|
|
|
+
|
|
|
+ AppJobHomeRespVO respVO7 =new AppJobHomeRespVO();
|
|
|
+ respVO7.setId(7L);
|
|
|
+ respVO7.setAreaId(441900L);
|
|
|
+ respVO7.setPositionId(7L);
|
|
|
+ respVO7.setPayFrom(BigDecimal.valueOf(100));
|
|
|
+ respVO7.setPayTo(BigDecimal.valueOf(500));
|
|
|
+ respVO7.setPayUnit(1);
|
|
|
+ respVO7.setName("汇丰银行副行长");
|
|
|
+ respVO7.setExpType(6);
|
|
|
+ respVO7.setEduType(6);
|
|
|
+ respVO7.setTagList("[]");
|
|
|
+ respVO7.setEnterpriseId(1L);
|
|
|
+ respVO7.setAnotherName("门墩儿科技");
|
|
|
+ respVO7.setIndustryId(6L);
|
|
|
+ respVO7.setScale(5);
|
|
|
+ respVO7.setLogo_url("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
+ list.add(respVO7);
|
|
|
+
|
|
|
+
|
|
|
+ AppJobHomeRespVO respVO8 =new AppJobHomeRespVO();
|
|
|
+ respVO8.setId(8L);
|
|
|
+ respVO8.setAreaId(441700L);
|
|
|
+ respVO8.setPositionId(8L);
|
|
|
+ respVO8.setPayFrom(BigDecimal.valueOf(1.2));
|
|
|
+ respVO8.setPayTo(BigDecimal.valueOf(3.8));
|
|
|
+ respVO8.setPayUnit(0);
|
|
|
+ respVO8.setName("程序员");
|
|
|
+ respVO8.setExpType(7);
|
|
|
+ respVO8.setEduType(99);
|
|
|
+ respVO8.setTagList("[]");
|
|
|
+ respVO8.setEnterpriseId(1L);
|
|
|
+ respVO8.setAnotherName("门墩儿科技");
|
|
|
+ respVO8.setIndustryId(8L);
|
|
|
+ respVO8.setScale(5);
|
|
|
+ respVO8.setLogo_url("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
+ list.add(respVO8);
|
|
|
+
|
|
|
+ AppJobHomeRespVO respVO9 =new AppJobHomeRespVO();
|
|
|
+ respVO9.setId(9L);
|
|
|
+ respVO9.setAreaId(445300L);
|
|
|
+ respVO9.setPositionId(9L);
|
|
|
+ respVO9.setPayFrom(BigDecimal.valueOf(3.2));
|
|
|
+ respVO9.setPayTo(BigDecimal.valueOf(6.8));
|
|
|
+ respVO9.setPayUnit(0);
|
|
|
+ respVO9.setName("护林员");
|
|
|
+ respVO9.setExpType(7);
|
|
|
+ respVO9.setEduType(99);
|
|
|
+ respVO9.setTagList("[]");
|
|
|
+ respVO9.setEnterpriseId(1L);
|
|
|
+ respVO9.setAnotherName("门墩儿科技");
|
|
|
+ respVO9.setIndustryId(9L);
|
|
|
+ respVO9.setScale(5);
|
|
|
+ respVO8.setLogo_url("https://www.menduner.com/static/img/loginlogo2.7924c12.png");
|
|
|
+ list.add(respVO9);
|
|
|
+
|
|
|
+ result.setList(list);
|
|
|
+ result.setTotal(9L);
|
|
|
+
|
|
|
+ return result;
|
|
|
+ }
|
|
|
|
|
|
@Override
|
|
|
public PageResult<AppJobHomeRespVO> getRecommendedJobPage(PageParam pageParam) {
|
|
|
- return null;
|
|
|
+ return generate();
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public PageResult<AppJobHomeRespVO> getLatestJobPage(PageParam pageParam) {
|
|
|
- return null;
|
|
|
+ return generate();
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public PageResult<AppJobHomeRespVO> getUrgentJobPage(PageParam pageParam) {
|
|
|
- return null;
|
|
|
+ return generate();
|
|
|
}
|
|
|
}
|