| | |
| | | import com.core.common.Cools; |
| | | import com.core.common.R; |
| | | 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.*; |
| | | |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/basJar/add/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "新增硫化罐") |
| | | public R add(BasJar basJar) { |
| | | basJarService.insert(basJar); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basJar/update/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "修改硫化罐") |
| | | public R update(BasJar basJar){ |
| | | if (Cools.isEmpty(basJar) || null==basJar.getJarNo()){ |
| | | return R.error(); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/basJar/delete/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "删除硫化罐") |
| | | public R delete(@RequestParam(value="ids[]") Long[] ids){ |
| | | for (Long id : ids){ |
| | | basJarService.deleteById(id); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/basJar/export/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "导出硫化罐基础信息") |
| | | public R export(@RequestBody JSONObject param){ |
| | | EntityWrapper<BasJar> wrapper = new EntityWrapper<>(); |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | |
| | | } |
| | | |
| | | @PostMapping("/table/jar/state") |
| | | @ManagerAuth(memo = "JAR信息表") |
| | | // @ManagerAuth(memo = "JAR信息表") |
| | | public R jarStateTable(){ |
| | | List<JarStateTableVo> list = new ArrayList<>(); |
| | | List<BasJar> jars = basJarService.selectList(new EntityWrapper<BasJar>().orderBy("jar_no")); |