|
@@ -1,25 +1,24 @@
|
|
|
package com.steerinfo.ems.trmmaterial.controller;
|
|
|
|
|
|
import com.steerinfo.auth.utils.JwtUtil;
|
|
|
-import com.steerinfo.ems.trmmaterial.mapper.TRmMaterialMapper;
|
|
|
-import com.steerinfo.ems.trmworkproc.model.TRmWorkproc;
|
|
|
+import com.steerinfo.ems.trmmaterial.model.TRmMaterial;
|
|
|
+import com.steerinfo.ems.trmmaterial.service.ITRmMaterialService;
|
|
|
import com.steerinfo.ems.trmworkprocmaterial.service.ITRmWorkprocMaterialService;
|
|
|
import com.steerinfo.framework.controller.BaseRESTfulController;
|
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
|
import com.steerinfo.framework.service.pagehelper.PageList;
|
|
|
-import com.steerinfo.ems.trmmaterial.model.TRmMaterial;
|
|
|
-import com.steerinfo.ems.trmmaterial.service.ITRmMaterialService;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
-import org.apache.commons.lang3.StringUtils;
|
|
|
-import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
-import java.util.*;
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.Arrays;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* TRmMaterial RESTful接口:
|
|
@@ -81,7 +80,7 @@ public class TRmMaterialController extends BaseRESTfulController {
|
|
|
}
|
|
|
}
|
|
|
String maxId = tRmMaterialService.getMaxId();
|
|
|
- maxId = String.format("%03d", Integer.parseInt(maxId) + 1);
|
|
|
+ maxId = String.format("%04d", Integer.parseInt(maxId) + 1);
|
|
|
model.setId("Y"+maxId);
|
|
|
model.setSeqno(maxId);
|
|
|
model.setCreateman(JwtUtil.getUseridByToken());
|