|
@@ -1,8 +1,7 @@
|
|
|
package org.jeecg.modules.fbsPerson.controller;
|
|
|
|
|
|
-import java.util.Arrays;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
+import java.util.*;
|
|
|
import java.io.IOException;
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
import java.net.URLDecoder;
|
|
@@ -19,6 +18,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
+import org.jeecg.modules.fbsWorkshopDispatchList.entity.FbsWorkshopDispatchList;
|
|
|
+import org.jeecg.modules.fbsWorkshopDispatchList.service.IFbsWorkshopDispatchListService;
|
|
|
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
|
|
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
|
|
import org.jeecgframework.poi.excel.entity.ExportParams;
|
|
@@ -45,7 +46,55 @@ import com.alibaba.fastjson.JSON;
|
|
|
public class FbsPersonController {
|
|
|
@Autowired
|
|
|
private IFbsPersonService fbsPersonService;
|
|
|
-
|
|
|
+ @Autowired
|
|
|
+ private IFbsWorkshopDispatchListService fbsWorkshopDispatchListService;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 仓库管理看板--仓库人员信息数据接口
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/getWarehousePersonList")
|
|
|
+ public List<FbsPerson> getWarehousePersonList(){
|
|
|
+ List<FbsPerson> list = new ArrayList<>();
|
|
|
+ SimpleDateFormat dateFm = new SimpleDateFormat("HH:mm");
|
|
|
+ List<FbsWorkshopDispatchList> list1 = fbsWorkshopDispatchListService.selNowDispatchList();
|
|
|
+ int i = 1;
|
|
|
+ for (FbsWorkshopDispatchList o:list1){
|
|
|
+ i++;
|
|
|
+ List<FbsPerson> personList = fbsPersonService.getPerByCode(o.getPersonnelIdU8());
|
|
|
+ if(personList.size() > 0){
|
|
|
+ if(o.getFirstTime() == null){
|
|
|
+ o.setFirstTime(new Date());
|
|
|
+ }
|
|
|
+ personList.get(0).setInTime(dateFm.format(o.getFirstTime()));
|
|
|
+ personList.get(0).setRealName(o.getName());
|
|
|
+ if(i%2 == 0){
|
|
|
+ personList.get(0).setAvatar("/images/avatar/avata_2.jpg");
|
|
|
+ }else{
|
|
|
+ personList.get(0).setAvatar("/images/avatar/avata_5.jpg");
|
|
|
+ }
|
|
|
+
|
|
|
+// personList.get(0).setInTime(o.getFirstTime());
|
|
|
+// personList.get(0).setInTime(o.getFirstTime());
|
|
|
+// personList.get(0).setInTime(o.getFirstTime());
|
|
|
+ list.add(personList.get(0));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 分页列表查询
|
|
|
* @param fbsPerson
|