| | |
| | | import com.fzzy.common.manager.CommonManager; |
| | | import com.fzzy.igds.constant.Constant; |
| | | import com.fzzy.igds.constant.RespCodeEnum; |
| | | import com.fzzy.igds.constant.WarnType; |
| | | import com.fzzy.igds.data.IgdsBaseParam; |
| | | import com.fzzy.igds.data.PageResponse; |
| | | import com.fzzy.igds.domain.Company; |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Slf4j |
| | | @Controller |
| | |
| | | //库区数据 |
| | | model.addAttribute("deptList", depts); |
| | | model.addAttribute("defaultDeptId", defaultDeptId); |
| | | |
| | | //业务类型数据 |
| | | List<Map<String, String>> bizTypeList = new ArrayList<>(); |
| | | for (WarnType type : WarnType.values()) { |
| | | Map<String, String> item = new HashMap<>(); |
| | | item.put("code", type.getCode()); |
| | | item.put("msg", type.getMsg()); |
| | | bizTypeList.add(item); |
| | | } |
| | | model.addAttribute("bizTypeList", bizTypeList); |
| | | //公司数据 |
| | | model.addAttribute("companyList", companies); |
| | | model.addAttribute("defaultCompany", defaultCompany); |