|
|
@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
|
import com.charge.task.dao.EquipmentChargeOrderDOMapper;
|
|
|
|
import com.charge.task.dao.EquipmentChargeOrderDOMapper;
|
|
|
|
import com.charge.task.model.EquipmentChargeOrderDO;
|
|
|
|
import com.charge.task.model.EquipmentChargeOrderDO;
|
|
|
|
import com.charge.task.service.AsyncTaskService;
|
|
|
|
import com.charge.task.service.AsyncTaskService;
|
|
|
|
|
|
|
|
import com.charge.task.service.FinanceServiceApi;
|
|
|
|
import com.charge.task.service.HandleOrderTarckService;
|
|
|
|
import com.charge.task.service.HandleOrderTarckService;
|
|
|
|
import com.charge.util.CommonUtil;
|
|
|
|
import com.charge.util.CommonUtil;
|
|
|
|
import com.charge.util.ResultVO;
|
|
|
|
import com.charge.util.ResultVO;
|
|
|
@ -19,8 +20,14 @@ import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.servlet.ServletOutputStream;
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
|
|
|
import javax.xml.soap.MimeHeaders;
|
|
|
|
|
|
|
|
import java.lang.reflect.Field;
|
|
|
|
|
|
|
|
import java.lang.reflect.InvocationTargetException;
|
|
|
|
|
|
|
|
import java.lang.reflect.Method;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.UUID;
|
|
|
|
import java.util.UUID;
|
|
|
|
|
|
|
|
|
|
|
|
@RestController
|
|
|
|
@RestController
|
|
|
@ -35,6 +42,10 @@ public class YltControllerForWx {
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
HandleOrderTarckService handleOrderTarckService;
|
|
|
|
HandleOrderTarckService handleOrderTarckService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//注入财务服务【其它模块】
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
FinanceServiceApi financeServiceApi;
|
|
|
|
|
|
|
|
|
|
|
|
YltModel ym = new YltModel();
|
|
|
|
YltModel ym = new YltModel();
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -186,19 +197,24 @@ public class YltControllerForWx {
|
|
|
|
* 功能:找出所有符合条件的退款单号列表
|
|
|
|
* 功能:找出所有符合条件的退款单号列表
|
|
|
|
* 1、没有参加充值活动
|
|
|
|
* 1、没有参加充值活动
|
|
|
|
* 2、用户余额小于50元(后台可以设置)
|
|
|
|
* 2、用户余额小于50元(后台可以设置)
|
|
|
|
|
|
|
|
* http://10.10.21.20:7021/ZhuQue/UserRefund/getRefundIds
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PostMapping("/UserRefund/getRefundIds")
|
|
|
|
@PostMapping("/UserRefund/getRefundIds")
|
|
|
|
public ResultVO getRefundIds(HttpServletRequest request) {
|
|
|
|
public ResultVO getRefundIds(HttpServletRequest request) throws InvocationTargetException, IllegalAccessException, NoSuchMethodException {
|
|
|
|
//获取当前登录人员信息
|
|
|
|
//获取当前登录人员信息
|
|
|
|
String userId = request.getHeader("userId");
|
|
|
|
String userId = request.getHeader("userId");
|
|
|
|
if (StringUtils.isBlank(userId)) {
|
|
|
|
if (StringUtils.isBlank(userId)) {
|
|
|
|
return ResultVO.custom("用户信息为空,获取可退款订单失败",-1);
|
|
|
|
return ResultVO.custom("用户信息为空,获取可退款订单失败", -1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
System.out.println(userId);
|
|
|
|
|
|
|
|
ResultVO res = financeServiceApi.recDataListNew();
|
|
|
|
|
|
|
|
|
|
|
|
//有哪些可以退款的订单
|
|
|
|
//有哪些可以退款的订单
|
|
|
|
List<Record> list = ym.getRefundIds(userId);
|
|
|
|
//List<Record> list = ym.getRefundIds(userId);
|
|
|
|
return ResultVO.success(list);
|
|
|
|
//return ResultVO.success(list);
|
|
|
|
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|