diff --git a/src/main/java/com/zhgd/xmgl/modules/edu/service/ISafeEducationQuestionAnswerService.java b/src/main/java/com/zhgd/xmgl/modules/edu/service/ISafeEducationQuestionAnswerService.java index 8f560d511..b4a48abcb 100644 --- a/src/main/java/com/zhgd/xmgl/modules/edu/service/ISafeEducationQuestionAnswerService.java +++ b/src/main/java/com/zhgd/xmgl/modules/edu/service/ISafeEducationQuestionAnswerService.java @@ -18,5 +18,7 @@ public interface ISafeEducationQuestionAnswerService extends IService map); } diff --git a/src/main/java/com/zhgd/xmgl/modules/edu/service/impl/SafeEducationQuestionAnswerServiceImpl.java b/src/main/java/com/zhgd/xmgl/modules/edu/service/impl/SafeEducationQuestionAnswerServiceImpl.java index e2ef51128..cb0c65568 100644 --- a/src/main/java/com/zhgd/xmgl/modules/edu/service/impl/SafeEducationQuestionAnswerServiceImpl.java +++ b/src/main/java/com/zhgd/xmgl/modules/edu/service/impl/SafeEducationQuestionAnswerServiceImpl.java @@ -10,8 +10,10 @@ import com.zhgd.xmgl.modules.edu.mapper.SafeEducationQuestionAnswerMapper; import com.zhgd.xmgl.modules.edu.mapper.SafeEducationQuestionMapper; import com.zhgd.xmgl.modules.edu.mapper.SafeEducationQuestionOptionMapper; import com.zhgd.xmgl.modules.worker.entity.WorkerInfo; +import com.zhgd.xmgl.modules.worker.entity.WorkerInfoAuditRecord; import com.zhgd.xmgl.modules.worker.entity.WorkerSafeEducation; import com.zhgd.xmgl.modules.worker.entity.WorkerSafeEducationWorker; +import com.zhgd.xmgl.modules.worker.mapper.WorkerInfoAuditRecordMapper; import com.zhgd.xmgl.modules.worker.mapper.WorkerInfoMapper; import com.zhgd.xmgl.modules.worker.mapper.WorkerSafeEducationMapper; import com.zhgd.xmgl.modules.worker.mapper.WorkerSafeEducationWorkerMapper; @@ -44,6 +46,8 @@ public class SafeEducationQuestionAnswerServiceImpl extends ServiceImpl> dataList=new HashMap<>(); + if(dataVo.getList()!=null&&dataVo.getList().size()>0){ + //清除上一次回答记录 + QueryWrapper workerInfoQueryWrapper=new QueryWrapper<>(); + workerInfoQueryWrapper.lambda().eq(WorkerSafeEducationWorker::getWorkerId,dataVo.getWorkerId()) + .eq(WorkerSafeEducationWorker::getEduId,dataVo.getEduId()); + workerSafeEducationWorkerMapper.delete(workerInfoQueryWrapper); + QueryWrapper answerQueryWrapper=new QueryWrapper<>(); + answerQueryWrapper.lambda().eq(SafeEducationQuestionAnswer::getWorkerId,dataVo.getWorkerId()) + .eq(SafeEducationQuestionAnswer::getEduId,dataVo.getEduId()); + safeEducationQuestionAnswerMapper.delete(answerQueryWrapper); + //保存用户的回答 + for (SafeEducationQuestionAnswer answer:dataVo.getList()){ + answer.setEduId(dataVo.getEduId()); + answer.setWorkerId(dataVo.getWorkerId()); + safeEducationQuestionAnswerMapper.insert(answer); + if(dataList.containsKey(String.valueOf(answer.getQuestionId()))){ + List opList=dataList.get(String.valueOf(answer.getQuestionId())); + opList.add(answer.getOptionId()); + dataList.put(String.valueOf(answer.getQuestionId()),opList); + }else{ + List opList=new ArrayList<>(); + opList.add(answer.getOptionId()); + dataList.put(String.valueOf(answer.getQuestionId()),opList); + } + } + //计算分数 + QueryWrapper questionQueryWrapper=new QueryWrapper<>(); + questionQueryWrapper.lambda().eq(SafeEducationQuestion::getEduId,dataVo.getEduId()); + questionQueryWrapper.orderByAsc("sort_num"); + List list=safeEducationQuestionMapper.selectList(questionQueryWrapper); + int totalSocre=0; + if(list!=null&&list.size()>0){ + //查询正确答案的选项 + QueryWrapper optionQueryWrapper=new QueryWrapper<>(); + optionQueryWrapper.lambda().eq(SafeEducationQuestionOption::getEduId, dataVo.getEduId()) + .eq(SafeEducationQuestionOption::getCorrectType,1); + List optionList=safeEducationQuestionOptionMapper.selectList(optionQueryWrapper); + for(SafeEducationQuestion question:list){ + List optionIdList=new ArrayList<>(); + for (SafeEducationQuestionOption option:optionList){ + if(question.getQuestionId().longValue()==option.getQuestionId()){ + optionIdList.add(option.getOptionId()); + } + } + Collections.sort(optionIdList); + if(dataList.containsKey(String.valueOf(question.getQuestionId()))){ + List opList=dataList.get(String.valueOf(question.getQuestionId())); + Collections.sort(opList); + //比较用户的选择和答案是否一致 + if(Arrays.toString(optionIdList.toArray()).equals(Arrays.toString(opList.toArray()))){ + totalSocre=totalSocre+question.getQuestionScore(); + } + } + + } + } + workerSafeEducationWorker.setScore(totalSocre); + //判断是否及格 + if(StringUtils.isNotEmpty(safeEducation.getPassScore()) &&totalSocre>=Integer.valueOf(safeEducation.getPassScore())){ + workerSafeEducationWorker.setIsQualified(1); + }else{ + workerSafeEducationWorker.setIsQualified(2); + } + workerSafeEducationWorker.setProjectSn(info.getProjectSn()); + workerSafeEducationWorkerMapper.insert(workerSafeEducationWorker); + } + return workerSafeEducationWorker; + } } diff --git a/src/main/java/com/zhgd/xmgl/modules/project/entity/ProjectExtend.java b/src/main/java/com/zhgd/xmgl/modules/project/entity/ProjectExtend.java index c95190b15..f0c270806 100644 --- a/src/main/java/com/zhgd/xmgl/modules/project/entity/ProjectExtend.java +++ b/src/main/java/com/zhgd/xmgl/modules/project/entity/ProjectExtend.java @@ -148,5 +148,12 @@ public class ProjectExtend implements Serializable { @ApiModelProperty(value = "绿色施工") private String greenConstruction; + /** + * 安全教育ID + */ + @Excel(name = "安全教育ID", width = 15) + @ApiModelProperty(value = "安全教育ID") + private Long educationId; + } diff --git a/src/main/java/com/zhgd/xmgl/modules/worker/entity/WorkerInfoAuditRecord.java b/src/main/java/com/zhgd/xmgl/modules/worker/entity/WorkerInfoAuditRecord.java index 05a811b8d..f6ab3be58 100644 --- a/src/main/java/com/zhgd/xmgl/modules/worker/entity/WorkerInfoAuditRecord.java +++ b/src/main/java/com/zhgd/xmgl/modules/worker/entity/WorkerInfoAuditRecord.java @@ -215,4 +215,9 @@ public class WorkerInfoAuditRecord implements Serializable { @Excel(name = "是否上传住建,0否,1是", width = 15) @ApiModelProperty(value="是否上传住建,0否,1是") private java.lang.Integer isUploadHousing ; + + /**培训是否合格*/ + @Excel(name = "培训是否合格", width = 15) + @ApiModelProperty(value="培训是否合格") + private java.lang.Boolean isExamPass; } diff --git a/src/main/java/com/zhgd/xmgl/modules/worker/mapper/xml/WorkerInfoAuditRecordMapper.xml b/src/main/java/com/zhgd/xmgl/modules/worker/mapper/xml/WorkerInfoAuditRecordMapper.xml index 2e0c34d2c..d756d5ccf 100644 --- a/src/main/java/com/zhgd/xmgl/modules/worker/mapper/xml/WorkerInfoAuditRecordMapper.xml +++ b/src/main/java/com/zhgd/xmgl/modules/worker/mapper/xml/WorkerInfoAuditRecordMapper.xml @@ -39,5 +39,8 @@ and a.person_type=#{param.personType} + + and a.is_exam_pass=#{param.isExamPass} + \ No newline at end of file diff --git a/src/main/java/com/zhgd/xmgl/modules/worker/service/IWorkerInfoAuditRecordService.java b/src/main/java/com/zhgd/xmgl/modules/worker/service/IWorkerInfoAuditRecordService.java index d8a758318..1c19f82a6 100644 --- a/src/main/java/com/zhgd/xmgl/modules/worker/service/IWorkerInfoAuditRecordService.java +++ b/src/main/java/com/zhgd/xmgl/modules/worker/service/IWorkerInfoAuditRecordService.java @@ -5,6 +5,7 @@ import com.zhgd.jeecg.common.mybatis.EntityMap; import com.zhgd.xmgl.modules.worker.entity.WorkerInfoAuditRecord; import com.baomidou.mybatisplus.extension.service.IService; +import java.util.List; import java.util.Map; /** @@ -17,6 +18,8 @@ public interface IWorkerInfoAuditRecordService extends IService selectWorkerInfoAuditList(Map map); + List getPassList(Map map); + void saveWorkerInfoAuditRecord(WorkerInfoAuditRecord workerInfoAuditRecord); void editWorkerInfoAuditRecord(WorkerInfoAuditRecord workerInfoAuditRecord); diff --git a/src/main/java/com/zhgd/xmgl/modules/worker/service/impl/WorkerInfoAuditRecordServiceImpl.java b/src/main/java/com/zhgd/xmgl/modules/worker/service/impl/WorkerInfoAuditRecordServiceImpl.java index d344ea633..a77f93b02 100644 --- a/src/main/java/com/zhgd/xmgl/modules/worker/service/impl/WorkerInfoAuditRecordServiceImpl.java +++ b/src/main/java/com/zhgd/xmgl/modules/worker/service/impl/WorkerInfoAuditRecordServiceImpl.java @@ -46,6 +46,13 @@ public class WorkerInfoAuditRecordServiceImpl extends ServiceImpl getPassList(Map map) { + Page page = new Page<>(-1, 10); + map.put("isExamPass", true); + return workerInfoAuditRecordMapper.selectWorkerInfoAuditList(page, map); + } + @Override public void saveWorkerInfoAuditRecord(WorkerInfoAuditRecord workerInfoAuditRecord) { QueryWrapper queryWrapper=new QueryWrapper<>(); diff --git a/src/main/java/com/zhgd/xmgl/modules/worker/service/impl/WorkerSafeEducationServiceImpl.java b/src/main/java/com/zhgd/xmgl/modules/worker/service/impl/WorkerSafeEducationServiceImpl.java index 897f07573..8ffe5bc1b 100644 --- a/src/main/java/com/zhgd/xmgl/modules/worker/service/impl/WorkerSafeEducationServiceImpl.java +++ b/src/main/java/com/zhgd/xmgl/modules/worker/service/impl/WorkerSafeEducationServiceImpl.java @@ -19,6 +19,8 @@ import com.zhgd.xmgl.modules.edu.mapper.EducationClassifyMapper; import com.zhgd.xmgl.modules.edu.mapper.SafeEducationQuestionAnswerMapper; import com.zhgd.xmgl.modules.edu.mapper.SafeEducationQuestionMapper; import com.zhgd.xmgl.modules.edu.mapper.SafeEducationQuestionOptionMapper; +import com.zhgd.xmgl.modules.project.entity.ProjectExtend; +import com.zhgd.xmgl.modules.project.mapper.ProjectExtendMapper; import com.zhgd.xmgl.modules.project.mapper.ProjectMapper; import com.zhgd.xmgl.modules.project.service.IProjectService; import com.zhgd.xmgl.modules.sanjiang.service.impl.SjSafeEnvironmentFileServiceImpl; @@ -77,6 +79,8 @@ public class WorkerSafeEducationServiceImpl extends ServiceImpl> selectWorkerSafeEducationPage(Map map) { @@ -138,6 +142,10 @@ public class WorkerSafeEducationServiceImpl extends ServiceImpl projectExtends = projectExtendMapper.selectList(Wrappers.lambdaQuery().eq(ProjectExtend::getEducationId, id)); + if (projectExtends.size() > 0) { + return; + } workerSafeEducationMapper.deleteById(id); QueryWrapper queryWrapper = new QueryWrapper<>(); queryWrapper.lambda().eq(WorkerSafeEducationWorker::getEduId, id); diff --git a/src/main/java/com/zhgd/xmgl/modules/xz/controller/XzWorkerInfoAuditRecordController.java b/src/main/java/com/zhgd/xmgl/modules/xz/controller/XzWorkerInfoAuditRecordController.java new file mode 100644 index 000000000..43755066c --- /dev/null +++ b/src/main/java/com/zhgd/xmgl/modules/xz/controller/XzWorkerInfoAuditRecordController.java @@ -0,0 +1,218 @@ +package com.zhgd.xmgl.modules.xz.controller; + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.zhgd.annotation.OperLog; +import com.zhgd.jeecg.common.api.vo.Result; +import com.zhgd.jeecg.common.mybatis.EntityMap; +import com.zhgd.xmgl.entity.vo.SafeEducationQuestionAnswerDataVo; +import com.zhgd.xmgl.modules.edu.service.ISafeEducationQuestionAnswerService; +import com.zhgd.xmgl.modules.worker.entity.WorkerInfoAuditRecord; +import com.zhgd.xmgl.modules.worker.entity.WorkerSafeEducationWorker; +import com.zhgd.xmgl.modules.worker.service.IWorkerInfoAuditRecordService; +import com.zhgd.xmgl.util.MessageUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import lombok.extern.slf4j.Slf4j; +import org.apache.commons.collections.MapUtils; +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 java.lang.reflect.Array; +import java.util.Arrays; +import java.util.List; +import java.util.Map; + + +/** + * @Title: Controller + * @Description: 劳务人员-审核表 + * @author: pds + * @date: 2021-05-13 + * @version: V1.0 + */ +@RestController +@RequestMapping("/xmgl/xzWorkerInfoAuditRecord") +@Slf4j +@Api(tags = "劳务人员-审核表") +public class XzWorkerInfoAuditRecordController { + @Autowired + private IWorkerInfoAuditRecordService workerInfoAuditRecordService; + + @Autowired + private ISafeEducationQuestionAnswerService safeEducationQuestionAnswerService; + + /** + * 分页列表查询 + * + * @return + */ + @ApiOperation(value = "分页列表查询劳务人员-审核表信息", notes = "分页列表查询劳务人员-审核表信息", httpMethod = "POST") + @ApiImplicitParams({ + @ApiImplicitParam(name = "workerName", value = "姓名", paramType = "body", required = false, dataType = "String"), + @ApiImplicitParam(name = "idCard", value = "身份证号", paramType = "body", required = false, dataType = "String"), + @ApiImplicitParam(name = "userEnterpriseId", value = "用户能查看的企业", paramType = "body", required = false, dataType = "String"), + @ApiImplicitParam(name = "enterpriseId", value = "所属企业", paramType = "body", required = false, dataType = "String"), + @ApiImplicitParam(name = "teamId", value = "班组ID", paramType = "body", required = false, dataType = "String"), + @ApiImplicitParam(name = "departmentId", value = "部门ID", paramType = "body", required = false, dataType = "String"), + @ApiImplicitParam(name = "personType", value = "人员类型 1、劳务人员 2、管理人员", paramType = "body", required = true, dataType = "String"), + @ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "body", required = true, dataType = "String"), + @ApiImplicitParam(name = "pageNo", value = "第几页", paramType = "body", required = true, dataType = "Integer"), + @ApiImplicitParam(name = "pageSize", value = "每页显示条数", paramType = "body", required = true, dataType = "Integer"), + }) + @PostMapping(value = "/selectWorkerInfoAuditList") + public Result> selectWorkerInfoAuditList(@RequestBody Map map) { + return Result.success(workerInfoAuditRecordService.selectWorkerInfoAuditList(map)); + } + + /** + * 列表查询 + * + * @return + */ + @ApiOperation(value = "列表查询劳务人员-审核表信息", notes = "列表查询劳务人员-审核表信息", httpMethod = "POST") + @ApiImplicitParams({ + @ApiImplicitParam(name = "workerName", value = "姓名", paramType = "body", required = false, dataType = "String"), + @ApiImplicitParam(name = "idCard", value = "身份证号", paramType = "body", required = false, dataType = "String"), + @ApiImplicitParam(name = "userEnterpriseId", value = "用户能查看的企业", paramType = "body", required = false, dataType = "String"), + @ApiImplicitParam(name = "enterpriseId", value = "所属企业", paramType = "body", required = false, dataType = "String"), + @ApiImplicitParam(name = "teamId", value = "班组ID", paramType = "body", required = false, dataType = "String"), + @ApiImplicitParam(name = "departmentId", value = "部门ID", paramType = "body", required = false, dataType = "String"), + @ApiImplicitParam(name = "personType", value = "人员类型 1、劳务人员 2、管理人员", paramType = "body", required = true, dataType = "String"), + @ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "body", required = true, dataType = "String"), + }) + @PostMapping(value = "/getPassList") + public Result> getPassList(@RequestBody Map map) { + return Result.success(workerInfoAuditRecordService.getPassList(map)); + } + + /** + * 添加 + * + * @param workerInfoAuditRecord + * @return + */ + @OperLog(operModul = "劳务管理", operType = "添加劳务人员-审核", operDesc = "添加劳务人员-审核表信息") + @ApiOperation(value = "添加劳务人员-审核表信息", notes = "添加劳务人员-审核表信息", httpMethod = "POST") + @PostMapping(value = "/add") + public Result add(@RequestBody WorkerInfoAuditRecord workerInfoAuditRecord) { + workerInfoAuditRecordService.saveWorkerInfoAuditRecord(workerInfoAuditRecord); + return Result.ok(); + } + + + /** + * 添加 + * + * @param + * @return + */ + @OperLog(operModul = "安全教育管理", operType = "添加安全教育-人员回答记录", operDesc = "添加安全教育-人员回答记录") + @ApiOperation(value = "添加安全教育-人员回答记录信息", notes = "添加安全教育-人员回答记录信息", httpMethod = "POST") + @PostMapping(value = "/submit") + public Result submit(@RequestBody SafeEducationQuestionAnswerDataVo dataVo) { + WorkerSafeEducationWorker workerSafeEducationWorker = safeEducationQuestionAnswerService.xzSaveQuestionAnswer(dataVo); + WorkerInfoAuditRecord infoAuditRecord = new WorkerInfoAuditRecord(); + infoAuditRecord.setId(dataVo.getWorkerId()); + infoAuditRecord.setIsExamPass(workerSafeEducationWorker.getIsQualified() == 1 ? true : false); + workerInfoAuditRecordService.updateById(infoAuditRecord); + return Result.success(workerSafeEducationWorker); + } + + /** + * 通过id删除 + * + * @param + * @return + */ + @OperLog(operModul = "劳务管理", operType = "删除劳务人员-审核", operDesc = "删除劳务人员-审核表信息") + @ApiOperation(value = "删除劳务人员-审核表信息", notes = "删除劳务人员-审核表信息", httpMethod = "POST") + @ApiImplicitParam(name = "id", value = "劳务人员-审核表ID", paramType = "body", required = true, dataType = "Integer") + @PostMapping(value = "/delete") + public Result delete(@RequestBody Map map) { + Result result = new Result(); + WorkerInfoAuditRecord workerInfoAuditRecord = workerInfoAuditRecordService.getById(MapUtils.getString(map, "id")); + if (workerInfoAuditRecord == null) { + result.error500(MessageUtil.get("notFindErr")); + } else { + boolean ok = workerInfoAuditRecordService.removeById(MapUtils.getString(map, "id")); + if (ok) { + result.successMsg(MessageUtil.get("deleteSucess")); + } + } + return result; + } + + /** + * 通过card查询 + * + * @param + * @return + */ + @ApiOperation(value = "通过card查询劳务人员-审核表信息", notes = "通过card查询劳务人员-审核表信息", httpMethod = "POST") + @ApiImplicitParams({ + @ApiImplicitParam(name = "projectSn", value = "项目sn", paramType = "body", required = true, dataType = "Integer"), + @ApiImplicitParam(name = "idCard", value = "身份证号", paramType = "body", required = false, dataType = "String"), + }) + @PostMapping(value = "/queryByCard") + public Result queryByCard(@RequestBody Map map) { + String idCard = MapUtils.getString(map, "idCard"); + String projectSn = MapUtils.getString(map, "projectSn"); + Result result = new Result(); + WorkerInfoAuditRecord workerInfoAuditRecord = workerInfoAuditRecordService.getOne(Wrappers.lambdaQuery() + .eq(WorkerInfoAuditRecord::getIdCard, idCard).eq(WorkerInfoAuditRecord::getProjectSn, projectSn)); + if (workerInfoAuditRecord == null) { + result.error500(MessageUtil.get("notFindErr")); + } else { + result.setResult(workerInfoAuditRecord); + result.setSuccess(true); + } + return result; + } + + /** + * 通过id查询 + * + * @param + * @return + */ + @ApiOperation(value = "通过id查询劳务人员-审核表信息", notes = "通过id查询劳务人员-审核表信息", httpMethod = "POST") + @ApiImplicitParam(name = "id", value = "劳务人员-审核表ID", paramType = "body", required = true, dataType = "Integer") + @PostMapping(value = "/queryById") + public Result queryById(@RequestBody Map map) { + Result result = new Result(); + WorkerInfoAuditRecord workerInfoAuditRecord = workerInfoAuditRecordService.getById(MapUtils.getString(map, "id")); + if (workerInfoAuditRecord == null) { + result.error500(MessageUtil.get("notFindErr")); + } else { + result.setResult(workerInfoAuditRecord); + result.setSuccess(true); + } + return result; + } + + @OperLog(operModul = "劳务管理", operType = "劳务人员审核通过", operDesc = "劳务人员审核通过") + @ApiOperation(value = "审核通过", notes = "审核通过", httpMethod = "POST") + @ApiImplicitParams({ + @ApiImplicitParam(name = "id", value = "劳务人员-审核表ID", paramType = "body", required = true, dataType = "Integer"), + @ApiImplicitParam(name = "ufaceDevId", value = "人脸设备表ID", paramType = "body", required = false, dataType = "String"), + }) + @PostMapping(value = "/adoptWorkerInfo") + public Result adoptWorkerInfo(@RequestBody String paramMap) { + JSONObject param = JSONObject.parseObject(paramMap); + param.put("id", param.get("id").toString().replace("[", "").replace("]", "")); + param.put("ufaceDevId", param.get("ufaceDevId").toString().replace("[", "").replace("]", "")); + param.put("accountType", 2); + param.put("registerType", 2); + workerInfoAuditRecordService.adoptWorkerInfo(param); + return Result.ok(); + } + +} diff --git a/src/main/java/com/zhgd/xmgl/modules/xz/entity/XzWorkerInfoAuditRecord.java b/src/main/java/com/zhgd/xmgl/modules/xz/entity/XzWorkerInfoAuditRecord.java new file mode 100644 index 000000000..06fdd6aa5 --- /dev/null +++ b/src/main/java/com/zhgd/xmgl/modules/xz/entity/XzWorkerInfoAuditRecord.java @@ -0,0 +1,27 @@ +package com.zhgd.xmgl.modules.xz.entity; + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import lombok.Data; + +import java.io.IOException; + +@Data +public class XzWorkerInfoAuditRecord { + + private Long id; + + private Integer registerType; + + private Integer accountType; + + private Long ufaceDevId; + + public XzWorkerInfoAuditRecord(String json) { + XzWorkerInfoAuditRecord xzWorkerInfoAuditRecord = JSON.parseObject(json, XzWorkerInfoAuditRecord.class); + this.id = xzWorkerInfoAuditRecord.getId(); + this.registerType = xzWorkerInfoAuditRecord.getRegisterType(); + this.accountType = xzWorkerInfoAuditRecord.getAccountType(); + this.ufaceDevId = xzWorkerInfoAuditRecord.getUfaceDevId(); + } +} diff --git a/src/main/java/com/zhgd/xmgl/security/WebSecurityConfig.java b/src/main/java/com/zhgd/xmgl/security/WebSecurityConfig.java index eccbe0c37..7c55cb70c 100644 --- a/src/main/java/com/zhgd/xmgl/security/WebSecurityConfig.java +++ b/src/main/java/com/zhgd/xmgl/security/WebSecurityConfig.java @@ -365,6 +365,9 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { .antMatchers("/xmgl/systemUser/resetPwByEmail").permitAll() .antMatchers("/xmgl/xzRegistry/validCode").permitAll() .antMatchers("/xmgl/videoItem/updateStatus").permitAll() + .antMatchers("/xmgl/xzWorkerInfoAuditRecord/adoptWorkerInfo").permitAll() + .antMatchers("/xmgl/xzWorkerInfoAuditRecord/queryByCard").permitAll() + .antMatchers("/xmgl/xzWorkerInfoAuditRecord/submit").permitAll() .antMatchers(HttpMethod.OPTIONS, "/**").anonymous() .anyRequest().authenticated() // 剩下所有的验证都需要验证. .and() diff --git a/src/main/resources/lib/wflow-server-1.0-SNAPSHOT.jar b/src/main/resources/lib/wflow-server-1.0-SNAPSHOT.jar index 69bd5b28e..d4ca0f655 100644 Binary files a/src/main/resources/lib/wflow-server-1.0-SNAPSHOT.jar and b/src/main/resources/lib/wflow-server-1.0-SNAPSHOT.jar differ