master
ymnets 5 months ago
parent afd4c62e08
commit 47cb6b2704

@ -67,10 +67,11 @@ public class OrderRefundAllDto {
@ExcelProperty(value = "审核状态", index =15) @ExcelProperty(value = "审核状态", index =15)
private String statusName; private String statusName;
@ExcelProperty(value = "审核时间", index =16) @ExcelProperty(value = "财务处理时间", index =16)
private String fincalTimeStr; private String fincalTimeStr;
@ExcelProperty(value = "业务处理时间", index =16)
private String yewuTimeStr;
@ExcelProperty(value = "退费备注", index =17) @ExcelProperty(value = "退费备注", index =17)
@ -87,6 +88,7 @@ public class OrderRefundAllDto {
private Long payTime; private Long payTime;
private Long refundTime; private Long refundTime;
private Long fincalTime; private Long fincalTime;
private Long yewuTime;
private Integer syncStatus; private Integer syncStatus;
private Integer status; //审核状态 private Integer status; //审核状态

@ -116,5 +116,5 @@ public interface OrdersMapper extends Mapper<Orders> {
* @Description * @Description
* @return java.util.List<com.hc.business.dto.OrdersDto> * @return java.util.List<com.hc.business.dto.OrdersDto>
**/ **/
List<OrdersDto> queryAllOrders(Integer orderId,String orderNo,Integer status,Integer payType,Integer classId,Integer checkFlag,String payCompany,Long begin,Long end); List<OrdersDto> queryAllOrders(Integer orderId,String orderNo,Integer status,Integer payType,Integer isPay,Integer classId,Integer checkFlag,String payCompany,Long begin,Long end);
} }

@ -145,6 +145,6 @@ public interface OrdersService {
*/ */
Integer countOrderTotal(); Integer countOrderTotal();
PageInfo queryAllOrders(int page, int size, Integer orderId, String orderNo, Integer status, Integer payType, Integer classId,Integer checkFlag,String payCompany, Long begin, Long end); PageInfo queryAllOrders(int page, int size, Integer orderId, String orderNo, Integer status, Integer payType,Integer isPay, Integer classId,Integer checkFlag,String payCompany, Long begin, Long end);
} }

