Commit 101a8dab by 涂亚平

首页收集信息

1 parent 5276d3a2
Showing with 1773 additions and 57 deletions
# Created by .ignore support plugin (hsz.mobi)
......@@ -272,6 +272,12 @@
<artifactId>gson</artifactId>
<version>2.8.6</version>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>1.6.2</version>
</dependency>
</dependencies>
<build>
......
package com.subsidy.controller;
import com.subsidy.common.ResponseData;
import com.subsidy.common.ResponseVO;
import com.subsidy.dto.collect.InfoDTO;
import com.subsidy.model.CollectInfoDO;
import com.subsidy.service.CollectInfoService;
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.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
/**
* <p>
* 首页手机信息 前端控制器
* </p>
*
* @author Tuyp
* @since 2024-11-02
*/
@RestController
@Api(tags = "首页收集信息")
@RequestMapping("/collectInfo")
public class CollectInfoController {
@Autowired
private CollectInfoService collectInfoService;
@PostMapping("collect")
@ApiOperation("收集信息 collegeName 院校名称 dept 部门/院系 jobName 职位 userName 称呼 telephone 联系方式")
public ResponseVO collect(@RequestBody CollectInfoDO collectInfoDO){
return ResponseData.generateCreatedResponse(0,collectInfoService.collect(collectInfoDO));
}
@PostMapping("info")
@ApiOperation("需求单--查询 pageSize pageNum")
public ResponseVO info(@RequestBody InfoDTO infoDTO){
return ResponseData.generateCreatedResponse(0,collectInfoService.info(infoDTO));
}
}
package com.subsidy.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
/**
* <p>
* 院校 前端控制器
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@RestController
@Api(tags = "院校")
@RequestMapping("/moni-college-do")
public class MoniCollegeController {
}
package com.subsidy.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
/**
* <p>
* 院校专业映射表 前端控制器
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@RestController
@Api(tags = "院校专业映射表")
@RequestMapping("/moni-college-major-mapping-do")
public class MoniCollegeMajorMappingController {
}
package com.subsidy.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
/**
* <p>
* 前端控制器
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@RestController
@Api(tags = "")
@RequestMapping("/moni-company-do")
public class MoniCompanyController {
}
package com.subsidy.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
/**
* <p>
* 前端控制器
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@RestController
@Api(tags = "")
@RequestMapping("/moni-job-major-do")
public class MoniJobMajorController {
}
package com.subsidy.controller;
import com.subsidy.service.MoniMajorService;
import com.subsidy.vo.simulation.SimulationSeekerDTO;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import io.swagger.annotations.Api;
/**
* <p>
* 前端控制器
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@RestController
@Api(tags = "")
@RequestMapping("/moniMajor")
public class MoniMajorController {
@Autowired
private MoniMajorService moniMajorService;
//模拟数据
@PostMapping("simulationJob")
@ApiOperation("模拟工作数据 cnt")
public void simulationJob(@RequestBody SimulationSeekerDTO simulationSeekerDTO){
moniMajorService.simulationJob(simulationSeekerDTO);
}
@PostMapping("simulationSeeker")
@ApiOperation("模拟求职数据 outPuts[majorType cnt 数量]")
public void simulationSeeker(@RequestBody SimulationSeekerDTO simulationSeekerDTO){
moniMajorService.simulationSeeker(simulationSeekerDTO);
}
// @PostMapping("analysisExcel")
// @ApiOperation("excel处理 ")
// public void analysisExcel(@RequestParam("file") MultipartFile file){
// moniMajorService.analysisExcel(file);
// }
}
package com.subsidy.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
/**
* <p>
* 前端控制器
* </p>
*
* @author Tuyp
* @since 2024-11-09
*/
@RestController
@Api(tags = "")
@RequestMapping("/moni-result-company-do")
public class MoniResultCompanyController {
}
package com.subsidy.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
/**
* <p>
* 前端控制器
* </p>
*
* @author Tuyp
* @since 2024-11-07
*/
@RestController
@Api(tags = "")
@RequestMapping("/moni-result-do")
public class MoniResultController {
}
package com.subsidy.dto.collect;
import lombok.Data;
@Data
public class InfoDTO {
private Integer pageSize;
private Integer pageNum;
}
package com.subsidy.mapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.subsidy.model.CollectInfoDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
* <p>
* 首页手机信息 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2024-11-02
*/
@Repository
public interface CollectInfoMapper extends BaseMapper<CollectInfoDO> {
IPage<CollectInfoDO> info(IPage iPage);
}
package com.subsidy.mapper;
import com.subsidy.model.MoniCollegeMajorMappingDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
* <p>
* 院校专业映射表 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Repository
public interface MoniCollegeMajorMappingMapper extends BaseMapper<MoniCollegeMajorMappingDO> {
}
package com.subsidy.mapper;
import com.subsidy.model.MoniCollegeDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
* <p>
* 院校 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Repository
public interface MoniCollegeMapper extends BaseMapper<MoniCollegeDO> {
}
package com.subsidy.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.subsidy.model.MoniCompanyDO;
import com.subsidy.vo.simulation.MajorCollegesVO;
import com.subsidy.vo.simulation.MajorCompaniesVO;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* <p>
* Mapper 接口
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Repository
public interface MoniCompanyMapper extends BaseMapper<MoniCompanyDO> {
List<MoniCompanyDO> limitNData(String majorType);
List<MajorCollegesVO > majorColleges(String majorType);
List<MajorCompaniesVO> majorCompanies(String majorType);
}
package com.subsidy.mapper;
import com.subsidy.model.MoniJobMajorDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
* <p>
* Mapper 接口
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Repository
public interface MoniJobMajorMapper extends BaseMapper<MoniJobMajorDO> {
}
package com.subsidy.mapper;
import com.subsidy.model.MoniMajorDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.subsidy.vo.simulation.MajorVO;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* <p>
* Mapper 接口
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Repository
public interface MoniMajorMapper extends BaseMapper<MoniMajorDO> {
/**
* 查看某大类的所有专业
*/
List<MajorVO> typeMajors(String majorType);
}
package com.subsidy.mapper;
import com.subsidy.model.MoniResultCompanyDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
* <p>
* Mapper 接口
* </p>
*
* @author Tuyp
* @since 2024-11-09
*/
@Repository
public interface MoniResultCompanyMapper extends BaseMapper<MoniResultCompanyDO> {
}
package com.subsidy.mapper;
import com.subsidy.model.MoniResultDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
* <p>
* Mapper 接口
* </p>
*
* @author Tuyp
* @since 2024-11-07
*/
@Repository
public interface MoniResultMapper extends BaseMapper<MoniResultDO> {
}
package com.subsidy.model;
import com.subsidy.util.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 首页手机信息
* </p>
*
* @author Tuyp
* @since 2024-11-02
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("collect_info")
public class CollectInfoDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
private String collegeName;
private String dept;
private String jobName;
private String userName;
private String telephone;
}
package com.subsidy.model;
import com.subsidy.util.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 院校
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("moni_college")
public class MoniCollegeDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 院校名称
*/
private String collegeName;
}
package com.subsidy.model;
import com.subsidy.util.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 院校专业映射表
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("moni_college_major_mapping")
public class MoniCollegeMajorMappingDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 院校id
*/
private Long collegeId;
/**
* 专业id
*/
private Long majorId;
}
package com.subsidy.model;
import com.subsidy.util.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
*
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("moni_company")
public class MoniCompanyDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 公司名称
*/
private String companyName;
/**
* 工作名
*/
private String companyJob;
/**
* 工作专业
*/
private String jobMajor;
/**
* 工作详情
*/
private String companyDesc;
/**
* 公司行业
*/
private String companyIndustry;
/**
* 工资
*/
private String salary;
/**
* 学历要求
*/
private String demands;
/**
* 地址
*/
private String location;
private String years;
private String numbers;
private String requirement;
private String content;
private String welfare;
}
package com.subsidy.model;
import com.subsidy.util.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
*
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("moni_job_major")
public class MoniJobMajorDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 工作范围
*/
private String jobType;
/**
* 专业type
*/
private String majorType;
}
package com.subsidy.model;
import com.subsidy.util.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
*
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("moni_major")
public class MoniMajorDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 父节点
*/
private String code;
/**
* 专业类别
*/
private String majorType;
/**
* 专业
*/
private String major;
}
package com.subsidy.model;
import com.subsidy.util.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
*
* </p>
*
* @author Tuyp
* @since 2024-11-09
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("moni_result_company")
public class MoniResultCompanyDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
private String companyName;
private String jobName;
private Integer recuitCnt;
private String salary;
private String companyDesc;
private String address;
private String years;
private String education;
}
package com.subsidy.model;
import com.subsidy.util.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
*
* </p>
*
* @author Tuyp
* @since 2024-11-07
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("moni_result")
public class MoniResultDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 专业名称
*/
private String majorName;
/**
* 院校
*/
private String college;
/**
* 毕业时间
*/
private String graduate;
private String exp1;
private String exp2;
private String exp3;
private String exp4;
private String exp5;
private String exp6;
private String exp7;
private String exp8;
private String exp9;
private String exp10;
private String exp11;
private String exp12;
}
package com.subsidy.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.subsidy.dto.collect.InfoDTO;
import com.subsidy.model.CollectInfoDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 首页手机信息 服务类
* </p>
*
* @author Tuyp
* @since 2024-11-02
*/
public interface CollectInfoService extends IService<CollectInfoDO> {
String collect(CollectInfoDO collectInfoDO);
IPage<CollectInfoDO> info(InfoDTO infoDTO);
}
package com.subsidy.service;
import com.subsidy.model.MoniCollegeMajorMappingDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 院校专业映射表 服务类
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
public interface MoniCollegeMajorMappingService extends IService<MoniCollegeMajorMappingDO> {
}
package com.subsidy.service;
import com.subsidy.model.MoniCollegeDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 院校 服务类
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
public interface MoniCollegeService extends IService<MoniCollegeDO> {
}
package com.subsidy.service;
import com.subsidy.model.MoniCompanyDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
public interface MoniCompanyService extends IService<MoniCompanyDO> {
}
package com.subsidy.service;
import com.subsidy.model.MoniJobMajorDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
public interface MoniJobMajorService extends IService<MoniJobMajorDO> {
}
package com.subsidy.service;
import com.subsidy.model.MoniMajorDO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.subsidy.vo.simulation.SimulationSeekerDTO;
/**
* <p>
* 服务类
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
public interface MoniMajorService extends IService<MoniMajorDO> {
void simulationJob(SimulationSeekerDTO simulationSeekerDTO);
void simulationSeeker(SimulationSeekerDTO simulationSeekerDTO);
// void analysisExcel(MultipartFile multipartFile);
}
package com.subsidy.service;
import com.subsidy.model.MoniResultCompanyDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author Tuyp
* @since 2024-11-09
*/
public interface MoniResultCompanyService extends IService<MoniResultCompanyDO> {
}
package com.subsidy.service;
import com.subsidy.model.MoniResultDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author Tuyp
* @since 2024-11-07
*/
public interface MoniResultService extends IService<MoniResultDO> {
}
package com.subsidy.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.subsidy.common.exception.HttpException;
import com.subsidy.dto.collect.InfoDTO;
import com.subsidy.model.CollectInfoDO;
import com.subsidy.mapper.CollectInfoMapper;
import com.subsidy.service.CollectInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.subsidy.util.ConstantUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.mail.*;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import java.util.Properties;
/**
* <p>
* 首页手机信息 服务实现类
* </p>
*
* @author Tuyp
* @since 2024-11-02
*/
@Service
public class CollectInfoServiceImpl extends ServiceImpl<CollectInfoMapper, CollectInfoDO> implements CollectInfoService {
@Transactional(rollbackFor = Exception.class)
public String collect(CollectInfoDO collectInfoDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<CollectInfoDO>()
.lambda()
.eq(CollectInfoDO::getTelephone,collectInfoDO.getTelephone()));
if (count > 0){
throw new HttpException(30003);
}
this.baseMapper.insert(collectInfoDO);
//发邮件
sendMail(collectInfoDO);
return ConstantUtils.ADD_SUCCESS;
}
public IPage<CollectInfoDO> info(InfoDTO infoDTO){
Page pager = new Page(infoDTO.getPageNum(), infoDTO.getPageSize());
return this.baseMapper.info(pager);
}
public void sendMail(CollectInfoDO collectInfoDO) {
final String username = "alextyp@163.com"; // 替换为你的邮箱用户名
final String password = "CYWjrN8NeYYsCy4q"; // 替换为你的邮箱密码
Properties props = new Properties();
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.starttls.enable", "true");
props.put("mail.smtp.host", "smtp.163.com");
props.put("mail.smtp.port", "25");
Session session = Session.getInstance(props, new Authenticator() {
@Override
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(username, password);
}
});
try {
Message message = new MimeMessage(session);
message.setFrom(new InternetAddress("alextyp@163.com")); // 设置发件人
message.setRecipients(Message.RecipientType.TO, InternetAddress.parse("tuyaping@ykhl.com")); // 设置收件人
message.setSubject("有新的联系需求"); // 设置邮件主题
message.setText("院校名称:"+collectInfoDO.getCollegeName()+"\n" +
"所在部门或院系:"+collectInfoDO.getDept()+"\n" +
"职位:"+collectInfoDO.getJobName()+"\n" +
"称呼:"+collectInfoDO.getUserName()+"\n" +
"联系方式:"+collectInfoDO.getTelephone()); // 设置邮件正文
Transport.send(message);
System.out.println("Email sent successfully!");
} catch (MessagingException e) {
throw new RuntimeException("Error: cannot send email", e);
}
}
}
package com.subsidy.service.impl;
import com.subsidy.model.MoniCollegeMajorMappingDO;
import com.subsidy.mapper.MoniCollegeMajorMappingMapper;
import com.subsidy.service.MoniCollegeMajorMappingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 院校专业映射表 服务实现类
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Service
public class MoniCollegeMajorMappingServiceImpl extends ServiceImpl<MoniCollegeMajorMappingMapper, MoniCollegeMajorMappingDO> implements MoniCollegeMajorMappingService {
}
package com.subsidy.service.impl;
import com.subsidy.model.MoniCollegeDO;
import com.subsidy.mapper.MoniCollegeMapper;
import com.subsidy.service.MoniCollegeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 院校 服务实现类
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Service
public class MoniCollegeServiceImpl extends ServiceImpl<MoniCollegeMapper, MoniCollegeDO> implements MoniCollegeService {
}
package com.subsidy.service.impl;
import com.subsidy.model.MoniCompanyDO;
import com.subsidy.mapper.MoniCompanyMapper;
import com.subsidy.service.MoniCompanyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Service
public class MoniCompanyServiceImpl extends ServiceImpl<MoniCompanyMapper, MoniCompanyDO> implements MoniCompanyService {
}
package com.subsidy.service.impl;
import com.subsidy.model.MoniJobMajorDO;
import com.subsidy.mapper.MoniJobMajorMapper;
import com.subsidy.service.MoniJobMajorService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author Tuyp
* @since 2024-11-04
*/
@Service
public class MoniJobMajorServiceImpl extends ServiceImpl<MoniJobMajorMapper, MoniJobMajorDO> implements MoniJobMajorService {
}
package com.subsidy.service.impl;
import com.subsidy.model.MoniResultCompanyDO;
import com.subsidy.mapper.MoniResultCompanyMapper;
import com.subsidy.service.MoniResultCompanyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author Tuyp
* @since 2024-11-09
*/
@Service
public class MoniResultCompanyServiceImpl extends ServiceImpl<MoniResultCompanyMapper, MoniResultCompanyDO> implements MoniResultCompanyService {
}
package com.subsidy.service.impl;
import com.subsidy.model.MoniResultDO;
import com.subsidy.mapper.MoniResultMapper;
import com.subsidy.service.MoniResultService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author Tuyp
* @since 2024-11-07
*/
@Service
public class MoniResultServiceImpl extends ServiceImpl<MoniResultMapper, MoniResultDO> implements MoniResultService {
}
package com.subsidy.util.excel;
import com.subsidy.vo.simulation.ExcelFieldVO;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.BooleanUtils;
import org.apache.commons.lang3.CharUtils;
......@@ -365,6 +366,50 @@ public class ExcelUtil {
}
}
public static <T> void writeMapExcel(List<ExcelFieldVO> fields, List<Map> list) {
ServletRequestAttributes servletRequestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
HttpServletResponse response = servletRequestAttributes.getResponse();
Workbook wb = new XSSFWorkbook();
Sheet sheet = wb.createSheet();
AtomicInteger ai = new AtomicInteger();
{
Row row = sheet.createRow(ai.getAndIncrement());
AtomicInteger at = new AtomicInteger();
fields.forEach(field -> {
Cell cell = row.createCell(at.getAndIncrement());
CellStyle cellStyle = wb.createCellStyle();
cellStyle.setFillForegroundColor(IndexedColors.PALE_BLUE.getIndex());
Font font = wb.createFont();
font.setBoldweight(Font.BOLDWEIGHT_BOLD);
cellStyle.setFont(font);
cell.setCellStyle(cellStyle);
cell.setCellValue(field.getName());
});
if (list != null) {
list.forEach(map -> {
Row r = sheet.createRow(ai.getAndIncrement());
AtomicInteger a = new AtomicInteger();
fields.forEach(field -> {
Object value = map.get(field.getField());
Cell cell = r.createCell(a.getAndIncrement());
if (value != null) {
cell.setCellValue(value.toString());
}
});
});
for (int i = 0; i < list.size(); i++) {
sheet.autoSizeColumn(i);
}
}
String fileName = String.valueOf(new Date().getTime());
buildExcelDocument(fileName + "." + EXCEL2007, wb, response);
}
}
private static void setStyle(CellStyle cellStyle) {
// 水平居中
cellStyle.setAlignment(CellStyle.ALIGN_CENTER);
......
package com.subsidy.vo.simulation;
import com.subsidy.util.excel.ExcelColumnUtil;
import lombok.Data;
@Data
public class AnalysisExcelDTO {
@ExcelColumnUtil(value = "id", col = 1)
private String id;
@ExcelColumnUtil(value = "company_name", col = 2)
private String companyName;
@ExcelColumnUtil(value = "company_job", col = 3)
private String schoolName;
@ExcelColumnUtil(value = "job_major", col = 4)
private String idCard;
@ExcelColumnUtil(value = "company_desc", col = 5)
private String companyDesc;
@ExcelColumnUtil(value = "requirement", col = 6)
private String requirement;
@ExcelColumnUtil(value = "content", col = 7)
private String content;
@ExcelColumnUtil(value = "company_industry", col = 8)
private String companyIndustry;
@ExcelColumnUtil(value = "salary", col = 9)
private String salary;
@ExcelColumnUtil(value = "demands", col = 10)
private String demands;
@ExcelColumnUtil(value = "numbers", col = 11)
private String numbers;
@ExcelColumnUtil(value = "location", col = 12)
private String location;
@ExcelColumnUtil(value = "years", col = 13)
private String years;
}
package com.subsidy.vo.simulation;
import com.subsidy.util.excel.ExcelColumn;
import com.subsidy.util.excel.ExcelColumnUtil;
import lombok.Data;
@Data
public class AnalysisExcelVO {
@ExcelColumn(value = "id", col = 1)
private String id;
@ExcelColumn(value = "company_name", col = 2)
private String companyName;
@ExcelColumn(value = "company_job", col = 3)
private String schoolName;
@ExcelColumn(value = "job_major", col = 4)
private String idCard;
@ExcelColumn(value = "company_desc", col = 5)
private String companyDesc;
@ExcelColumn(value = "requirement", col = 6)
private String requirement;
@ExcelColumn(value = "content", col = 7)
private String content;
@ExcelColumn(value = "wearFare", col = 8)
private String wearFare;
@ExcelColumn(value = "company_industry", col = 9)
private String companyIndustry;
@ExcelColumn(value = "salary", col = 10)
private String salary;
@ExcelColumn(value = "demands", col = 11)
private String demands;
@ExcelColumn(value = "numbers", col = 12)
private String numbers;
@ExcelColumn(value = "location", col = 13)
private String location;
@ExcelColumn(value = "years", col = 14)
private String years;
}
package com.subsidy.vo.simulation;
import lombok.Data;
@Data
public class ExcelFieldVO {
private String field;
private String name;
}
package com.subsidy.vo.simulation;
import com.subsidy.model.MoniCompanyDO;
import com.subsidy.util.excel.ExcelColumn;
import lombok.Data;
import java.util.List;
@Data
public class JobSeekerInfoVO {
@ExcelColumn(col = 1,value = "专业名称")
private String major;
@ExcelColumn(col = 2,value = "毕业院校")
private String college;
@ExcelColumn(col = 3,value = "毕业年份")
private String graduateDate;
@ExcelColumn(col = 4,value = "工作经历1")
private String jobDuration1;
@ExcelColumn(col = 5,value = "工作经历2")
private String jobDuration2;
@ExcelColumn(col = 6,value = "工作经历3")
private String jobDuration3;
@ExcelColumn(col = 7,value = "工作经历4")
private String jobDuration4;
@ExcelColumn(col = 8,value = "工作经历5")
private String jobDuration5;
@ExcelColumn(col = 9,value = "工作经历6")
private String jobDuration6;
@ExcelColumn(col = 10,value = "工作经历7")
private String jobDuration7;
@ExcelColumn(col = 11,value = "工作经历8")
private String jobDuration8;
@ExcelColumn(col = 12,value = "工作经历9")
private String jobDuration9;
@ExcelColumn(col = 13,value = "工作经历10")
private String jobDuration10;
@ExcelColumn(col = 14,value = "工作经历11")
private String jobDuration11;
@ExcelColumn(col = 15,value = "工作经历12")
private String jobDuration12;
private List<MoniCompanyDO> companyTmp;
}
package com.subsidy.vo.simulation;
import lombok.Data;
@Data
public class MajorCollegesVO {
private Long id;
/**
* 院校名称
*/
private String collegeName;
}
package com.subsidy.vo.simulation;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
@Data
public class MajorCompaniesVO {
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 公司名称
*/
private String companyName;
/**
* 工作名
*/
private String companyJob;
/**
* 工作专业
*/
private String jobMajor;
/**
* 工作详情
*/
private String companyDesc;
/**
* 公司行业
*/
private String companyIndustry;
/**
* 工资
*/
private String salary;
/**
* 学历要求
*/
private String demands;
/**
* 地址
*/
private String location;
private String years;
private String numbers;
private String requirement;
private String content;
private String welfare;
}
package com.subsidy.vo.simulation;
import lombok.Data;
@Data
public class MajorVO {
private Long id;
private String majorType;
private String major;
}
package com.subsidy.vo.simulation;
import lombok.Data;
@Data
public class OutPutVO {
private String majorType;
private Integer cnt;
}
package com.subsidy.vo.simulation;
import com.subsidy.util.excel.ExcelColumn;
import lombok.Data;
@Data
public class SimulationJobVO {
@ExcelColumn(col = 1,value = "单位名称")
private String companyName;
@ExcelColumn(col = 2,value = "用人单位性质")
private String companyType;
@ExcelColumn(col = 3,value = "岗位名称")
private String jobName;
@ExcelColumn(col = 4,value = "招聘人数")
private String applyCnt;
@ExcelColumn(col = 5,value = "薪资待遇")
private String salary;
@ExcelColumn(col = 6,value = "工作职责/岗位职责/职位介绍/职位描述")
private String jobDesc;
@ExcelColumn(col = 7,value = "任职资格/要求")
private String demand;
@ExcelColumn(col = 8,value = "工作地点")
private String address;
@ExcelColumn(col = 9,value = "工作年限")
private String jobDuration;
@ExcelColumn(col = 10,value = "学历要求")
private String education;
}
package com.subsidy.vo.simulation;
import lombok.Data;
import java.util.List;
@Data
public class SimulationSeekerDTO {
private List<OutPutVO> outPuts;
}
# 本地环境配置
spring.server.port=23467
# 数据源配置
#spring.datasource.url=jdbc:mysql://116.62.57.92:3306/subsidy_test?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
##spring.datasource.url=jdbc:mysql://rm-uf6rab73w0qg843opxo.mysql.rds.aliyuncs.com:3306/subsidy_test?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
## 数据源配置
#spring.datasource.url=jdbc:mysql://localhost:3306/subsidy?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
#spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
##spring.datasource.username=ykadmin_new
##spring.datasource.password=youkedb608@good
#spring.datasource.username=devloper
#spring.datasource.password=dev@1553$
#spring.datasource.username=root
#spring.datasource.password=123456
# 数据源配置
spring.datasource.url=jdbc:mysql://139.224.253.21:3306/subsidy?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
......
# 本地环境配置
spring.server.port=23462
spring.server.port=23467
# 数据源配置
spring.datasource.url=jdbc:mysql://116.62.57.92:3306/subsidy_online?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
#spring.datasource.url=jdbc:mysql://rm-uf6rab73w0qg843opxo.mysql.rds.aliyuncs.com:3306/subsidy_test?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
spring.datasource.url=jdbc:mysql://localhost:3306/subsidy?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
#spring.datasource.username=ykadmin_new
#spring.datasource.password=youkedb608@good
spring.datasource.username=devloper
spring.datasource.password=dev@1553$
spring.datasource.username=root
spring.datasource.password=123456
# 数据源配置
#spring.datasource.url=jdbc:mysql://139.224.253.21:3306/subsidy?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
#spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
#spring.datasource.username=root
#spring.datasource.password=ykhladmin302
spring.datasource.druid.initialSize=5
spring.datasource.druid.minIdle=5
......@@ -28,22 +32,6 @@ spring.datasource.druid.useGlobalDataSourceStat=true
# 控制台日志打印
mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
#spring.redis.host=r-uf6meywj6ysuehg148pd.redis.rds.aliyuncs.com
#spring.redis.password=r-uf6meywj6ysuehg148:Ykhl@208
#spring.redis.port=6379
#spring.redis.lettuce.pool.max-idle=16
#spring.redis.lettuce.pool.max-active=32
#spring.redis.lettuce.pool.min-idle=8
#spring.application.name=spring-boot-mongodb
## mongodb
##spring.data.mongodb.uri=mongodb://47.97.19.66:27017/subsidy
#spring.data.mongodb.username=root
#spring.data.mongodb.password=123456
##spring.data.mongodb.authentication-database=subsidy
#spring.data.mongodb.database=subsidy
#spring.data.mongodb.host=47.97.19.66
#spring.data.mongodb.port=27017
spring.redis.host=47.97.19.66
spring.redis.password=Ykhl@208
......@@ -56,5 +44,6 @@ qxueyou.appId=qxywz5nnWMI77CM3Tx
qxueyou.securityKey=626737T1-65K0-5xC2-0Y0V-2Aq95qxy
qxueyou.url=https://dev.qxueyou.com/auth/user/token
renshe.url = https://api.shzypxy.com
renshe.secretKey = 111
\ No newline at end of file
renshe.url = https://test.shzypxy.com
renshe.secretKey = ad927f0b-6a39-43a7-bac7-163baef1fff7
renshe.putuo = http://180.167.195.117:18015/ddproject
\ No newline at end of file
spring.quartz.properties.org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX
spring.quartz.properties.org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate
spring.quartz.properties.org.quartz.jobStore.tablePrefix=QRTZ_
spring.quartz.properties.org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool
spring.quartz.properties.org.quartz.threadPool.threadCount=15
spring.quartz.properties.org.quartz.threadPool.threadPriority=5
spring.quartz.properties.org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread=true
\ No newline at end of file
#spring.quartz.properties.org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX
#spring.quartz.properties.org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate
#spring.quartz.properties.org.quartz.jobStore.tablePrefix=QRTZ_
#spring.quartz.properties.org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool
#spring.quartz.properties.org.quartz.threadPool.threadCount=15
#spring.quartz.properties.org.quartz.threadPool.threadPriority=5
#spring.quartz.properties.org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread=true
\ No newline at end of file
# 环境配置 平台端
spring.profiles.active=dev
spring.profiles.active=pre
#和CPU数
spring.server.acceptorThreadCount=600
spring.server.minSpareThreads=100
......@@ -57,21 +57,7 @@ vod.secretKey=vjHYRmrfDbw0rWxA7oFcj7F8lDPKCm8E
vod.api=vod.tencentcloudapi.com
vod.region=ap-shanghai
vod.classId=848920
# quartz
# 数据持久化方式
spring.quartz.job-store-type=jdbc
# 初始化后是否自动启动计划程序
spring.quartz.auto-startup=true
# 初始化完成后启动计划程序的延迟时间
spring.quartz.startup-delay=10s
# 配置的作业是否应覆盖现有的作业定义
spring.quartz.overwrite-existing-jobs=false
# 自动建表,如果已经存在表请勿使用,会覆盖数据表
#spring.quartz.jdbc.initialize-schema=always
#spring.datasource.initialization-mode=embedded
#spring.redis.host=r-uf6m4cpkjrgpzywjm3pd.redis.rds.aliyuncs.com
#spring.redis.port=6379
#spring.redis.password=r-uf6m4cpkjrgpzywjm3:Ykhl@208
wechat=
#pro
appId=wx5e1ecb9c9bd33451
......
......@@ -80,3 +80,4 @@ meishu.code-message[19001]=验证失败
meishu.code-message[20003]=提交时间过短,请稍后尝试
meishu.code-message[30002]=该产品已存在
meishu.code-message[30003]=您已提交过信息,请勿重复提交
\ No newline at end of file
<?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">
<mapper namespace="com.subsidy.mapper.CollectInfoMapper">
<select id="info" resultType="com.subsidy.model.CollectInfoDO">
SELECT
*
FROM
collect_info t
where t.delete_date is null
order by t.create_date desc
</select>
</mapper>
<?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">
<mapper namespace="com.subsidy.mapper.MoniCollegeMajorMappingMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.subsidy.model.MoniCollegeMajorMappingDO">
<id column="id" property="id" />
<result column="create_date" property="createDate" />
<result column="update_date" property="updateDate" />
<result column="delete_date" property="deleteDate" />
<result column="college_id" property="collegeId" />
<result column="major_id" property="majorId" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, college_id, major_id
</sql>
</mapper>
<?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">
<mapper namespace="com.subsidy.mapper.MoniCollegeMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.subsidy.model.MoniCollegeDO">
<id column="id" property="id" />
<result column="create_date" property="createDate" />
<result column="update_date" property="updateDate" />
<result column="delete_date" property="deleteDate" />
<result column="college_name" property="collegeName" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, college_name
</sql>
</mapper>
<?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">
<mapper namespace="com.subsidy.mapper.MoniCompanyMapper">
<select id="limitNData" resultType="com.subsidy.model.MoniCompanyDO">
SELECT
t2.id,
t2.company_desc,
t2.company_industry,
t2.company_job,
t2.company_name,
t2.content,
t2.demands,
t2.job_major,
t2.location,
t2.numbers,
t2.requirement,
t2.salary,
t2.years
FROM
moni_company t2
LEFT JOIN moni_job_major t ON t2.job_major = t.job_type
WHERE
t.major_type = #{majorType}
</select>
<select id="majorColleges" parameterType="string" resultType="com.subsidy.vo.simulation.MajorCollegesVO">
SELECT
t.id,
t3.college_name
FROM
moni_major t
LEFT JOIN moni_college_major_mapping t2 ON t.id = t2.major_id
LEFT JOIN moni_college t3 ON t2.college_id = t3.id
WHERE
t.major_type = #{majorType}
</select>
<select id="majorCompanies" parameterType="string" resultType="com.subsidy.vo.simulation.MajorCompaniesVO">
SELECT
t2.id,
t2.company_desc,
t2.company_industry,
t2.company_job,
t2.company_name,
t2.content,
t2.demands,
t2.job_major,
t2.location,
t2.numbers,
t2.requirement,
t2.salary,
t2.years
FROM
moni_job_major t
LEFT JOIN moni_company t2 ON t.job_type = t2.job_major
WHERE
t.major_type = #{majorType}
limit 700000
</select>
</mapper>
<?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">
<mapper namespace="com.subsidy.mapper.MoniJobMajorMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.subsidy.model.MoniJobMajorDO">
<id column="id" property="id" />
<result column="create_date" property="createDate" />
<result column="update_date" property="updateDate" />
<result column="delete_date" property="deleteDate" />
<result column="job_type" property="jobType" />
<result column="major_type" property="majorType" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, job_type, major_type
</sql>
</mapper>
<?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">
<mapper namespace="com.subsidy.mapper.MoniMajorMapper">
<select id="typeMajors" parameterType="string" resultType="com.subsidy.vo.simulation.MajorVO">
select t.id,t.major,t.major_type from moni_major t where t.major_type = #{majorType}
</select>
</mapper>
<?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">
<mapper namespace="com.subsidy.mapper.MoniResultCompanyMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.subsidy.model.MoniResultCompanyDO">
<id column="id" property="id" />
<result column="create_date" property="createDate" />
<result column="update_date" property="updateDate" />
<result column="delete_date" property="deleteDate" />
<result column="company_name" property="companyName" />
<result column="job_name" property="jobName" />
<result column="recuit_cnt" property="recuitCnt" />
<result column="salary" property="salary" />
<result column="company_desc" property="companyDesc" />
<result column="address" property="address" />
<result column="years" property="years" />
<result column="education" property="education" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, company_name, job_name, recuit_cnt, salary, company_desc, address, years, education
</sql>
</mapper>
<?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">
<mapper namespace="com.subsidy.mapper.MoniResultMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.subsidy.model.MoniResultDO">
<id column="id" property="id" />
<result column="create_date" property="createDate" />
<result column="update_date" property="updateDate" />
<result column="delete_date" property="deleteDate" />
<result column="major_name" property="majorName" />
<result column="college" property="college" />
<result column="graduate" property="graduate" />
<result column="exp1" property="exp1" />
<result column="exp2" property="exp2" />
<result column="exp3" property="exp3" />
<result column="exp4" property="exp4" />
<result column="exp5" property="exp5" />
<result column="exp6" property="exp6" />
<result column="exp7" property="exp7" />
<result column="exp8" property="exp8" />
<result column="exp9" property="exp9" />
<result column="exp10" property="exp10" />
<result column="exp11" property="exp11" />
<result column="exp12" property="exp12" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
create_date,
update_date,
delete_date,
id, major_name, college, graduate, exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8, exp9, exp10, exp11, exp12
</sql>
</mapper>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!