|
@@ -13,7 +13,9 @@ import com.kexun.service.*;
|
|
|
import org.apache.commons.io.FileUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
-
|
|
|
+import java.util.Collections;
|
|
|
+import java.util.Comparator;
|
|
|
+import java.util.Date;
|
|
|
import java.io.*;
|
|
|
import java.util.*;
|
|
|
|
|
@@ -50,7 +52,16 @@ public class ModelController {
|
|
|
|
|
|
|
|
|
private JsonFile jsonFile = new JsonFile();
|
|
|
+ @GetMapping("getModelNo")
|
|
|
+ public Result getModelNo(){
|
|
|
+ JSONObject resJson = new JSONObject();
|
|
|
+ String model_no=userModelService.getModelNo();
|
|
|
+
|
|
|
+ System.out.println(model_no);
|
|
|
|
|
|
+ resJson.put("model_no", model_no);
|
|
|
+ return Result.success("ok", resJson);
|
|
|
+ }
|
|
|
//给模型复核员提供模型复核
|
|
|
@GetMapping("listUser")
|
|
|
public Result listUser(SysUser sysUser) {
|
|
@@ -448,21 +459,23 @@ public class ModelController {
|
|
|
JSONObject req = JSON.parseObject(json);
|
|
|
int pageNum = req.getIntValue("pageNum");
|
|
|
int pageSize = req.getIntValue("pageSize");
|
|
|
- System.out.println(pageNum);
|
|
|
- System.out.println(pageSize);
|
|
|
+// System.out.println(pageNum);
|
|
|
+// System.out.println(pageSize);
|
|
|
PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
|
JSONObject resJson = new JSONObject();
|
|
|
+
|
|
|
//List<ModelEntity> model_Entity_list = userModelService.findByUserName(sysUser.getUserName());
|
|
|
//写死
|
|
|
// List<ModelEntity> model_Entity_list = userModelService.findByUserName("1");
|
|
|
// System.out.println(model_Entity_list);
|
|
|
- List<ModelEntity> model_Entity_list = userModelService.getUserModel(1L);
|
|
|
+ List<ModelEntity> model_Entity_list = userModelService.getUserModel();
|
|
|
+// System.out.println(model_Entity_list.get(0).getCreateTime());
|
|
|
+
|
|
|
PageInfo pageInfo=new PageInfo(model_Entity_list);
|
|
|
- System.out.println(pageInfo);
|
|
|
+// System.out.println(pageInfo);
|
|
|
resJson.put("modelData",pageInfo);
|
|
|
- return Result.success("ok", resJson);
|
|
|
-
|
|
|
|
|
|
+ return Result.success("ok", resJson);
|
|
|
}
|
|
|
|
|
|
// 获取当前模型
|
|
@@ -587,8 +600,12 @@ public class ModelController {
|
|
|
String state = req.getString("modelstate");
|
|
|
|
|
|
System.out.println(id);
|
|
|
+ System.out.println(state);
|
|
|
ModelEntity modelEntity = userModelService.findByID(id);
|
|
|
|
|
|
+ System.out.println(modelEntity);
|
|
|
+
|
|
|
+
|
|
|
modelEntity.setStatus(state);
|
|
|
|
|
|
userModelService.updateById(modelEntity);
|