|
@@ -22,6 +22,7 @@ import com.jeeplus.common.utils.RequestUtils;
|
|
|
import com.jeeplus.sys.domain.*;
|
|
|
import com.jeeplus.sys.feign.IUserApi;
|
|
|
import com.jeeplus.sys.mapper.OfficeMapper;
|
|
|
+import com.jeeplus.sys.mapper.OtherUserInfoMapper;
|
|
|
import com.jeeplus.sys.mapper.UserMapper;
|
|
|
import com.jeeplus.sys.service.dto.*;
|
|
|
import com.jeeplus.sys.service.mapstruct.CertWrapper;
|
|
@@ -64,6 +65,9 @@ public class UserService extends ServiceImpl <UserMapper, User> {
|
|
|
@Resource
|
|
|
private UserMapper userMapper;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private OtherUserInfoMapper otherUserInfoMapper;
|
|
|
+
|
|
|
@Autowired
|
|
|
private OfficeService officeService;
|
|
|
|
|
@@ -88,6 +92,16 @@ public class UserService extends ServiceImpl <UserMapper, User> {
|
|
|
@Autowired
|
|
|
private RosterBankCardsService rosterBankCardsService;
|
|
|
|
|
|
+ public Integer findIdCardOnly(UserOtherInfo otherInfo) throws Exception {
|
|
|
+ QueryWrapper<UserOtherInfo> queryWrapper = new QueryWrapper<>();
|
|
|
+ queryWrapper.eq("id_card", otherInfo.getIdCard());
|
|
|
+ queryWrapper.eq("del_flag", 0);
|
|
|
+ queryWrapper.eq("certificates_type", otherInfo.getCertificatesType());
|
|
|
+ // 删除基础信息表
|
|
|
+ Integer integer = otherUserInfoMapper.selectCount(queryWrapper);
|
|
|
+ return integer;
|
|
|
+ }
|
|
|
+
|
|
|
public void insertWorkAttachment (WorkAttachmentInfo2 workAttachment, UserDTO userDto){
|
|
|
userMapper.insertWorkAttachment(workAttachment, userDto);
|
|
|
}
|