Commit d2833c74 by 涂亚平

演示前版本备份

1 parent 85f1a48e
Showing with 1714 additions and 1208 deletions
2023-05-22 09:54:53,188 [http-nio-34567-exec-2] ERROR com.laowu.common.exception.GlobalExceptionHandler:88 - JSON parse error: Cannot deserialize instance of `java.lang.String` out of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.String` out of START_ARRAY token
at [Source: (PushbackInputStream); line: 2, column: 16] (through reference chain: com.laowu.model.MemberDictDO["userName"])
2023-05-22 09:56:25,376 [http-nio-34567-exec-5] ERROR com.laowu.common.exception.GlobalExceptionHandler:88 - JSON parse error: Illegal unquoted character ((CTRL-CHAR, code 13)): has to be escaped using backslash to be included in string value; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Illegal unquoted character ((CTRL-CHAR, code 13)): has to be escaped using backslash to be included in string value
at [Source: (PushbackInputStream); line: 2, column: 16] (through reference chain: com.laowu.model.MemberDictDO["userName"])
2023-05-22 09:56:54,840 [http-nio-34567-exec-8] ERROR com.laowu.common.exception.GlobalExceptionHandler:88 - JSON parse error: Cannot deserialize instance of `java.lang.String` out of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.String` out of START_ARRAY token
at [Source: (PushbackInputStream); line: 2, column: 16] (through reference chain: com.laowu.model.MemberDictDO["userName"])
2023-07-06 16:53:26,161 [main] ERROR org.apache.catalina.util.LifecycleBase:175 - Failed to start component [Connector[HTTP/1.1-34567]]
org.apache.catalina.LifecycleException: Protocol handler start failed
at org.apache.catalina.connector.Connector.startInternal(Connector.java:1008)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.addConnector(StandardService.java:227)
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.addPreviouslyRemovedConnectors(TomcatWebServer.java:263)
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.start(TomcatWebServer.java:195)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.startWebServer(ServletWebServerApplicationContext.java:297)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:163)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:552)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:743)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:390)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:312)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1214)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1203)
at com.laowu.LaowuApplication.main(LaowuApplication.java:14)
Caused by: java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.apache.tomcat.util.net.NioEndpoint.initServerSocket(NioEndpoint.java:230)
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:213)
at org.apache.tomcat.util.net.AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1124)
at org.apache.tomcat.util.net.AbstractEndpoint.start(AbstractEndpoint.java:1210)
at org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:585)
at org.apache.catalina.connector.Connector.startInternal(Connector.java:1005)
... 14 common frames omitted
2023-07-06 16:53:26,184 [main] ERROR org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter:40 -
***************************
APPLICATION FAILED TO START
***************************
Description:
The Tomcat connector configured to listen on port 34567 failed to start. The port may already be in use or the connector may be misconfigured.
Action:
Verify the connector's configuration, identify and stop any process that's listening on port 34567, or configure this application to listen on another port.
2023-07-06 17:05:55,745 [main] ERROR org.apache.catalina.util.LifecycleBase:175 - Failed to start component [Connector[HTTP/1.1-34567]]
org.apache.catalina.LifecycleException: Protocol handler start failed
at org.apache.catalina.connector.Connector.startInternal(Connector.java:1008)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.addConnector(StandardService.java:227)
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.addPreviouslyRemovedConnectors(TomcatWebServer.java:263)
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.start(TomcatWebServer.java:195)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.startWebServer(ServletWebServerApplicationContext.java:297)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:163)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:552)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:743)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:390)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:312)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1214)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1203)
at com.laowu.LaowuApplication.main(LaowuApplication.java:14)
Caused by: java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.apache.tomcat.util.net.NioEndpoint.initServerSocket(NioEndpoint.java:230)
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:213)
at org.apache.tomcat.util.net.AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1124)
at org.apache.tomcat.util.net.AbstractEndpoint.start(AbstractEndpoint.java:1210)
at org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:585)
at org.apache.catalina.connector.Connector.startInternal(Connector.java:1005)
... 14 common frames omitted
2023-07-06 17:05:55,766 [main] ERROR org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter:40 -
***************************
APPLICATION FAILED TO START
***************************
Description:
The Tomcat connector configured to listen on port 34567 failed to start. The port may already be in use or the connector may be misconfigured.
Action:
Verify the connector's configuration, identify and stop any process that's listening on port 34567, or configure this application to listen on another port.
2023-08-15 15:57:34,530 [http-nio-34567-exec-9] ERROR com.laowu.common.exception.GlobalExceptionHandler:88 - JSON parse error: Cannot deserialize value of type `java.time.LocalDateTime` from String "2023-08-09": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text '2023-08-09' could not be parsed at index 10; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDateTime` from String "2023-08-09": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text '2023-08-09' could not be parsed at index 10
at [Source: (PushbackInputStream); line: 1, column: 113] (through reference chain: com.laowu.dto.member.AddMemberDTO["homecomingDate"])
......@@ -114,6 +114,12 @@
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.5.2</version>
</dependency>
<dependency>
<groupId>com.auth0</groupId>
<artifactId>java-jwt</artifactId>
<version>${java-jwt.version}</version>
......
package com.laowu.common;
import org.springframework.context.annotation.Bean;
import org.springframework.http.MediaType;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;
import java.util.ArrayList;
import java.util.List;
@Component
public class RestTemplateConfig {
@Bean
public RestTemplate restTemplate() {
RestTemplate restTemplate = new RestTemplate();
restTemplate.getMessageConverters().add(new WxMappingJackson2HttpMessageConverter());
return restTemplate;
}
public class WxMappingJackson2HttpMessageConverter extends MappingJackson2HttpMessageConverter {
public WxMappingJackson2HttpMessageConverter(){
List<MediaType> mediaTypes = new ArrayList<>();
mediaTypes.add(MediaType.TEXT_PLAIN);
mediaTypes.add(MediaType.TEXT_HTML);
setSupportedMediaTypes(mediaTypes);
}
}
}
......@@ -8,15 +8,15 @@ import io.swagger.annotations.Api;
/**
* <p>
* 团队成员映射表 前端控制器
* 前端控制器
* </p>
*
* @author Tuyp
* @since 2023-03-29
* @since 2023-08-23
*/
@RestController
@Api(tags = "团队成员映射表")
@RequestMapping("/member-team-mapping-do")
public class MemberTeamMappingController {
@Api(tags = "")
@RequestMapping("/access-token-do")
public class AccessTokenController {
}
......@@ -52,7 +52,7 @@ public class AdministerController {
}
@PostMapping("addAdminister")
@ApiOperation("新增管理员 addAdminister userName telephone remark stationIds")
@ApiOperation("新增管理员 addAdminister userName telephone remark stationIds[]")
public ResponseVO addAdminister(@RequestBody AddAdministerDTO addAdministerDTO){
return ResponseData.generateCreatedResponse(0,administerService.addAdminister(addAdministerDTO));
}
......
package com.laowu.controller;
import com.laowu.common.interceptor.LoginRequired;
import com.laowu.common.interceptor.TimeRequired;
import com.laowu.dto.image.CheckResultDTO;
import com.laowu.model.ImageCheckRecordDO;
import com.laowu.service.ImageCheckRecordService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
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.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 人脸识别记录表 前端控制器
* </p>
*
* @author Tuyp
* @since 2023-08-22
*/
@RestController
@Api(tags = "人脸识别记录表")
@RequestMapping("/imageCheckRecord")
public class ImageCheckRecordController {
@Autowired
private ImageCheckRecordService imageCheckRecordService;
@PostMapping("getImageCheckHistory")
@ApiOperation("获取某人某个班级的验证历史 memberId ")
@LoginRequired
public ResponseVO getImageCheckHistory(@RequestBody ImageCheckRecordDO imageCheckRecordDO) {
return ResponseData.generateCreatedResponse(0, imageCheckRecordService.getImageCheckHistory(imageCheckRecordDO));
}
@PostMapping("imageCheck")
@ApiOperation("课程/测评人身核验(权威库:身份证) PC端 memberId 用户id ")
@TimeRequired
public ResponseVO imageCheck(@RequestBody ImageCheckRecordDO imageCheckRecordDO) throws Exception {
return ResponseData.generateCreatedResponse(0, imageCheckRecordService.imageCheck(imageCheckRecordDO));
}
@PostMapping("h5ImageCheck")
@ApiOperation("课程/测评人脸核验(权威库:身份证) 微信浮层H5 memberId 用户id ")
@TimeRequired
public ResponseVO h5CheckResult(@RequestBody ImageCheckRecordDO imageCheckRecordDO)throws Exception{
return ResponseData.generateCreatedResponse(0,imageCheckRecordService.h5CheckResult(imageCheckRecordDO));
}
// @PostMapping("loginCheck")
// @ApiOperation("签到页做人脸核验 (权威库:身份证) PC端 id 用户id")
// @TimeRequired
// public ResponseVO loginCheck(@RequestBody ImageCheckRecordDO imageCheckRecordDO)throws Exception{
// return ResponseData.generateCreatedResponse(0,imageCheckRecordService.loginCheck(imageCheckRecordDO));
// }
//
// @PostMapping("h5LoginCheck")
// @ApiOperation("签到页做人脸核验 (权威库:身份证) id 用户id")
// @TimeRequired
// public ResponseVO h5LoginCheck(@RequestBody ImageCheckRecordDO imageCheckRecordDO)throws Exception{
// return ResponseData.generateCreatedResponse(0,imageCheckRecordService.h5LoginCheck(imageCheckRecordDO));
// }
@PostMapping("checkResult")
@ApiOperation("人脸验证结果 存图片 id 订单号 ")
public ResponseVO checkResult(@RequestBody CheckResultDTO checkResultDTO)throws Exception{
return ResponseData.generateCreatedResponse(0,imageCheckRecordService.checkResult(checkResultDTO));
}
}
......@@ -31,7 +31,7 @@ public class MemberCertsController {
@PostMapping("addMemberCert")
@ApiOperation("添加证书信息 memberId cert")
@ApiOperation("添加证书信息 memberId cert certNo")
public ResponseVO addMemberCert(@RequestBody MemberCertsDO memberCertsDO){
return ResponseData.generateCreatedResponse(0,memberCertsService.addMemberCert(memberCertsDO));
}
......@@ -43,7 +43,7 @@ public class MemberCertsController {
}
@PostMapping("updateMemberCert")
@ApiOperation("修改证书信息 id cert")
@ApiOperation("修改证书信息 id cert certNo")
public ResponseVO updateMemberCert(@RequestBody MemberCertsDO memberCertsDO){
return ResponseData.generateCreatedResponse(0,memberCertsService.updateMemberCert(memberCertsDO));
}
......
package com.laowu.controller;
import com.laowu.model.MemberCollegeMappingDO;
import com.laowu.service.MemberCollegeMappingService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
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 2023-04-04
*/
@RestController
@Api(tags = "学员-学校映射表")
@RequestMapping("/memberCollege")
public class MemberCollegeMappingController {
@Autowired
private MemberCollegeMappingService memberCollegeMappingService;
@PostMapping("addCollege")
@ApiOperation("添加院校信息 schoolType collegeId memberId startDate endDate majorId rank educationType")
public ResponseVO addCollege(@RequestBody MemberCollegeMappingDO memberCollegeMappingDO){
return ResponseData.generateCreatedResponse(0,memberCollegeMappingService.addCollege(memberCollegeMappingDO));
}
@PostMapping("updateCollege")
@ApiOperation("修改院校 id schoolType collegeId memberId startDate endDate majorId rank educationType")
public ResponseVO updateCollege(@RequestBody MemberCollegeMappingDO memberCollegeMappingDO){
return ResponseData.generateCreatedResponse(0,memberCollegeMappingService.updateCollege(memberCollegeMappingDO));
}
@PostMapping("deleteCollege")
@ApiOperation("删除院校 id")
public ResponseVO deleteCollege(@RequestBody MemberCollegeMappingDO memberCollegeMappingDO){
return ResponseData.generateCreatedResponse(0,memberCollegeMappingService.deleteCollege(memberCollegeMappingDO));
}
}
......@@ -43,8 +43,14 @@ public class MemberDictController {
}
@PostMapping("addMember")
@ApiOperation("添加自然人 userId module userName status 学生/社会 telephone idCardType idCard province city county address education" +
"isPoor isMigration isParty jobStatus stationId positionIds[] teamId")
@ApiOperation("添加自然人 workstationId userName idCardType idCard telephone hostUserName hostIdCardType hostIdCard province city county town village team address" +
"provinceNow cityNow countyNow townNow villageNow addressNow familyCnt hostRelation " +
"gender age nation isParty education health" +
"isPoor monitorType isMigration migrationType migrationName fisherman insured pensionInsurance insurePlace" +
"memberType laborAbility jobStatus jobType jobAge yearJobMonth averageSalary " +
"incomeStatement employmentWillingness provinceEmployment cityEmployment " +
"employmentTrainingWillingness homecoming homecomingDate homecomingReason " +
"comment positionIds[] ")
public ResponseVO addMember(@RequestBody AddMemberDTO addMemberDTO){
return ResponseData.generateCreatedResponse(0,memberDictService.addMember(addMemberDTO));
}
......@@ -56,8 +62,13 @@ public class MemberDictController {
}
@PostMapping("updateMember")
@ApiOperation("修改自然人 id userId module userName status 学生/社会 telephone idCardType idCard province city county address education" +
"isPoor isMigration isParty jobStatus infoOrigin positionIds[]")
@ApiOperation("修改自然人 workstationId id userName idCardType idCard telephone hostId province city county town village team address" +
"provinceNow cityNow countyNow townNow villageNow addressNow familyCnt hostRelation " +
"gender age nation isParty education health isPoor monitorType isMigration migrationType " +
"migrationName fisherman insured pensionInsurance insurePlace" +
"memberType laborAbility jobStatus jobType jobAge yearJobMonth averageSalary " +
"incomeStatement employmentWillingness provinceEmployment cityEmployment " +
"employmentTrainingWillingness homecoming homecomingDate homecomingReason commentpositionIds[] ")
public ResponseVO updateMember(@RequestBody UpdateMemberDTO updateMemberDTO){
return ResponseData.generateCreatedResponse(0,memberDictService.updateMember(updateMemberDTO));
}
......@@ -69,9 +80,9 @@ public class MemberDictController {
}
@PostMapping("importUsers")
@ApiOperation("导入用户 workstationId teamId file")
public ResponseVO importUsers(@RequestParam("workstationId") String workstationId,@RequestParam("teamId") String teamId,@RequestParam("file") MultipartFile file){
return ResponseData.generateCreatedResponse(0,memberDictService.importMember(workstationId,teamId,file));
@ApiOperation("导入用户 workstationId file")
public ResponseVO importUsers(@RequestParam("workstationId") String workstationId,@RequestParam("file") MultipartFile file){
return ResponseData.generateCreatedResponse(0,memberDictService.importMember(workstationId,file));
}
@PostMapping("downloadErrorData")
......@@ -80,18 +91,38 @@ public class MemberDictController {
return ResponseData.generateCreatedResponse(0,memberDictService.downloadErrorData(downloadErrorDataDTO));
}
@PostMapping("downloadUsers")
@ApiOperation("导出花名册 pageSize,pageNum,stationId,positionId,province,city,county,town,village,gender,maxAge," +
"minAge,isParty,education,health,provinceNow,cityNow,countyNow,townNow,isPoor,monitorType,isMigration,migrationType," +
"fisherman,insured,pensionInsurance,insurePlace,memberType,laborAbility,jobStatus,jobType,provinceJob,cityJob,countyJob," +
"townJob,jobDestination,jobsStartDate,jobsEndDate,businessId,maxAverageSalary,minAverageSalary," +
"maxJobAge,minJobAge,employmentWillingness,provinceEmployment,cityEmployment,willingBusinessId,employmentTrainingWillingness,trainType,homecoming,userId")
public ResponseVO downloadUsers(@RequestBody MemberManagementDTO memberManagementDTO){
return ResponseData.generateCreatedResponse(0,memberDictService.downloadUsers(memberManagementDTO));
}
@PostMapping("address")
@ApiOperation("地址 导入省市县镇")
public void address (@RequestBody List<AddressDTO> addressDTO){
memberDictService.address(addressDTO);
}
@PostMapping("roster")
@ApiOperation("花名册 pageSize pageNum province city county ")
public ResponseVO roster(@RequestBody RosterDTO rosterDTO){
return ResponseData.generateCreatedResponse(0,memberDictService.roster(rosterDTO));
}
@PostMapping("checkLogin")
@ApiOperation("登录验证 userName idCard")
public ResponseVO checkLogin(@RequestBody MemberDictDO memberDictDO){
return ResponseData.generateCreatedResponse(0,memberDictService.checkLogin(memberDictDO));
}
@PostMapping("tokenLogin")
@ApiOperation("免密跳转 idCard")
public ResponseVO tokenLogin(@RequestBody MemberDictDO memberDictDO){
return ResponseData.generateCreatedResponse(0,memberDictService.tokenLogin(memberDictDO));
}
}
......@@ -30,13 +30,13 @@ public class MemberJobInfoController {
private MemberJobInfoService memberJobInfoService;
@PostMapping("addJob")
@ApiOperation("添加工作 memberId jobSource jobType job province city town address companyId startDate endDate jobMonth salary ")
@ApiOperation("添加工作 memberId province city county town village jobDestination jobIndustry startDate endDate jobMonth salary ")
public ResponseVO addJob(@RequestBody MemberJobInfoDO memberJobInfoDO){
return ResponseData.generateCreatedResponse(0,memberJobInfoService.addJob(memberJobInfoDO));
}
@PostMapping("updateJob")
@ApiOperation("修改工作 id memberId jobSource jobType job province city town address companyId startDate endDate jobMonth salary ")
@ApiOperation("修改工作 id memberId province city county town village jobDestination jobIndustry startDate endDate jobMonth salary ")
public ResponseVO updateJob(@RequestBody MemberJobInfoDO memberJobInfoDO){
return ResponseData.generateCreatedResponse(0,memberJobInfoService.updateJob(memberJobInfoDO));
}
......
package com.laowu.controller;
import com.laowu.dto.member.AddTrainDTO;
import com.laowu.model.MemberTrainInfoDO;
import com.laowu.service.MemberTrainInfoService;
import com.laowu.util.ResponseData;
......@@ -32,9 +31,9 @@ public class MemberTrainInfoController {
private MemberTrainInfoService memberTrainInfoService;
@PostMapping("addTrain")
@ApiOperation("添加培训 memberId trainFrom trainType trainName startDate endDate province city county trainContent trainResult positionIds[]")
public ResponseVO addTrain(@RequestBody AddTrainDTO addTrainDTO){
return ResponseData.generateCreatedResponse(0,memberTrainInfoService.addTrain(addTrainDTO));
@ApiOperation("添加培训 memberId trainType trainJob businessId startDate endDate")
public ResponseVO addTrain(@RequestBody MemberTrainInfoDO memberTrainInfoDO){
return ResponseData.generateCreatedResponse(0,memberTrainInfoService.addTrain(memberTrainInfoDO));
}
@PostMapping("deleteTrain")
......@@ -44,9 +43,9 @@ public class MemberTrainInfoController {
}
@PostMapping("updateTrain")
@ApiOperation("修改培训 id memberId trainFrom trainType trainName startDate endDate province city county trainContent trainResult positionIds[] ")
public ResponseVO updateTrain(@RequestBody AddTrainDTO addTrainDTO){
return ResponseData.generateCreatedResponse(0,memberTrainInfoService.updateTrain(addTrainDTO));
@ApiOperation("修改培训 id memberId trainType trainJob businessId startDate endDate")
public ResponseVO updateTrain(@RequestBody MemberTrainInfoDO memberTrainInfoDO){
return ResponseData.generateCreatedResponse(0,memberTrainInfoService.updateTrain(memberTrainInfoDO));
}
......
package com.laowu.controller;
import com.laowu.model.MemberTrainPositionsDO;
import com.laowu.service.MemberTrainPositionsService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
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 2023-04-12
*/
@RestController
@Api(tags = "培训关联职业范围")
@RequestMapping("/memberTrainPositions")
public class MemberTrainPositionsController {
@Autowired
private MemberTrainPositionsService memberTrainPositionsService;
@PostMapping("addPosition")
@ApiOperation("添加职业技能范围 memberTrainId positionId")
public ResponseVO addPosition(@RequestBody MemberTrainPositionsDO memberTrainPositionsDO){
return ResponseData.generateCreatedResponse(0,memberTrainPositionsService.addPosition(memberTrainPositionsDO));
}
@PostMapping("deletePosition")
@ApiOperation("删除职业技能范围 id ")
public ResponseVO deletePosition(@RequestBody MemberTrainPositionsDO memberTrainPositionsDO){
return ResponseData.generateCreatedResponse(0,memberTrainPositionsService.deletePosition(memberTrainPositionsDO));
}
@PostMapping("updatePosition")
@ApiOperation("修改职业技能范围 id positionId")
public ResponseVO updatePosition(@RequestBody MemberTrainPositionsDO memberTrainPositionsDO){
return ResponseData.generateCreatedResponse(0,memberTrainPositionsService.updatePosition(memberTrainPositionsDO));
}
}
package com.laowu.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 2023-04-07
*/
@RestController
@Api(tags = "公司更新日志表")
@RequestMapping("/member-update-history-do")
public class MemberUpdateHistoryController {
}
package com.laowu.controller;
import com.laowu.dto.team.*;
import com.laowu.model.TeamDictDO;
import com.laowu.service.TeamDictService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
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.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 团队字典表 前端控制器
* </p>
*
* @author Tuyp
* @since 2023-03-29
*/
@RestController
@Api(tags = "团队字典表")
@RequestMapping("/teamDict")
public class TeamDictController {
@Autowired
private TeamDictService teamDictService;
@PostMapping("teams")
@ApiOperation("工作站下的团队 pageSize pageNum province stationId teamName")
public ResponseVO teams(@RequestBody TeamsDTO teamsDTO){
return ResponseData.generateCreatedResponse(0,teamDictService.teams(teamsDTO));
}
@PostMapping("totalTeams")
@ApiOperation("总团队数 stationId")
public ResponseVO totalTeams(@RequestBody TeamDictDO teamDictDO){
return ResponseData.generateCreatedResponse(0,teamDictService.totalTeams(teamDictDO));
}
@PostMapping("deleteTeam")
@ApiOperation("删除团队 id")
public ResponseVO deleteTeam(@RequestBody TeamDictDO teamDictDO){
return ResponseData.generateCreatedResponse(0,teamDictService.deleteTeam(teamDictDO));
}
@PostMapping("addTeam")
@ApiOperation("添加团队 stationId teamName comment memberId")
public ResponseVO addTeam(@RequestBody TeamDictDO teamDictDO){
return ResponseData.generateCreatedResponse(0,teamDictService.addTeam(teamDictDO));
}
@PostMapping("updateTeam")
@ApiOperation("id stationId teamName comment memberId")
public ResponseVO updateTeam(@RequestBody TeamDictDO teamDict){
return ResponseData.generateCreatedResponse(0,teamDictService.updateTeam(teamDict));
}
@PostMapping("teamMember")
@ApiOperation("查看团队成员信息 teamId")
public ResponseVO teamMember(@RequestBody TeamMemberDTO teamMemberDTO){
return ResponseData.generateCreatedResponse(0,teamDictService.teamMember(teamMemberDTO));
}
@PostMapping("oneTeamInfo")
@ApiOperation("查看一个团队详情 id")
public ResponseVO oneTeamInfo(@RequestBody TeamDictDO teamDictDO){
return ResponseData.generateCreatedResponse(0,teamDictService.oneTeamInfo(teamDictDO));
}
@PostMapping("noTeamMembers")
@ApiOperation("查看没有团队的成员信息 pageSize pageNum teamId userName")
public ResponseVO noTeamMembers(@RequestBody TeamMemberDTO teamMemberDTO){
return ResponseData.generateCreatedResponse(0,teamDictService.noTeamMembers(teamMemberDTO));
}
@PostMapping("updateTeamMembers")
@ApiOperation("编辑团队信息 teamId memberIds[] ")
public ResponseVO updateMembers(@RequestBody UpdateTeamMembersDTO updateTeamMembersDTO){
return ResponseData.generateCreatedResponse(0,teamDictService.updateMembers(updateTeamMembersDTO));
}
@PostMapping("leaderMembers")
@ApiOperation("团队带头人 stationId pageSize pageNum ")
public ResponseVO leaderMembers(@RequestBody LeaderMembersDTO leaderMembersDTO){
return ResponseData.generateCreatedResponse(0,teamDictService.leaderMembers(leaderMembersDTO));
}
@PostMapping("leaderMemberCounts")
@ApiOperation("团队带头人数 stationId")
public ResponseVO leaderMemberCounts(@RequestBody TeamDictDO teamDictDO){
return ResponseData.generateCreatedResponse(0,teamDictService.leaderMemberCounts(teamDictDO));
}
@PostMapping("provinceStationTeam")
@ApiOperation("省-工作站-团队 userId")
public ResponseVO provinceStationTeam(@RequestBody ProvinceStationTeamDTO provinceStationTeamDTO){
return ResponseData.generateCreatedResponse(0,teamDictService.provinceStationTeam(provinceStationTeamDTO));
}
@PostMapping("memberManagement")
@ApiOperation("人员管理 pageSize pageNum userId teamId stationId province jobStatus userName positionId 技能范围")
public ResponseVO memberManagement (@RequestBody MemberManagementDTO memberManagementDTO){
return ResponseData.generateCreatedResponse(0,teamDictService.memberManagement(memberManagementDTO));
}
@PostMapping("memberManagementCount")
@ApiOperation("人员管理 人数 teamId stationId province jobStatus userName")
public ResponseVO memberManagementCount(@RequestBody MemberManagementDTO memberManagementDTO){
return ResponseData.generateCreatedResponse(0,teamDictService.memberManagementCount(memberManagementDTO));
}
}
......@@ -6,6 +6,7 @@ import com.laowu.dto.station.StationAccountDTO;
import com.laowu.dto.station.StationsDTO;
import com.laowu.dto.station.UpdateAdministerDTO;
import com.laowu.model.AdministerDO;
import com.laowu.model.LibGeoLocationDO;
import com.laowu.model.WorkstationDictDO;
import com.laowu.service.WorkstationDictService;
import com.laowu.util.ResponseData;
......@@ -71,7 +72,7 @@ public class WorkstationDictController {
}
@PostMapping("provinceStations")
@ApiOperation("以省为单位查看工作站 ")
@ApiOperation("以省为单位查看工作站 userId")
public ResponseVO provinceStations(@RequestBody ProvinceStationsDTO provinceStationsDTO){
return ResponseData.generateCreatedResponse(0,workstationDictService.provinceStations(provinceStationsDTO));
}
......@@ -94,4 +95,27 @@ public class WorkstationDictController {
return ResponseData.generateCreatedResponse(0,workstationDictService.homepage(workstationDictDO));
}
@PostMapping("screen1")
@ApiOperation("大屏1 province city")
public ResponseVO screen1(@RequestBody LibGeoLocationDO libGeoLocationDO){
return ResponseData.generateCreatedResponse(0,workstationDictService.screen1(libGeoLocationDO));
}
@PostMapping("screen2")
@ApiOperation("大屏2 province city")
public ResponseVO screen2(@RequestBody LibGeoLocationDO libGeoLocationDO){
return ResponseData.generateCreatedResponse(0,workstationDictService.screen2(libGeoLocationDO));
}
@PostMapping("screen3")
@ApiOperation("大屏3 province city")
public ResponseVO screen3(@RequestBody LibGeoLocationDO libGeoLocationDO){
return ResponseData.generateCreatedResponse(0,workstationDictService.screen3(libGeoLocationDO));
}
@PostMapping("ageGender")
public ResponseVO ageGender(){
return ResponseData.generateCreatedResponse(0,workstationDictService.ageGender());
}
}
package com.laowu.controller;
import com.laowu.dto.member.MemberManagementDTO;
import com.laowu.service.WorkstationMemberMappingService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
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.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
/**
* <p>
......@@ -16,7 +23,20 @@ import io.swagger.annotations.Api;
*/
@RestController
@Api(tags = "学员--工作站映射关系")
@RequestMapping("/workstation-member-mapping-do")
@RequestMapping("/workstationMemberMapping")
public class WorkstationMemberMappingController {
@Autowired
private WorkstationMemberMappingService workstationMemberMappingService;
@PostMapping("memberManagement")
@ApiOperation("人员管理 pageSize,pageNum,userName,stationId,positionId,province,city,county,town,village,gender,maxAge," +
"minAge,isParty,education,health,provinceNow,cityNow,countyNow,townNow,isPoor,monitorType,isMigration,migrationType," +
"fisherman,insured,pensionInsurance,insurePlace,memberType,laborAbility,jobStatus,jobType,provinceJob,cityJob,countyJob," +
"townJob,jobDestination,jobsStartDate,jobsEndDate,businessId,maxAverageSalary,minAverageSalary," +
"maxJobAge,minJobAge,employmentWillingness,provinceEmployment,cityEmployment,willingBusinessId,employmentTrainingWillingness,trainType,homecoming,userId")
public ResponseVO memberManagement (@RequestBody MemberManagementDTO memberManagementDTO){
return ResponseData.generateCreatedResponse(0,workstationMemberMappingService.memberManagement(memberManagementDTO));
}
}
package com.laowu.dto.team;
package com.laowu.dto.image;
import lombok.Data;
@Data
public class ProvinceStationTeamDTO {
public class CheckResultDTO {
private Long userId;
private String id;
}
......@@ -8,14 +8,10 @@ import java.util.List;
@Data
public class AddMemberDTO extends MemberDictDO {
private Long userId;
private String module;
private Long stationId;
private Long teamId;
private Long workstationId;
private List<Long> positionIds;
private List<Long> jobIds;
}
package com.laowu.dto.member;
import com.laowu.model.MemberTrainInfoDO;
import lombok.Data;
import java.util.List;
@Data
public class AddTrainDTO extends MemberTrainInfoDO {
private List<Long> positionIds;
}
package com.laowu.dto.member;
import lombok.Data;
@Data
public class MemberManagementDTO {
private Integer pageSize;
private Integer pageNum;
private String userName;
private Long stationId;
private Long positionId;
private String province;
private String city;
private String county;
private String town;
private String village;
private String gender;
private Integer maxAge;
private Integer minAge;
private String isParty;
private String education;
private String health;
private String provinceNow;
private String cityNow;
private String countyNow;
private String townNow;
private String isPoor;
private String monitorType;
private String isMigration;
private String migrationType;
private String fisherman;
private String insured;
private String pensionInsurance;
private String insurePlace;
private String memberType;
private String laborAbility;
private String jobStatus;
private String jobType;
private String provinceJob;
private String cityJob;
private String countyJob;
private String townJob;
private String jobDestination;
private String jobsStartDate;
private String jobsEndDate;
private Long businessId;
private Integer maxAverageSalary;
private Integer minAverageSalary;
private Integer maxJobAge;
private Integer minJobAge;
private Long willingBusinessId;
private String employmentWillingness;
private String provinceEmployment;
private String cityEmployment;
private String employmentTrainingWillingness;
private String homecoming;
private String trainType;
private Long userId;
}
......@@ -11,10 +11,6 @@ public class UpdateMemberDTO extends MemberDictDO {
private List<MemberJobInfoVO> memberJobInfoVOS;
private Long userId;
private String module;
private List<Long> positionIds;
}
package com.laowu.dto.team;
import lombok.Data;
@Data
public class LeaderMembersDTO {
private Integer pageSize;
private Integer pageNum;
private Long stationId;
private String userName;
}
package com.laowu.dto.team;
import lombok.Data;
@Data
public class MemberManagementDTO {
private Integer pageSize;
private Integer pageNum;
private Long teamId;
private Long stationId;
private String province;
private String jobStatus;
private String userName;
private Long userId;
private Long positionId;
}
package com.laowu.dto.team;
import lombok.Data;
@Data
public class TeamMemberDTO {
private Integer pageSize;
private Integer pageNum;
private Long teamId;
private String userName;
}
package com.laowu.dto.team;
import lombok.Data;
@Data
public class TeamsDTO {
private Integer pageSize;
private Integer pageNum;
private Long stationId;
private String teamName;
private String province;
}
package com.laowu.dto.team;
import lombok.Data;
import java.util.List;
@Data
public class UpdateTeamMembersDTO {
private Long teamId;
private List<Long> memberIds;
}
package com.laowu.mapper;
import com.laowu.model.MemberUpdateHistoryDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.laowu.model.AccessTokenDO;
import org.springframework.stereotype.Repository;
/**
* <p>
* 公司更新日志表 Mapper 接口
* Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-04-07
* @author DengMin
* @since 2022-02-18
*/
@Repository
public interface MemberUpdateHistoryMapper extends BaseMapper<MemberUpdateHistoryDO> {
public interface AccessTokenMapper extends BaseMapper<AccessTokenDO> {
}
package com.laowu.mapper;
import com.laowu.model.MemberCollegeMappingDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.laowu.model.ImageCheckRecordDO;
import org.springframework.stereotype.Repository;
/**
* <p>
* 学员-学校映射表 Mapper 接口
* 人脸识别记录表 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-04-04
* @since 2023-08-22
*/
@Repository
public interface MemberCollegeMappingMapper extends BaseMapper<MemberCollegeMappingDO> {
public interface ImageCheckRecordMapper extends BaseMapper<ImageCheckRecordDO> {
}
package com.laowu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.laowu.model.MemberDictDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.laowu.model.PositionDictDO;
import com.laowu.vo.member.AllMembersVO;
import com.laowu.vo.station.BusinessTop7VO;
import org.springframework.stereotype.Repository;
import java.util.List;
......@@ -35,6 +36,44 @@ public interface MemberDictMapper extends BaseMapper<MemberDictDO> {
*/
List<PositionDictDO> memberPositions(Long memberId);
/**
* 劳动力总数:只算技能劳动力,普通劳动力,部分丧失劳动力
*/
Integer laborAbility(String province,String city,String county,String isPoor);
/**
* 在沪就业人数
*/
Integer cityEmployeeCnt(String province,String city);
/**
* 转移人数
*/
Integer migrationCnt(String province,String city,String isMigration);
/**
* 持证人数
*/
Integer memberCertCnt(String province,String city);
/**
* 就业行业占比
*/
List<BusinessTop7VO> businessTop7(String province, String city);
/**
* 薪资中位数
*/
List<Double> middleSalary(String province, String city);
/**
* 学历查询
*/
Integer education(String province,String city,String county,String education,String destinationProvince);
/**
* 某个地方某个年龄段的劳动力
*/
Integer ageLabor(String province,String city,String county,Integer minAge,Integer maxAge);
}
package com.laowu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.laowu.model.MemberDictDO;
import com.laowu.model.MemberTeamMappingDO;
import org.springframework.stereotype.Repository;
/**
* <p>
* 团队成员映射表 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-03-29
*/
@Repository
public interface MemberTeamMappingMapper extends BaseMapper<MemberTeamMappingDO> {
/**
* 查看某个团队的成员
*/
IPage<MemberDictDO> teamMembers(IPage page,Long teamId);
/**
* 查看还不在这个团队里的人
*/
IPage<MemberDictDO> noTeamMembers(IPage iPage,Long teamId,String userName);
}
package com.laowu.mapper;
import com.laowu.model.MemberTrainPositionsDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.laowu.model.PositionDictDO;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* <p>
* 培训关联职业范围 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-04-12
*/
@Repository
public interface MemberTrainPositionsMapper extends BaseMapper<MemberTrainPositionsDO> {
List<Long> positionIds(Long memberTrainId);
List<PositionDictDO> positions(Long memberTrainId);
}
package com.laowu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.laowu.model.TeamDictDO;
import com.laowu.vo.team.LeaderMembersVO;
import com.laowu.vo.team.MemberManagementVO;
import com.laowu.vo.team.TeamsVO;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* <p>
* 团队字典表 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-03-29
*/
@Repository
public interface TeamDictMapper extends BaseMapper<TeamDictDO> {
IPage<TeamsVO> teams(IPage iPage, Long stationId, String teamName,String province);
/**
* 查看某个工作站的带头人总数
*/
Integer leaderMemberCounts(Long stationId);
/**
* 查看带头人的团队情况
*/
IPage<LeaderMembersVO> leaderMembers(IPage iPage, Long stationId, String userName);
/**
* 人员管理
*/
IPage<MemberManagementVO> memberManagement(IPage page, Long teamId, Long stationId, String province, String jobStatus, String userName, List<Long> workstationIds,Long positionId);
/**
* 人员管理---人数
*/
Integer memberManagementCount(Long teamId, Long stationId, String province, String jobStatus,Long positionId);
/**
* 将组长为memberId的team职位空
*/
void noLeader(Long id);
}
......@@ -5,7 +5,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.laowu.model.WorkstationDictDO;
import com.laowu.vo.station.StationAccountVO;
import com.laowu.vo.station.StationsVO;
import com.laowu.vo.team.HomepageVO;
import com.laowu.vo.station.HomepageVO;
import org.springframework.stereotype.Repository;
import java.util.List;
......
package com.laowu.mapper;
import com.laowu.model.WorkstationMemberMappingDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.laowu.model.WorkstationMemberMappingDO;
import com.laowu.vo.member.MemberManagementVO;
import org.springframework.stereotype.Repository;
/**
......@@ -12,9 +14,18 @@ import org.springframework.stereotype.Repository;
* @author Tuyp
* @since 2023-04-07
*/
@Repository
@Repository
public interface WorkstationMemberMappingMapper extends BaseMapper<WorkstationMemberMappingDO> {
/**
* 人员管理
*/
IPage<MemberManagementVO> memberManagement(IPage page,String userName,Long stationId,Long positionId,String province,String city,String county,String town,String village,String gender,Integer maxAge,
Integer minAge,String isParty,String education,String health,String provinceNow,String cityNow,String countyNow,String townNow,
String isPoor,String monitorType,String isMigration,String migrationType,String fisherman,String insured,String pensionInsurance,
String insurePlace,String memberType,String laborAbility,String jobStatus,String jobType,String provinceJob,String cityJob,String countyJob,
String townJob,String jobDestination,String jobsStartDate,String jobsEndDate,Long businessId,Integer maxAverageSalary,Integer minAverageSalary,Integer maxJobAge,Integer minJobAge,
String employmentWillingness,String provinceEmployment,String cityEmployment,Long willingBusinessId,String employmentTrainingWillingness,String homecoming,Long userId,String trainType);
}
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 团队成员映射表
*
* </p>
*
* @author Tuyp
* @since 2023-03-29
* @author DengMin
* @since 2022-02-18
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("member_team_mapping")
public class MemberTeamMappingDO extends BaseModel {
@TableName("access_token")
public class AccessTokenDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
private Long memberId;
private Integer id;
private Long teamId;
private String accessToken;
}
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;
/**
* <p>
* 学员-学校映射
* 人脸识别记录
* </p>
*
* @author Tuyp
* @since 2023-04-04
* @since 2023-08-22
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("member_college_mapping")
public class MemberCollegeMappingDO extends BaseModel {
@TableName("image_check_record")
public class ImageCheckRecordDO extends BaseModel {
private static final long serialVersionUID = 1L;
......@@ -26,44 +28,39 @@ public class MemberCollegeMappingDO extends BaseModel {
private Long id;
/**
* 学校类型
*/
private String schoolType;
/**
* 成员id
* 学员id
*/
private Long memberId;
/**
* 院校id
* 活体检测得分
*/
private Long collegeId;
private String liveRate;
/**
* 开始时间
* 人脸比对得分
*/
private String startDate;
private String similarity;
/**
* 结束时间
* 刷脸时间
*/
private String endDate;
private LocalDateTime occurredTime;
/**
* 专业id
* 图片
*/
private Long majorId;
private String photo;
/**
* 成绩排名
* 流水号
*/
private String rank;
private String bizSeqNo;
/**
* 学历类型
* 结果
*/
private String educationType;
private Integer result;
}
......@@ -35,5 +35,10 @@ public class MemberCertsDO extends BaseModel {
*/
private String cert;
/**
* 证书编号
*/
private String certNo;
}
......@@ -7,6 +7,8 @@ import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;
/**
* <p>
* 自然人表
......@@ -31,9 +33,19 @@ public class MemberDictDO extends BaseModel {
private String userName;
/**
* 学生/社会
* 个人证件类型
*/
private String status;
private String idCardType;
/**
* 个人证件
*/
private String idCard;
/**
* 头像
*/
private String img;
/**
* 手机号码
......@@ -41,94 +53,179 @@ public class MemberDictDO extends BaseModel {
private String telephone;
/**
* 个人证件类型
* 户主姓名
*/
private String idCardType;
private String hostUserName;
/**
* 个人证件
* 户主证件类型
*/
private String idCard;
private String hostIdCardType;
/**
* 省
* 户主证件
*/
private String hostIdCard;
/**
* 省(户籍)
*/
private String province;
/**
* 市
* 市(户籍)
*/
private String city;
/**
* 县
* 县(户籍)
*/
private String county;
/**
* 镇
* 镇(户籍)
*/
private String town;
/**
* 村
* 村(户籍)
*/
private String village;
/**
* 具体地址
* 组(户籍)
*/
private String team;
/**
* 具体地址(户籍)
*/
private String address;
/**
* 学历
* 省(现居)
*/
private String education;
private String provinceNow;
/**
* 市(现居)
*/
private String cityNow;
/**
* 县(现居)
*/
private String countyNow;
/**
* 镇(现居)
*/
private String townNow;
/**
* 村(现居)
*/
private String villageNow;
/**
* 学历类型
* 具体地址(现居)
*/
private String educationType;
private String addressNow;
/**
* 院校id
* 家庭人数
*/
private Long collegeId;
private Integer familyCnt;
/**
* 开始时间
* 与户主关系
*/
private String startDate;
private String hostRelation;
/**
* 结束时间
* 性别
*/
private String endDate;
private String gender;
/**
* 专业id
* 年龄
*/
private Long majorId;
private Integer age;
/**
* 排名
* 民族
*/
private String rank;
private String nation;
/**
* 是否为脱贫劳动力
* 是否党员
*/
private String isParty;
/**
* 学历
*/
private String education;
/**
* 健康状态
*/
private String health;
/**
* 是否为脱贫户
*/
private String isPoor;
/**
* 监测对象类型
*/
private String monitorType;
/**
* 是否易迁户
*/
private String isMigration;
/**
* 是否党员
* 搬迁类型
*/
private String isParty;
private String migrationType;
/**
* 搬迁点名称
*/
private String migrationName;
/**
* 是否退捕渔民
*/
private String fisherman;
/**
* 是否参保
*/
private String insured;
/**
* 养老保险参保情况
*/
private String pensionInsurance;
/**
* 当前参保地
*/
private String insurePlace;
/**
* 人员类别
*/
private String memberType;
/**
* 劳动能力
*/
private String laborAbility;
/**
* 就业状态
......@@ -136,8 +233,103 @@ public class MemberDictDO extends BaseModel {
private String jobStatus;
/**
* 信息来源
* 就业类型
*/
private String jobType;
/**
* 就业行业id
*/
private Long businessId;
/**
* 工龄
*/
private String jobAge;
/**
* 本年内务工月数
*/
private String yearJobMonth;
/**
* 年平均收入
*/
private Double averageSalary;
/**
* 收入情况说明
*/
private String incomeStatement;
/**
* 就业意愿
*/
private String employmentWillingness;
/**
* 省(就业意愿)
*/
private String provinceEmployment;
/**
* 市(就业意愿)
*/
private String cityEmployment;
/**
* 就业培训意愿
*/
private String employmentTrainingWillingness;
/**
* 意愿培训行业
*/
private Long willingBusinessId;
/**
* 培训开始时间
*/
private String willingStartDate;
/**
* 培训结束时间
*/
private String willingEndDate;
/**
* 是否返乡
*/
private String homecoming;
/**
* 返乡时间
*/
private String homecomingDate;
/**
* 返乡原因
*/
private String homecomingReason;
/**
* 备注(异常原因)
*/
private String comment;
/**
* 户最后更新时间
*/
private LocalDateTime hostLastUpdate;
/**
* 基础信息更新时间
*/
private LocalDateTime baseLastUpdate;
/**
* 就业信息更新时间
*/
private String infoOrigin;
private LocalDateTime employmentLastUpdate;
}
......@@ -31,21 +31,6 @@ public class MemberJobInfoDO extends BaseModel {
private Long memberId;
/**
* 就业来源
*/
private String jobSource;
/**
* 就业类型
*/
private String jobType;
/**
* 就业岗位
*/
private String job;
/**
* 省
*/
private String province;
......@@ -61,14 +46,19 @@ public class MemberJobInfoDO extends BaseModel {
private String county;
/**
* 具体地址
* 镇
*/
private String town;
/**
* 村
*/
private String address;
private String village;
/**
* 公司名称
* 就业去向
*/
private Long companyId;
private String jobDestination;
/**
* 开始时间
......@@ -76,7 +66,7 @@ public class MemberJobInfoDO extends BaseModel {
private String startDate;
/**
* 结束实际上
* 结束时间
*/
private String endDate;
......@@ -90,5 +80,4 @@ public class MemberJobInfoDO extends BaseModel {
*/
private String salary;
}
......@@ -31,54 +31,15 @@ public class MemberTrainInfoDO extends BaseModel {
private Long memberId;
/**
* 培训项目来源
*/
private String trainFrom;
/**
* 培训类型
*/
private String trainType;
/**
* 培训项目名称
*/
private String trainName;
/**
* 培训开始时间
*/
private String startDate;
/**
* 培训结束时间
*/
private String endDate;
/**
* 省
* 培训工种
*/
private String province;
private String trainJob;
/**
* 市
*/
private String city;
/**
* 县
*/
private String county;
/**
* 培训内容
*/
private String trainContent;
/**
* 培训结果
*/
private String trainResult;
}
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 培训关联职业范围
* </p>
*
* @author Tuyp
* @since 2023-04-12
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("member_train_positions")
public class MemberTrainPositionsDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
private Long memberTrainId;
private Long positionId;
}
package com.laowu.model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.laowu.util.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 团队字典表
* </p>
*
* @author Tuyp
* @since 2023-03-29
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("team_dict")
public class TeamDictDO extends BaseModel {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 工作站id
*/
private Long stationId;
/**
* 团队名称
*/
private String teamName;
/**
* 备注
*/
private String comment;
/**
* 团队带头人
*/
private Long memberId;
}
package com.laowu.service;
import com.laowu.model.MemberTeamMappingDO;
import com.laowu.model.AccessTokenDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 团队成员映射表 服务类
* 服务类
* </p>
*
* @author Tuyp
* @since 2023-03-29
* @since 2023-08-23
*/
public interface MemberTeamMappingService extends IService<MemberTeamMappingDO> {
public interface AccessTokenService extends IService<AccessTokenDO> {
}
......@@ -10,7 +10,7 @@ import com.laowu.model.CompanyDictDO;
import com.laowu.model.WorkstationDictDO;
import com.laowu.vo.company.CompanyCardVO;
import com.laowu.vo.company.CompanyVO;
import com.laowu.vo.team.TotalTeamsVO;
import com.laowu.vo.station.TotalTeamsVO;
/**
* <p>
......
package com.laowu.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.laowu.dto.image.CheckResultDTO;
import com.laowu.model.ImageCheckRecordDO;
import com.laowu.model.MemberDictDO;
import com.laowu.vo.image.SendIdCardInfoVO;
import java.util.List;
/**
* <p>
* 人脸识别记录表 服务类
* </p>
*
* @author Tuyp
* @since 2023-08-22
*/
public interface ImageCheckRecordService extends IService<ImageCheckRecordDO> {
List<ImageCheckRecordDO> getImageCheckHistory(ImageCheckRecordDO imageCheckRecordDO);
SendIdCardInfoVO imageCheck(ImageCheckRecordDO imageCheckRecordDO)throws Exception;
SendIdCardInfoVO h5CheckResult(ImageCheckRecordDO imageCheckRecordDO) throws Exception;
// SendIdCardInfoVO loginCheck(ImageCheckRecordDO imageCheckRecordDO)throws Exception;
//
// SendIdCardInfoVO h5LoginCheck(ImageCheckRecordDO imageCheckRecordDO)throws Exception;
MemberDictDO checkResult(CheckResultDTO checkResultDTO)throws Exception;
}
package com.laowu.service;
import com.laowu.model.MemberCollegeMappingDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 学员-学校映射表 服务类
* </p>
*
* @author Tuyp
* @since 2023-04-04
*/
public interface MemberCollegeMappingService extends IService<MemberCollegeMappingDO> {
String addCollege(MemberCollegeMappingDO memberCollegeMappingDO);
String updateCollege(MemberCollegeMappingDO memberCollegeMappingDO);
String deleteCollege(MemberCollegeMappingDO memberCollegeMappingDO);
}
......@@ -31,12 +31,18 @@ public interface MemberDictService extends IService<MemberDictDO> {
MemberCardVO memberCard(MemberDictDO memberDictDO);
ImportMemberDictVO importMember(String workstationId,String teamId,MultipartFile multipartFile);
ImportMemberDictVO importMember(String workstationId,MultipartFile multipartFile);
String downloadErrorData(DownloadErrorDataDTO downloadErrorDataDTO);
String downloadUsers(MemberManagementDTO memberManagementDTO);
void address(List<AddressDTO> addressDTO);
IPage<RosterVO> roster(RosterDTO rosterDTO);
Long checkLogin(MemberDictDO memberDictDO);
TokenLoginVO tokenLogin(MemberDictDO memberDictDO);
}
package com.laowu.service;
import com.laowu.dto.member.AddTrainDTO;
import com.laowu.model.MemberTrainInfoDO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.laowu.model.MemberTrainInfoDO;
/**
* <p>
......@@ -14,9 +13,9 @@ import com.baomidou.mybatisplus.extension.service.IService;
*/
public interface MemberTrainInfoService extends IService<MemberTrainInfoDO> {
String addTrain(AddTrainDTO addTrainDTO);
String addTrain(MemberTrainInfoDO memberTrainInfoDO);
String deleteTrain(MemberTrainInfoDO memberTrainInfoDO);
String updateTrain(AddTrainDTO addTrainDTO);
String updateTrain(MemberTrainInfoDO memberTrainInfoDO);
}
package com.laowu.service;
import com.laowu.model.MemberTrainPositionsDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 培训关联职业范围 服务类
* </p>
*
* @author Tuyp
* @since 2023-04-12
*/
public interface MemberTrainPositionsService extends IService<MemberTrainPositionsDO> {
String addPosition(MemberTrainPositionsDO memberTrainPositionsDO);
String deletePosition(MemberTrainPositionsDO memberTrainPositionsDO);
String updatePosition(MemberTrainPositionsDO memberTrainPositionsDO);
}
package com.laowu.service;
import com.laowu.model.MemberUpdateHistoryDO;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 公司更新日志表 服务类
* </p>
*
* @author Tuyp
* @since 2023-04-07
*/
public interface MemberUpdateHistoryService extends IService<MemberUpdateHistoryDO> {
}
package com.laowu.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.laowu.dto.team.*;
import com.laowu.model.MemberDictDO;
import com.laowu.model.TeamDictDO;
import com.laowu.vo.team.*;
import java.util.List;
/**
* <p>
* 团队字典表 服务类
* </p>
*
* @author Tuyp
* @since 2023-03-29
*/
public interface TeamDictService extends IService<TeamDictDO> {
IPage<TeamsVO> teams(TeamsDTO teamsDTO);
TotalTeamsVO totalTeams(TeamDictDO teamDictDO);
String deleteTeam(TeamDictDO teamDictDO);
String addTeam(TeamDictDO teamDictDO);
String updateTeam(TeamDictDO teamDictDO);
IPage<MemberDictDO> teamMember(TeamMemberDTO teamMemberDTO);
OneTeamInfoVO oneTeamInfo(TeamDictDO teamDictDO);
IPage<MemberDictDO> noTeamMembers(TeamMemberDTO teamMemberDTO);
String updateMembers(UpdateTeamMembersDTO updateTeamMembersDTO);
IPage<LeaderMembersVO> leaderMembers(LeaderMembersDTO leaderMembersDTO);
TotalTeamsVO leaderMemberCounts(TeamDictDO teamDictDO);
List<ProvinceStationTeamVO> provinceStationTeam(ProvinceStationTeamDTO provinceStationTeamDTO);
IPage<MemberManagementVO> memberManagement(MemberManagementDTO memberManagementDTO);
TotalTeamsVO memberManagementCount(MemberManagementDTO memberManagementDTO);
}
......@@ -7,10 +7,9 @@ import com.laowu.dto.station.StationAccountDTO;
import com.laowu.dto.station.StationsDTO;
import com.laowu.dto.station.UpdateAdministerDTO;
import com.laowu.model.AdministerDO;
import com.laowu.model.LibGeoLocationDO;
import com.laowu.model.WorkstationDictDO;
import com.laowu.vo.station.OneStationAccountVO;
import com.laowu.vo.station.ProvinceStationsVO;
import com.laowu.vo.team.HomepageVO;
import com.laowu.vo.station.*;
import java.util.List;
......@@ -43,4 +42,12 @@ public interface WorkstationDictService extends IService<WorkstationDictDO> {
String addAdminister(UpdateAdministerDTO updateAdministerDTO);
HomepageVO homepage(WorkstationDictDO workstationDictDO);
Screen1VO screen1(LibGeoLocationDO libGeoLocationDO);
Screen2VO screen2(LibGeoLocationDO libGeoLocationDO);
List<Screen3VO> screen3(LibGeoLocationDO libGeoLocationDO);
String ageGender();
}
package com.laowu.service;
import com.laowu.model.WorkstationMemberMappingDO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.laowu.dto.member.MemberManagementDTO;
import com.laowu.model.WorkstationMemberMappingDO;
import com.laowu.vo.member.MemberManagementVO;
/**
* <p>
......@@ -13,4 +16,6 @@ import com.baomidou.mybatisplus.extension.service.IService;
*/
public interface WorkstationMemberMappingService extends IService<WorkstationMemberMappingDO> {
IPage<MemberManagementVO> memberManagement(MemberManagementDTO memberManagementDTO);
}
package com.laowu.service.impl;
import com.laowu.model.MemberTeamMappingDO;
import com.laowu.mapper.MemberTeamMappingMapper;
import com.laowu.service.MemberTeamMappingService;
import com.laowu.model.AccessTokenDO;
import com.laowu.mapper.AccessTokenMapper;
import com.laowu.service.AccessTokenService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 团队成员映射表 服务实现类
* 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-03-29
* @since 2023-08-23
*/
@Service
public class MemberTeamMappingServiceImpl extends ServiceImpl<MemberTeamMappingMapper, MemberTeamMappingDO> implements MemberTeamMappingService {
public class AccessTokenServiceImpl extends ServiceImpl<AccessTokenMapper, AccessTokenDO> implements AccessTokenService {
}
......@@ -107,6 +107,7 @@ public class AdministerServiceImpl extends ServiceImpl<AdministerMapper, Adminis
administerPermissionVO.setIsRole(false);
//站长所有的工作站
List<WorkstationDictDO> workstationDictDOS = workstationAdministersMapper.workstations(administerDO.getId());
administerPermissionVO.setWorkstationDictDOS(workstationDictDOS);
}
......
......@@ -17,7 +17,7 @@ import com.laowu.vo.company.CompanyCardVO;
import com.laowu.vo.company.CompanyUpdateHistoryVO;
import com.laowu.vo.company.CompanyVO;
import com.laowu.vo.company.RelateWorkVO;
import com.laowu.vo.team.TotalTeamsVO;
import com.laowu.vo.station.TotalTeamsVO;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
......
package com.laowu.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.common.exception.HttpException;
import com.laowu.mapper.MemberCollegeMappingMapper;
import com.laowu.model.MemberCollegeMappingDO;
import com.laowu.service.MemberCollegeMappingService;
import com.laowu.util.ConstantUtils;
import org.springframework.stereotype.Service;
/**
* <p>
* 学员-学校映射表 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-04-04
*/
@Service
public class MemberCollegeMappingServiceImpl extends ServiceImpl<MemberCollegeMappingMapper, MemberCollegeMappingDO> implements MemberCollegeMappingService {
public String addCollege(MemberCollegeMappingDO memberCollegeMappingDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<MemberCollegeMappingDO>()
.lambda()
.eq(MemberCollegeMappingDO::getCollegeId, memberCollegeMappingDO.getCollegeId())
.eq(MemberCollegeMappingDO::getMemberId, memberCollegeMappingDO.getMemberId()));
if (count > 0) {
throw new HttpException(70001);
}
this.baseMapper.insert(memberCollegeMappingDO);
return ConstantUtils.ADD_SUCCESS;
}
public String updateCollege(MemberCollegeMappingDO memberCollegeMappingDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<MemberCollegeMappingDO>()
.lambda()
.eq(MemberCollegeMappingDO::getCollegeId, memberCollegeMappingDO.getCollegeId())
.eq(MemberCollegeMappingDO::getMemberId, memberCollegeMappingDO.getMemberId())
.ne(MemberCollegeMappingDO::getId, memberCollegeMappingDO.getId()));
if (count > 0) {
throw new HttpException(70001);
}
this.baseMapper.updateById(memberCollegeMappingDO);
return ConstantUtils.SUCCESS_UPDATE;
}
public String deleteCollege(MemberCollegeMappingDO memberCollegeMappingDO) {
this.baseMapper.deleteById(memberCollegeMappingDO.getId());
return ConstantUtils.DELETE_SUCCESS;
}
}
package com.laowu.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.laowu.common.exception.HttpException;
import com.laowu.model.MemberJobInfoDO;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.mapper.MemberJobInfoMapper;
import com.laowu.model.MemberJobInfoDO;
import com.laowu.service.MemberJobInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.util.ConstantUtils;
import org.springframework.stereotype.Service;
......@@ -22,33 +20,12 @@ public class MemberJobInfoServiceImpl extends ServiceImpl<MemberJobInfoMapper, M
public String addJob(MemberJobInfoDO memberJobInfoDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<MemberJobInfoDO>()
.lambda()
.eq(MemberJobInfoDO::getMemberId, memberJobInfoDO.getMemberId())
.eq(MemberJobInfoDO::getCompanyId, memberJobInfoDO.getCompanyId()));
if (count > 0) {
throw new HttpException(70001);
}
this.baseMapper.insert(memberJobInfoDO);
return ConstantUtils.ADD_SUCCESS;
}
public String updateJob(MemberJobInfoDO memberJobInfoDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<MemberJobInfoDO>()
.lambda()
.eq(MemberJobInfoDO::getMemberId, memberJobInfoDO.getMemberId())
.eq(MemberJobInfoDO::getCompanyId, memberJobInfoDO.getCompanyId())
.ne(MemberJobInfoDO::getId, memberJobInfoDO.getId()));
if (count > 0){
throw new HttpException(70001);
}
this.baseMapper.updateById(memberJobInfoDO);
return ConstantUtils.SUCCESS_UPDATE;
}
......
package com.laowu.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.dto.member.AddTrainDTO;
import com.laowu.mapper.MemberTrainInfoMapper;
import com.laowu.mapper.MemberTrainPositionsMapper;
import com.laowu.model.MemberTrainInfoDO;
import com.laowu.model.MemberTrainPositionsDO;
import com.laowu.service.MemberTrainInfoService;
import com.laowu.util.ConstantUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
/**
* <p>
* 学员培训信息 服务实现类
......@@ -27,74 +18,18 @@ import java.util.List;
@Service
public class MemberTrainInfoServiceImpl extends ServiceImpl<MemberTrainInfoMapper, MemberTrainInfoDO> implements MemberTrainInfoService {
@Autowired
private MemberTrainPositionsMapper memberTrainPositionsMapper;
public String addTrain(AddTrainDTO addTrainDTO) {
MemberTrainInfoDO memberTrainInfoDO = new MemberTrainInfoDO();
BeanUtils.copyProperties(addTrainDTO, memberTrainInfoDO);
public String addTrain(MemberTrainInfoDO memberTrainInfoDO) {
this.baseMapper.insert(memberTrainInfoDO);
List<Long> positionIds = addTrainDTO.getPositionIds();
for (Long positionId : positionIds) {
MemberTrainPositionsDO memberTrainPositionsDO = new MemberTrainPositionsDO();
memberTrainPositionsDO.setMemberTrainId(memberTrainInfoDO.getId());
memberTrainPositionsDO.setPositionId(positionId);
memberTrainPositionsMapper.insert(memberTrainPositionsDO);
}
return ConstantUtils.ADD_SUCCESS;
}
public String deleteTrain(MemberTrainInfoDO memberTrainInfoDO) {
this.baseMapper.deleteById(memberTrainInfoDO.getId());
memberTrainPositionsMapper.delete(new QueryWrapper<MemberTrainPositionsDO>()
.lambda()
.eq(MemberTrainPositionsDO::getMemberTrainId, memberTrainInfoDO.getId()));
return ConstantUtils.DELETE_SUCCESS;
}
public String updateTrain(AddTrainDTO addTrainDTO) {
MemberTrainInfoDO memberTrainInfoDO = new MemberTrainInfoDO();
BeanUtils.copyProperties(addTrainDTO, memberTrainInfoDO);
public String updateTrain(MemberTrainInfoDO memberTrainInfoDO) {
this.baseMapper.updateById(memberTrainInfoDO);
//找到已经有的work
List<Long> oldIds = memberTrainPositionsMapper.positionIds(memberTrainInfoDO.getId());
List<Long> newIds = addTrainDTO.getPositionIds();
List<Long> newIds2 = new ArrayList<Long>();
for (Long id : newIds) {
newIds2.add(id);
}
newIds.removeAll(oldIds); //新增的人在newIds里面
if (newIds.size() > 0) {
for (Long id : newIds) {
MemberTrainPositionsDO memberTrainPositionsDO = new MemberTrainPositionsDO();
memberTrainPositionsDO.setMemberTrainId(addTrainDTO.getId());
memberTrainPositionsDO.setPositionId(id);
memberTrainPositionsMapper.insert(memberTrainPositionsDO);
}
}
oldIds.removeAll(newIds2);//删掉以前的
if (oldIds.size() > 0) {
for (Long id : oldIds) {
memberTrainPositionsMapper.delete(new QueryWrapper<MemberTrainPositionsDO>()
.lambda()
.eq(MemberTrainPositionsDO::getMemberTrainId, addTrainDTO.getId())
.eq(MemberTrainPositionsDO::getPositionId, id));
}
}
return ConstantUtils.SUCCESS_UPDATE;
}
}
package com.laowu.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.laowu.common.exception.HttpException;
import com.laowu.model.MemberTrainPositionsDO;
import com.laowu.mapper.MemberTrainPositionsMapper;
import com.laowu.service.MemberTrainPositionsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.util.ConstantUtils;
import org.springframework.stereotype.Service;
/**
* <p>
* 培训关联职业范围 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-04-12
*/
@Service
public class MemberTrainPositionsServiceImpl extends ServiceImpl<MemberTrainPositionsMapper, MemberTrainPositionsDO> implements MemberTrainPositionsService {
public String addPosition(MemberTrainPositionsDO memberTrainPositionsDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<MemberTrainPositionsDO>()
.lambda()
.eq(MemberTrainPositionsDO::getMemberTrainId, memberTrainPositionsDO.getMemberTrainId())
.eq(MemberTrainPositionsDO::getPositionId, memberTrainPositionsDO.getPositionId()));
if (count > 0) {
throw new HttpException(70001);
}
this.baseMapper.insert(memberTrainPositionsDO);
return ConstantUtils.ADD_SUCCESS;
}
public String deletePosition(MemberTrainPositionsDO memberTrainPositionsDO) {
this.baseMapper.deleteById(memberTrainPositionsDO.getId());
return ConstantUtils.DELETE_SUCCESS;
}
public String updatePosition(MemberTrainPositionsDO memberTrainPositionsDO) {
int count = this.baseMapper.selectCount(new QueryWrapper<MemberTrainPositionsDO>()
.lambda()
.ne(MemberTrainPositionsDO::getId, memberTrainPositionsDO.getId())
.eq(MemberTrainPositionsDO::getPositionId, memberTrainPositionsDO.getPositionId()));
if (count > 0) {
throw new HttpException(70001);
}
this.baseMapper.updateById(memberTrainPositionsDO);
return ConstantUtils.SUCCESS_UPDATE;
}
}
package com.laowu.service.impl;
import com.laowu.model.MemberUpdateHistoryDO;
import com.laowu.mapper.MemberUpdateHistoryMapper;
import com.laowu.service.MemberUpdateHistoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 公司更新日志表 服务实现类
* </p>
*
* @author Tuyp
* @since 2023-04-07
*/
@Service
public class MemberUpdateHistoryServiceImpl extends ServiceImpl<MemberUpdateHistoryMapper, MemberUpdateHistoryDO> implements MemberUpdateHistoryService {
}
package com.laowu.service.impl;
import com.laowu.model.WorkstationMemberMappingDO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.dto.member.MemberManagementDTO;
import com.laowu.mapper.MemberDictMapper;
import com.laowu.mapper.MemberJobInfoMapper;
import com.laowu.mapper.WorkstationMemberMappingMapper;
import com.laowu.model.PositionDictDO;
import com.laowu.model.WorkstationMemberMappingDO;
import com.laowu.service.WorkstationMemberMappingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laowu.vo.job.RecentJobInfoVO;
import com.laowu.vo.member.MemberManagementVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* <p>
* 学员--工作站映射关系 服务实现类
......@@ -17,4 +28,42 @@ import org.springframework.stereotype.Service;
@Service
public class WorkstationMemberMappingServiceImpl extends ServiceImpl<WorkstationMemberMappingMapper, WorkstationMemberMappingDO> implements WorkstationMemberMappingService {
@Autowired
private MemberJobInfoMapper memberJobInfoMapper;
@Autowired
private MemberDictMapper memberDictMapper;
public IPage<MemberManagementVO> memberManagement(MemberManagementDTO memberManagementDTO) {
Page pager = new Page(memberManagementDTO.getPageNum(), memberManagementDTO.getPageSize());
IPage<MemberManagementVO> memberManagementVOIPage = this.baseMapper.memberManagement(pager,memberManagementDTO.getUserName(), memberManagementDTO.getStationId(),memberManagementDTO.getPositionId(),memberManagementDTO.getProvince(),memberManagementDTO.getCity(),memberManagementDTO.getCounty(),memberManagementDTO.getTown(),memberManagementDTO.getVillage(),memberManagementDTO.getGender(),
memberManagementDTO.getMaxAge(),memberManagementDTO.getMinAge(),memberManagementDTO.getIsParty(),memberManagementDTO.getEducation(),memberManagementDTO.getHealth(),
memberManagementDTO.getProvinceNow(),memberManagementDTO.getCityNow(),memberManagementDTO.getCountyNow(),memberManagementDTO.getTownNow(),memberManagementDTO.getIsPoor(),
memberManagementDTO.getMonitorType(),memberManagementDTO.getIsMigration(),memberManagementDTO.getMigrationType(),memberManagementDTO.getFisherman(),memberManagementDTO.getInsured(),
memberManagementDTO.getPensionInsurance(),memberManagementDTO.getInsurePlace(),memberManagementDTO.getMemberType(),memberManagementDTO.getLaborAbility(),memberManagementDTO.getJobStatus(),
memberManagementDTO.getJobType(),memberManagementDTO.getProvinceJob(),memberManagementDTO.getCityJob(),memberManagementDTO.getCountyJob(),memberManagementDTO.getTownJob(),
memberManagementDTO.getJobDestination(),memberManagementDTO.getJobsStartDate(),memberManagementDTO.getJobsEndDate(),memberManagementDTO.getBusinessId(),
memberManagementDTO.getMaxAverageSalary(),memberManagementDTO.getMinAverageSalary(),memberManagementDTO.getMaxJobAge(),memberManagementDTO.getMinJobAge(),memberManagementDTO.getEmploymentWillingness(),
memberManagementDTO.getProvinceEmployment(),memberManagementDTO.getCityEmployment(),memberManagementDTO.getWillingBusinessId(),memberManagementDTO.getEmploymentTrainingWillingness(),memberManagementDTO.getHomecoming(),memberManagementDTO.getUserId(),memberManagementDTO.getTrainType());
List<MemberManagementVO> memberManagementVOS = memberManagementVOIPage.getRecords();
for (MemberManagementVO memberManagementVO : memberManagementVOS) {
RecentJobInfoVO recentJobInfoVO = memberJobInfoMapper.recentJobInfo(memberManagementVO.getId());
if (null != recentJobInfoVO){
memberManagementVO.setRecentStartDate(recentJobInfoVO.getStartDate());
memberManagementVO.setRecentEndDate(recentJobInfoVO.getEndDate());
memberManagementVO.setRecentMonth(recentJobInfoVO.getJobMonth());
}
//技能信息
List<PositionDictDO> positionDictDOS = memberDictMapper.memberPositions(memberManagementVO.getId());
memberManagementVO.setPositionDictDOList(positionDictDOS);
}
return memberManagementVOIPage;
}
}
package com.laowu.util;
import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;
import javax.imageio.stream.FileImageInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
class Base64Util {
/**
* 字符串转图片
* @param base64Str
* @return
*/
public static byte[] decode(String base64Str){
byte[] b = null;
BASE64Decoder decoder = new BASE64Decoder();
try {
b = decoder.decodeBuffer(replaceEnter(base64Str));
} catch (IOException e) {
e.printStackTrace();
}
return b;
}
/**
* 图片转字符串
* @param image
* @return
*/
public static String encode(byte[] image){
BASE64Encoder decoder = new BASE64Encoder();
return replaceEnter(decoder.encode(image));
}
public static void main(String[] args) {
System.out.println(encode("http://ykhl-bigger.oss-cn-beijing.aliyuncs.com/2023-02-1618cb936b-4825-429c-9fdd-dd9d0de97ed7.jpg?x-oss-process=image/auto-orient,1/resize,m_pad,w_500,h_500/quality,Q_100/format,jpg"));
}
public static String encode(String uri){
BASE64Encoder encoder = new BASE64Encoder();
return replaceEnter(encoder.encode(uri.getBytes()));
}
/**
*
* @path 图片路径
* @return
*/
public static byte[] imageTobyte(String path){
byte[] data = null;
FileImageInputStream input = null;
try {
input = new FileImageInputStream(new File(path));
ByteArrayOutputStream output = new ByteArrayOutputStream();
byte[] buf = new byte[1024];
int numBytesRead = 0;
while((numBytesRead = input.read(buf)) != -1){
output.write(buf, 0, numBytesRead);
}
data = output.toByteArray();
output.close();
input.close();
} catch (Exception e) {
e.printStackTrace();
}
return data;
}
public static String replaceEnter(String str){
String reg ="[\n-\r]";
Pattern p = Pattern.compile(reg);
Matcher m = p.matcher(str);
return m.replaceAll("");
}
}
\ No newline at end of file
......@@ -9,8 +9,6 @@ public class MathUtil {
/**
* 4位自增字符
*/
public static String getRandomCode(int randomLength) {
StringBuilder str = new StringBuilder();
Random random = new Random();
......@@ -176,4 +174,9 @@ public class MathUtil {
}
return retStr;
}
public static String round(Integer a,Integer b){
return Math.round((double) a*100 / (double) b)+"";
}
}
package com.laowu.util;
import cn.hutool.core.codec.Base64;
import cn.hutool.core.date.DateTime;
import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClientBuilder;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.UUID;
public class OSSUtils {
// @Value("${aliyun.oss.accessKeyId}")
private static String accessKeyId = "LTAI5tPAH7P7WQVeowo517BE";
// @Value("${aliyun.oss.accessKeySecret}")
private static String secretAccessKey = "0ueqhIfdAZyw5lWlBVSLpAxTtx37RY";
// @Value("${aliyun.oss.endpoint}")
private static String endPoint = "oss-cn-beijing.aliyuncs.com";
// @Value("${aliyun.oss.bucketName}")
private static String bucketName = "laowu-pro";
public static String uploadOneFile(String file) throws IOException {
// 创建OSSClient实例。
OSS ossClient = new OSSClientBuilder().build(endPoint, accessKeyId, secretAccessKey);
// 设置文件名
String fileName = new DateTime().toString("yyyy-MM-dd")
+ UUID.randomUUID().toString() + ".jpg";
// 获取文件后缀名
// int originalFilenameStartIndex = file.indexOf('/');
// int originalFilenameEndIndex = file.indexOf(';');
// String originalFilename = file.substring(originalFilenameStartIndex+1,originalFilenameEndIndex);
// 获取base64的文件
// file = file.split(",")[1];
byte[] bytesFile = Base64.decode(file);
try {
// 创建PutObject请求。
InputStream inputStream = new ByteArrayInputStream(bytesFile);
ossClient.putObject(bucketName, fileName, inputStream);
String url = "http://" + bucketName + "." + endPoint + "/" + fileName+"?x-oss-process=image/auto-orient,1/resize,m_pad,w_500,h_500/quality,Q_100/format,jpg";
// System.out.println(url);
return url;
} catch (Exception e) {
e.printStackTrace();
return null;
} finally {
if (ossClient != null) {
ossClient.shutdown();
}
}
}
public static String image2Base64(String imgUrl) {
URL url = null;
InputStream is = null;
ByteArrayOutputStream outStream = null;
HttpURLConnection httpUrl = null;
try {
url = new URL(imgUrl);
httpUrl = (HttpURLConnection) url.openConnection();
httpUrl.connect();
httpUrl.getInputStream();
is = httpUrl.getInputStream();
outStream = new ByteArrayOutputStream();
// 创建一个Buffer字符串
byte[] buffer = new byte[1024];
// 每次读取的字符串长度,如果为-1,代表全部读取完毕
int len = 0;
// 使用一个输入流从buffer里把数据读取出来
while ((len = is.read(buffer)) != -1) {
// 用输出流往buffer里写入数据,中间参数代表从哪个位置开始读,len代表读取的长度
outStream.write(buffer, 0, len);
}
// 对字节数组Base64编码
return Base64Util.encode(outStream.toByteArray());
} catch (Exception e) {
e.printStackTrace();
} finally {
if (is != null) {
try {
is.close();
} catch (IOException e) {
e.printStackTrace();
}
}
if (outStream != null) {
try {
outStream.close();
} catch (IOException e) {
e.printStackTrace();
}
}
if (httpUrl != null) {
httpUrl.disconnect();
}
}
return imgUrl;
}
public static void main(String[] args) {
// System.out.println(image2Base64("https://shixischool.oss-cn-beijing.aliyuncs.com/2022-12-219df5b721-99b7-48c4-916e-e474a4eca946.jpg?x-oss-process=image/auto-orient,1/resize,m_pad,w_500,h_500/quality,Q_100/format,jpg"));
System.out.println(image2Base64("http://ykhl-bigger.oss-cn-beijing.aliyuncs.com/2023-02-1618cb936b-4825-429c-9fdd-dd9d0de97ed7.jpg?x-oss-process=image/auto-orient,1/resize,m_pad,w_500,h_500/quality,Q_100/format,jpg"));
}
}
package com.laowu.util;
import cn.hutool.core.lang.UUID;
import java.util.Random;
public class RandomUtil {
public static int getCode() {
return (int)((Math.random() * 9 + 1) * 100000);
}
public static String getRandomCode(int randomLength) {
StringBuilder str = new StringBuilder();
Random random = new Random();
for (int i = 0; i < randomLength; i++) {
str.append(random.nextInt(10));
}
return str.toString();
}
/**
* 随机生成订单号
*/
public static String randomOrderNumber(){
return UUID.fastUUID().toString().replace("-","").substring(0,29);
}
public static void main(String[] args) {
System.out.println(randomOrderNumber());
}
}
package com.laowu.util;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.lang3.StringUtils;
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.util.Arrays;
import java.util.Random;
import java.util.UUID;
public class SecretUtils {
/**
* 对用户登录密码进行MD5加密
*
* @param str
* @return
*/
public static String getMD5String(String str) {
try {
// 生成一个MD5加密计算摘要
return DigestUtils.md5Hex(str).toUpperCase();
// MessageDigest md = MessageDigest.getInstance("MD5");
// 计算md5函数
// md.update(str.getBytes("utf-8"));
// digest()最后确定返回md5 hash值,返回值为8位字符串。因为md5 hash值是16位的hex值,实际上就是8位的字符
// BigInteger函数则将8位的字符串转换成16位hex值,用字符串来表示;得到字符串形式的hash值
//一个byte是八位二进制,也就是2位十六进制字符(2的8次方等于16的2次方)
// byte[] digest = md.digest(str.getBytes("utf-8"));
// return new BigInteger(1, digest).toString(16);
} catch (Exception e) {
e.printStackTrace();
return null;
}
}
/**
* 对字符串进行SHA加密
*
* @param
*/
public static String getSHAString(String str) {
try {
MessageDigest sha = MessageDigest.getInstance("SHA-1");
byte[] byteArray = str.getBytes(StandardCharsets.UTF_8);
byte[] md5Bytes = sha.digest(byteArray);
StringBuffer hexValue = new StringBuffer();
for (int i = 0; i < md5Bytes.length; i++) {
int val = ((int) md5Bytes[i]) & 0xff;
if (val < 16) {
hexValue.append("0");
}
hexValue.append(Integer.toHexString(val));
}
return hexValue.toString();
} catch (Exception e) {
return null;
}
}
/**
* Q学友SHA加密
* @param arr
* @return
*/
public static String gen(String... arr) {
if (StringUtils.isAnyEmpty(arr)) {
throw new IllegalArgumentException("非法请求参数,有部分参数为空 : " + Arrays.toString(arr));
} else {
Arrays.sort(arr);
StringBuilder sb = new StringBuilder();
String[] var2 = arr;
int var3 = arr.length;
for (int var4 = 0; var4 < var3; ++var4) {
String a = var2[var4];
sb.append(a);
}
return DigestUtils.sha1Hex(sb.toString());
}
}
public static String getNonce(int length) {
String val = "";
Random random = new Random();
//参数length,表示生成几位随机数
for (int i = 0; i < length; i++) {
val += String.valueOf(random.nextInt(10));
}
return val;
}
private static byte[] md5(String s)
{
MessageDigest algorithm;
try
{
algorithm = MessageDigest.getInstance("MD5");
algorithm.reset();
algorithm.update(s.getBytes(StandardCharsets.UTF_8));
byte[] messageDigest = algorithm.digest();
return messageDigest;
}
catch (Exception e)
{
}
return null;
}
private static final String toHex(byte[] hash)
{
if (hash == null)
{
return null;
}
StringBuffer buf = new StringBuffer(hash.length * 2);
int i;
for (i = 0; i < hash.length; i++)
{
if ((hash[i] & 0xff) < 0x10)
{
buf.append("0");
}
buf.append(Long.toString(hash[i] & 0xff, 16));
}
return buf.toString();
}
public static String hash(String s)
{
try
{
return new String(toHex(md5(s)).getBytes(StandardCharsets.UTF_8), StandardCharsets.UTF_8);
}
catch (Exception e)
{
return s;
}
}
public static void main(String[] args) {
String uuid = UUID.randomUUID().toString();
System.out.println(uuid.replace("-",""));
// System.out.println(hash(uuid+"ixihs"));
// System.out.println(System.currentTimeMillis());
}
}
\ No newline at end of file
package com.laowu.vo.image;
import lombok.Data;
@Data
public class CheckResultVO {
private String code;
private String msg;
private String bizSeqNo;
private ResultVO result;
private String transactionTime;
}
package com.laowu.vo.image;
import lombok.Data;
@Data
public class GetMemberCheckDetailVO {
private Long id;
private String occurredTime;
private String photo;
private Double similarity;
private String result;
}
package com.laowu.vo.image;
import lombok.Data;
@Data
public class IdCardAccessTokenVO {
private String code;
private String msg;
private String transactionTime;
private String access_token;
private String expire_time;
private String expire_in;
}
package com.laowu.vo.image;
import lombok.Data;
import java.util.List;
@Data
public class IdCardSignTicketVO {
private String code;
private String msg;
private String transactionTime;
private List<IdCardTicketsVO> tickets;
}
package com.laowu.vo.image;
import lombok.Data;
@Data
public class IdCardTicketsVO {
private String value;
private String expire_in;
private String expire_time;
}
package com.laowu.vo.image;
import lombok.Data;
import java.util.List;
@Data
public class ResultVO {
private String orderNo;
private String liveRate;
private String similarity;
private String occurredTime;
private String appId;
private String photo;
private String video;
private String bizSeqNo;
private String sdkVersion;
private String trtcFlag;
private List<String> photoList;
}
package com.laowu.vo.image;
import lombok.Data;
@Data
public class SendIdCardInfoVO {
private String code;
private String msg;
private String bizSeqNo;
private SendResultVO result;
private String transactionTime;
}
package com.laowu.vo.image;
import lombok.Data;
@Data
public class SendResultVO {
private String bizSeqNo;
private String transactionTime;
private String orderNo;
private String h5faceId;
private String optimalDomain;
private Boolean success;
private String wbAppId;
private String nonce;
private Long userId;
private String sign;
private String faceId;
}
......@@ -5,11 +5,9 @@ import lombok.Data;
@Data
public class RecentJobInfoVO {
private String companyName;
// private Long id;
private String jobMonth;
private String salary;
private Long memberId;
private String province;
......@@ -17,5 +15,17 @@ public class RecentJobInfoVO {
private String county;
private String address;
private String town;
private String village;
private String jobDestination;
private String startDate;
private String endDate;
private String jobMonth;
private String salary;
}
......@@ -2,6 +2,7 @@ package com.laowu.vo.member;
import com.laowu.model.MemberCertsDO;
import com.laowu.model.MemberDictDO;
import com.laowu.model.MemberTrainInfoDO;
import com.laowu.model.PositionDictDO;
import lombok.Data;
......@@ -12,14 +13,12 @@ public class MemberCardVO extends MemberDictDO {
private List<PositionDictDO> positionDictDOS;
private List<MemberTrainInfoVO> memberTrainInfoVOS;
private List<MemberTrainInfoDO> memberTrainInfoVOS;
private List<MemberCertsDO> memberCertsDOS;
private List<MemberJobInfoVO> memberJobInfoVOS;
private String age;
private String starValue;
private String jobValue;
......
package com.laowu.vo.member;
import com.laowu.model.PositionDictDO;
import com.laowu.util.ExcelColumnUtil;
import lombok.Data;
import java.util.List;
@Data
public class MemberManagementVO {
private Long id;
@ExcelColumnUtil(value = "姓名", col = 2)
private String userName;
@ExcelColumnUtil(value = "个人证件", col = 2)
private String idCardType;
@ExcelColumnUtil(value = "证件号码", col = 2)
private String idCard;
@ExcelColumnUtil(value = "手机号", col = 2)
private String telephone;
@ExcelColumnUtil(value = "户主姓名", col = 2)
private String hostUserName;
@ExcelColumnUtil(value = "户主证件", col = 2)
private String hostIdCardType;
@ExcelColumnUtil(value = "户主证件号码", col = 2)
private String hostIdCard;
@ExcelColumnUtil(value = "(户籍所在地)省", col = 2)
private String province;
@ExcelColumnUtil(value = "(户籍所在地)市", col = 2)
private String city;
@ExcelColumnUtil(value = "(户籍所在地)县", col = 2)
private String county;
@ExcelColumnUtil(value = "(户籍所在地)镇", col = 2)
private String town;
@ExcelColumnUtil(value = "(户籍所在地)村", col = 2)
private String village;
@ExcelColumnUtil(value = "(户籍所在地)组", col = 2)
private String team;
@ExcelColumnUtil(value = "(户籍所在地)地址", col = 2)
private String address;
@ExcelColumnUtil(value = "(现居所在地)省", col = 2)
private String provinceNow;
@ExcelColumnUtil(value = "(现居所在地)市", col = 2)
private String cityNow;
@ExcelColumnUtil(value = "(现居所在地)县", col = 2)
private String countyNow;
@ExcelColumnUtil(value = "(现居所在地)镇", col = 2)
private String townNow;
@ExcelColumnUtil(value = "(现居所在地)村", col = 2)
private String villageNow;
@ExcelColumnUtil(value = "(现居所在地)地址", col = 2)
private String addressNow;
@ExcelColumnUtil(value = "家庭人口数", col = 2)
private String familyCnt;
@ExcelColumnUtil(value = "与户主关系", col = 2)
private String hostRelation;
@ExcelColumnUtil(value = "性别", col = 2)
private String gender;
@ExcelColumnUtil(value = "年龄", col = 2)
private String age;
@ExcelColumnUtil(value = "民族", col = 2)
private String nation;
@ExcelColumnUtil(value = "政治面貌", col = 2)
private String isParty;
@ExcelColumnUtil(value = "文化程(最高学历)", col = 2)
private String education;
@ExcelColumnUtil(value = "健康状况", col = 2)
private String health;
@ExcelColumnUtil(value = "是否脱贫户", col = 2)
private String isPoor;
@ExcelColumnUtil(value = "检测对象类型", col = 2)
private String monitorType;
@ExcelColumnUtil(value = "是否搬迁对象", col = 2)
private String isMigration;
@ExcelColumnUtil(value = "搬迁类型", col = 2)
private String migrationType;
@ExcelColumnUtil(value = "搬迁点名称", col = 2)
private String migrationName;
@ExcelColumnUtil(value = "是否渔民", col = 2)
private String fisherman;
@ExcelColumnUtil(value = "是否参保", col = 2)
private String insured;
@ExcelColumnUtil(value = "养老保险参保情况", col = 2)
private String pensionInsurance;
@ExcelColumnUtil(value = "当前参保地", col = 2)
private String insurePlace;
@ExcelColumnUtil(value = "人员类别", col = 2)
private String memberType;
@ExcelColumnUtil(value = "劳动能力", col = 2)
private String laborAbility;
@ExcelColumnUtil(value = "是否就业", col = 2)
private String jobStatus;
@ExcelColumnUtil(value = "就业类型", col = 2)
private String jobType;
private Long businessId;
@ExcelColumnUtil(value = "(现居所在地)地址", col = 2)
private String business;
@ExcelColumnUtil(value = "工龄", col = 2)
private String jobAge;
private String recentStartDate;
private String recentEndDate;
private String recentMonth;
@ExcelColumnUtil(value = "本年内务工月数", col = 2)
private String yearJobMonth;
@ExcelColumnUtil(value = "年平均收入", col = 2)
private String averageSalary;
@ExcelColumnUtil(value = "收入情况说明", col = 2)
private String incomeStatement;
@ExcelColumnUtil(value = "就业意愿", col = 2)
private String employmentWillingness;
@ExcelColumnUtil(value = "就业意愿省", col = 2)
private String provinceEmployment;
@ExcelColumnUtil(value = "就业意愿市/地区", col = 2)
private String cityEmployment;
@ExcelColumnUtil(value = "就业培训意愿", col = 2)
private String employmentTrainingWillingness;
@ExcelColumnUtil(value = "是否返乡", col = 2)
private String homecoming;
@ExcelColumnUtil(value = "返乡时间", col = 2)
private String homecomingDate;
@ExcelColumnUtil(value = "返乡原因", col = 2)
private String homecomingReason;
@ExcelColumnUtil(value = "备注(异常原因)", col = 2)
private String comment;
@ExcelColumnUtil(value = "户最后更新时间", col = 2)
private String hostLastUpdate;
@ExcelColumnUtil(value = "基础信息更新时间", col = 2)
private String baseLastUpdate;
@ExcelColumnUtil(value = "就业信息更新时间", col = 2)
private String employmentLastUpdate;
private List<PositionDictDO> positionDictDOList;
}
package com.laowu.vo.member;
import com.laowu.model.MemberTrainInfoDO;
import com.laowu.model.PositionDictDO;
import lombok.Data;
import java.util.List;
@Data
public class MemberTrainInfoVO extends MemberTrainInfoDO {
private List<PositionDictDO> positionDictDOS;
}
package com.laowu.vo.member;
import com.laowu.model.MemberCertsDO;
import com.laowu.model.MemberDictDO;
import com.laowu.model.PositionDictDO;
import com.laowu.model.*;
import lombok.Data;
import java.util.List;
......@@ -10,18 +8,27 @@ import java.util.List;
@Data
public class OneMemberVO extends MemberDictDO {
private String college;
/**
* 户主姓名
*/
private String hostUserName;
private String major;
/**
* 户主证件
*/
private String hostIdCardType;
private List<MemberJobInfoVO> memberJobInfoVOS;
/**
* 户主证件号码
*/
private String hostIdCard;
private List<MemberCollegeVO> memberCollegeVOS;
private List<MemberJobInfoDO> memberJobInfoVOS;
private List<PositionDictDO> positionDictDOS;
private List<MemberCertsDO> memberCertsDOS;
private List<MemberTrainInfoVO> memberTrainInfoVOS;
private List<MemberTrainInfoDO> memberTrainInfoVOS;
}
package com.laowu.vo.member;
import com.laowu.model.MemberCollegeMappingDO;
import lombok.Data;
@Data
public class MemberCollegeVO extends MemberCollegeMappingDO {
public class TokenLoginVO {
private String college;
private Long timestamp;
private String major;
private String idCard;
private String sign;
}
package com.laowu.vo.station;
import lombok.Data;
@Data
public class BusinessTop7VO {
private String business;
private Integer cnt;
private String percent;
}
package com.laowu.vo.team;
package com.laowu.vo.station;
import lombok.Data;
......
package com.laowu.vo.station;
import lombok.Data;
@Data
public class Screen1VO {
private Integer totalLaborCnt;
private String totalLaborPercent;
private Integer poorLaborCnt;
private String poorLaborPercent;
private Integer monitorTypeCnt;
private String monitorTypePercent;
}
package com.laowu.vo.station;
import lombok.Data;
import java.util.List;
@Data
public class Screen2VO {
private Integer cityEmployeeCnt;
private Integer migrationCnt;
private Integer certCnt;
private String certPercent;
private List<BusinessTop7VO> businessTop7VOS;
private Double middleSalary;
private Integer chuzhongCnt;
// private String chuzhongPercent;
private Integer gaozhongCnt;
// private String gaozhongPercent;
private Integer daxueCnt;
// private String daxuePercent;
private Integer otherCnt;
// private String otherPercent;
}
package com.laowu.vo.station;
import lombok.Data;
@Data
public class Screen3VO {
private String county;
private Integer totalLaborCnt;
// private String totalLaborPercent;
private Integer poorLaborCnt;
private String poorLaborPercent;
private Integer monitorTypeCnt;
private String monitorTypePercent;
private Integer ageLaborCnt;
private String ageLaborPercent;
private Integer chuzhongCnt;
// private String chuzhongPercent;
private Integer gaozhongCnt;
// private String gaozhongPercent;
private Integer daxueCnt;
// private String daxuePercent;
private Integer otherCnt;
// private String otherPercent;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!