lxp 1 ano atrás
pai
commit
4d89eb364a

+ 4 - 2
yinet-admin/src/main/java/com/yinet/web/controller/rlzy/RlzyApplyPrintController.java

@@ -128,11 +128,13 @@ public class RlzyApplyPrintController extends BaseController {
 
     public RlzyApply addSelf(){
         RlzyApply rlzyApply = rlzyApplyService.selectLastRlzyApply();
-        int licenseNumber = 1;
-        int licenseCode = 1;
+        int licenseNumber = 0;
+        int licenseCode = 0;
         if(rlzyApply != null){
              licenseNumber = Integer.valueOf(rlzyApply.getLicenseNumber()).intValue();
              licenseCode = Integer.valueOf(rlzyApply.getLicenseCode()).intValue();
+        }else{
+            rlzyApply = new RlzyApply();
         }
         if(licenseNumber / 1000 <1){
             String format1 = String.format("%03d", licenseNumber + 1);