north-glass-erp/src/main/java/com/example/erp/service/sd/OrderService.java
@@ -204,7 +204,7 @@ }else if(dateType.equals("year")){ Integer maxOrderId = orderMapper.selectMaxOrderIdByYear(); String formattedNumber = String.format("%"+(orderIdTypeMantissa+4)+"d", maxOrderId+1); String formattedNumber = String.format("%0"+(orderIdTypeMantissa+4)+"d", maxOrderId+1); Date currentDate = new Date(); SimpleDateFormat dateFormat = new SimpleDateFormat("yy"); String formattedDate = dateFormat.format(currentDate); north-glass-erp/src/main/resources/mapper/sd/OrderMapper.xml
@@ -39,7 +39,6 @@ `order` as a where year(a.create_time) = year(now()) and a.id>400 </select> <select id="selectOrderIdMin">