ソースを参照

委托人信息

zjy 3 週間 前
コミット
eaa7d9c704

+ 3 - 0
alien-entity/src/main/java/shop/alien/entity/second/vo/SecondTradeRecordVo.java

@@ -88,4 +88,7 @@ public class SecondTradeRecordVo extends SecondTradeRecord {
 
     @ApiModelProperty(value = "委托人身份证")
     private String entrustIdCard;
+
+    @ApiModelProperty(value = "委托人身份证图片")
+    private String entrustIdCardImg;
 }

+ 2 - 2
alien-second/src/main/java/shop/alien/second/controller/SecondTradeRecordController.java

@@ -162,9 +162,9 @@ public class SecondTradeRecordController {
                                         String transactionLatitudeLongitude,
                                         String transactionLatitudeLongitudeAddress,
                                         String transactionLocation,
-                                        String messageId, String entrustUserPhone, String entrustUserName, String entrustIdCard, Integer entrustId) throws Exception {
+                                        String messageId, String entrustUserPhone, String entrustUserName, String entrustIdCard, Integer entrustId, String entrustIdCardImg) throws Exception {
         log.info("SecondTradeRecordController.modifyTradeRecord?record={}", transactionTime);
-        return R.data(secondTradeRecordService.modifyTradeRecord(type, tradeId, transactionTime, transactionLatitudeLongitude, transactionLatitudeLongitudeAddress, transactionLocation, messageId, entrustUserPhone, entrustUserName, entrustIdCard, entrustId));
+        return R.data(secondTradeRecordService.modifyTradeRecord(type, tradeId, transactionTime, transactionLatitudeLongitude, transactionLatitudeLongitudeAddress, transactionLocation, messageId, entrustUserPhone, entrustUserName, entrustIdCard, entrustId, entrustIdCardImg));
     }
 
     @ApiOperation("获取用户作为卖家的交易评价列表(分页)")

+ 1 - 1
alien-second/src/main/java/shop/alien/second/service/SecondTradeRecordService.java

@@ -41,7 +41,7 @@ public interface SecondTradeRecordService extends IService<SecondTradeRecord> {
     SecondTradeRecord hasInTradeRecord(Integer sideId) throws Exception;
 
     boolean modifyTradeRecord(int type, Integer tradeId, String transactionTime, String transactionLatitudeLongitude, String transactionLatitudeLongitudeAddress, String transactionLocation, String messageId,
-                              String userPhone, String userName, String idCard, Integer entrustId) throws Exception;
+                              String userPhone, String userName, String idCard, Integer entrustId, String idCardImg) throws Exception;
 
     /**
      * 获取用户作为卖家的交易评价列表(分页)

+ 6 - 1
alien-second/src/main/java/shop/alien/second/service/impl/SecondTradeRecordServiceImpl.java

@@ -121,6 +121,7 @@ public class SecondTradeRecordServiceImpl extends ServiceImpl<SecondTradeRecordM
                 secondEntrustUser.setEntrustUserName(trade.getEntrustUserName());
                 secondEntrustUser.setEntrustIdCard(trade.getEntrustIdCard());
                 secondEntrustUser.setEntrustTradeNo(trade.getTradeNo());
+                secondEntrustUser.setEntrustIdCardImg(trade.getEntrustIdCardImg());
                 secondEntrustUserMapper.insert(secondEntrustUser);
             }
 
@@ -165,6 +166,7 @@ public class SecondTradeRecordServiceImpl extends ServiceImpl<SecondTradeRecordM
             message.put("entrustUserPhone", entrustUser.getEntrustUserPhone());
             message.put("entrustUserName", entrustUser.getEntrustUserName());
             message.put("entrustIdCard", entrustUser.getEntrustIdCard());
+            message.put("entrustIdCardImg", entrustUser.getEntrustIdCardImg());
         }
 
         if (6 == tradeStatus) {
@@ -600,6 +602,7 @@ public class SecondTradeRecordServiceImpl extends ServiceImpl<SecondTradeRecordM
                         item.setEntrustUserPhone(entrustUser.getEntrustUserPhone());
                         item.setEntrustUserName(entrustUser.getEntrustUserName());
                         item.setEntrustIdCard(entrustUser.getEntrustIdCard());
+                        item.setEntrustIdCardImg(entrustUser.getEntrustIdCardImg());
                     }
                 }
             }
@@ -644,7 +647,7 @@ public class SecondTradeRecordServiceImpl extends ServiceImpl<SecondTradeRecordM
     @Override
     @Transactional(rollbackFor = Exception.class)
     public boolean modifyTradeRecord(int type, Integer tradeId, String transactionTime, String transactionLatitudeLongitude, String transactionLatitudeLongitudeAddress, String transactionLocation, String messageId,
-                                     String userPhone, String userName, String idCard, Integer entrustId) throws Exception {
+                                     String userPhone, String userName, String idCard, Integer entrustId, String idCardImg) throws Exception {
         try {
             if (type == 1) {
                 LambdaUpdateWrapper<SecondTradeRecord> wrapper = new LambdaUpdateWrapper<>();
@@ -695,6 +698,7 @@ public class SecondTradeRecordServiceImpl extends ServiceImpl<SecondTradeRecordM
                     updateWrapper.set(SecondEntrustUser::getEntrustUserPhone, userPhone);
                     updateWrapper.set(SecondEntrustUser::getEntrustUserName, userName);
                     updateWrapper.set(SecondEntrustUser::getEntrustIdCard, idCard);
+                    updateWrapper.set(SecondEntrustUser::getEntrustIdCardImg, idCardImg);
                 }
                 secondEntrustUserMapper.update(null, updateWrapper);
             } else {
@@ -708,6 +712,7 @@ public class SecondTradeRecordServiceImpl extends ServiceImpl<SecondTradeRecordM
                                 .setEntrustUserPhone(userPhone)
                                 .setEntrustUserName(userName)
                                 .setEntrustIdCard(idCard)
+                                .setEntrustIdCardImg(idCardImg)
                                 .setDeleteFlag(0));
                     }
                 }