修改人员实名认证
This commit is contained in:
@ -16,6 +16,12 @@ public class SubConstructionUserAuthenticationReq implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1001024234468070802L;
|
||||
|
||||
/**
|
||||
* 人脸照
|
||||
*/
|
||||
@NotBlank(message = "人脸照不能为空")
|
||||
private String facePic;
|
||||
|
||||
/**
|
||||
* 人员姓名
|
||||
*/
|
||||
|
@ -1143,7 +1143,7 @@ public class SubConstructionUserServiceImpl extends ServiceImpl<SubConstructionU
|
||||
HumanFaceReq request = new HumanFaceReq();
|
||||
request.setImage(reqBase64);
|
||||
Long userId = LoginHelper.getUserId();
|
||||
SubConstructionUser constructionUser = this.getById(userId);
|
||||
SubConstructionUser constructionUser = this.getBySysUserId(userId);
|
||||
if (constructionUser == null || StringUtils.isBlank(constructionUser.getFacePic())) {
|
||||
throw new ServiceException("未进行实名认证");
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ import java.util.stream.Collectors;
|
||||
* @date 2025/6/18 15:59
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
//@Component
|
||||
public class IncSyncYs7DeviceCapturePicData {
|
||||
|
||||
@Resource
|
||||
|
@ -23,7 +23,6 @@ import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||
import org.dromara.common.oss.core.OssClient;
|
||||
import org.dromara.common.oss.exception.OssException;
|
||||
import org.dromara.common.oss.factory.OssFactory;
|
||||
import org.dromara.common.satoken.utils.LoginHelper;
|
||||
import org.dromara.common.utils.DocumentUtil;
|
||||
import org.dromara.materials.constants.MatMaterialsConstant;
|
||||
import org.dromara.materials.domain.MatMaterialIssue;
|
||||
@ -258,8 +257,6 @@ public class MatMaterialIssueServiceImpl extends ServiceImpl<MatMaterialIssueMap
|
||||
BeanUtils.copyProperties(item, materialIssueItem);
|
||||
materialIssueItem.setIssueId(materialIssue.getId());
|
||||
materialIssueItem.setProjectId(materialIssue.getProjectId());
|
||||
// 截取名称
|
||||
materialIssueItem.setName(item.getName().split("_")[0]);
|
||||
return materialIssueItem;
|
||||
}).toList();
|
||||
boolean result = materialIssueItemService.saveBatch(materialIssueItemList);
|
||||
|
Reference in New Issue
Block a user