|
|
@@ -11,6 +11,7 @@ import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
|
import com.fasterxml.jackson.databind.exc.InvalidFormatException;
|
|
|
import com.openhtmltopdf.swing.Java2DRenderer;
|
|
|
import com.openhtmltopdf.util.FSImageWriter;
|
|
|
@@ -148,9 +149,13 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
|
|
|
|
|
|
@Override
|
|
|
public String querCommitment(UserProfileQueryBo bo) {
|
|
|
- if(Validator.isEmpty(bo.getUserId())||Validator.isEmpty(bo.getGoodsId())){
|
|
|
+ if(Validator.isEmpty(bo.getIdCard())||Validator.isEmpty(bo.getGoodsId())){
|
|
|
throw new CustomException("参数缺失");
|
|
|
}
|
|
|
+ User user = iUserService.getOne(new LambdaQueryWrapper<User>().eq(User::getIdCard, EncryptHandler.encrypt(bo.getIdCard())).last("limit 1"));
|
|
|
+ if (ObjectUtils.isNull(user)){
|
|
|
+ throw new CustomException("用户信息获取有误!");
|
|
|
+ }
|
|
|
UserProfile profile = getOne(new LambdaQueryWrapper<UserProfile>()
|
|
|
.eq(UserProfile::getUserId, bo.getUserId())
|
|
|
.eq(UserProfile::getGoodsId, bo.getGoodsId())
|