mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-03 10:46:38 +08:00
fix bugger
This commit is contained in:
parent
7c44493aa3
commit
7416626cf3
@ -18,8 +18,8 @@ public class CouponConfigService {
|
||||
public String couponConfigGet(CouponConfigGetEntity couponConfigGetEntity) throws Exception{
|
||||
Map<String, String> paramMap = MapRemoveNullUtil.setConditionMap(couponConfigGetEntity);
|
||||
MapRemoveNullUtil.removeNullEntry(paramMap);
|
||||
net.sf.json.JSONObject jsonObject = net.sf.json.JSONObject.fromObject(paramMap);
|
||||
return SmartHttpUtil.httpPostRaw(url+"get",jsonObject.toString(),null,"utf-8");
|
||||
// net.sf.json.JSONObject jsonObject = net.sf.json.JSONObject.fromObject(paramMap);
|
||||
return SmartHttpUtil.sendPostForm(url+"get",paramMap,null);
|
||||
}
|
||||
|
||||
public String couponConfigFindAll(CouponConfigFindAllEntity couponConfigFindAllEntity) throws Exception{
|
||||
@ -30,7 +30,7 @@ public class CouponConfigService {
|
||||
paramMap.put("page",StringUtil.toString(couponConfigFindAllEntity.getPage()).equals("0")?null:StringUtil.toString(couponConfigFindAllEntity.getPage()));
|
||||
MapRemoveNullUtil.removeNullEntry(paramMap);
|
||||
net.sf.json.JSONObject jsonObject = net.sf.json.JSONObject.fromObject(paramMap);
|
||||
return SmartHttpUtil.httpPostRaw(url+"findAll",jsonObject.toString(),null,"utf-8");
|
||||
return SmartHttpUtil.httpPostRaw(url+"getAll",jsonObject.toString(),null,"utf-8");
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -151,7 +151,7 @@ public class TransitionController {
|
||||
long startTime = System.currentTimeMillis();
|
||||
switch (type)
|
||||
{
|
||||
case "findAll":
|
||||
case "getAll":
|
||||
result = couponConfigService.couponConfigFindAll(objectMapper.convertValue(object, CouponConfigFindAllEntity.class));
|
||||
break;
|
||||
case "get":
|
||||
|
@ -97,8 +97,6 @@ public class OrderService {
|
||||
}
|
||||
if(ordersDao.cancelOrder(orderNo) == 1){
|
||||
AddOrSaveEntity addOrSaveEntity = new AddOrSaveEntity();
|
||||
addOrSaveEntity.setChannelId("15");
|
||||
addOrSaveEntity.setSecret("H5@2021");
|
||||
addOrSaveEntity.setOrderNumber(orderNo);
|
||||
addOrSaveEntity.setPhoneNumber(ordersEntity.getPhoneNumber());
|
||||
addOrSaveEntity.setStatus("3");
|
||||
|
@ -1,37 +1,37 @@
|
||||
package net.lab1024.smartadmin.module.system.royalcanin.orderMaster;
|
||||
|
||||
import lombok.Data;
|
||||
import net.lab1024.smartadmin.util.SmartDateUtil;
|
||||
import net.sf.json.JSONArray;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class AddOrSaveEntity {
|
||||
|
||||
private String channelId;
|
||||
|
||||
private String secret;
|
||||
|
||||
private String orderNumber;
|
||||
private String orderNumber ="null";
|
||||
|
||||
private String phoneNumber;
|
||||
private String phoneNumber ="null";
|
||||
|
||||
private String salesAmount;
|
||||
private String salesAmount ="null";
|
||||
|
||||
private String status;
|
||||
private String status ="null";
|
||||
|
||||
private String paymentResult;
|
||||
private String paymentResult ="null";
|
||||
|
||||
private String paymentAmount;
|
||||
private String paymentAmount ="null";
|
||||
|
||||
private String orderDate;
|
||||
private String orderDate = SmartDateUtil.formatYMD(new Date());
|
||||
|
||||
private String paymentToken;
|
||||
private String paymentToken ="null";
|
||||
|
||||
private String deliveryType;
|
||||
private String deliveryType ="1";
|
||||
|
||||
private String orderDetailList;
|
||||
private String orderDetailList ="null";
|
||||
|
||||
private String orderCoupon;
|
||||
private String orderCoupon ="null";
|
||||
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ public class OrderDatilListEntity {
|
||||
|
||||
private String logisticsNumber;
|
||||
|
||||
private String status;
|
||||
private String status = "0";
|
||||
|
||||
private String logisticsDate;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user