|
@@ -8,21 +8,24 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * 订单信息 管理
|
|
|
|
+ *
|
|
* @author TRX
|
|
* @author TRX
|
|
* @date 2024/3/25
|
|
* @date 2024/3/25
|
|
*/
|
|
*/
|
|
@Service
|
|
@Service
|
|
public class DataServiceOrderInfoService {
|
|
public class DataServiceOrderInfoService {
|
|
|
|
+
|
|
@Autowired
|
|
@Autowired
|
|
DataServiceOrderInfoDao orderInfoDao;
|
|
DataServiceOrderInfoDao orderInfoDao;
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 更加HashCode验证订单信息是否存在
|
|
|
|
|
|
+ * 更加HashCode验证支付信息是否存在
|
|
*
|
|
*
|
|
* @param hashCode
|
|
* @param hashCode
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public ResultContent validateHashCodeByHashCode(int hashCode) {
|
|
|
|
|
|
+ public ResultContent validateDataByHashCode(int hashCode) {
|
|
DataServiceOrderInfo orderInfo = orderInfoDao.findTopByHashCode(hashCode);
|
|
DataServiceOrderInfo orderInfo = orderInfoDao.findTopByHashCode(hashCode);
|
|
if (ObjectUtils.isEmpty(orderInfo)) {
|
|
if (ObjectUtils.isEmpty(orderInfo)) {
|
|
return ResultContent.buildFail("对应数据未找到");
|
|
return ResultContent.buildFail("对应数据未找到");
|
|
@@ -30,4 +33,29 @@ public class DataServiceOrderInfoService {
|
|
return ResultContent.buildSuccess();
|
|
return ResultContent.buildSuccess();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 更加dataId验证支付信息是否存在
|
|
|
|
+ *
|
|
|
|
+ * @param dataId
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ public ResultContent validateDataByDataId(String dataId) {
|
|
|
|
+ DataServiceOrderInfo orderInfo = orderInfoDao.findTopByDataId(dataId);
|
|
|
|
+ if (ObjectUtils.isEmpty(orderInfo)) {
|
|
|
|
+ return ResultContent.buildFail("对应数据未找到");
|
|
|
|
+ }
|
|
|
|
+ return ResultContent.buildSuccess();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 编辑信息是否同步到平台
|
|
|
|
+ *
|
|
|
|
+ * @param dataId
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ public ResultContent markSyncPlatform(String dataId) {
|
|
|
|
+ int a = 100;
|
|
|
|
+ return ResultContent.buildSuccess();
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|