|
@@ -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);
|