master
ymnets 5 months ago
parent 47cb6b2704
commit 268f9d1a8d

@ -70,11 +70,11 @@ public class OrderRefundAllDto {
@ExcelProperty(value = "财务处理时间", index =16)
private String fincalTimeStr;
@ExcelProperty(value = "业务处理时间", index =16)
@ExcelProperty(value = "业务处理时间", index =17)
private String yewuTimeStr;
@ExcelProperty(value = "退费备注", index =17)
@ExcelProperty(value = "退费备注", index =18)
private String remarks;
/////////////////////////

@ -46,5 +46,5 @@ public interface OrderUserLogMapper extends Mapper<OrderUserLog> {
List<OrderUserLog> queryByUserIdAndOrderId(@Param("ordersId") Integer ordersId,
@Param("userId") Integer userId);
List<OrdersAllUserDto> queryAllOrdersUser(Integer orderId, String orderNo, Integer status, Integer payType, Integer classId, Long begin, Long end);
List<OrdersAllUserDto> queryAllOrdersUser(Integer orderId, String orderNo, Integer status, Integer payType,Integer isPay, Integer classId, Long begin, Long end);
}

@ -76,6 +76,6 @@ public interface OrderUserLogService {
*/
List<OrderUserLogDto> queryUserLogByOrderId(Integer orderId);
List<OrdersAllUserDto> queryAllOrdersUser(Integer orderId, String orderNo, Integer status, Integer payType, Integer classId, Long begin, Long end);
List<OrdersAllUserDto> queryAllOrdersUser(Integer orderId, String orderNo, Integer status, Integer payType,Integer isPay, Integer classId, Long begin, Long end);
}

@ -108,8 +108,8 @@ public class OrderUserLogServiceImpl implements OrderUserLogService {
}
@Override
public List<OrdersAllUserDto> queryAllOrdersUser(Integer orderId,String orderNo,Integer status,Integer payType,Integer classId,Long begin,Long end) {
List<OrdersAllUserDto> users = this.orderUserLogMapper.queryAllOrdersUser(orderId, orderNo,status,payType,classId,begin,end);
public List<OrdersAllUserDto> queryAllOrdersUser(Integer orderId,String orderNo,Integer status,Integer payType,Integer isPay,Integer classId,Long begin,Long end) {
List<OrdersAllUserDto> users = this.orderUserLogMapper.queryAllOrdersUser(orderId, orderNo,status,payType,isPay,classId,begin,end);
for (OrdersAllUserDto record : users) {
record.setOrderStatusName(ResultUtils.getOrderStatusName(record.getOrderStatus()));
record.setTypeName(ResultUtils.getTypeName(record.getType()));

@ -81,6 +81,14 @@
<if test="payType != null">
AND a.type = #{payType}
</if>
<if test="isPay!=null ">
<if test="isPay==1 ">
AND (select count(1) from order_attachment where order_id=a.orders_id)>0
</if>
<if test="isPay==0">
AND (select count(1) from order_attachment where order_id=a.orders_id)=0
</if>
</if>
<if test="classId != null">
AND a.class_id = #{classId}
</if>

@ -54,28 +54,28 @@ public class AppUserAspect {
//获取请求信息
// ServletRequestAttributes attributes =
// (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
// HttpServletRequest request = Objects.requireNonNull(attributes).getRequest();
//
// //从请求头中获取token
// String token = request.getHeader("token");
//
// if (!Objects.isNull(token)) {
//
// //身份识别 已取消
//
// //获取redis中的token 查看token是否过期
// if (Verification.verificationString((String) redisUtil.get(token))) {
// log.info("app 请求-token正常");
// } else {
// log.info("app 请求-redis中的token已过期请重新登录");
// throw new ResponseException(-1, "front token is expired");
// }
//
// } else {
// log.info("app request-token is null");
// throw new ResponseException(-1, "app request-token is null");
// }
ServletRequestAttributes attributes =
(ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
HttpServletRequest request = Objects.requireNonNull(attributes).getRequest();
//从请求头中获取token
String token = request.getHeader("token");
if (!Objects.isNull(token)) {
//身份识别 已取消
//获取redis中的token 查看token是否过期
if (Verification.verificationString((String) redisUtil.get(token))) {
log.info("app 请求-token正常");
} else {
log.info("app 请求-redis中的token已过期请重新登录");
throw new ResponseException(-1, "front token is expired");
}
} else {
log.info("app request-token is null");
throw new ResponseException(-1, "app request-token is null");
}
}
}

@ -42,29 +42,29 @@ public class BackUserAspect {
public void doVerify() {
//获取请求信息
// ServletRequestAttributes attributes =
// (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
// HttpServletRequest request = Objects.requireNonNull(attributes).getRequest();
//
// //从请求头中获取token
// String token = request.getHeader("token");
//
// if (!Objects.isNull(token)) {
//
// //身份识别 已取消
//
// //获取redis中的token 查看token是否过期
// if (Verification.verificationString((String) redisUtil.get(token))) {
// log.info("back 请求-token正常");
// } else {
// log.info("back 请求-redis中的token已过期请重新登录");
// throw new ResponseException(-1, "Back request-token is expired");
// }
//
// } else {
// log.info("Back request-token is null");
// throw new ResponseException(-1, "Back request-token is null");
// }
ServletRequestAttributes attributes =
(ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
HttpServletRequest request = Objects.requireNonNull(attributes).getRequest();
//从请求头中获取token
String token = request.getHeader("token");
if (!Objects.isNull(token)) {
//身份识别 已取消
//获取redis中的token 查看token是否过期
if (Verification.verificationString((String) redisUtil.get(token))) {
log.info("back 请求-token正常");
} else {
log.info("back 请求-redis中的token已过期请重新登录");
throw new ResponseException(-1, "Back request-token is expired");
}
} else {
log.info("Back request-token is null");
throw new ResponseException(-1, "Back request-token is null");
}
}
}

@ -62,29 +62,29 @@ public class FrontUserAspect {
// //获取请求信息
// ServletRequestAttributes attributes =
// (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
// HttpServletRequest request = Objects.requireNonNull(attributes).getRequest();
//
// //从请求头中获取token
// String token = request.getHeader("token");
//
// if (!Objects.isNull(token)) {
//
// //身份识别 已取消
//
// //获取redis中的token 查看token是否过期
// if (Verification.verificationString((String) redisUtil.get(token))) {
// log.info("front 请求-token正常");
// } else {
// log.info("front 请求-redis中的token已过期请重新登录");
// throw new ResponseException(-1, "front token is expired");
// }
//
// } else {
// log.info("front request-token is null");
// throw new ResponseException(-1, "front request-token is null");
// }
ServletRequestAttributes attributes =
(ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
HttpServletRequest request = Objects.requireNonNull(attributes).getRequest();
//从请求头中获取token
String token = request.getHeader("token");
if (!Objects.isNull(token)) {
//身份识别 已取消
//获取redis中的token 查看token是否过期
if (Verification.verificationString((String) redisUtil.get(token))) {
log.info("front 请求-token正常");
} else {
log.info("front 请求-redis中的token已过期请重新登录");
throw new ResponseException(-1, "front token is expired");
}
} else {
log.info("front request-token is null");
throw new ResponseException(-1, "front request-token is null");
}
}
}

@ -138,7 +138,7 @@ public class BackOrderRefundController {
} catch (FileNotFoundException e) {
throw new RuntimeException(e);
}
List<String> strList = Arrays.asList("payType", "payTime", "refundTime", "fincalTime", "syncStatus","invoicesNo","invoicesBank","status");
List<String> strList = Arrays.asList("payType", "payTime", "refundTime", "fincalTime","yewuTime", "syncStatus","invoicesNo","invoicesBank","status");
EasyExcel.write(outputStream, OrderRefundAllDto.class).excludeColumnFieldNames(strList).registerWriteHandler(new ExcelWidthStyleStrategy()).sheet("财务退费导出").doWrite(dataList);
return Result.success("/jxjyfile/" + newName);
}

@ -68,6 +68,7 @@ public class BackOrderUserLogController {
@ApiParam(value = "班次id") @RequestParam(required = false) Integer classId,
@ApiParam(value = "0未支付 1成功 2退费 3部分退费 null查全部") @RequestParam(required = false) Integer status,
@ApiParam(value = "支付类型01230支付宝1微信2微信移动端3线下汇款 null查全部") @RequestParam(required = false) Integer payType,
@ApiParam(value = "是否付款过 0否 1 是 null 全部") @RequestParam(required = false) Integer isPay,
@ApiParam(value = "创建时间开始毫秒时间戳默认3个月") @RequestParam(required = false) Long begin,
@ApiParam(value = "创建时间结束毫秒时间戳默认3个月") @RequestParam(required = false) Long end) {
@ -83,7 +84,7 @@ public class BackOrderUserLogController {
folder.mkdirs();
}
List<OrdersAllUserDto> dataList = this.orderUserLogService.queryAllOrdersUser(orderId, orderNo, status, payType, classId, begin, end);
List<OrdersAllUserDto> dataList = this.orderUserLogService.queryAllOrdersUser(orderId, orderNo, status, payType,isPay, classId, begin, end);
// 对上传的文件重命名,避免文件重名
String newName = format + UUID.randomUUID() + "订单-学员导出.xlsx";
FileOutputStream outputStream = null;

@ -5,7 +5,7 @@ spring:
resources:
static-locations: classpath:/static/,classpath:/resources/
profiles:
active: dev
active: pro
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver

Loading…
Cancel
Save