src/main/java/org/edgegallery/appstore/application/inner/OrderService.java
public String generateOrderNum() {
        String maxOrderNum = orderRepository.maxOrderNum();
        if (StringUtils.isEmpty(maxOrderNum)) {
            return "ES0000000001";
        }
        int maxId = Integer.parseInt(maxOrderNum.substring(2));
        String strId = "0000000000" + (++maxId);
        int maxNumLen = 10;
        return "ES" + strId.substring(strId.length() - maxNumLen);
    }
/**
     * generate order num.
     *
     * @return order num
     */
generate order num.
@return order num
generate order num . @return order num
public String generateOrderNum() {
        String maxOrderNum = orderRepository.maxOrderNum();
        if (StringUtils.isEmpty(maxOrderNum)) {
            return "ES0000000001";
        }
        int maxId = Integer.parseInt(maxOrderNum.substring(2));
        String strId = "0000000000" + (++maxId);
        int maxNumLen = 10;
        return "ES" + strId.substring(strId.length() - maxNumLen);
    }
public String generateOrderNum ( ) { String maxOrderNum = orderRepository . maxOrderNum ( ) ; if ( StringUtils . isEmpty ( maxOrderNum ) ) { return "ES0000000001" ; } int maxId = Integer . parseInt ( maxOrderNum . substring ( 2 ) ) ; String strId = "0000000000" + ( ++ maxId ) ; int maxNumLen = 10 ; return "ES" + strId . substring ( strId . length ( ) - maxNumLen ) ; }
generate order num.
generate order num .