|  |  | 
 |  |  | package com.zy.asrs.controller; | 
 |  |  |  | 
 |  |  | import com.alibaba.fastjson.JSONArray; | 
 |  |  | import com.alibaba.fastjson.JSONObject; | 
 |  |  | import com.baomidou.mybatisplus.mapper.EntityWrapper; | 
 |  |  | import com.baomidou.mybatisplus.mapper.Wrapper; | 
 |  |  | import com.baomidou.mybatisplus.plugins.Page; | 
 |  |  | import com.core.common.DateUtils; | 
 |  |  | import com.zy.asrs.entity.BasJar; | 
 |  |  | import com.zy.asrs.entity.BasRgv; | 
 |  |  | import com.zy.asrs.entity.vo.JarStateTableVo; | 
 |  |  | import com.zy.asrs.service.BasJarService; | 
 |  |  | import com.core.annotations.ManagerAuth; | 
 |  |  | import com.core.common.BaseRes; | 
 |  |  | import com.core.common.Cools; | 
 |  |  | import com.core.common.R; | 
 |  |  | import com.zy.common.model.enums.JarStatusType; | 
 |  |  | import com.zy.common.web.BaseController; | 
 |  |  | import com.zy.system.entity.User; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.web.bind.annotation.*; | 
 |  |  |  | 
 |  |  | 
 |  |  |         return R.ok(); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @PostMapping("/table/jar/state") | 
 |  |  | //    @ManagerAuth(memo = "JAR信息表") | 
 |  |  |     public R jarStateTable(){ | 
 |  |  |     @ManagerAuth(memo = "RGV信息表") | 
 |  |  |     public R rgvStateTable(){ | 
 |  |  |         List<JarStateTableVo> list = new ArrayList<>(); | 
 |  |  |         List<BasJar> jars = basJarService.selectList(new EntityWrapper<BasJar>().orderBy("jar_no")); | 
 |  |  |         for (BasJar basJar : jars) { | 
 |  |  | 
 |  |  |             JarStateTableVo vo = new JarStateTableVo(); | 
 |  |  |             vo.setJarNo(basJar.getJarNo());   //  RGV号 | 
 |  |  |             list.add(vo); | 
 |  |  |  | 
 |  |  |             vo.setJarMode(basJar.getJarMode() == 1?"联机":"脱机" );   //  模式状态 | 
 |  |  |             vo.setJarStatus(JarStatusType.get(basJar.getJarMode()).desc);     //  状态 | 
 |  |  |             vo.setJarNo(basJar.getJarNo());  //  工位1任务号 | 
 |  |  |             vo.setRegion(basJar.getRegion()); | 
 |  |  |             vo.setJarCode(basJar.getJarCode()); | 
 |  |  |             vo.setJarErr(basJar.getJarErr()); | 
 |  |  |  | 
 |  |  |         } | 
 |  |  |         return R.ok().add(jars); | 
 |  |  |         return R.ok().add(list); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  | } |