app
This commit is contained in:
@ -26,10 +26,11 @@
|
|||||||
<artifactId>springdoc-openapi-starter-webmvc-api</artifactId>
|
<artifactId>springdoc-openapi-starter-webmvc-api</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<!-- <dependency>-->
|
||||||
<groupId>org.springdoc</groupId>
|
<!-- <groupId>org.springdoc</groupId>-->
|
||||||
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
<!-- <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>-->
|
||||||
</dependency>
|
<!-- </dependency>-->
|
||||||
|
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.therapi</groupId>
|
<groupId>com.github.therapi</groupId>
|
||||||
|
@ -0,0 +1,40 @@
|
|||||||
|
package org.dromara.contractor.controller;
|
||||||
|
|
||||||
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.dromara.common.core.domain.R;
|
||||||
|
import org.dromara.common.core.validate.EditGroup;
|
||||||
|
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
||||||
|
import org.dromara.common.log.annotation.Log;
|
||||||
|
import org.dromara.common.log.enums.BusinessType;
|
||||||
|
import org.dromara.common.web.core.BaseController;
|
||||||
|
import org.dromara.contractor.domain.dto.constructionuser.AppRealNameAuthenticationReq;
|
||||||
|
import org.dromara.contractor.domain.dto.constructionuser.SubConstructionUserUpdateClockReq;
|
||||||
|
import org.dromara.contractor.service.ISubConstructionUserService;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author 铁憨憨
|
||||||
|
* @Date 2025/7/23 16:48
|
||||||
|
* @Version 1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Validated
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/contractor/app")
|
||||||
|
public class AppController extends BaseController {
|
||||||
|
|
||||||
|
private final ISubConstructionUserService constructionUserService;
|
||||||
|
|
||||||
|
@Log(title = "施工人员-实名认证", businessType = BusinessType.UPDATE)
|
||||||
|
@RepeatSubmit()
|
||||||
|
@PutMapping("/realNameAuthentication")
|
||||||
|
public R<Void> realNameAuthentication(@RequestBody AppRealNameAuthenticationReq req) {
|
||||||
|
// return toAjax(constructionUserService.updateClock(req));
|
||||||
|
return toAjax(constructionUserService.realNameAuthentication(req));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -190,4 +190,5 @@ public class SubConstructionUserController extends BaseController {
|
|||||||
@PathVariable Long[] ids) {
|
@PathVariable Long[] ids) {
|
||||||
return toAjax(constructionUserService.deleteWithValidByIds(List.of(ids), true));
|
return toAjax(constructionUserService.deleteWithValidByIds(List.of(ids), true));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,128 @@
|
|||||||
|
package org.dromara.contractor.domain.dto.constructionuser;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author 铁憨憨
|
||||||
|
* @Date 2025/7/23 16:58
|
||||||
|
* @Version 1.0
|
||||||
|
*/
|
||||||
|
public class AppRealNameAuthenticationReq implements Serializable {
|
||||||
|
/**
|
||||||
|
* 项目id
|
||||||
|
*/
|
||||||
|
private Long projectId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 班组id
|
||||||
|
*/
|
||||||
|
private Long teamId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分包公司id
|
||||||
|
*/
|
||||||
|
private Long contractorId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 身份证正面图片
|
||||||
|
*/
|
||||||
|
private String sfzFrontPic;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 身份证反面图片
|
||||||
|
*/
|
||||||
|
private String sfzBackPic;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 人员姓名
|
||||||
|
*/
|
||||||
|
private String userName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 0:保密 1:男 2女
|
||||||
|
*/
|
||||||
|
private String sex;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 联系电话
|
||||||
|
*/
|
||||||
|
private String phone;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 民族
|
||||||
|
*/
|
||||||
|
private String nation;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 身份证号码
|
||||||
|
*/
|
||||||
|
private String sfzNumber;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 身份证有效开始期
|
||||||
|
*/
|
||||||
|
private String sfzStart;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 身份证有效结束期
|
||||||
|
*/
|
||||||
|
private String sfzEnd;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 身份证地址
|
||||||
|
*/
|
||||||
|
private String sfzSite;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 身份证出生日期
|
||||||
|
*/
|
||||||
|
private String sfzBirth;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 籍贯
|
||||||
|
*/
|
||||||
|
private String nativePlace;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 银行卡图片
|
||||||
|
*/
|
||||||
|
private String yhkPic;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 银行卡号
|
||||||
|
*/
|
||||||
|
private String yhkNumber;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 开户行
|
||||||
|
*/
|
||||||
|
private String yhkOpeningBank;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 持卡人
|
||||||
|
*/
|
||||||
|
private String yhkCardholder;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工种(字典type_of_work)
|
||||||
|
*/
|
||||||
|
private String typeOfWork;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 特种工作证图片
|
||||||
|
*/
|
||||||
|
private String specialWorkPic;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 入场时间
|
||||||
|
*/
|
||||||
|
private Date entryDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 人脸照
|
||||||
|
*/
|
||||||
|
private String facePic;
|
||||||
|
}
|
@ -12,6 +12,7 @@ import org.dromara.contractor.domain.exportvo.BusConstructionUserExportVo;
|
|||||||
import org.dromara.contractor.domain.vo.constructionuser.SubConstructionUserAttendanceMonthVo;
|
import org.dromara.contractor.domain.vo.constructionuser.SubConstructionUserAttendanceMonthVo;
|
||||||
import org.dromara.contractor.domain.vo.constructionuser.SubConstructionUserAttendanceTotalVo;
|
import org.dromara.contractor.domain.vo.constructionuser.SubConstructionUserAttendanceTotalVo;
|
||||||
import org.dromara.contractor.domain.vo.constructionuser.SubConstructionUserGisVo;
|
import org.dromara.contractor.domain.vo.constructionuser.SubConstructionUserGisVo;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -172,4 +173,10 @@ public interface ISubConstructionUserService extends IService<SubConstructionUse
|
|||||||
Page<SubConstructionUserAttendanceTotalVo> getAttendanceTotalVoPage(SubConstructionUserAttendanceQueryReq req,
|
Page<SubConstructionUserAttendanceTotalVo> getAttendanceTotalVoPage(SubConstructionUserAttendanceQueryReq req,
|
||||||
PageQuery pageQuery);
|
PageQuery pageQuery);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description app 实名认证
|
||||||
|
* @author 铁憨憨
|
||||||
|
* @date 2025/7/23 16:59
|
||||||
|
**/
|
||||||
|
Boolean realNameAuthentication(@RequestBody AppRealNameAuthenticationReq req);
|
||||||
}
|
}
|
||||||
|
@ -956,4 +956,14 @@ public class SubConstructionUserServiceImpl extends ServiceImpl<SubConstructionU
|
|||||||
return constructionUserAttendanceTotalPage;
|
return constructionUserAttendanceTotalPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description app 实名认证
|
||||||
|
* @author 铁憨憨
|
||||||
|
* @date 2025/7/23 17:00
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public Boolean realNameAuthentication(AppRealNameAuthenticationReq req) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user