优化
This commit is contained in:
@ -10,11 +10,9 @@ import com.ruoyi.bgt.bo.BgtUserQueryBo;
|
||||
import com.ruoyi.bgt.domain.dto.BgtUserRealNameAuthenticationDTO;
|
||||
import com.ruoyi.bgt.mapper.BgtUserMapper;
|
||||
import com.ruoyi.bgt.service.IBgtUserService;
|
||||
import com.ruoyi.common.constant.Constants;
|
||||
import com.ruoyi.common.core.domain.entity.BgtUser;
|
||||
import com.ruoyi.common.core.mybatisplus.core.ServicePlusImpl;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.domain.dto.AnnexDTO;
|
||||
import com.ruoyi.common.exception.BaseException;
|
||||
import com.ruoyi.common.service.IAnnexService;
|
||||
import com.ruoyi.common.utils.PageUtils;
|
||||
@ -146,12 +144,12 @@ public class BgtUserServiceImpl extends ServicePlusImpl<BgtUserMapper, BgtUser>
|
||||
throw new BaseException("银行卡号格式不正确");
|
||||
}
|
||||
BeanUtil.copyProperties(dto, bgtUser);
|
||||
for (AnnexDTO annexDTO:dto.getAnnexList()){
|
||||
annexDTO.setUserId(dto.getUserId());
|
||||
annexDTO.setUserType(Constants.BGT);
|
||||
annexDTO.setAnnexType("1");
|
||||
}
|
||||
annexService.insertBatch(dto.getAnnexList());
|
||||
// for (AnnexDTO annexDTO:dto.getAnnexList()){
|
||||
// annexDTO.setUserId(dto.getUserId());
|
||||
// annexDTO.setUserType(Constants.BGT);
|
||||
// annexDTO.setAnnexType("1");
|
||||
// }
|
||||
// annexService.insertBatch(dto.getAnnexList());
|
||||
return baseMapper.updateById(bgtUser)>0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user