|
@@ -92,6 +92,8 @@ public class ApiOrderService {
|
|
|
private ApiUserCampMinusMapper apiUserCampMinusMapper;
|
|
|
@Autowired
|
|
|
private ApiFaceLivenessRecognitionReturnDataMapper apiFaceLivenessRecognitionReturnDataMapper;
|
|
|
+ @Autowired
|
|
|
+ private ApiSysConfigMapper apiSysConfigMapper;
|
|
|
|
|
|
public OrderVo queryObject(Long id) {
|
|
|
return apiOrderMapper.queryObject(id);
|
|
@@ -102,7 +104,10 @@ public class ApiOrderService {
|
|
|
}
|
|
|
|
|
|
public Map queryUcenterMap(Map<String, Object> map) {
|
|
|
- return apiOrderMapper.queryUcenterMap(map);
|
|
|
+ Map queryMap = apiOrderMapper.queryUcenterMap(map);
|
|
|
+ String value = apiSysConfigMapper.queryByKey("IS_QUERY_CROSS_QUOTAL");
|
|
|
+ queryMap.put("isQueryCrossQuotal", value);
|
|
|
+ return queryMap;
|
|
|
}
|
|
|
|
|
|
|
|
@@ -415,6 +420,7 @@ public class ApiOrderService {
|
|
|
//开启事务,插入订单信息和订单商品
|
|
|
if(orderInfoList != null && orderInfoList.size() > 0) {
|
|
|
Boolean isOrderBizType10 = false;//订单中是否有保税展示跨境商品
|
|
|
+ List<String> orderSnList = new ArrayList<>();
|
|
|
apiOrderMapper.saveBatch(orderInfoList);
|
|
|
|
|
|
List<OrderProcessRecordEntity> processRecordEntityList = new ArrayList<>();
|
|
@@ -429,6 +435,7 @@ public class ApiOrderService {
|
|
|
if (orderInfo.getOrderBizType().equalsIgnoreCase(goodsItem.getGoodsBizType())) {
|
|
|
if(Dict.orderBizType.item_10.getItem().equalsIgnoreCase(goodsItem.getGoodsBizType())){
|
|
|
isOrderBizType10 = true;//订单中是否有保税展示跨境商品
|
|
|
+ orderSnList.add(orderInfo.getOrder_sn());
|
|
|
}
|
|
|
GoodsVo goodsVo = apiGoodsMapper.queryObjectByStoreId(goodsItem.getGoods_id(), storeId);
|
|
|
if (goodsVo == null) {
|
|
@@ -494,7 +501,7 @@ public class ApiOrderService {
|
|
|
|
|
|
//保税展示跨境商品保存是否核验信息
|
|
|
if(isOrderBizType10) {
|
|
|
- saveFaceData(merchOrderSn, userVo);
|
|
|
+ saveFaceData(merchOrderSn, orderSnList, userVo);
|
|
|
}
|
|
|
|
|
|
resultObj.put("errno", 0);
|
|
@@ -533,13 +540,16 @@ public class ApiOrderService {
|
|
|
* @param merchOrderSn
|
|
|
* @param userVo
|
|
|
*/
|
|
|
- private void saveFaceData(String merchOrderSn, UserVo userVo){
|
|
|
- FaceLivenessRecognitionReturnDataVo face = new FaceLivenessRecognitionReturnDataVo();
|
|
|
- face.setMerchOrderSn(merchOrderSn);
|
|
|
- face.setUserId(Integer.parseInt(String.valueOf(userVo.getId())));
|
|
|
- face.setIsFaceCheck("0");
|
|
|
- face.setIsTempNoti("0");
|
|
|
- apiFaceLivenessRecognitionReturnDataMapper.save(face);
|
|
|
+ private void saveFaceData(String merchOrderSn, List<String> orderSnList, UserVo userVo){
|
|
|
+ for(int i=0;i<orderSnList.size();i++) {
|
|
|
+ FaceLivenessRecognitionReturnDataVo face = new FaceLivenessRecognitionReturnDataVo();
|
|
|
+ face.setMerchOrderSn(merchOrderSn);
|
|
|
+ face.setOrderSn(orderSnList.get(i));
|
|
|
+ face.setUserId(Integer.parseInt(String.valueOf(userVo.getId())));
|
|
|
+ face.setIsFaceCheck("0");
|
|
|
+ face.setIsTempNoti("0");
|
|
|
+ apiFaceLivenessRecognitionReturnDataMapper.save(face);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|