|
@@ -147,6 +147,28 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
|
|
|
return profile;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public String querCommitment(UserProfileQueryBo bo) {
|
|
|
+ if(Validator.isNotEmpty(bo.getOrderGoodsId())){
|
|
|
+ throw new CustomException("OrderGoodsId缺失");
|
|
|
+ }
|
|
|
+ UserProfile profile = getOne(new LambdaQueryWrapper<UserProfile>()
|
|
|
+ .eq(UserProfile::getOrderGoodsId, bo.getOrderGoodsId())
|
|
|
+ .eq(UserProfile::getTypeStatus, 1)
|
|
|
+ .eq(UserProfile::getCurrentStatus, 1)
|
|
|
+ .in(UserProfile::getStatus, new ArrayList<Integer>(Arrays.asList(1,2)))
|
|
|
+ .orderByDesc(UserProfile::getId)
|
|
|
+ .last("limit 1"));
|
|
|
+ if(Validator.isNotEmpty(profile)){
|
|
|
+ Map<String, String> maps = JSONObject.parseObject(profile.getKeyValue(), Map.class);
|
|
|
+ if(maps.containsKey("commitment_electr_signature")){
|
|
|
+ String img = ALIYUN_OSS_ENDPOINT + "/" + jsonHandle(maps,"commitment_electr_signature");
|
|
|
+ return img;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 实体类转化成视图对象
|
|
|
*
|