提交 4db2795d 作者: panda 提交者: 余乾开

删除多余System.out.println

上级 02d97c4d
......@@ -15,12 +15,6 @@ import java.util.List;
*/
public class JsonUtil {
public static void main(String[] args) {
String array = "[1,24,23]";
List<Integer> list = JSONArray.parseArray(array, Integer.class);
System.out.println(list.get(2));
}
/**
* 把Java对象转换成json字符串
*
......
......@@ -27,14 +27,6 @@ public class KdnExpressUtil {
//订阅推送请求url, 正式环境地址
private static String KdApiSearchMonitorPushReqURL = "https://api.kdniao.com/api/dist";
public static void main(String[] args) {
try {
System.out.println(KdnExpressUtil.SF("15858341767", "SF11319617182224329"));
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* https://www.kdniao.com/api-trackexpress
*
......@@ -222,9 +214,7 @@ public class KdnExpressUtil {
param.append(entry.getKey());
param.append("=");
param.append(entry.getValue());
System.out.println(entry.getKey() + ":" + entry.getValue());
}
System.out.println("param:" + param.toString());
out.write(param.toString());
}
// flush输出流的缓冲
......
......@@ -33,7 +33,6 @@ public class GlobalFormDateConvert implements Converter<String, Date> {
// 自定义函数,将字符串转Date 参1:传入的日期字符串 参2:格式参数
public Date parseDate(String source, String format) {
System.out.println("parseDate转换日期");
Date date = null;
try {
// 日期格式转换器
......@@ -48,8 +47,6 @@ public class GlobalFormDateConvert implements Converter<String, Date> {
// convert转换方法 ,s是将会传递过来的日期的字符串
@Override
public Date convert(String source) {
System.out.println("convert日期格式转换器");
if (StringUtils.isEmpty(source)) {
return null;
}
......
......@@ -113,6 +113,5 @@ public class WxSendMsgVO implements Serializable {
ws.setTitle(title);
String json = ws.buildMsgJson();
System.out.println(json);
}
}
......@@ -128,7 +128,7 @@ public class CouponUserServiceImpl extends ServiceImpl<CouponUserDao, CouponUser
// if (couponDO.getUserTag() != null){
// Integer useTag = couponDO.getUserTag();
// MallUserDTO mallUserDTO = mallUserClient.feignGetSimpleUserInfo(currentAccount.getId());
// System.out.println("mallUserDTO-----------------------"+ mallUserDTO);
//
// if (CouponConstants.USER_LABEL_REAL_NAME_AUTHENTICATION.equals(useTag) && mallUserDTO.getRealAuthStatus() != 1 ){
// return ResultBody.error("该用户实名认证未通过");
// }
......@@ -348,7 +348,6 @@ public class CouponUserServiceImpl extends ServiceImpl<CouponUserDao, CouponUser
}
return true;
}).collect(Collectors.toList());
System.out.println(collect);
log.info("消息发送成功" + collect);
collect.stream().forEach(t -> {
asynSendUserAppletMsgList(currentAccount.getUserAccountId(), t);
......
......@@ -136,8 +136,6 @@ public class OrderRefundServiceImpl implements OrderRefundService {
+ "&repoAccountId=" + userAccountId
+ "&refundNo=" + refundNo,
HttpMethod.GET, formEntity, String.class);
System.out.println(exchange);
}
......
......@@ -318,19 +318,13 @@ public class AppMallOrderServiceImpl implements AppMallOrderService {
brandIds.add(orderGoodsProdDetailDO.getBrandInfoId());
//计算各品牌总价格
if(brandPriceMap.get(orderGoodsProdDetailDO.getBrandInfoId()) == null){
System.out.println("brandPrice1----->" + JSONObject.toJSON(orderGoodsProdDetailDO.getSkuSpecAmount()));
brandPriceMap.put(orderGoodsProdDetailDO.getBrandInfoId(), orderGoodsProdDetailDO.getSkuSpecAmount());
}else {
System.out.println("brandPrice2----->" + JSONObject.toJSON(orderGoodsProdDetailDO.getSkuSpecAmount()));
brandPriceMap.put(orderGoodsProdDetailDO.getBrandInfoId(), brandPriceMap.get(orderGoodsProdDetailDO.getBrandInfoId()).add(orderGoodsProdDetailDO.getSkuSpecAmount()));
//brandPriceMap.get(orderGoodsProdDetailDO.getBrandInfoId()).add(orderGoodsProdDetailDO.getSkuSpecAmount());
}
}
}
System.out.println("brandPriceMap----->" + JSONObject.toJSON(brandPriceMap));
System.out.println("brandIds----->" + JSONObject.toJSON(brandIds));
List<Integer> listBrandIds = new ArrayList<>(brandIds);
//获取用户所有优惠券
// List<CouponUserOrderDTO> couponUserOrderDTOList = mallUserPayClient.feignCoupons(listBrandIds, userAccountId);
......@@ -339,22 +333,19 @@ public class AppMallOrderServiceImpl implements AppMallOrderService {
//遍历每张可用的优惠券
for (CouponUserOrderDTO couponUserOrderDTO : couponUserOrderDTOList) {
couponUserOrderDTO.setMinPrice(couponUserOrderDTO.getMinPrice() == null ? BigDecimal.ZERO : couponUserOrderDTO.getMinPrice());
System.out.println(couponUserOrderDTO.toString());
if(couponUserOrderDTO.getValidStr().equals("usable")){
//处理品牌券
if (couponUserOrderDTO.getPrimaryKey() != null && couponUserOrderDTO.getPrimaryKey().length() > 0){
System.out.println("PrimaryKey:" + couponUserOrderDTO.getPrimaryKey());
couponUserOrderDTO.setBrandIds(Arrays.asList(couponUserOrderDTO.getPrimaryKey().split(",")));
System.out.println("setBrandIds:" + couponUserOrderDTO.getBrandIds());
BigDecimal discountPrice = BigDecimal.ZERO;
//判断有效的
//按照优惠券包含的品牌,计算这个优惠券可以打折多少(这个券可以打折的金额)
// brandPriceMap.forEach((key, value)->{
// System.out.println("key:" + key);
//
// if(couponUserOrderDTO.getBrandIds().contains(key.toString()) && couponUserOrderDTO.getUseType().equals(2)){
// System.out.println("add value:" + value);
//
// discountPrice.add(value);
// System.out.println("discountPrice:" + discountPrice);
//
// }
// });
for (Integer key : brandPriceMap.keySet()){
......@@ -365,7 +356,6 @@ public class AppMallOrderServiceImpl implements AppMallOrderService {
discountPrice = discountPrice.add(brandPriceMap.get(key));
}
}
System.out.println("discountPrice:" + discountPrice);
//说明这个券是品牌券(这张券可以对多少金额进行打折)
if (discountPrice.compareTo(BigDecimal.ZERO) > 0){
......
......@@ -92,14 +92,5 @@ public class SnowFlake {
private long getNewstmp() {
return System.currentTimeMillis();
}
public static void main(String[] args) {
SnowFlake snowFlake = new SnowFlake(2, 3);
for (int i = 0; i < (1 << 12); i++) {
System.out.println(snowFlake.nextId());
}
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论