![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
River741132472
这个作者很懒,什么都没留下…
展开
-
时间工具类DateU
package com.ddtkj.common.util;import java.text.DateFormat;import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Calendar;import java.util.Date;import java.util.Greg...原创 2018-08-18 14:24:46 · 556 阅读 · 0 评论 -
自建站订单流程
一:自建站订单流程1:开始2:立即购买3:是否完成支付,如果是否则是代付款订单,在规定时间内完成支付;4:计算优惠价格在前端显示;5:判断是否COD订单,并且是否手动和自动挂起;6:是否审核通过,如果不通过则是异常订单,订单失效7:审核通过则走采购,发货,签收流程,签收包括代签收和已签收,8:已签收订单走售后流程是,售后为7到15天9:订单完成二:订单...原创 2019-03-19 10:20:42 · 1143 阅读 · 0 评论 -
枚举类
package com.platform.enums;import java.io.Serializable;public enum StorageStatus implements Serializable { waitInStorage("待入库",1,"ToAudit"), waitDeliver("待发货", 2, "Suspend"), waitSig...原创 2019-04-10 14:18:18 · 126 阅读 · 0 评论 -
导入导出
1:POI2:gxl原创 2019-04-10 16:19:00 · 134 阅读 · 0 评论 -
时间相关
1:springboot时间注解@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")private Date endDate; //采购开始时间原创 2019-04-15 17:05:53 · 179 阅读 · 0 评论 -
springboot注解
1:导入文件注解@RequestMapping(value = "/pay/importExcelPurchaseInfo", method = RequestMethod.POST, produces = {MediaType.APPLICATION_JSON_UTF8_VALUE}, consumes = MediaType.MULTIPART_FORM_DATA_VALUE)...原创 2019-04-16 17:41:18 · 153 阅读 · 0 评论 -
rabbitmq消息队列
1:死信队列配置文件package com.platform.config;import com.platform.constant.MqConstant;import org.springframework.amqp.core.*;import org.springframework.beans.factory.config.YamlPropertiesFactoryBean;i...原创 2019-05-20 14:16:37 · 179 阅读 · 0 评论 -
编号规则
1:生成产品编号规则synchronized ("PW"+wareMessageProduct.getInShop()) { subNo = numberFactory.execute(wareMessageProduct.getInShop());}DecimalFormat df=new DecimalFormat("00000");//设置格式String str=df...原创 2019-03-13 13:17:57 · 802 阅读 · 0 评论 -
spring boot时间格式
1:@JSONField(format="yyyy-MM-dd HH:mm:ss")private Date createTime;2:时间格式SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");SimpleDateFormat df = new SimpleDateFormat("yyMMdd"...原创 2019-03-08 09:51:46 · 222 阅读 · 0 评论 -
springboot服务之间调用
1:RestTemplate restTemplate = new RestTemplate();wareMessage.setSystemEmployee(systemEmployee);wareMessage.setInShop(wareMessage.getInShop());wareMessage.setIsSynch(1);/*System.out.println(JSON...原创 2019-03-08 09:50:48 · 6899 阅读 · 0 评论 -
springMVC传参
1: @RequestMapping("generalImageList") @ResponseBody public Map<String, Object> selectMobileGeneralImage( @RequestParam(value="page") String page, @RequestParam(value="rows") ...原创 2018-08-20 11:45:15 · 201 阅读 · 0 评论 -
单向加密工具
/** * 单向加密工具 */public class Encodes { // 随机字符集合 private static String NONCE_STRING = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; // 安全的随机数生成器 private static SecureRa...原创 2018-09-04 14:13:57 · 169 阅读 · 0 评论 -
模板替换
package com.springboot.controller;import freemarker.cache.StringTemplateLoader;import freemarker.template.Configuration;import freemarker.template.Template;import freemarker.template.TemplateExcep...原创 2018-11-24 22:58:49 · 619 阅读 · 0 评论 -
页面爬取
package com.shengdun.demo.controller;import org.apache.http.HttpEntity;import org.apache.http.client.methods.CloseableHttpResponse;import org.apache.http.client.methods.HttpGet;import org.apache...原创 2019-01-10 16:10:31 · 238 阅读 · 0 评论 -
枚举
package com.platform.enums;import java.io.Serializable;public enum PayStatus implements Serializable { Pending("Pending", "待收款", 0), OK("OK","已收款", 1), Rejected("Rejected","已拒付",原创 2019-01-19 17:01:18 · 172 阅读 · 0 评论 -
调用阿里接口
1:https://open.1688.com/solution/solutionDetail.htm?solutionKey=1512979720508#apiAndMessageList2:https://open.1688.com/api/apidocdetail.htm?aopApiCategory=Logistics_NEW&id=com.alibaba.logistics%...原创 2019-02-20 17:53:28 · 827 阅读 · 0 评论 -
创建一个线程池
1://创建线程池private static ScheduledExecutorService executor = newScheduledThreadPool(5); //调用方法executor.execute(new SupplierTread(cSupplierEntity));//实体类package com.platform.utils;imp...原创 2019-03-15 11:13:02 · 228 阅读 · 0 评论 -
sql高级
1:去重查交集selectsupplier_name supplierName,supplier_url supplierUrl,supplier_no supplierNo,COUNT(1) as numfrom ware_supplierwhere product_no in <foreach collection="productStrs" index="index"...原创 2019-03-15 17:22:21 · 327 阅读 · 0 评论 -
定时任务
package com.platform.rate.service.impl;import java.io.*;import java.net.HttpURLConnection;import com.baomidou.mybatisplus.service.impl.ServiceImpl;import com.platform.common.Conf;import com.pla...原创 2019-09-05 14:02:56 · 174 阅读 · 1 评论