1.修改订单明细添加字段区分商品类型

This commit is contained in:
wanglf3 2024-02-29 16:53:46 +08:00
parent 69a42c9b5e
commit cdad882e06
2 changed files with 4 additions and 1 deletions

View File

@ -6,6 +6,8 @@ import lombok.Data;
@Data @Data
public class AuthenticationSignDto extends BaseQuery { public class AuthenticationSignDto extends BaseQuery {
private Integer productType; //机票1 酒店2火车3打车4
private String systemType; private String systemType;
private String startTime; private String startTime;
private String endTime; private String endTime;

View File

@ -64,13 +64,14 @@ public class OrderDetailController {
@PostMapping("/query") @PostMapping("/query")
public Result query(@RequestBody AuthenticationSignDto authenticationDto) { public Result query(@RequestBody AuthenticationSignDto authenticationDto) {
String productType = authenticationDto.getProductType().toString();
String systemType = authenticationDto.getSystemType(); String systemType = authenticationDto.getSystemType();
String startTime = authenticationDto.getStartTime(); String startTime = authenticationDto.getStartTime();
String endTime = authenticationDto.getEndTime(); String endTime = authenticationDto.getEndTime();
String pageSize = authenticationDto.getPageSize().toString(); String pageSize = authenticationDto.getPageSize().toString();
String pageNum = authenticationDto.getPageNum().toString(); String pageNum = authenticationDto.getPageNum().toString();
String orgsign = authenticationDto.getSign(); String orgsign = authenticationDto.getSign();
String sign = Digest.md5(systemType + startTime + endTime + pageSize + pageNum); String sign = Digest.md5(productType + systemType + startTime + endTime + pageSize + pageNum);
System.out.println(sign); System.out.println(sign);