访客
This commit is contained in:
1 parent
162fc5f028
commit
ce2ee251ae
4 files changed
+8
-3
No files matched your search
+2
-3
@@ -104,9 +104,8 @@ public class VisitorsAppDTO {
|
||||
@Schema(description="是否有随行人员 0 否 1是")
|
||||
private String isOtherPeople;
|
||||
|
||||
|
||||
@Schema(description="用户id")
|
||||
private Long userId;
|
||||
@Schema(description="接待人id")
|
||||
private Long receiveId;
|
||||
|
||||
@Schema(description="车牌号集合")
|
||||
private List<VisitorsCarAppDTO> carList;
|
||||
|
||||
+3
@@ -173,6 +173,9 @@ public class VisitorsEntity extends Model<VisitorsEntity> {
|
||||
private Long userId;
|
||||
|
||||
|
||||
@Schema(description="接待人id")
|
||||
private Long receiveId;
|
||||
|
||||
@Schema(description="是否随行人员")
|
||||
private String isOtherPeople;
|
||||
}
|
||||
+2
@@ -82,6 +82,7 @@ public class VisitorsServiceImpl extends ServiceImpl<VisitorsMapper, VisitorsEnt
|
||||
// throw new ServiceException("流程实例启动失败: " + stringR.getMsg());
|
||||
// }
|
||||
// String processInstanceId = stringR.getData();
|
||||
Long userId = SecurityUtils.getUser().getId();
|
||||
|
||||
VisitorsEntity bean = BeanUtils.toBean(visitors, VisitorsEntity.class);
|
||||
bean.setType(VisitorTypeEnum.FKSQ.getType());
|
||||
@@ -91,6 +92,7 @@ public class VisitorsServiceImpl extends ServiceImpl<VisitorsMapper, VisitorsEnt
|
||||
String uniqueToken = UUID.randomUUID().toString();
|
||||
String token = uniqueToken.replace("-", "");
|
||||
bean.setToken(token);
|
||||
bean.setUserId(userId);
|
||||
int insert = baseMapper.insert(bean);
|
||||
List<VisitorsCarAppDTO> visitorsCarAppDTOList = visitors.getCarList();
|
||||
if (!CollectionUtils.isEmpty(visitorsCarAppDTOList)){
|
||||
|
||||
@@ -30,5 +30,6 @@
|
||||
<result property="type" column="type"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="isOtherPeople" column="is_other_people"/>
|
||||
<result property="receiveId" column="receive_id"/>
|
||||
</resultMap>
|
||||
</mapper>
|
||||
Reference in new issue
Block a user