@ -157,6 +157,7 @@ public class OrderRefundServiceImpl implements OrderRefundService {
for (OrderRefundAllDto record : list) { for (OrderRefundAllDto record : list) {
record.setRefundTimeStr(TimerUtil.timeStamp2Date(record.getRefundTime())); record.setRefundTimeStr(TimerUtil.timeStamp2Date(record.getRefundTime()));
record.setFincalTimeStr(TimerUtil.timeStamp2Date(record.getFincalTime())); record.setFincalTimeStr(TimerUtil.timeStamp2Date(record.getFincalTime()));
record.setYewuTimeStr(TimerUtil.timeStamp2Date(record.getYewuTime()));
record.setPayTimeStr(TimerUtil.timeStamp2Date(record.getPayTime())); record.setPayTimeStr(TimerUtil.timeStamp2Date(record.getPayTime()));
record.setPayTypeName(ResultUtils.getTypeName(record.getPayType())); record.setPayTypeName(ResultUtils.getTypeName(record.getPayType()));
record.setSyncStatusStr(ResultUtils.getSyncStatusName(record.getSyncStatus())); record.setSyncStatusStr(ResultUtils.getSyncStatusName(record.getSyncStatus()));

@ -187,10 +187,10 @@ public class OrdersServiceImpl implements OrdersService {
@Override @Override
public PageInfo queryAllOrders(int page, int size, Integer orderId,String orderNo,Integer status,Integer payType,Integer classId,Integer checkFlag,String payCompany,Long begin,Long end) { public PageInfo queryAllOrders(int page, int size, Integer orderId,String orderNo,Integer status,Integer payType,Integer isPay,Integer classId,Integer checkFlag,String payCompany,Long begin,Long end) {
PageHelper.startPage(page, size); PageHelper.startPage(page, size);
List<OrdersDto> orders = this.ordersMapper.queryAllOrders(orderId, orderNo,status,payType,classId,checkFlag,payCompany,begin,end); List<OrdersDto> orders = this.ordersMapper.queryAllOrders(orderId, orderNo,status,payType,isPay,classId,checkFlag,payCompany,begin,end);
for (OrdersDto record : orders) { for (OrdersDto record : orders) {
record.setOrderStatusName(ResultUtils.getOrderStatusName(record.getOrderStatus())); record.setOrderStatusName(ResultUtils.getOrderStatusName(record.getOrderStatus()));

@ -100,6 +100,7 @@
c.tax_no as taxNo, c.tax_no as taxNo,
c.tax_no_red as taxNoRed, c.tax_no_red as taxNoRed,
a.fincal_time as fincalTime, a.fincal_time as fincalTime,
a.yewu_time as yewuTime,
d.class_name as className, d.class_name as className,
a.status,a.remarks a.status,a.remarks
FROM order_refund a FROM order_refund a

@ -197,6 +197,14 @@
<if test="payType != null"> <if test="payType != null">
AND a.type = #{payType} AND a.type = #{payType}
</if> </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"> <if test="classId != null">
AND a.class_id = #{classId} AND a.class_id = #{classId}
</if> </if>

@ -3,15 +3,12 @@
PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd"> PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration> <configuration>
<!-- 核心配置文件 --> <!-- 核心配置文件 -->
<settings> <settings>
<!--驼峰式文件映射--> <setting name="useGeneratedKeys" value="true"/>
<setting name="mapUnderscoreToCamelCase" value="true"/> <!--驼峰式文件映射-->
<!--sql log 日志打印--> <setting name="mapUnderscoreToCamelCase" value="true"/>
<!-- <setting name="logImpl" value="STDOUT_LOGGING" />--> <!--sql log 日志打印-->
</settings> <!-- <setting name="logImpl" value="STDOUT_LOGGING" />-->
</settings>
<typeAliases>
<package name="com.hc.business.model"/>
</typeAliases>
</configuration> </configuration>

@ -6,6 +6,8 @@ import java.text.ParseException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Calendar; import java.util.Calendar;
import java.util.Date; import java.util.Date;
import java.util.TimeZone;
/** /**
* :yyyy-MM-dd HH:mm:ss * :yyyy-MM-dd HH:mm:ss
* *
@ -481,21 +483,26 @@ public class TimerUtil {
} }
} }
//时间戳转日期格式 //时间戳转日期格式
// 时间戳转日期格式,默认使用系统时区
public static String timeStamp2Date(Long time) { public static String timeStamp2Date(Long time) {
if(time==null) return timeStamp2Date(time, TimeZone.getTimeZone("Asia/Shanghai"));
{ }
// 时间戳转日期格式,指定时区
public static String timeStamp2Date(Long time, TimeZone timeZone) {
if (time == null) {
return ""; return "";
} }
Long timeLong = Long.parseLong(time.toString());
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//要转换的时间格式 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date date; // 设置时区
try { sdf.setTimeZone(timeZone);
date = sdf.parse(sdf.format(timeLong));
return sdf.format(date); // 直接使用时间戳创建Date对象
} catch (ParseException e) { Date date = new Date(time);
e.printStackTrace();
return null; // 格式化日期
} return sdf.format(date);
} }
/** /**

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

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

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

@ -314,21 +314,21 @@ public class AppUserInvoicesController {
if (!StringUtils.hasText(userInvoices.getInvoicesCode())) { if (!StringUtils.hasText(userInvoices.getInvoicesCode())) {
return "企业税号必须填写"; return "企业税号必须填写";
} }
if (!StringUtils.hasText(userInvoices.getInvoicesBank())) { // if (!StringUtils.hasText(userInvoices.getInvoicesBank())) {
return "开户行必须填写"; // return "开户行必须填写";
} // }
if (!StringUtils.hasText(userInvoices.getInvoicesUser())) { // if (!StringUtils.hasText(userInvoices.getInvoicesUser())) {
return "开户名必须填写"; // return "开户名必须填写";
} // }
if (!StringUtils.hasText(userInvoices.getInvoicesNo())) { // if (!StringUtils.hasText(userInvoices.getInvoicesNo())) {
return "开户账号必须填写"; // return "开户账号必须填写";
} // }
if (!StringUtils.hasText(userInvoices.getInvoicesAddress())) { // if (!StringUtils.hasText(userInvoices.getInvoicesAddress())) {
return "单位地址必须填写"; // return "单位地址必须填写";
} // }
if (!StringUtils.hasText(userInvoices.getInvoicesTel())) { // if (!StringUtils.hasText(userInvoices.getInvoicesTel())) {
return "单位电话必须填写"; // return "单位电话必须填写";
} // }
} }
return ""; return "";

@ -143,13 +143,14 @@ public class BackOrdersController {
@ApiParam(value = "班次id") @RequestParam(required = false) Integer classId, @ApiParam(value = "班次id") @RequestParam(required = false) Integer classId,
@ApiParam(value = "0未支付 1成功 2退费 3部分退费 null查全部") @RequestParam(required = false) Integer status, @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 = "支付类型01230支付宝1微信2微信移动端3线下汇款 null查全部") @RequestParam(required = false) Integer payType,
@ApiParam(value = "是否付款过 0否 1 是 null 全部") @RequestParam(required = false) Integer isPay,
@ApiParam(value = "审核结果1通过2拒绝0审核中 null全部(根据remark是否有值判断是否拒绝有值表示拒绝)") @RequestParam(required = false) Integer checkFlag, @ApiParam(value = "审核结果1通过2拒绝0审核中 null全部(根据remark是否有值判断是否拒绝有值表示拒绝)") @RequestParam(required = false) Integer checkFlag,
@ApiParam(value = "付款单位") @RequestParam(required = false) String payCompany, @ApiParam(value = "付款单位") @RequestParam(required = false) String payCompany,
@ApiParam(value = "创建时间开始毫秒时间戳默认3个月") @RequestParam(required = false) Long begin, @ApiParam(value = "创建时间开始毫秒时间戳默认3个月") @RequestParam(required = false) Long begin,
@ApiParam(value = "创建时间结束毫秒时间戳默认3个月") @RequestParam(required = false) Long end, @ApiParam(value = "创建时间结束毫秒时间戳默认3个月") @RequestParam(required = false) Long end,
@RequestParam(defaultValue = "1") Integer page, @RequestParam(defaultValue = "1") Integer page,
@RequestParam(defaultValue = "20") Integer size) { @RequestParam(defaultValue = "20") Integer size) {
return Result.success(this.ordersService.queryAllOrders(page, size, orderId, orderNo, status, payType, classId,checkFlag,payCompany, begin, end)); return Result.success(this.ordersService.queryAllOrders(page, size, orderId, orderNo, status, payType,isPay, classId,checkFlag,payCompany, begin, end));
} }
@GetMapping("/queryAllOrdersExport") @GetMapping("/queryAllOrdersExport")
@ -159,6 +160,7 @@ public class BackOrdersController {
@ApiParam(value = "班次id") @RequestParam(required = false) Integer classId, @ApiParam(value = "班次id") @RequestParam(required = false) Integer classId,
@ApiParam(value = "0未支付 1成功 2退费 3部分退费 null查全部") @RequestParam(required = false) Integer status, @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 = "支付类型01230支付宝1微信2微信移动端3线下汇款 null查全部") @RequestParam(required = false) Integer payType,
@ApiParam(value = "是否付款过 0否 1 是 null 全部") @RequestParam(required = false) Integer isPay,
@ApiParam(value = "审核结果1通过2拒绝0审核中 null全部(根据remark是否有值判断是否拒绝有值表示拒绝)") @RequestParam(required = false) Integer checkFlag, @ApiParam(value = "审核结果1通过2拒绝0审核中 null全部(根据remark是否有值判断是否拒绝有值表示拒绝)") @RequestParam(required = false) Integer checkFlag,
@ApiParam(value = "付款单位") @RequestParam(required = false) String payCompany, @ApiParam(value = "付款单位") @RequestParam(required = false) String payCompany,
@ApiParam(value = "创建时间开始毫秒时间戳默认3个月") @RequestParam(required = false) Long begin, @ApiParam(value = "创建时间开始毫秒时间戳默认3个月") @RequestParam(required = false) Long begin,
@ -176,7 +178,7 @@ public class BackOrdersController {
folder.mkdirs(); folder.mkdirs();
} }
PageInfo pageInfo = this.ordersService.queryAllOrders(1, 50000, orderId, orderNo, status, payType, classId,checkFlag,payCompany, begin, end); PageInfo pageInfo = this.ordersService.queryAllOrders(1, 50000, orderId, orderNo, status, payType,isPay, classId,checkFlag,payCompany, begin, end);
List<OrdersDto> dataList = pageInfo.getList(); List<OrdersDto> dataList = pageInfo.getList();
// 对上传的文件重命名,避免文件重名 // 对上传的文件重命名,避免文件重名
String newName = format + UUID.randomUUID() + "订单-全部导出.xlsx"; String newName = format + UUID.randomUUID() + "订单-全部导出.xlsx";

@ -318,21 +318,21 @@ public class FrontUserInvoicesController {
if (!StringUtils.hasText(userInvoices.getInvoicesCode())) { if (!StringUtils.hasText(userInvoices.getInvoicesCode())) {
return "企业税号必须填写"; return "企业税号必须填写";
} }
if (!StringUtils.hasText(userInvoices.getInvoicesBank())) { // if (!StringUtils.hasText(userInvoices.getInvoicesBank())) {
return "开户行必须填写"; // return "开户行必须填写";
} // }
if (!StringUtils.hasText(userInvoices.getInvoicesUser())) { // if (!StringUtils.hasText(userInvoices.getInvoicesUser())) {
return "开户名必须填写"; // return "开户名必须填写";
} // }
if (!StringUtils.hasText(userInvoices.getInvoicesNo())) { // if (!StringUtils.hasText(userInvoices.getInvoicesNo())) {
return "开户账号必须填写"; // return "开户账号必须填写";
} // }
if (!StringUtils.hasText(userInvoices.getInvoicesAddress())) { // if (!StringUtils.hasText(userInvoices.getInvoicesAddress())) {
return "单位地址必须填写"; // return "单位地址必须填写";
} // }
if (!StringUtils.hasText(userInvoices.getInvoicesTel())) { // if (!StringUtils.hasText(userInvoices.getInvoicesTel())) {
return "单位电话必须填写"; // return "单位电话必须填写";
} // }
} }
return ""; return "";

@ -1,9 +1,9 @@
spring: spring:
profiles: dev profiles: dev
datasource: datasource:
url: jdbc:mysql://rm-m5e856330s821071w8o.mysql.rds.aliyuncs.com/jxjy-cq-test?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=UTC&allowMultiQueries=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true url: jdbc:mysql://rm-m5e856330s821071w8o.mysql.rds.aliyuncs.com:3306/gp_union?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=UTC&allowMultiQueries=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
username: jxjy_cq_test username: gp_union
password: jxjy!123 password: gpUnion!123
redis: redis:
host: 223.108.133.166 host: 223.108.133.166
database: 3 database: 3
@ -18,7 +18,7 @@ spring:
min-idle: 0 min-idle: 0
server: server:
port: 7788 port: 7799
setting: setting:
uploadPath: d:/javaFile/upload/ uploadPath: d:/javaFile/upload/

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

@ -79,6 +79,6 @@ public class ZccmBannerServiceImpl implements ZccmBannerService {
*/ */
@Override @Override
public PageInfo queryAllByLimit(int page, int size) { public PageInfo queryAllByLimit(int page, int size) {
return PageHelper.startPage(page, size).doSelectPageInfo(this.bannerMapper::selectAll); return PageHelper.startPage(page, size).setOrderBy("banner_index asc").doSelectPageInfo(this.bannerMapper::selectAll);
} }
} }
Loading…
Cancel
Save