package com.xp.spo.utils;
import com.xp.spo.model.Express;
import com.xp.spo.service.ExpressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* @author Czy--feeling
* @create 2018-09-27 2:11 PM
* 生成格式:
LL+yyMMdd(时间)+0000(四位数),例如:LL201810100001
* 生成规则:按当天时间从0001开始累积,今天从LL201810100001开始;明天从LL201810110001开始累积;
**/
@Component
public class Odd {
private int number;
@Autowired
private ExpressService expressService;
/**
*
*/
private static Odd odd;
@PostConstruct
public void init() {