Explorar o código

fix: 薪事易回调

lixuesong hai 1 ano
pai
achega
ff0951391f

+ 5 - 0
hnqz-upms/hnqz-upms-api/src/main/java/com/qunzhixinxi/hnqz/admin/api/constant/CacheConstants.java

@@ -167,6 +167,11 @@ public interface CacheConstants {
 	 */
 	String ZHONG_ZHI_SETTLE_NOTIFY_KEY = "ZHONG:ZHI:SETTLE:NOTIFY:KEY:";
 
+	/**
+	 * 薪事易结算回调key
+	 */
+	String XIN_SHI_YI_SETTLE_NOTIFY_KEY = "XIN:SHI:YI:SETTLE_NOTIFY_KEY:";
+
 	/**
 	 * 发起阿拉丁认证渠道记录key
 	 */

+ 3 - 1
hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/controller/GigThirdApiController.java

@@ -106,6 +106,7 @@ public class GigThirdApiController {
 		// 请求body json
 		JSONObject bodyJson = JSONUtil.parseObj(body);
 
+		String msgMethod = bodyJson.getStr("msgMethod");
 		// bizContent
 		JSONObject bizContent = bodyJson.getJSONObject("bizContent");
 
@@ -113,7 +114,7 @@ public class GigThirdApiController {
 		String batchId = bizContent.getStr("batchId");
 		JSONArray orderDetailList = bizContent.getJSONArray("orderDetailList");
 
-		String redisKey = String.format("%s_%s", CacheConstants.QI_FU_SETTLE_NOTIFY_KEY, batchId);
+		String redisKey = String.format("%s_%s", CacheConstants.XIN_SHI_YI_SETTLE_NOTIFY_KEY, batchId);
 		Boolean absent = redisTemplate.opsForValue().setIfAbsent(redisKey, batchId, 30, TimeUnit.MINUTES);
 		if (Boolean.FALSE.equals(absent)) {
 			log.warn("存在在途操作batchId={}", batchId);
@@ -128,6 +129,7 @@ public class GigThirdApiController {
 			JSONObject orderDetail = (JSONObject) orderDetailList.get(0);
 			inputRecord.setOrderStatus(orderDetail.getInt("orderStatus"));
 			inputRecord.setReqId(orderDetail.getStr("partnerOrderId"));
+			inputRecord.setMsgMethod(msgMethod);
 		}
 		xinshiyiInputRecordMapper.insert(inputRecord);